diff --git a/bun.lock b/bun.lock index 6c4268e..b73360b 100644 --- a/bun.lock +++ b/bun.lock @@ -9,6 +9,7 @@ "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/resolvers": "4.1.3", + "@next/bundle-analyzer": "^15.5.6", "@prisma/client": "^5.14.0", "@radix-ui/react-alert-dialog": "^1.1.6", "@radix-ui/react-avatar": "^1.1.3", @@ -24,6 +25,7 @@ "@radix-ui/react-separator": "^1.1.2", "@radix-ui/react-slider": "^1.2.3", "@radix-ui/react-slot": "^1.1.2", + "@radix-ui/react-switch": "^1.2.6", "@radix-ui/react-tabs": "^1.1.3", "@radix-ui/react-toggle": "^1.1.10", "@radix-ui/react-tooltip": "^1.1.8", @@ -101,6 +103,8 @@ "@better-fetch/fetch": ["@better-fetch/fetch@1.1.17", "", {}, "sha512-MQonMalbmEshb+amuLtCkVjYliyyWrYXZkiMnHLgFjNEBsNBbZSY3+lYsFK1/VxePSupVkUW6xinqhqB3uHE1g=="], + "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="], + "@dnd-kit/accessibility": ["@dnd-kit/accessibility@3.1.1", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw=="], "@dnd-kit/core": ["@dnd-kit/core@6.3.1", "", { "dependencies": { "@dnd-kit/accessibility": "^3.1.1", "@dnd-kit/utilities": "^3.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ=="], @@ -251,6 +255,8 @@ "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@0.2.7", "", { "dependencies": { "@emnapi/core": "^1.3.1", "@emnapi/runtime": "^1.3.1", "@tybys/wasm-util": "^0.9.0" } }, "sha512-5yximcFK5FNompXfJFoWanu5l8v1hNGqNHh9du1xETp9HWk/B/PzvchX55WYOPaIeNglG8++68AAiauBAtbnzw=="], + "@next/bundle-analyzer": ["@next/bundle-analyzer@15.5.6", "", { "dependencies": { "webpack-bundle-analyzer": "4.10.1" } }, "sha512-IHeyk2s9/fVDAGDLNbBkCSG8XBabhuMajiaJggjsg4GyFIswh78DzLo5Nl5th8QTs3U/teYeczvfeV9w1Tx3qA=="], + "@next/env": ["@next/env@15.2.3", "", {}, "sha512-a26KnbW9DFEUsSxAxKBORR/uD9THoYoKbkpFywMN/AFvboTt94b8+g/07T8J6ACsdLag8/PDU60ov4rPxRAixw=="], "@next/eslint-plugin-next": ["@next/eslint-plugin-next@15.2.3", "", { "dependencies": { "fast-glob": "3.3.1" } }, "sha512-eNSOIMJtjs+dp4Ms1tB1PPPJUQHP3uZK+OQ7iFY9qXpGO6ojT6imCL+KcUOqE/GXGidWbBZJzYdgAdPHqeCEPA=="], @@ -297,6 +303,8 @@ "@peculiar/asn1-x509": ["@peculiar/asn1-x509@2.3.15", "", { "dependencies": { "@peculiar/asn1-schema": "^2.3.15", "asn1js": "^3.0.5", "pvtsutils": "^1.3.6", "tslib": "^2.8.1" } }, "sha512-0dK5xqTqSLaxv1FHXIcd4Q/BZNuopg+u1l23hT9rOmQ1g4dNtw0g/RnEi+TboB0gOwGtrWn269v27cMgchFIIg=="], + "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="], + "@prisma/client": ["@prisma/client@5.22.0", "", { "peerDependencies": { "prisma": "*" }, "optionalPeers": ["prisma"] }, "sha512-M0SVXfyHnQREBKxCgyo7sffrKttwE6R8PMq330MIUF0pTwjUhLbW84pFDlf06B27XyCR++VtjugEnIHdr07SVA=="], "@prisma/debug": ["@prisma/debug@5.22.0", "", {}, "sha512-AUt44v3YJeggO2ZU5BkXI7M4hu9BF2zzH2iF2V5pyXT/lRTyWiElZ7It+bRH1EshoMRxHgpYg4VB6rCM+mG5jQ=="], @@ -377,6 +385,8 @@ "@radix-ui/react-slot": ["@radix-ui/react-slot@1.1.2", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-YAKxaiGsSQJ38VzKH86/BPRC4rh+b1Jpa+JneA5LRE7skmLPNAyeG8kPJj/oo4STLvlrs8vkf/iYyc3A5stYCQ=="], + "@radix-ui/react-switch": ["@radix-ui/react-switch@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ=="], + "@radix-ui/react-tabs": ["@radix-ui/react-tabs@1.1.3", "", { "dependencies": { "@radix-ui/primitive": "1.1.1", "@radix-ui/react-context": "1.1.1", "@radix-ui/react-direction": "1.1.0", "@radix-ui/react-id": "1.1.0", "@radix-ui/react-presence": "1.1.2", "@radix-ui/react-primitive": "2.0.2", "@radix-ui/react-roving-focus": "1.1.2", "@radix-ui/react-use-controllable-state": "1.1.0" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9mFyI30cuRDImbmFF6O2KUJdgEOsGh9Vmx9x/Dh9tOhL7BngmQPQfwW4aejKm5OHpfWIdmeV6ySyuxoOGjtNng=="], "@radix-ui/react-toggle": ["@radix-ui/react-toggle@1.1.10", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ=="], @@ -717,6 +727,8 @@ "acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="], + "acorn-walk": ["acorn-walk@8.3.4", "", { "dependencies": { "acorn": "^8.11.0" } }, "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g=="], + "adler-32": ["adler-32@1.3.1", "", {}, "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A=="], "agent-base": ["agent-base@6.0.2", "", { "dependencies": { "debug": "4" } }, "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ=="], @@ -827,6 +839,8 @@ "combined-stream": ["combined-stream@1.0.8", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="], + "commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="], + "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="], "copy-anything": ["copy-anything@3.0.5", "", { "dependencies": { "is-what": "^4.1.8" } }, "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w=="], @@ -871,6 +885,8 @@ "dayjs": ["dayjs@1.11.18", "", {}, "sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA=="], + "debounce": ["debounce@1.2.1", "", {}, "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug=="], + "debug": ["debug@4.4.0", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA=="], "decimal.js": ["decimal.js@10.6.0", "", {}, "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg=="], @@ -907,6 +923,8 @@ "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], + "duplexer": ["duplexer@0.1.2", "", {}, "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg=="], + "ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="], "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], @@ -1035,6 +1053,8 @@ "graphemer": ["graphemer@1.4.0", "", {}, "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag=="], + "gzip-size": ["gzip-size@6.0.0", "", { "dependencies": { "duplexer": "^0.1.2" } }, "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q=="], + "has-bigints": ["has-bigints@1.1.0", "", {}, "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg=="], "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], @@ -1049,6 +1069,8 @@ "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + "html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="], + "html-to-text": ["html-to-text@9.0.5", "", { "dependencies": { "@selderee/plugin-htmlparser2": "^0.11.0", "deepmerge": "^4.3.1", "dom-serializer": "^2.0.0", "htmlparser2": "^8.0.2", "selderee": "^0.11.0" } }, "sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg=="], "htmlparser2": ["htmlparser2@8.0.2", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1", "entities": "^4.4.0" } }, "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA=="], @@ -1097,6 +1119,8 @@ "is-number-object": ["is-number-object@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw=="], + "is-plain-object": ["is-plain-object@5.0.0", "", {}, "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q=="], + "is-regex": ["is-regex@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g=="], "is-set": ["is-set@2.0.3", "", {}, "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg=="], @@ -1243,6 +1267,8 @@ "minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="], + "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="], + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], "nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], @@ -1271,6 +1297,8 @@ "object.values": ["object.values@1.2.1", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA=="], + "opener": ["opener@1.5.2", "", { "bin": { "opener": "bin/opener-bin.js" } }, "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A=="], + "optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="], "orderedmap": ["orderedmap@2.1.1", "", {}, "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g=="], @@ -1467,6 +1495,8 @@ "simple-swizzle": ["simple-swizzle@0.2.2", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg=="], + "sirv": ["sirv@2.0.4", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ=="], + "sonner": ["sonner@2.0.1", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-FRBphaehZ5tLdLcQ8g2WOIRE+Y7BCfWi5Zyd8bCvBjiW8TxxAyoWZIxS661Yz6TGPqFQ4VLzOF89WEYhfynSFQ=="], "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], @@ -1529,6 +1559,8 @@ "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], + "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], + "ts-api-utils": ["ts-api-utils@2.1.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ=="], "tsconfig-paths": ["tsconfig-paths@3.15.0", "", { "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg=="], @@ -1589,6 +1621,8 @@ "w3c-keyname": ["w3c-keyname@2.2.8", "", {}, "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="], + "webpack-bundle-analyzer": ["webpack-bundle-analyzer@4.10.1", "", { "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", "acorn-walk": "^8.0.0", "commander": "^7.2.0", "debounce": "^1.2.1", "escape-string-regexp": "^4.0.0", "gzip-size": "^6.0.0", "html-escaper": "^2.0.2", "is-plain-object": "^5.0.0", "opener": "^1.5.2", "picocolors": "^1.0.0", "sirv": "^2.0.3", "ws": "^7.3.1" }, "bin": { "webpack-bundle-analyzer": "lib/bin/analyzer.js" } }, "sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ=="], + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], "which-boxed-primitive": ["which-boxed-primitive@1.1.1", "", { "dependencies": { "is-bigint": "^1.1.0", "is-boolean-object": "^1.2.1", "is-number-object": "^1.1.1", "is-string": "^1.1.1", "is-symbol": "^1.1.1" } }, "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA=="], @@ -1607,6 +1641,8 @@ "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], + "ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="], + "xlsx": ["xlsx@0.18.5", "", { "dependencies": { "adler-32": "~1.3.0", "cfb": "~1.2.1", "codepage": "~1.15.0", "crc-32": "~1.2.1", "ssf": "~0.11.2", "wmf": "~1.0.1", "word": "~0.3.0" }, "bin": { "xlsx": "bin/xlsx.njs" } }, "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ=="], "xmlbuilder": ["xmlbuilder@13.0.2", "", {}, "sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ=="], @@ -1771,6 +1807,20 @@ "@radix-ui/react-slider/@radix-ui/react-direction": ["@radix-ui/react-direction@1.1.0", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg=="], + "@radix-ui/react-switch/@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="], + + "@radix-ui/react-switch/@radix-ui/react-compose-refs": ["@radix-ui/react-compose-refs@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg=="], + + "@radix-ui/react-switch/@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="], + + "@radix-ui/react-switch/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="], + + "@radix-ui/react-switch/@radix-ui/react-use-controllable-state": ["@radix-ui/react-use-controllable-state@1.2.2", "", { "dependencies": { "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg=="], + + "@radix-ui/react-switch/@radix-ui/react-use-previous": ["@radix-ui/react-use-previous@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ=="], + + "@radix-ui/react-switch/@radix-ui/react-use-size": ["@radix-ui/react-use-size@1.1.1", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ=="], + "@radix-ui/react-tabs/@radix-ui/react-direction": ["@radix-ui/react-direction@1.1.0", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg=="], "@radix-ui/react-toggle/@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="], @@ -1911,6 +1961,12 @@ "@radix-ui/react-select/@radix-ui/react-popper/@radix-ui/rect": ["@radix-ui/rect@1.1.1", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="], + "@radix-ui/react-switch/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], + + "@radix-ui/react-switch/@radix-ui/react-use-controllable-state/@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="], + + "@radix-ui/react-switch/@radix-ui/react-use-size/@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="], + "@radix-ui/react-toggle/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="], "@radix-ui/react-toggle/@radix-ui/react-use-controllable-state/@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="], diff --git a/docs/prebuilt-workflows-design.md b/docs/prebuilt-workflows-design.md new file mode 100644 index 0000000..e27576f --- /dev/null +++ b/docs/prebuilt-workflows-design.md @@ -0,0 +1,356 @@ +# Prebuilt Workflows Experience Design + +> **Version:** 0.1 +> **Last Updated:** October 16, 2025 +> **Status:** Planning + +## Table of Contents + +- [Prebuilt Workflows Experience Design](#prebuilt-workflows-experience-design) + - [Table of Contents](#table-of-contents) + - [Purpose and Outcomes](#purpose-and-outcomes) + - [Goals](#goals) + - [Success Metrics](#success-metrics) + - [Scope and Constraints](#scope-and-constraints) + - [In Scope (Phase 1)](#in-scope-phase-1) + - [Deferred / Out of Scope](#deferred--out-of-scope) + - [Constraints](#constraints) + - [Personas and User Journeys](#personas-and-user-journeys) + - [Personas](#personas) + - [Key Journey (Enable Prebuilt Workflow)](#key-journey-enable-prebuilt-workflow) + - [High-Level Architecture](#high-level-architecture) + - [Overview](#overview) + - [Workflow Catalog](#workflow-catalog) + - [Detail Dialog Content](#detail-dialog-content) + - [User Experience](#user-experience) + - [Layout](#layout) + - [Email Template Editing](#email-template-editing) + - [Accessibility](#accessibility) + - [Feature Flag Strategy](#feature-flag-strategy) + - [Backend and Services](#backend-and-services) + - [tRPC Procedures (Proposed)](#trpc-procedures-proposed) + - [Execution Pipeline](#execution-pipeline) + - [Inter-module Coordination](#inter-module-coordination) + - [Data Model Updates](#data-model-updates) + - [RBAC and Security](#rbac-and-security) + - [Observability and Monitoring](#observability-and-monitoring) + - [Implementation Roadmap](#implementation-roadmap) + - [Phase 0: Preparation (1 week)](#phase-0-preparation-1-week) + - [Phase 1: UI and API Foundation (2 weeks)](#phase-1-ui-and-api-foundation-2-weeks) + - [Phase 2: Workflow Execution (2 weeks)](#phase-2-workflow-execution-2-weeks) + - [Phase 3: Hardening and Launch (1 week)](#phase-3-hardening-and-launch-1-week) + - [Testing Strategy](#testing-strategy) + - [Risks and Mitigations](#risks-and-mitigations) + - [Open Questions](#open-questions) + +--- + +## Purpose and Outcomes + +### Goals + +- Deliver a simplified workflows experience focused on curated, high-value automations. +- Replace the current workflow designer UI with prebuilt workflow cards that can be enabled or disabled. +- Allow organizations to customize email message templates per workflow while temporarily disabling SMS, Slack, and other channels. +- Provide clear telemetry on workflow adoption and performance. + +### Success Metrics + +- Workflow enablement rate: at least 60% of active organizations enable one or more prebuilt workflows within 30 days. +- Template customization rate: at least 40% of enabled workflows have customized email content. +- Support ticket reduction: 30% fewer tickets related to workflow builder complexity. +- Execution stability: 99% of scheduled workflow events complete without error. + +--- + +## Scope and Constraints + +### In Scope (Phase 1) + +- Disable access to the legacy workflow designer UI and replace it with the prebuilt workflows surface. +- Display six curated workflow cards with enable/disable controls, status badges, and detail dialogs. +- Email-only automation channel with per-workflow email template editing using existing template storage mechanisms. +- tRPC endpoints for listing workflows, toggling status, and updating email templates. +- Execution pipeline changes to run only the enabled prebuilt workflows. + +### Deferred / Out of Scope + +- Custom workflow authoring, SMS, Slack, or webhook channels. +- Runtime editing of workflow logic or steps. +- Multi-step conditional branching and advanced scheduling beyond the curated set. +- Role-specific workflow variations. + +### Constraints + +- Maintain multi-tenant isolation and reuse existing RBAC primitives. +- Ensure backwards compatibility for workflow execution records; archived designer workflows should be disabled but retained in history for audit. +- Respect existing infrastructure choices (Bun runtime, Next.js 15, Prisma, tRPC, workflow dispatcher). + +--- + +## Personas and User Journeys + +### Personas + +- **Operations Manager**: Needs reliable automation to keep client onboarding and invoicing consistent without manual setup. +- **Sales Lead**: Wants lead-to-client conversion automated with minimal configuration. +- **Finance Coordinator**: Relies on automated invoice reminders and renewal cycles. + +### Key Journey (Enable Prebuilt Workflow) + +1. User navigates to the Workflows page and sees the curated workflow grid. +2. User inspects a workflow card and opens the detail dialog for more information. +3. User toggles the workflow to enabled, reviews default email template, and optionally edits copy. +4. Changes persist via tRPC and the worker picks up the enabled workflow configuration. +5. Workflow executes when triggering events occur; user can monitor status within activity logs. + +```mermaid +journey + title Enable Prebuilt Workflow Journey + section Discovery + Visit workflows page: 4: User + Review available workflow cards: 3: User + section Configuration + Open details dialog: 3: User + Enable workflow toggle: 4: User + Update email template: 2: User + Save configuration via API: 3: System + section Execution + Trigger source event (lead added, project completed, etc.): 4: System + Workflow worker processes automation: 3: System + Send email notifications: 4: System + View execution status: 2: User +``` + +--- + +## High-Level Architecture + +### Overview + +- **Client**: Next.js route under `src/app/(dashboard)/[orgId]/workflows` renders workflow cards and detail dialogs. Legacy workflow designer components are removed or gated behind a feature flag defaulted to off. +- **tRPC API**: New router `src/server/api/routers/workflows/prebuilt.ts` exposes listing, enable/disable, and template update procedures. +- **Workflow Engine**: Existing workflow dispatcher is updated to reference prebuilt workflow definitions stored in code and database configuration (enabled flag, template overrides). +- **Email Service**: Reuse existing email templating utilities in `src/lib/email-templates.ts` with per-workflow overrides. + +```mermaid +flowchart LR + subgraph Client + UI[Prebuilt Workflow Cards] + Dialog[Workflow Detail Dialog] + end + + subgraph API[tRPC Layer] + List[List Workflows] + Toggle[Toggle Workflow] + Template[Update Template] + end + + subgraph Backend + Config[Workflow Config Store] + Engine[Workflow Dispatcher] + Email[Email Delivery Service] + end + + subgraph Data + Prisma[(PostgreSQL via Prisma)] + Audit[(Workflow Activity Logs)] + end + + UI --> List + Dialog --> Toggle + Dialog --> Template + + List --> Config + Toggle --> Config + Template --> Config + + Engine --> Config + Engine --> Email + Engine --> Audit + + Config --> Prisma + Audit --> Prisma +``` + +--- + +## Workflow Catalog + +| Key | Workflow | Trigger | Actions | Default Template Content | +| ----- | ---------------------------- | ----------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------- | +| WF-01 | Lead to Client Conversion | New CRM lead | Create client record, create project folder, trigger onboarding tasks, update lead stage | Welcome email with onboarding summary | +| WF-02 | Client Onboarding | New CRM client | Generate contract template, assign default tasks, send internal notification | Client welcome email with next steps | +| WF-03 | Project Lifecycle | New project | Create task board, assign owner/team, transition statuses, generate invoice on completion | Project kickoff email | +| WF-04 | Invoice and Payment Tracking | Project marked complete | Create invoice, schedule payment reminders, close workflow when paid | Payment reminder email | +| WF-05 | Contract Renewal / Retainer | Contract renewal window | Alert at minus 15 days, send renewal email, draft invoice, update CRM upon confirmation | Renewal reminder email | +| WF-06 | Internal Health Dashboard | Weekly schedule | Aggregate metrics, send summary email every Friday | Weekly operations digest | + +### Detail Dialog Content + +- Workflow summary and benefits. +- Trigger definition, action chain, prerequisites. +- Email template editor (subject, body, optional variables). +- Enable/disable toggle with confirmation if dependencies exist (for example, invoice workflow depends on finance module access). +- Execution notes and RBAC requirements. + +--- + +## User Experience + +### Layout + +- Replace workflow canvas with card grid layout (two-column desktop, single column on mobile). +- Each card shows workflow name, summary, status badge, enable toggle, and "View" button. +- Detail dialog uses responsive container with `max-h-[90vh] overflow-y-auto` and standard button layout guidelines. + +### Email Template Editing + +- Minimal rich-text editor (existing Markdown editor or textarea) limited to email content. +- Template preview section with placeholder variables (for example, `{{clientName}}`). +- Validation to ensure subject and body are not empty. + +### Accessibility + +- Keyboard navigation for toggles and dialogs. +- ARIA labels for workflow cards and actions. +- Color choices meeting contrast guidelines. + +### Feature Flag Strategy + +- Introduce `PREBUILT_WORKFLOWS_ENABLED` flag in UI and API to guard rollout. +- Legacy workflow designer path returns friendly message when flag is disabled. + +--- + +## Backend and Services + +### tRPC Procedures (Proposed) + +| Procedure | Input | Output | Notes | +| ------------------------ | ------------------------------------------------ | ---------------------------------------------------------------------- | ---------------------------------------------- | +| `listPrebuiltWorkflows` | `{ organizationId }` | Array of workflow definitions with enabled state and template metadata | Respects RBAC (`workflows:read`) | +| `toggleWorkflow` | `{ organizationId, workflowKey, enabled }` | Updated state | Validates module dependencies and permissions | +| `getWorkflowDetail` | `{ organizationId, workflowKey }` | Detailed configuration, template data, execution summary | Used for dialog display | +| `updateWorkflowTemplate` | `{ organizationId, workflowKey, subject, body }` | Confirmation + version id | Validates email content and persists to Prisma | +| `listWorkflowExecutions` | `{ organizationId, workflowKey, limit }` | Recent execution records for future observability | Phase 2 | + +### Execution Pipeline + +- Prebuilt workflows defined as TypeScript modules under `src/workflows/prebuilt/` exporting metadata (key, triggers, action handler, default template). +- Worker jobs updated to resolve workflow by key and execute associated handler. +- Email sending uses `src/lib/email-templates.ts` with template overrides stored in database. +- Disable creation of new custom workflows through UI and block execution of legacy custom workflows by default (flag-driven fallback). + +### Inter-module Coordination + +- CRM tRPC router publishes events for lead/client creation. +- Finance router exposes invoice creation helper used by workflows. +- Projects router provides project creation and status change events. +- Shared event bus or dispatcher coordinates triggers; ensure idempotency. + +--- + +## Data Model Updates + +Minimal schema adjustments to capture prebuilt workflow configuration and template overrides. + +```prisma +model PrebuiltWorkflowConfig { + id String @id @default(cuid()) + organizationId String + workflowKey String + enabled Boolean @default(false) + emailSubject String + emailBody String + templateVersion Int @default(1) + updatedByUserId String + updatedAt DateTime @updatedAt + createdAt DateTime @default(now()) + + organization Organization @relation(fields: [organizationId], references: [id]) + updatedBy User @relation(fields: [updatedByUserId], references: [id]) + + @@unique([organizationId, workflowKey]) +} +``` + +- Existing workflow execution logs can be reused; add `workflowKey` foreign key if not present. +- Store default templates in code; fall back to defaults when no override exists. + +--- + +## RBAC and Security + +- Require `workflows:read` permission to view workflows, `workflows:write` to enable/disable or edit templates. +- Ensure workflows interacting with other modules also validate module permissions (for example, invoice workflow requires `finance:write`). +- Audit log entries for toggle and template changes via existing logging utilities. +- Enforce HTML sanitization for template body to prevent script injection. + +--- + +## Observability and Monitoring + +- Metrics: workflows enabled per organization, execution counts per workflow, email send success rate, failure reasons. +- Logging: structured logs with workflow key, organization, trigger event, and outcome. +- Alerts: failure spike detection (errors above threshold within one hour), template rendering failures, event consumption lag. +- Dashboard: high-level view of workflow adoption, success rate, pending actions. + +--- + +## Implementation Roadmap + +### Phase 0: Preparation (1 week) + +- Gate legacy workflow designer behind feature flag and add redirect message. +- Scaffold shared workflow metadata definitions and tRPC router skeleton. +- Define Prisma migration for `PrebuiltWorkflowConfig`. + +### Phase 1: UI and API Foundation (2 weeks) + +- Build workflow cards and detail dialog UI. +- Implement `listPrebuiltWorkflows`, `getWorkflowDetail`, `toggleWorkflow`, `updateWorkflowTemplate` procedures. +- Integrate email template editor with validation and persistence. + +### Phase 2: Workflow Execution (2 weeks) + +- Implement action handlers for six prebuilt workflows leveraging CRM, Projects, Finance services. +- Update dispatcher to respect enabled state and email templates. +- Add execution logging and minimal status reporting. + +### Phase 3: Hardening and Launch (1 week) + +- Comprehensive testing, performance checks, and rollout plan. +- Finalize monitoring dashboards and alert rules. +- Enable feature flag for pilot organizations, iterate on feedback, then roll out broadly. + +--- + +## Testing Strategy + +- **Unit Tests**: Workflow metadata loaders, template validation, toggle logic, email template rendering. +- **Integration Tests**: tRPC procedures with Prisma using organization-scoped fixtures; workflow execution handlers verifying side effects (client creation, invoice generation). +- **E2E Tests**: Playwright scenarios covering enabling workflows, editing templates, and verifying UI states. +- **Performance Tests**: Workflow execution throughput under concurrent triggers. +- **Security Tests**: RBAC enforcement, template sanitization, prevention of unauthorized module access. + +--- + +## Risks and Mitigations + +| Risk | Impact | Probability | Mitigation | +| --------------------------------------------------------- | ------ | ----------- | -------------------------------------------------------------------------------------------------- | +| Legacy workflows still executing unexpectedly | High | Medium | Force-disable legacy workflows when prebuilt flag is active; add migration to archive old configs. | +| Insufficient module permissions causing workflow failures | Medium | Medium | Validate dependencies during enablement and surface warnings. | +| Email template misuse (invalid placeholders) | Medium | High | Provide linting and preview, block save on unresolved variables. | +| User disappointment due to reduced flexibility | Medium | Medium | Offer clear messaging about upcoming custom builder v2 and collect feedback via telemetry. | +| Workflow execution performance | High | Low | Reuse existing worker infrastructure, add targeted load tests. | + +--- + +## Open Questions + +1. Should legacy workflow execution history remain visible in the new UI, or should it be migrated to a separate archive view? +2. Do we need per-workflow throttling controls (for example, limit emails per day) in the initial release? +3. Are there compliance requirements for weekly health emails (opt-out, audience restrictions)? +4. Should we allow different email templates per trigger event (for example, initial message vs reminder) in Phase 1? diff --git a/next.config.js b/next.config.js index a616f4a..cd7d259 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,7 @@ const config = { }, experimental: { webpackMemoryOptimizations: true, + optimizePackageImports: ["twilio"], }, }; diff --git a/package.json b/package.json index 1acd657..9301db0 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", "@hookform/resolvers": "4.1.3", + "@next/bundle-analyzer": "^15.5.6", "@prisma/client": "^5.14.0", "@radix-ui/react-alert-dialog": "^1.1.6", "@radix-ui/react-avatar": "^1.1.3", @@ -47,6 +48,7 @@ "@radix-ui/react-separator": "^1.1.2", "@radix-ui/react-slider": "^1.2.3", "@radix-ui/react-slot": "^1.1.2", + "@radix-ui/react-switch": "^1.2.6", "@radix-ui/react-tabs": "^1.1.3", "@radix-ui/react-toggle": "^1.1.10", "@radix-ui/react-tooltip": "^1.1.8", diff --git a/prisma/generated/zod/index.ts b/prisma/generated/zod/index.ts index 73fcf02..f1fac8e 100644 --- a/prisma/generated/zod/index.ts +++ b/prisma/generated/zod/index.ts @@ -104,7 +104,7 @@ export const CustomerInteractionScalarFieldEnumSchema = z.enum(['id','customerId export const DealScalarFieldEnumSchema = z.enum(['id','customerId','title','value','currency','status','stage','probability','expectedCloseDate','actualCloseDate','description','createdById','createdAt','updatedAt']); -export const ProjectScalarFieldEnumSchema = z.enum(['id','organizationId','name','description','startDate','endDate','status','budget','currency','createdById','createdAt','updatedAt']); +export const ProjectScalarFieldEnumSchema = z.enum(['id','organizationId','name','description','startDate','endDate','status','budget','currency','createdById','customerId','createdAt','updatedAt']); export const TaskScalarFieldEnumSchema = z.enum(['id','organizationId','projectId','parentTaskId','title','description','status','priority','startDate','dueDate','completedAt','assignedToId','createdById','estimatedHours','actualHours','order','createdAt','updatedAt','customerInteractionId']); @@ -178,6 +178,10 @@ export const TemplateInstallItemScalarFieldEnumSchema = z.enum(['id','installati export const WorkflowScalarFieldEnumSchema = z.enum(['id','organizationId','name','description','version','status','isTemplate','category','canvasData','retryConfig','timeoutConfig','totalExecutions','successfulExecutions','failedExecutions','lastExecutedAt','createdById','updatedById','publishedAt','publishedById','archivedAt','createdAt','updatedAt']); +export const PrebuiltWorkflowConfigScalarFieldEnumSchema = z.enum(['id','organizationId','workflowKey','enabled','emailSubject','emailBody','templateVersion','updatedByUserId','messageTemplateId','createdAt','updatedAt']); + +export const PrebuiltWorkflowRunScalarFieldEnumSchema = z.enum(['id','organizationId','workflowKey','status','triggerModule','triggerEntity','triggerEvent','triggeredAt','startedAt','completedAt','durationMs','emailRecipient','emailSubject','context','result','error','createdAt','updatedAt']); + export const OrganizationUiConfigScalarFieldEnumSchema = z.enum(['id','organizationId','key','config','createdAt','updatedAt']); export const WorkflowTriggerScalarFieldEnumSchema = z.enum(['id','workflowId','nodeId','name','description','type','module','entityType','eventType','conditions','delay','isActive','lastTriggered','triggerCount','createdAt','updatedAt']); @@ -746,6 +750,7 @@ export const ProjectSchema = z.object({ budget: z.instanceof(Prisma.Decimal, { message: "Field 'budget' must be a Decimal. Location: ['Models', 'Project']"}).nullable(), currency: z.string(), createdById: z.string().nullable(), + customerId: z.string().nullable(), createdAt: z.coerce.date(), updatedAt: z.coerce.date(), }) @@ -1519,6 +1524,53 @@ export const WorkflowSchema = z.object({ export type Workflow = z.infer +///////////////////////////////////////// +// PREBUILT WORKFLOW CONFIG SCHEMA +///////////////////////////////////////// + +export const PrebuiltWorkflowConfigSchema = z.object({ + id: z.string().cuid(), + organizationId: z.string(), + workflowKey: z.string(), + enabled: z.boolean(), + emailSubject: z.string(), + emailBody: z.string(), + templateVersion: z.number().int(), + updatedByUserId: z.string(), + messageTemplateId: z.string().nullable(), + createdAt: z.coerce.date(), + updatedAt: z.coerce.date(), +}) + +export type PrebuiltWorkflowConfig = z.infer + +///////////////////////////////////////// +// PREBUILT WORKFLOW RUN SCHEMA +///////////////////////////////////////// + +export const PrebuiltWorkflowRunSchema = z.object({ + status: WorkflowExecutionStatusSchema, + id: z.string().cuid(), + organizationId: z.string(), + workflowKey: z.string(), + triggerModule: z.string(), + triggerEntity: z.string(), + triggerEvent: z.string(), + triggeredAt: z.coerce.date(), + startedAt: z.coerce.date(), + completedAt: z.coerce.date().nullable(), + durationMs: z.number().int().nullable(), + emailRecipient: z.string().nullable(), + emailSubject: z.string().nullable(), + context: JsonValueSchema.nullable(), + result: JsonValueSchema.nullable(), + error: z.string().nullable(), + createdAt: z.coerce.date(), + updatedAt: z.coerce.date(), +}) + +export type PrebuiltWorkflowRun = z.infer + ///////////////////////////////////////// // ORGANIZATION UI CONFIG SCHEMA ///////////////////////////////////////// @@ -2082,63737 +2134,3 @@ export const EarlyAccessCodeSchema = z.object({ }) export type EarlyAccessCode = z.infer - -///////////////////////////////////////// -// SELECT & INCLUDE -///////////////////////////////////////// - -// PERMISSION -//------------------------------------------------------ - -export const PermissionIncludeSchema: z.ZodType = z.object({ - rolePermissions: z.union([z.boolean(),z.lazy(() => RolePermissionFindManyArgsSchema)]).optional(), - customRolePermissions: z.union([z.boolean(),z.lazy(() => CustomRolePermissionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => PermissionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const PermissionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => PermissionSelectSchema).optional(), - include: z.lazy(() => PermissionIncludeSchema).optional(), -}).strict(); - -export const PermissionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => PermissionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const PermissionCountOutputTypeSelectSchema: z.ZodType = z.object({ - rolePermissions: z.boolean().optional(), - customRolePermissions: z.boolean().optional(), -}).strict(); - -export const PermissionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - module: z.boolean().optional(), - action: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - rolePermissions: z.union([z.boolean(),z.lazy(() => RolePermissionFindManyArgsSchema)]).optional(), - customRolePermissions: z.union([z.boolean(),z.lazy(() => CustomRolePermissionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => PermissionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// ROLE PERMISSION -//------------------------------------------------------ - -export const RolePermissionIncludeSchema: z.ZodType = z.object({ - permission: z.union([z.boolean(),z.lazy(() => PermissionArgsSchema)]).optional(), -}).strict() - -export const RolePermissionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => RolePermissionSelectSchema).optional(), - include: z.lazy(() => RolePermissionIncludeSchema).optional(), -}).strict(); - -export const RolePermissionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - role: z.boolean().optional(), - permissionId: z.boolean().optional(), - createdAt: z.boolean().optional(), - permission: z.union([z.boolean(),z.lazy(() => PermissionArgsSchema)]).optional(), -}).strict() - -// CUSTOM ROLE -//------------------------------------------------------ - -export const CustomRoleIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - permissions: z.union([z.boolean(),z.lazy(() => CustomRolePermissionFindManyArgsSchema)]).optional(), - userAssignments: z.union([z.boolean(),z.lazy(() => UserOrganizationFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomRoleCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const CustomRoleArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomRoleSelectSchema).optional(), - include: z.lazy(() => CustomRoleIncludeSchema).optional(), -}).strict(); - -export const CustomRoleCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomRoleCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const CustomRoleCountOutputTypeSelectSchema: z.ZodType = z.object({ - permissions: z.boolean().optional(), - userAssignments: z.boolean().optional(), -}).strict(); - -export const CustomRoleSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - color: z.boolean().optional(), - isActive: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - permissions: z.union([z.boolean(),z.lazy(() => CustomRolePermissionFindManyArgsSchema)]).optional(), - userAssignments: z.union([z.boolean(),z.lazy(() => UserOrganizationFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomRoleCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// CUSTOM ROLE PERMISSION -//------------------------------------------------------ - -export const CustomRolePermissionIncludeSchema: z.ZodType = z.object({ - customRole: z.union([z.boolean(),z.lazy(() => CustomRoleArgsSchema)]).optional(), - permission: z.union([z.boolean(),z.lazy(() => PermissionArgsSchema)]).optional(), -}).strict() - -export const CustomRolePermissionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomRolePermissionSelectSchema).optional(), - include: z.lazy(() => CustomRolePermissionIncludeSchema).optional(), -}).strict(); - -export const CustomRolePermissionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - customRoleId: z.boolean().optional(), - permissionId: z.boolean().optional(), - createdAt: z.boolean().optional(), - customRole: z.union([z.boolean(),z.lazy(() => CustomRoleArgsSchema)]).optional(), - permission: z.union([z.boolean(),z.lazy(() => PermissionArgsSchema)]).optional(), -}).strict() - -// ORGANIZATION -//------------------------------------------------------ - -export const OrganizationIncludeSchema: z.ZodType = z.object({ - users: z.union([z.boolean(),z.lazy(() => UserOrganizationFindManyArgsSchema)]).optional(), - customers: z.union([z.boolean(),z.lazy(() => CustomerFindManyArgsSchema)]).optional(), - projects: z.union([z.boolean(),z.lazy(() => ProjectFindManyArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - invoices: z.union([z.boolean(),z.lazy(() => InvoiceFindManyArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - expenseCategories: z.union([z.boolean(),z.lazy(() => ExpenseCategoryFindManyArgsSchema)]).optional(), - expenseTags: z.union([z.boolean(),z.lazy(() => ExpenseTagFindManyArgsSchema)]).optional(), - employees: z.union([z.boolean(),z.lazy(() => EmployeeFindManyArgsSchema)]).optional(), - campaigns: z.union([z.boolean(),z.lazy(() => MarketingCampaignFindManyArgsSchema)]).optional(), - invitations: z.union([z.boolean(),z.lazy(() => InvitationFindManyArgsSchema)]).optional(), - customRoles: z.union([z.boolean(),z.lazy(() => CustomRoleFindManyArgsSchema)]).optional(), - financialReports: z.union([z.boolean(),z.lazy(() => FinancialReportFindManyArgsSchema)]).optional(), - workflows: z.union([z.boolean(),z.lazy(() => WorkflowFindManyArgsSchema)]).optional(), - actionTemplates: z.union([z.boolean(),z.lazy(() => ActionTemplateFindManyArgsSchema)]).optional(), - variableDefinitions: z.union([z.boolean(),z.lazy(() => VariableDefinitionFindManyArgsSchema)]).optional(), - integrationConfigs: z.union([z.boolean(),z.lazy(() => IntegrationConfigFindManyArgsSchema)]).optional(), - templatePackages: z.union([z.boolean(),z.lazy(() => TemplatePackageFindManyArgsSchema)]).optional(), - templateInstallations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - templateShares: z.union([z.boolean(),z.lazy(() => TemplateShareFindManyArgsSchema)]).optional(), - templateShareImports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - uiConfigs: z.union([z.boolean(),z.lazy(() => OrganizationUiConfigFindManyArgsSchema)]).optional(), - importSessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - importTemplates: z.union([z.boolean(),z.lazy(() => ImportTemplateFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => OrganizationCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const OrganizationArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => OrganizationSelectSchema).optional(), - include: z.lazy(() => OrganizationIncludeSchema).optional(), -}).strict(); - -export const OrganizationCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => OrganizationCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const OrganizationCountOutputTypeSelectSchema: z.ZodType = z.object({ - users: z.boolean().optional(), - customers: z.boolean().optional(), - projects: z.boolean().optional(), - tasks: z.boolean().optional(), - invoices: z.boolean().optional(), - expenses: z.boolean().optional(), - expenseCategories: z.boolean().optional(), - expenseTags: z.boolean().optional(), - employees: z.boolean().optional(), - campaigns: z.boolean().optional(), - invitations: z.boolean().optional(), - customRoles: z.boolean().optional(), - financialReports: z.boolean().optional(), - workflows: z.boolean().optional(), - actionTemplates: z.boolean().optional(), - variableDefinitions: z.boolean().optional(), - integrationConfigs: z.boolean().optional(), - templatePackages: z.boolean().optional(), - templateInstallations: z.boolean().optional(), - templateShares: z.boolean().optional(), - templateShareImports: z.boolean().optional(), - uiConfigs: z.boolean().optional(), - importSessions: z.boolean().optional(), - importTemplates: z.boolean().optional(), -}).strict(); - -export const OrganizationSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - name: z.boolean().optional(), - logo: z.boolean().optional(), - website: z.boolean().optional(), - industry: z.boolean().optional(), - description: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - users: z.union([z.boolean(),z.lazy(() => UserOrganizationFindManyArgsSchema)]).optional(), - customers: z.union([z.boolean(),z.lazy(() => CustomerFindManyArgsSchema)]).optional(), - projects: z.union([z.boolean(),z.lazy(() => ProjectFindManyArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - invoices: z.union([z.boolean(),z.lazy(() => InvoiceFindManyArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - expenseCategories: z.union([z.boolean(),z.lazy(() => ExpenseCategoryFindManyArgsSchema)]).optional(), - expenseTags: z.union([z.boolean(),z.lazy(() => ExpenseTagFindManyArgsSchema)]).optional(), - employees: z.union([z.boolean(),z.lazy(() => EmployeeFindManyArgsSchema)]).optional(), - campaigns: z.union([z.boolean(),z.lazy(() => MarketingCampaignFindManyArgsSchema)]).optional(), - invitations: z.union([z.boolean(),z.lazy(() => InvitationFindManyArgsSchema)]).optional(), - customRoles: z.union([z.boolean(),z.lazy(() => CustomRoleFindManyArgsSchema)]).optional(), - financialReports: z.union([z.boolean(),z.lazy(() => FinancialReportFindManyArgsSchema)]).optional(), - workflows: z.union([z.boolean(),z.lazy(() => WorkflowFindManyArgsSchema)]).optional(), - actionTemplates: z.union([z.boolean(),z.lazy(() => ActionTemplateFindManyArgsSchema)]).optional(), - variableDefinitions: z.union([z.boolean(),z.lazy(() => VariableDefinitionFindManyArgsSchema)]).optional(), - integrationConfigs: z.union([z.boolean(),z.lazy(() => IntegrationConfigFindManyArgsSchema)]).optional(), - templatePackages: z.union([z.boolean(),z.lazy(() => TemplatePackageFindManyArgsSchema)]).optional(), - templateInstallations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - templateShares: z.union([z.boolean(),z.lazy(() => TemplateShareFindManyArgsSchema)]).optional(), - templateShareImports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - uiConfigs: z.union([z.boolean(),z.lazy(() => OrganizationUiConfigFindManyArgsSchema)]).optional(), - importSessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - importTemplates: z.union([z.boolean(),z.lazy(() => ImportTemplateFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => OrganizationCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// IMPORT SESSION -//------------------------------------------------------ - -export const ImportSessionIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - createdBy: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - rows: z.union([z.boolean(),z.lazy(() => ImportRowFindManyArgsSchema)]).optional(), - issues: z.union([z.boolean(),z.lazy(() => ImportRowIssueFindManyArgsSchema)]).optional(), - appliedTemplate: z.union([z.boolean(),z.lazy(() => ImportTemplateArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportSessionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ImportSessionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportSessionSelectSchema).optional(), - include: z.lazy(() => ImportSessionIncludeSchema).optional(), -}).strict(); - -export const ImportSessionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportSessionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ImportSessionCountOutputTypeSelectSchema: z.ZodType = z.object({ - rows: z.boolean().optional(), - issues: z.boolean().optional(), -}).strict(); - -export const ImportSessionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - createdByUserId: z.boolean().optional(), - fileName: z.boolean().optional(), - fileSize: z.boolean().optional(), - fileType: z.boolean().optional(), - module: z.boolean().optional(), - entityType: z.boolean().optional(), - status: z.boolean().optional(), - dedupeMode: z.boolean().optional(), - mappingConfig: z.boolean().optional(), - summary: z.boolean().optional(), - rowCount: z.boolean().optional(), - processedCount: z.boolean().optional(), - successCount: z.boolean().optional(), - failureCount: z.boolean().optional(), - skippedCount: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - startedAt: z.boolean().optional(), - completedAt: z.boolean().optional(), - appliedTemplateId: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - createdBy: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - rows: z.union([z.boolean(),z.lazy(() => ImportRowFindManyArgsSchema)]).optional(), - issues: z.union([z.boolean(),z.lazy(() => ImportRowIssueFindManyArgsSchema)]).optional(), - appliedTemplate: z.union([z.boolean(),z.lazy(() => ImportTemplateArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportSessionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// IMPORT TEMPLATE -//------------------------------------------------------ - -export const ImportTemplateIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - createdBy: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - sessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportTemplateCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ImportTemplateArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportTemplateSelectSchema).optional(), - include: z.lazy(() => ImportTemplateIncludeSchema).optional(), -}).strict(); - -export const ImportTemplateCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportTemplateCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ImportTemplateCountOutputTypeSelectSchema: z.ZodType = z.object({ - sessions: z.boolean().optional(), -}).strict(); - -export const ImportTemplateSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - createdByUserId: z.boolean().optional(), - name: z.boolean().optional(), - module: z.boolean().optional(), - entityType: z.boolean().optional(), - mappingConfig: z.boolean().optional(), - columnSignature: z.boolean().optional(), - usageCount: z.boolean().optional(), - lastUsedAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - createdBy: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), - sessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportTemplateCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// IMPORT ROW -//------------------------------------------------------ - -export const ImportRowIncludeSchema: z.ZodType = z.object({ - session: z.union([z.boolean(),z.lazy(() => ImportSessionArgsSchema)]).optional(), - issues: z.union([z.boolean(),z.lazy(() => ImportRowIssueFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportRowCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ImportRowArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportRowSelectSchema).optional(), - include: z.lazy(() => ImportRowIncludeSchema).optional(), -}).strict(); - -export const ImportRowCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportRowCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ImportRowCountOutputTypeSelectSchema: z.ZodType = z.object({ - issues: z.boolean().optional(), -}).strict(); - -export const ImportRowSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - sessionId: z.boolean().optional(), - rowNumber: z.boolean().optional(), - rawData: z.boolean().optional(), - mappedData: z.boolean().optional(), - status: z.boolean().optional(), - dedupeHint: z.boolean().optional(), - score: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - session: z.union([z.boolean(),z.lazy(() => ImportSessionArgsSchema)]).optional(), - issues: z.union([z.boolean(),z.lazy(() => ImportRowIssueFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ImportRowCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// IMPORT ROW ISSUE -//------------------------------------------------------ - -export const ImportRowIssueIncludeSchema: z.ZodType = z.object({ - session: z.union([z.boolean(),z.lazy(() => ImportSessionArgsSchema)]).optional(), - row: z.union([z.boolean(),z.lazy(() => ImportRowArgsSchema)]).optional(), -}).strict() - -export const ImportRowIssueArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ImportRowIssueSelectSchema).optional(), - include: z.lazy(() => ImportRowIssueIncludeSchema).optional(), -}).strict(); - -export const ImportRowIssueSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - sessionId: z.boolean().optional(), - rowId: z.boolean().optional(), - field: z.boolean().optional(), - severity: z.boolean().optional(), - message: z.boolean().optional(), - hint: z.boolean().optional(), - value: z.boolean().optional(), - createdAt: z.boolean().optional(), - session: z.union([z.boolean(),z.lazy(() => ImportSessionArgsSchema)]).optional(), - row: z.union([z.boolean(),z.lazy(() => ImportRowArgsSchema)]).optional(), -}).strict() - -// USER ORGANIZATION -//------------------------------------------------------ - -export const UserOrganizationIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - customRole: z.union([z.boolean(),z.lazy(() => CustomRoleArgsSchema)]).optional(), -}).strict() - -export const UserOrganizationArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => UserOrganizationSelectSchema).optional(), - include: z.lazy(() => UserOrganizationIncludeSchema).optional(), -}).strict(); - -export const UserOrganizationSelectSchema: z.ZodType = z.object({ - userId: z.boolean().optional(), - organizationId: z.boolean().optional(), - role: z.boolean().optional(), - customRoleId: z.boolean().optional(), - joinedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - customRole: z.union([z.boolean(),z.lazy(() => CustomRoleArgsSchema)]).optional(), -}).strict() - -// CUSTOMER -//------------------------------------------------------ - -export const CustomerIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - interactions: z.union([z.boolean(),z.lazy(() => CustomerInteractionFindManyArgsSchema)]).optional(), - deals: z.union([z.boolean(),z.lazy(() => DealFindManyArgsSchema)]).optional(), - invoices: z.union([z.boolean(),z.lazy(() => InvoiceFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomerCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const CustomerArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomerSelectSchema).optional(), - include: z.lazy(() => CustomerIncludeSchema).optional(), -}).strict(); - -export const CustomerCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomerCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const CustomerCountOutputTypeSelectSchema: z.ZodType = z.object({ - interactions: z.boolean().optional(), - deals: z.boolean().optional(), - invoices: z.boolean().optional(), -}).strict(); - -export const CustomerSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - type: z.boolean().optional(), - status: z.boolean().optional(), - firstName: z.boolean().optional(), - lastName: z.boolean().optional(), - email: z.boolean().optional(), - phone: z.boolean().optional(), - company: z.boolean().optional(), - position: z.boolean().optional(), - address: z.boolean().optional(), - city: z.boolean().optional(), - state: z.boolean().optional(), - country: z.boolean().optional(), - postalCode: z.boolean().optional(), - source: z.boolean().optional(), - notes: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - interactions: z.union([z.boolean(),z.lazy(() => CustomerInteractionFindManyArgsSchema)]).optional(), - deals: z.union([z.boolean(),z.lazy(() => DealFindManyArgsSchema)]).optional(), - invoices: z.union([z.boolean(),z.lazy(() => InvoiceFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomerCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// CUSTOMER INTERACTION -//------------------------------------------------------ - -export const CustomerInteractionIncludeSchema: z.ZodType = z.object({ - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomerInteractionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const CustomerInteractionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomerInteractionSelectSchema).optional(), - include: z.lazy(() => CustomerInteractionIncludeSchema).optional(), -}).strict(); - -export const CustomerInteractionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CustomerInteractionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const CustomerInteractionCountOutputTypeSelectSchema: z.ZodType = z.object({ - tasks: z.boolean().optional(), -}).strict(); - -export const CustomerInteractionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - customerId: z.boolean().optional(), - type: z.boolean().optional(), - medium: z.boolean().optional(), - subject: z.boolean().optional(), - content: z.boolean().optional(), - scheduledAt: z.boolean().optional(), - completedAt: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CustomerInteractionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// DEAL -//------------------------------------------------------ - -export const DealIncludeSchema: z.ZodType = z.object({ - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), -}).strict() - -export const DealArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => DealSelectSchema).optional(), - include: z.lazy(() => DealIncludeSchema).optional(), -}).strict(); - -export const DealSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - customerId: z.boolean().optional(), - title: z.boolean().optional(), - value: z.boolean().optional(), - currency: z.boolean().optional(), - status: z.boolean().optional(), - stage: z.boolean().optional(), - probability: z.boolean().optional(), - expectedCloseDate: z.boolean().optional(), - actualCloseDate: z.boolean().optional(), - description: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), -}).strict() - -// PROJECT -//------------------------------------------------------ - -export const ProjectIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - resources: z.union([z.boolean(),z.lazy(() => ProjectResourceFindManyArgsSchema)]).optional(), - timeEntries: z.union([z.boolean(),z.lazy(() => TimeEntryFindManyArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ProjectCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ProjectArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ProjectSelectSchema).optional(), - include: z.lazy(() => ProjectIncludeSchema).optional(), -}).strict(); - -export const ProjectCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ProjectCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ProjectCountOutputTypeSelectSchema: z.ZodType = z.object({ - tasks: z.boolean().optional(), - resources: z.boolean().optional(), - timeEntries: z.boolean().optional(), - expenses: z.boolean().optional(), -}).strict(); - -export const ProjectSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - startDate: z.boolean().optional(), - endDate: z.boolean().optional(), - status: z.boolean().optional(), - budget: z.boolean().optional(), - currency: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - tasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - resources: z.union([z.boolean(),z.lazy(() => ProjectResourceFindManyArgsSchema)]).optional(), - timeEntries: z.union([z.boolean(),z.lazy(() => TimeEntryFindManyArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ProjectCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TASK -//------------------------------------------------------ - -export const TaskIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - parentTask: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), - subtasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - timeEntries: z.union([z.boolean(),z.lazy(() => TimeEntryFindManyArgsSchema)]).optional(), - comments: z.union([z.boolean(),z.lazy(() => CommentFindManyArgsSchema)]).optional(), - attachments: z.union([z.boolean(),z.lazy(() => AttachmentFindManyArgsSchema)]).optional(), - customerInteraction: z.union([z.boolean(),z.lazy(() => CustomerInteractionArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TaskCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const TaskArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TaskSelectSchema).optional(), - include: z.lazy(() => TaskIncludeSchema).optional(), -}).strict(); - -export const TaskCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TaskCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const TaskCountOutputTypeSelectSchema: z.ZodType = z.object({ - subtasks: z.boolean().optional(), - timeEntries: z.boolean().optional(), - comments: z.boolean().optional(), - attachments: z.boolean().optional(), -}).strict(); - -export const TaskSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - projectId: z.boolean().optional(), - parentTaskId: z.boolean().optional(), - title: z.boolean().optional(), - description: z.boolean().optional(), - status: z.boolean().optional(), - priority: z.boolean().optional(), - startDate: z.boolean().optional(), - dueDate: z.boolean().optional(), - completedAt: z.boolean().optional(), - assignedToId: z.boolean().optional(), - createdById: z.boolean().optional(), - estimatedHours: z.boolean().optional(), - actualHours: z.boolean().optional(), - order: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - customerInteractionId: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - parentTask: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), - subtasks: z.union([z.boolean(),z.lazy(() => TaskFindManyArgsSchema)]).optional(), - timeEntries: z.union([z.boolean(),z.lazy(() => TimeEntryFindManyArgsSchema)]).optional(), - comments: z.union([z.boolean(),z.lazy(() => CommentFindManyArgsSchema)]).optional(), - attachments: z.union([z.boolean(),z.lazy(() => AttachmentFindManyArgsSchema)]).optional(), - customerInteraction: z.union([z.boolean(),z.lazy(() => CustomerInteractionArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TaskCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// PROJECT RESOURCE -//------------------------------------------------------ - -export const ProjectResourceIncludeSchema: z.ZodType = z.object({ - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), -}).strict() - -export const ProjectResourceArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ProjectResourceSelectSchema).optional(), - include: z.lazy(() => ProjectResourceIncludeSchema).optional(), -}).strict(); - -export const ProjectResourceSelectSchema: z.ZodType = z.object({ - projectId: z.boolean().optional(), - assigneeId: z.boolean().optional(), - role: z.boolean().optional(), - allocation: z.boolean().optional(), - startDate: z.boolean().optional(), - endDate: z.boolean().optional(), - hourlyRate: z.boolean().optional(), - currency: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), -}).strict() - -// TIME ENTRY -//------------------------------------------------------ - -export const TimeEntryIncludeSchema: z.ZodType = z.object({ - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -export const TimeEntryArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TimeEntrySelectSchema).optional(), - include: z.lazy(() => TimeEntryIncludeSchema).optional(), -}).strict(); - -export const TimeEntrySelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - projectId: z.boolean().optional(), - taskId: z.boolean().optional(), - userId: z.boolean().optional(), - description: z.boolean().optional(), - startTime: z.boolean().optional(), - endTime: z.boolean().optional(), - duration: z.boolean().optional(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -// INVOICE -//------------------------------------------------------ - -export const InvoiceIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), - items: z.union([z.boolean(),z.lazy(() => InvoiceItemFindManyArgsSchema)]).optional(), - payments: z.union([z.boolean(),z.lazy(() => PaymentFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => InvoiceCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const InvoiceArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => InvoiceSelectSchema).optional(), - include: z.lazy(() => InvoiceIncludeSchema).optional(), -}).strict(); - -export const InvoiceCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => InvoiceCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const InvoiceCountOutputTypeSelectSchema: z.ZodType = z.object({ - items: z.boolean().optional(), - payments: z.boolean().optional(), -}).strict(); - -export const InvoiceSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - customerId: z.boolean().optional(), - customerEmail: z.boolean().optional(), - customerName: z.boolean().optional(), - customerAddress: z.boolean().optional(), - customerPhone: z.boolean().optional(), - invoiceNumber: z.boolean().optional(), - status: z.boolean().optional(), - issueDate: z.boolean().optional(), - dueDate: z.boolean().optional(), - paymentTerms: z.boolean().optional(), - poNumber: z.boolean().optional(), - subtotal: z.boolean().optional(), - taxAmount: z.boolean().optional(), - discountAmount: z.boolean().optional(), - shippingAmount: z.boolean().optional(), - totalAmount: z.boolean().optional(), - paidAmount: z.boolean().optional(), - currency: z.boolean().optional(), - notes: z.boolean().optional(), - internalNotes: z.boolean().optional(), - termsAndConditions: z.boolean().optional(), - footer: z.boolean().optional(), - logoUrl: z.boolean().optional(), - sentAt: z.boolean().optional(), - viewedAt: z.boolean().optional(), - lastReminder: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - customer: z.union([z.boolean(),z.lazy(() => CustomerArgsSchema)]).optional(), - items: z.union([z.boolean(),z.lazy(() => InvoiceItemFindManyArgsSchema)]).optional(), - payments: z.union([z.boolean(),z.lazy(() => PaymentFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => InvoiceCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// INVOICE ITEM -//------------------------------------------------------ - -export const InvoiceItemIncludeSchema: z.ZodType = z.object({ - invoice: z.union([z.boolean(),z.lazy(() => InvoiceArgsSchema)]).optional(), -}).strict() - -export const InvoiceItemArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => InvoiceItemSelectSchema).optional(), - include: z.lazy(() => InvoiceItemIncludeSchema).optional(), -}).strict(); - -export const InvoiceItemSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - invoiceId: z.boolean().optional(), - productId: z.boolean().optional(), - description: z.boolean().optional(), - quantity: z.boolean().optional(), - unitPrice: z.boolean().optional(), - taxRate: z.boolean().optional(), - discountRate: z.boolean().optional(), - subtotal: z.boolean().optional(), - sortOrder: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - invoice: z.union([z.boolean(),z.lazy(() => InvoiceArgsSchema)]).optional(), -}).strict() - -// PAYMENT -//------------------------------------------------------ - -export const PaymentIncludeSchema: z.ZodType = z.object({ - invoice: z.union([z.boolean(),z.lazy(() => InvoiceArgsSchema)]).optional(), -}).strict() - -export const PaymentArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => PaymentSelectSchema).optional(), - include: z.lazy(() => PaymentIncludeSchema).optional(), -}).strict(); - -export const PaymentSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - invoiceId: z.boolean().optional(), - amount: z.boolean().optional(), - currency: z.boolean().optional(), - method: z.boolean().optional(), - reference: z.boolean().optional(), - paymentDate: z.boolean().optional(), - notes: z.boolean().optional(), - feeAmount: z.boolean().optional(), - status: z.boolean().optional(), - gatewayId: z.boolean().optional(), - refundedAmount: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - invoice: z.union([z.boolean(),z.lazy(() => InvoiceArgsSchema)]).optional(), -}).strict() - -// EXPENSE -//------------------------------------------------------ - -export const ExpenseIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - category: z.union([z.boolean(),z.lazy(() => ExpenseCategoryArgsSchema)]).optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - tags: z.union([z.boolean(),z.lazy(() => ExpenseToTagFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ExpenseArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseSelectSchema).optional(), - include: z.lazy(() => ExpenseIncludeSchema).optional(), -}).strict(); - -export const ExpenseCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ExpenseCountOutputTypeSelectSchema: z.ZodType = z.object({ - tags: z.boolean().optional(), -}).strict(); - -export const ExpenseSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - categoryId: z.boolean().optional(), - customCategory: z.boolean().optional(), - amount: z.boolean().optional(), - currency: z.boolean().optional(), - date: z.boolean().optional(), - description: z.boolean().optional(), - receipt: z.boolean().optional(), - vendor: z.boolean().optional(), - paymentMethod: z.boolean().optional(), - projectId: z.boolean().optional(), - status: z.boolean().optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.boolean().optional(), - submittedAt: z.boolean().optional(), - createdById: z.boolean().optional(), - approvedById: z.boolean().optional(), - approvedAt: z.boolean().optional(), - rejectedAt: z.boolean().optional(), - rejectionReason: z.boolean().optional(), - notes: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - category: z.union([z.boolean(),z.lazy(() => ExpenseCategoryArgsSchema)]).optional(), - project: z.union([z.boolean(),z.lazy(() => ProjectArgsSchema)]).optional(), - tags: z.union([z.boolean(),z.lazy(() => ExpenseToTagFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// EXPENSE CATEGORY -//------------------------------------------------------ - -export const ExpenseCategoryIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseCategoryCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ExpenseCategoryArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseCategorySelectSchema).optional(), - include: z.lazy(() => ExpenseCategoryIncludeSchema).optional(), -}).strict(); - -export const ExpenseCategoryCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseCategoryCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ExpenseCategoryCountOutputTypeSelectSchema: z.ZodType = z.object({ - expenses: z.boolean().optional(), -}).strict(); - -export const ExpenseCategorySelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - color: z.boolean().optional(), - isActive: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseCategoryCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// EXPENSE TAG -//------------------------------------------------------ - -export const ExpenseTagIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseToTagFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseTagCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ExpenseTagArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseTagSelectSchema).optional(), - include: z.lazy(() => ExpenseTagIncludeSchema).optional(), -}).strict(); - -export const ExpenseTagCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseTagCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ExpenseTagCountOutputTypeSelectSchema: z.ZodType = z.object({ - expenses: z.boolean().optional(), -}).strict(); - -export const ExpenseTagSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - color: z.boolean().optional(), - createdAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - expenses: z.union([z.boolean(),z.lazy(() => ExpenseToTagFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ExpenseTagCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// EXPENSE TO TAG -//------------------------------------------------------ - -export const ExpenseToTagIncludeSchema: z.ZodType = z.object({ - expense: z.union([z.boolean(),z.lazy(() => ExpenseArgsSchema)]).optional(), - tag: z.union([z.boolean(),z.lazy(() => ExpenseTagArgsSchema)]).optional(), -}).strict() - -export const ExpenseToTagArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExpenseToTagSelectSchema).optional(), - include: z.lazy(() => ExpenseToTagIncludeSchema).optional(), -}).strict(); - -export const ExpenseToTagSelectSchema: z.ZodType = z.object({ - expenseId: z.boolean().optional(), - tagId: z.boolean().optional(), - expense: z.union([z.boolean(),z.lazy(() => ExpenseArgsSchema)]).optional(), - tag: z.union([z.boolean(),z.lazy(() => ExpenseTagArgsSchema)]).optional(), -}).strict() - -// COMMENT -//------------------------------------------------------ - -export const CommentIncludeSchema: z.ZodType = z.object({ - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -export const CommentArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CommentSelectSchema).optional(), - include: z.lazy(() => CommentIncludeSchema).optional(), -}).strict(); - -export const CommentSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - taskId: z.boolean().optional(), - content: z.boolean().optional(), - authorId: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -// ATTACHMENT -//------------------------------------------------------ - -export const AttachmentIncludeSchema: z.ZodType = z.object({ - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -export const AttachmentArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => AttachmentSelectSchema).optional(), - include: z.lazy(() => AttachmentIncludeSchema).optional(), -}).strict(); - -export const AttachmentSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - taskId: z.boolean().optional(), - name: z.boolean().optional(), - fileUrl: z.boolean().optional(), - fileType: z.boolean().optional(), - fileSize: z.boolean().optional(), - uploadedById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - task: z.union([z.boolean(),z.lazy(() => TaskArgsSchema)]).optional(), -}).strict() - -// CALENDAR EVENT -//------------------------------------------------------ - -export const CalendarEventIncludeSchema: z.ZodType = z.object({ - attendees: z.union([z.boolean(),z.lazy(() => CalendarEventAttendeeFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CalendarEventCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const CalendarEventArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CalendarEventSelectSchema).optional(), - include: z.lazy(() => CalendarEventIncludeSchema).optional(), -}).strict(); - -export const CalendarEventCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CalendarEventCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const CalendarEventCountOutputTypeSelectSchema: z.ZodType = z.object({ - attendees: z.boolean().optional(), -}).strict(); - -export const CalendarEventSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - title: z.boolean().optional(), - description: z.boolean().optional(), - startTime: z.boolean().optional(), - endTime: z.boolean().optional(), - allDay: z.boolean().optional(), - location: z.boolean().optional(), - organizerId: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - attendees: z.union([z.boolean(),z.lazy(() => CalendarEventAttendeeFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => CalendarEventCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// CALENDAR EVENT ATTENDEE -//------------------------------------------------------ - -export const CalendarEventAttendeeIncludeSchema: z.ZodType = z.object({ - event: z.union([z.boolean(),z.lazy(() => CalendarEventArgsSchema)]).optional(), -}).strict() - -export const CalendarEventAttendeeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CalendarEventAttendeeSelectSchema).optional(), - include: z.lazy(() => CalendarEventAttendeeIncludeSchema).optional(), -}).strict(); - -export const CalendarEventAttendeeSelectSchema: z.ZodType = z.object({ - eventId: z.boolean().optional(), - userId: z.boolean().optional(), - status: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - event: z.union([z.boolean(),z.lazy(() => CalendarEventArgsSchema)]).optional(), -}).strict() - -// NOTIFICATION -//------------------------------------------------------ - -export const NotificationSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - userId: z.boolean().optional(), - title: z.boolean().optional(), - content: z.boolean().optional(), - type: z.boolean().optional(), - read: z.boolean().optional(), - actionUrl: z.boolean().optional(), - createdAt: z.boolean().optional(), -}).strict() - -// INVITATION -//------------------------------------------------------ - -export const InvitationIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -export const InvitationArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => InvitationSelectSchema).optional(), - include: z.lazy(() => InvitationIncludeSchema).optional(), -}).strict(); - -export const InvitationSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - email: z.boolean().optional(), - role: z.boolean().optional(), - inviterId: z.boolean().optional(), - token: z.boolean().optional(), - status: z.boolean().optional(), - expiresAt: z.boolean().optional(), - acceptedAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -// EMPLOYEE -//------------------------------------------------------ - -export const EmployeeIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - payrolls: z.union([z.boolean(),z.lazy(() => PayrollFindManyArgsSchema)]).optional(), - timeOff: z.union([z.boolean(),z.lazy(() => TimeOffFindManyArgsSchema)]).optional(), - performanceReviews: z.union([z.boolean(),z.lazy(() => PerformanceReviewFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => EmployeeCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const EmployeeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => EmployeeSelectSchema).optional(), - include: z.lazy(() => EmployeeIncludeSchema).optional(), -}).strict(); - -export const EmployeeCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => EmployeeCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const EmployeeCountOutputTypeSelectSchema: z.ZodType = z.object({ - payrolls: z.boolean().optional(), - timeOff: z.boolean().optional(), - performanceReviews: z.boolean().optional(), -}).strict(); - -export const EmployeeSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - firstName: z.boolean().optional(), - lastName: z.boolean().optional(), - email: z.boolean().optional(), - phone: z.boolean().optional(), - position: z.boolean().optional(), - department: z.boolean().optional(), - hireDate: z.boolean().optional(), - terminationDate: z.boolean().optional(), - status: z.boolean().optional(), - managerId: z.boolean().optional(), - address: z.boolean().optional(), - city: z.boolean().optional(), - state: z.boolean().optional(), - country: z.boolean().optional(), - postalCode: z.boolean().optional(), - birthDate: z.boolean().optional(), - taxId: z.boolean().optional(), - emergencyContactName: z.boolean().optional(), - emergencyContactPhone: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - payrolls: z.union([z.boolean(),z.lazy(() => PayrollFindManyArgsSchema)]).optional(), - timeOff: z.union([z.boolean(),z.lazy(() => TimeOffFindManyArgsSchema)]).optional(), - performanceReviews: z.union([z.boolean(),z.lazy(() => PerformanceReviewFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => EmployeeCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// PAYROLL -//------------------------------------------------------ - -export const PayrollIncludeSchema: z.ZodType = z.object({ - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -export const PayrollArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => PayrollSelectSchema).optional(), - include: z.lazy(() => PayrollIncludeSchema).optional(), -}).strict(); - -export const PayrollSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - employeeId: z.boolean().optional(), - payPeriodStart: z.boolean().optional(), - payPeriodEnd: z.boolean().optional(), - payDate: z.boolean().optional(), - basicSalary: z.boolean().optional(), - overtime: z.boolean().optional(), - bonus: z.boolean().optional(), - tax: z.boolean().optional(), - deductions: z.boolean().optional(), - netAmount: z.boolean().optional(), - currency: z.boolean().optional(), - status: z.boolean().optional(), - notes: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -// TIME OFF -//------------------------------------------------------ - -export const TimeOffIncludeSchema: z.ZodType = z.object({ - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -export const TimeOffArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TimeOffSelectSchema).optional(), - include: z.lazy(() => TimeOffIncludeSchema).optional(), -}).strict(); - -export const TimeOffSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - employeeId: z.boolean().optional(), - type: z.boolean().optional(), - startDate: z.boolean().optional(), - endDate: z.boolean().optional(), - duration: z.boolean().optional(), - reason: z.boolean().optional(), - status: z.boolean().optional(), - approvedById: z.boolean().optional(), - approvedAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -// PERFORMANCE REVIEW -//------------------------------------------------------ - -export const PerformanceReviewIncludeSchema: z.ZodType = z.object({ - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -export const PerformanceReviewArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => PerformanceReviewSelectSchema).optional(), - include: z.lazy(() => PerformanceReviewIncludeSchema).optional(), -}).strict(); - -export const PerformanceReviewSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - employeeId: z.boolean().optional(), - reviewerId: z.boolean().optional(), - reviewPeriod: z.boolean().optional(), - performanceScore: z.boolean().optional(), - strengths: z.boolean().optional(), - improvements: z.boolean().optional(), - goals: z.boolean().optional(), - comments: z.boolean().optional(), - reviewDate: z.boolean().optional(), - status: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - employee: z.union([z.boolean(),z.lazy(() => EmployeeArgsSchema)]).optional(), -}).strict() - -// MARKETING CAMPAIGN -//------------------------------------------------------ - -export const MarketingCampaignIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - emailCampaigns: z.union([z.boolean(),z.lazy(() => EmailCampaignFindManyArgsSchema)]).optional(), - socialPosts: z.union([z.boolean(),z.lazy(() => SocialMediaPostFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => MarketingCampaignCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const MarketingCampaignArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => MarketingCampaignSelectSchema).optional(), - include: z.lazy(() => MarketingCampaignIncludeSchema).optional(), -}).strict(); - -export const MarketingCampaignCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => MarketingCampaignCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const MarketingCampaignCountOutputTypeSelectSchema: z.ZodType = z.object({ - emailCampaigns: z.boolean().optional(), - socialPosts: z.boolean().optional(), -}).strict(); - -export const MarketingCampaignSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - type: z.boolean().optional(), - status: z.boolean().optional(), - startDate: z.boolean().optional(), - endDate: z.boolean().optional(), - budget: z.boolean().optional(), - currency: z.boolean().optional(), - targetAudience: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - emailCampaigns: z.union([z.boolean(),z.lazy(() => EmailCampaignFindManyArgsSchema)]).optional(), - socialPosts: z.union([z.boolean(),z.lazy(() => SocialMediaPostFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => MarketingCampaignCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// EMAIL CAMPAIGN -//------------------------------------------------------ - -export const EmailCampaignIncludeSchema: z.ZodType = z.object({ - campaign: z.union([z.boolean(),z.lazy(() => MarketingCampaignArgsSchema)]).optional(), -}).strict() - -export const EmailCampaignArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => EmailCampaignSelectSchema).optional(), - include: z.lazy(() => EmailCampaignIncludeSchema).optional(), -}).strict(); - -export const EmailCampaignSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - campaignId: z.boolean().optional(), - subject: z.boolean().optional(), - content: z.boolean().optional(), - sender: z.boolean().optional(), - scheduledAt: z.boolean().optional(), - sentAt: z.boolean().optional(), - opens: z.boolean().optional(), - clicks: z.boolean().optional(), - bounces: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - campaign: z.union([z.boolean(),z.lazy(() => MarketingCampaignArgsSchema)]).optional(), -}).strict() - -// SOCIAL MEDIA POST -//------------------------------------------------------ - -export const SocialMediaPostIncludeSchema: z.ZodType = z.object({ - campaign: z.union([z.boolean(),z.lazy(() => MarketingCampaignArgsSchema)]).optional(), -}).strict() - -export const SocialMediaPostArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => SocialMediaPostSelectSchema).optional(), - include: z.lazy(() => SocialMediaPostIncludeSchema).optional(), -}).strict(); - -export const SocialMediaPostSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - campaignId: z.boolean().optional(), - platform: z.boolean().optional(), - content: z.boolean().optional(), - mediaUrl: z.boolean().optional(), - scheduledAt: z.boolean().optional(), - publishedAt: z.boolean().optional(), - likes: z.boolean().optional(), - shares: z.boolean().optional(), - comments: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - campaign: z.union([z.boolean(),z.lazy(() => MarketingCampaignArgsSchema)]).optional(), -}).strict() - -// USER -//------------------------------------------------------ - -export const UserIncludeSchema: z.ZodType = z.object({ - sessions: z.union([z.boolean(),z.lazy(() => SessionFindManyArgsSchema)]).optional(), - accounts: z.union([z.boolean(),z.lazy(() => AccountFindManyArgsSchema)]).optional(), - createdImportSessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - createdImportTemplates: z.union([z.boolean(),z.lazy(() => ImportTemplateFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => UserCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const UserArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => UserSelectSchema).optional(), - include: z.lazy(() => UserIncludeSchema).optional(), -}).strict(); - -export const UserCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => UserCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const UserCountOutputTypeSelectSchema: z.ZodType = z.object({ - sessions: z.boolean().optional(), - accounts: z.boolean().optional(), - createdImportSessions: z.boolean().optional(), - createdImportTemplates: z.boolean().optional(), -}).strict(); - -export const UserSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - name: z.boolean().optional(), - email: z.boolean().optional(), - emailVerified: z.boolean().optional(), - image: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - sessions: z.union([z.boolean(),z.lazy(() => SessionFindManyArgsSchema)]).optional(), - accounts: z.union([z.boolean(),z.lazy(() => AccountFindManyArgsSchema)]).optional(), - createdImportSessions: z.union([z.boolean(),z.lazy(() => ImportSessionFindManyArgsSchema)]).optional(), - createdImportTemplates: z.union([z.boolean(),z.lazy(() => ImportTemplateFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => UserCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// SESSION -//------------------------------------------------------ - -export const SessionIncludeSchema: z.ZodType = z.object({ - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -export const SessionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => SessionSelectSchema).optional(), - include: z.lazy(() => SessionIncludeSchema).optional(), -}).strict(); - -export const SessionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - expiresAt: z.boolean().optional(), - token: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - ipAddress: z.boolean().optional(), - userAgent: z.boolean().optional(), - userId: z.boolean().optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -// ACCOUNT -//------------------------------------------------------ - -export const AccountIncludeSchema: z.ZodType = z.object({ - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -export const AccountArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => AccountSelectSchema).optional(), - include: z.lazy(() => AccountIncludeSchema).optional(), -}).strict(); - -export const AccountSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - accountId: z.boolean().optional(), - providerId: z.boolean().optional(), - userId: z.boolean().optional(), - accessToken: z.boolean().optional(), - refreshToken: z.boolean().optional(), - idToken: z.boolean().optional(), - accessTokenExpiresAt: z.boolean().optional(), - refreshTokenExpiresAt: z.boolean().optional(), - scope: z.boolean().optional(), - password: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(), -}).strict() - -// VERIFICATION -//------------------------------------------------------ - -export const VerificationSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - identifier: z.boolean().optional(), - value: z.boolean().optional(), - expiresAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), -}).strict() - -// FINANCIAL REPORT -//------------------------------------------------------ - -export const FinancialReportIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - reportData: z.union([z.boolean(),z.lazy(() => FinancialReportDataFindManyArgsSchema)]).optional(), - exports: z.union([z.boolean(),z.lazy(() => FinancialReportExportFindManyArgsSchema)]).optional(), - schedules: z.union([z.boolean(),z.lazy(() => FinancialReportScheduleFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => FinancialReportCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const FinancialReportArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => FinancialReportSelectSchema).optional(), - include: z.lazy(() => FinancialReportIncludeSchema).optional(), -}).strict(); - -export const FinancialReportCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => FinancialReportCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const FinancialReportCountOutputTypeSelectSchema: z.ZodType = z.object({ - reportData: z.boolean().optional(), - exports: z.boolean().optional(), - schedules: z.boolean().optional(), -}).strict(); - -export const FinancialReportSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - type: z.boolean().optional(), - template: z.boolean().optional(), - filters: z.boolean().optional(), - dateRange: z.boolean().optional(), - status: z.boolean().optional(), - generatedAt: z.boolean().optional(), - generatedBy: z.boolean().optional(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - reportData: z.union([z.boolean(),z.lazy(() => FinancialReportDataFindManyArgsSchema)]).optional(), - exports: z.union([z.boolean(),z.lazy(() => FinancialReportExportFindManyArgsSchema)]).optional(), - schedules: z.union([z.boolean(),z.lazy(() => FinancialReportScheduleFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => FinancialReportCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// FINANCIAL REPORT DATA -//------------------------------------------------------ - -export const FinancialReportDataIncludeSchema: z.ZodType = z.object({ - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -export const FinancialReportDataArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => FinancialReportDataSelectSchema).optional(), - include: z.lazy(() => FinancialReportDataIncludeSchema).optional(), -}).strict(); - -export const FinancialReportDataSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - reportId: z.boolean().optional(), - data: z.boolean().optional(), - metadata: z.boolean().optional(), - createdAt: z.boolean().optional(), - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -// FINANCIAL REPORT EXPORT -//------------------------------------------------------ - -export const FinancialReportExportIncludeSchema: z.ZodType = z.object({ - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -export const FinancialReportExportArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => FinancialReportExportSelectSchema).optional(), - include: z.lazy(() => FinancialReportExportIncludeSchema).optional(), -}).strict(); - -export const FinancialReportExportSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - reportId: z.boolean().optional(), - format: z.boolean().optional(), - fileName: z.boolean().optional(), - fileUrl: z.boolean().optional(), - fileSize: z.boolean().optional(), - status: z.boolean().optional(), - error: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -// FINANCIAL REPORT SCHEDULE -//------------------------------------------------------ - -export const FinancialReportScheduleIncludeSchema: z.ZodType = z.object({ - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -export const FinancialReportScheduleArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => FinancialReportScheduleSelectSchema).optional(), - include: z.lazy(() => FinancialReportScheduleIncludeSchema).optional(), -}).strict(); - -export const FinancialReportScheduleSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - reportId: z.boolean().optional(), - frequency: z.boolean().optional(), - dayOfWeek: z.boolean().optional(), - dayOfMonth: z.boolean().optional(), - time: z.boolean().optional(), - timezone: z.boolean().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.boolean().optional(), - nextRunAt: z.boolean().optional(), - recipients: z.boolean().optional(), - emailSubject: z.boolean().optional(), - emailBody: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - report: z.union([z.boolean(),z.lazy(() => FinancialReportArgsSchema)]).optional(), -}).strict() - -// TEMPLATE PACKAGE -//------------------------------------------------------ - -export const TemplatePackageIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - versions: z.union([z.boolean(),z.lazy(() => TemplateVersionFindManyArgsSchema)]).optional(), - installations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - shares: z.union([z.boolean(),z.lazy(() => TemplateShareFindManyArgsSchema)]).optional(), - shareImports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplatePackageCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const TemplatePackageArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplatePackageSelectSchema).optional(), - include: z.lazy(() => TemplatePackageIncludeSchema).optional(), -}).strict(); - -export const TemplatePackageCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplatePackageCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const TemplatePackageCountOutputTypeSelectSchema: z.ZodType = z.object({ - versions: z.boolean().optional(), - installations: z.boolean().optional(), - shares: z.boolean().optional(), - shareImports: z.boolean().optional(), -}).strict(); - -export const TemplatePackageSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - category: z.boolean().optional(), - version: z.boolean().optional(), - visibility: z.boolean().optional(), - status: z.boolean().optional(), - iconUrl: z.boolean().optional(), - tags: z.boolean().optional(), - manifest: z.boolean().optional(), - assetsCount: z.boolean().optional(), - sizeBytes: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - versions: z.union([z.boolean(),z.lazy(() => TemplateVersionFindManyArgsSchema)]).optional(), - installations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - shares: z.union([z.boolean(),z.lazy(() => TemplateShareFindManyArgsSchema)]).optional(), - shareImports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplatePackageCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TEMPLATE VERSION -//------------------------------------------------------ - -export const TemplateVersionIncludeSchema: z.ZodType = z.object({ - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - installations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateVersionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const TemplateVersionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateVersionSelectSchema).optional(), - include: z.lazy(() => TemplateVersionIncludeSchema).optional(), -}).strict(); - -export const TemplateVersionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateVersionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const TemplateVersionCountOutputTypeSelectSchema: z.ZodType = z.object({ - installations: z.boolean().optional(), -}).strict(); - -export const TemplateVersionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - templatePackageId: z.boolean().optional(), - version: z.boolean().optional(), - manifest: z.boolean().optional(), - changelog: z.boolean().optional(), - isActive: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - installations: z.union([z.boolean(),z.lazy(() => TemplateInstallationFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateVersionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TEMPLATE INSTALLATION -//------------------------------------------------------ - -export const TemplateInstallationIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - templateVersion: z.union([z.boolean(),z.lazy(() => TemplateVersionArgsSchema)]).optional(), - items: z.union([z.boolean(),z.lazy(() => TemplateInstallItemFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateInstallationCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const TemplateInstallationArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateInstallationSelectSchema).optional(), - include: z.lazy(() => TemplateInstallationIncludeSchema).optional(), -}).strict(); - -export const TemplateInstallationCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateInstallationCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const TemplateInstallationCountOutputTypeSelectSchema: z.ZodType = z.object({ - items: z.boolean().optional(), -}).strict(); - -export const TemplateInstallationSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - templatePackageId: z.boolean().optional(), - templateVersionId: z.boolean().optional(), - status: z.boolean().optional(), - strategy: z.boolean().optional(), - namePrefix: z.boolean().optional(), - preflight: z.boolean().optional(), - logs: z.boolean().optional(), - error: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - completedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - templateVersion: z.union([z.boolean(),z.lazy(() => TemplateVersionArgsSchema)]).optional(), - items: z.union([z.boolean(),z.lazy(() => TemplateInstallItemFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateInstallationCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TEMPLATE INSTALL ITEM -//------------------------------------------------------ - -export const TemplateInstallItemIncludeSchema: z.ZodType = z.object({ - installation: z.union([z.boolean(),z.lazy(() => TemplateInstallationArgsSchema)]).optional(), -}).strict() - -export const TemplateInstallItemArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateInstallItemSelectSchema).optional(), - include: z.lazy(() => TemplateInstallItemIncludeSchema).optional(), -}).strict(); - -export const TemplateInstallItemSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - installationId: z.boolean().optional(), - assetType: z.boolean().optional(), - sourceKey: z.boolean().optional(), - createdModel: z.boolean().optional(), - createdId: z.boolean().optional(), - status: z.boolean().optional(), - details: z.boolean().optional(), - createdAt: z.boolean().optional(), - installation: z.union([z.boolean(),z.lazy(() => TemplateInstallationArgsSchema)]).optional(), -}).strict() - -// WORKFLOW -//------------------------------------------------------ - -export const WorkflowIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - triggers: z.union([z.boolean(),z.lazy(() => WorkflowTriggerFindManyArgsSchema)]).optional(), - nodes: z.union([z.boolean(),z.lazy(() => WorkflowNodeFindManyArgsSchema)]).optional(), - connections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => WorkflowExecutionFindManyArgsSchema)]).optional(), - analytics: z.union([z.boolean(),z.lazy(() => WorkflowAnalyticsFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const WorkflowArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowSelectSchema).optional(), - include: z.lazy(() => WorkflowIncludeSchema).optional(), -}).strict(); - -export const WorkflowCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const WorkflowCountOutputTypeSelectSchema: z.ZodType = z.object({ - triggers: z.boolean().optional(), - nodes: z.boolean().optional(), - connections: z.boolean().optional(), - executions: z.boolean().optional(), - analytics: z.boolean().optional(), -}).strict(); - -export const WorkflowSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - version: z.boolean().optional(), - status: z.boolean().optional(), - isTemplate: z.boolean().optional(), - category: z.boolean().optional(), - canvasData: z.boolean().optional(), - retryConfig: z.boolean().optional(), - timeoutConfig: z.boolean().optional(), - totalExecutions: z.boolean().optional(), - successfulExecutions: z.boolean().optional(), - failedExecutions: z.boolean().optional(), - lastExecutedAt: z.boolean().optional(), - createdById: z.boolean().optional(), - updatedById: z.boolean().optional(), - publishedAt: z.boolean().optional(), - publishedById: z.boolean().optional(), - archivedAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - triggers: z.union([z.boolean(),z.lazy(() => WorkflowTriggerFindManyArgsSchema)]).optional(), - nodes: z.union([z.boolean(),z.lazy(() => WorkflowNodeFindManyArgsSchema)]).optional(), - connections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => WorkflowExecutionFindManyArgsSchema)]).optional(), - analytics: z.union([z.boolean(),z.lazy(() => WorkflowAnalyticsFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// ORGANIZATION UI CONFIG -//------------------------------------------------------ - -export const OrganizationUiConfigIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -export const OrganizationUiConfigArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => OrganizationUiConfigSelectSchema).optional(), - include: z.lazy(() => OrganizationUiConfigIncludeSchema).optional(), -}).strict(); - -export const OrganizationUiConfigSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - key: z.boolean().optional(), - config: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -// WORKFLOW TRIGGER -//------------------------------------------------------ - -export const WorkflowTriggerIncludeSchema: z.ZodType = z.object({ - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => WorkflowExecutionFindManyArgsSchema)]).optional(), - variables: z.union([z.boolean(),z.lazy(() => TriggerVariableFindManyArgsSchema)]).optional(), - node: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowTriggerCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const WorkflowTriggerArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowTriggerSelectSchema).optional(), - include: z.lazy(() => WorkflowTriggerIncludeSchema).optional(), -}).strict(); - -export const WorkflowTriggerCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowTriggerCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const WorkflowTriggerCountOutputTypeSelectSchema: z.ZodType = z.object({ - executions: z.boolean().optional(), - variables: z.boolean().optional(), -}).strict(); - -export const WorkflowTriggerSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowId: z.boolean().optional(), - nodeId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - type: z.boolean().optional(), - module: z.boolean().optional(), - entityType: z.boolean().optional(), - eventType: z.boolean().optional(), - conditions: z.boolean().optional(), - delay: z.boolean().optional(), - isActive: z.boolean().optional(), - lastTriggered: z.boolean().optional(), - triggerCount: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => WorkflowExecutionFindManyArgsSchema)]).optional(), - variables: z.union([z.boolean(),z.lazy(() => TriggerVariableFindManyArgsSchema)]).optional(), - node: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowTriggerCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// WORKFLOW NODE -//------------------------------------------------------ - -export const WorkflowNodeIncludeSchema: z.ZodType = z.object({ - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => NodeExecutionFindManyArgsSchema)]).optional(), - dependencies: z.union([z.boolean(),z.lazy(() => NodeDependencyFindManyArgsSchema)]).optional(), - dependents: z.union([z.boolean(),z.lazy(() => NodeDependencyFindManyArgsSchema)]).optional(), - sourceConnections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - targetConnections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - emailAction: z.union([z.boolean(),z.lazy(() => EmailActionArgsSchema)]).optional(), - smsAction: z.union([z.boolean(),z.lazy(() => SmsActionArgsSchema)]).optional(), - whatsAppAction: z.union([z.boolean(),z.lazy(() => WhatsAppActionArgsSchema)]).optional(), - slackAction: z.union([z.boolean(),z.lazy(() => SlackActionArgsSchema)]).optional(), - calendarAction: z.union([z.boolean(),z.lazy(() => CalendarActionArgsSchema)]).optional(), - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowNodeCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const WorkflowNodeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowNodeSelectSchema).optional(), - include: z.lazy(() => WorkflowNodeIncludeSchema).optional(), -}).strict(); - -export const WorkflowNodeCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowNodeCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const WorkflowNodeCountOutputTypeSelectSchema: z.ZodType = z.object({ - executions: z.boolean().optional(), - dependencies: z.boolean().optional(), - dependents: z.boolean().optional(), - sourceConnections: z.boolean().optional(), - targetConnections: z.boolean().optional(), -}).strict(); - -export const WorkflowNodeSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowId: z.boolean().optional(), - nodeId: z.boolean().optional(), - type: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - position: z.boolean().optional(), - config: z.boolean().optional(), - template: z.boolean().optional(), - executionOrder: z.boolean().optional(), - isOptional: z.boolean().optional(), - retryLimit: z.boolean().optional(), - timeout: z.boolean().optional(), - conditions: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - executions: z.union([z.boolean(),z.lazy(() => NodeExecutionFindManyArgsSchema)]).optional(), - dependencies: z.union([z.boolean(),z.lazy(() => NodeDependencyFindManyArgsSchema)]).optional(), - dependents: z.union([z.boolean(),z.lazy(() => NodeDependencyFindManyArgsSchema)]).optional(), - sourceConnections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - targetConnections: z.union([z.boolean(),z.lazy(() => WorkflowConnectionFindManyArgsSchema)]).optional(), - emailAction: z.union([z.boolean(),z.lazy(() => EmailActionArgsSchema)]).optional(), - smsAction: z.union([z.boolean(),z.lazy(() => SmsActionArgsSchema)]).optional(), - whatsAppAction: z.union([z.boolean(),z.lazy(() => WhatsAppActionArgsSchema)]).optional(), - slackAction: z.union([z.boolean(),z.lazy(() => SlackActionArgsSchema)]).optional(), - calendarAction: z.union([z.boolean(),z.lazy(() => CalendarActionArgsSchema)]).optional(), - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowNodeCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// WORKFLOW CONNECTION -//------------------------------------------------------ - -export const WorkflowConnectionIncludeSchema: z.ZodType = z.object({ - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - sourceNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - targetNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const WorkflowConnectionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowConnectionSelectSchema).optional(), - include: z.lazy(() => WorkflowConnectionIncludeSchema).optional(), -}).strict(); - -export const WorkflowConnectionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowId: z.boolean().optional(), - sourceNodeId: z.boolean().optional(), - targetNodeId: z.boolean().optional(), - executionOrder: z.boolean().optional(), - label: z.boolean().optional(), - conditions: z.boolean().optional(), - edgeId: z.boolean().optional(), - sourceHandle: z.boolean().optional(), - targetHandle: z.boolean().optional(), - style: z.boolean().optional(), - animated: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - sourceNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - targetNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// NODE DEPENDENCY -//------------------------------------------------------ - -export const NodeDependencyIncludeSchema: z.ZodType = z.object({ - dependentNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - prerequisiteNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const NodeDependencyArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => NodeDependencySelectSchema).optional(), - include: z.lazy(() => NodeDependencyIncludeSchema).optional(), -}).strict(); - -export const NodeDependencySelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - dependentNodeId: z.boolean().optional(), - prerequisiteNodeId: z.boolean().optional(), - dependencyType: z.boolean().optional(), - createdAt: z.boolean().optional(), - dependentNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), - prerequisiteNode: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// ACTION TEMPLATE -//------------------------------------------------------ - -export const ActionTemplateIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - versions: z.union([z.boolean(),z.lazy(() => ActionTemplateVersionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ActionTemplateCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const ActionTemplateArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ActionTemplateSelectSchema).optional(), - include: z.lazy(() => ActionTemplateIncludeSchema).optional(), -}).strict(); - -export const ActionTemplateCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ActionTemplateCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const ActionTemplateCountOutputTypeSelectSchema: z.ZodType = z.object({ - versions: z.boolean().optional(), -}).strict(); - -export const ActionTemplateSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - description: z.boolean().optional(), - category: z.boolean().optional(), - type: z.boolean().optional(), - template: z.boolean().optional(), - defaultConfig: z.boolean().optional(), - schema: z.boolean().optional(), - version: z.boolean().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.boolean().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.boolean().optional(), - optionalVariables: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - versions: z.union([z.boolean(),z.lazy(() => ActionTemplateVersionFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => ActionTemplateCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// ACTION TEMPLATE VERSION -//------------------------------------------------------ - -export const ActionTemplateVersionIncludeSchema: z.ZodType = z.object({ - actionTemplate: z.union([z.boolean(),z.lazy(() => ActionTemplateArgsSchema)]).optional(), -}).strict() - -export const ActionTemplateVersionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ActionTemplateVersionSelectSchema).optional(), - include: z.lazy(() => ActionTemplateVersionIncludeSchema).optional(), -}).strict(); - -export const ActionTemplateVersionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - templateId: z.boolean().optional(), - version: z.boolean().optional(), - template: z.boolean().optional(), - changes: z.boolean().optional(), - isActive: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - actionTemplate: z.union([z.boolean(),z.lazy(() => ActionTemplateArgsSchema)]).optional(), -}).strict() - -// VARIABLE DEFINITION -//------------------------------------------------------ - -export const VariableDefinitionIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - triggerVars: z.union([z.boolean(),z.lazy(() => TriggerVariableFindManyArgsSchema)]).optional(), - executionVars: z.union([z.boolean(),z.lazy(() => ExecutionVariableFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => VariableDefinitionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const VariableDefinitionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => VariableDefinitionSelectSchema).optional(), - include: z.lazy(() => VariableDefinitionIncludeSchema).optional(), -}).strict(); - -export const VariableDefinitionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => VariableDefinitionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const VariableDefinitionCountOutputTypeSelectSchema: z.ZodType = z.object({ - triggerVars: z.boolean().optional(), - executionVars: z.boolean().optional(), -}).strict(); - -export const VariableDefinitionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - displayName: z.boolean().optional(), - description: z.boolean().optional(), - category: z.boolean().optional(), - dataType: z.boolean().optional(), - defaultValue: z.boolean().optional(), - validation: z.boolean().optional(), - formatting: z.boolean().optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.boolean().optional(), - moduleScope: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - triggerVars: z.union([z.boolean(),z.lazy(() => TriggerVariableFindManyArgsSchema)]).optional(), - executionVars: z.union([z.boolean(),z.lazy(() => ExecutionVariableFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => VariableDefinitionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TRIGGER VARIABLE -//------------------------------------------------------ - -export const TriggerVariableIncludeSchema: z.ZodType = z.object({ - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - variable: z.union([z.boolean(),z.lazy(() => VariableDefinitionArgsSchema)]).optional(), -}).strict() - -export const TriggerVariableArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TriggerVariableSelectSchema).optional(), - include: z.lazy(() => TriggerVariableIncludeSchema).optional(), -}).strict(); - -export const TriggerVariableSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - triggerId: z.boolean().optional(), - variableId: z.boolean().optional(), - mapping: z.boolean().optional(), - isRequired: z.boolean().optional(), - defaultValue: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - variable: z.union([z.boolean(),z.lazy(() => VariableDefinitionArgsSchema)]).optional(), -}).strict() - -// WORKFLOW EXECUTION -//------------------------------------------------------ - -export const WorkflowExecutionIncludeSchema: z.ZodType = z.object({ - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - nodeExecutions: z.union([z.boolean(),z.lazy(() => NodeExecutionFindManyArgsSchema)]).optional(), - variables: z.union([z.boolean(),z.lazy(() => ExecutionVariableFindManyArgsSchema)]).optional(), - logs: z.union([z.boolean(),z.lazy(() => ExecutionLogFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowExecutionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const WorkflowExecutionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowExecutionSelectSchema).optional(), - include: z.lazy(() => WorkflowExecutionIncludeSchema).optional(), -}).strict(); - -export const WorkflowExecutionCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowExecutionCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const WorkflowExecutionCountOutputTypeSelectSchema: z.ZodType = z.object({ - nodeExecutions: z.boolean().optional(), - variables: z.boolean().optional(), - logs: z.boolean().optional(), -}).strict(); - -export const WorkflowExecutionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowId: z.boolean().optional(), - triggerId: z.boolean().optional(), - executionId: z.boolean().optional(), - status: z.boolean().optional(), - priority: z.boolean().optional(), - triggerData: z.boolean().optional(), - triggerContext: z.boolean().optional(), - currentNodeId: z.boolean().optional(), - progress: z.boolean().optional(), - startedAt: z.boolean().optional(), - completedAt: z.boolean().optional(), - failedAt: z.boolean().optional(), - duration: z.boolean().optional(), - result: z.boolean().optional(), - error: z.boolean().optional(), - errorDetails: z.boolean().optional(), - retryCount: z.boolean().optional(), - maxRetries: z.boolean().optional(), - retryDelay: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), - trigger: z.union([z.boolean(),z.lazy(() => WorkflowTriggerArgsSchema)]).optional(), - nodeExecutions: z.union([z.boolean(),z.lazy(() => NodeExecutionFindManyArgsSchema)]).optional(), - variables: z.union([z.boolean(),z.lazy(() => ExecutionVariableFindManyArgsSchema)]).optional(), - logs: z.union([z.boolean(),z.lazy(() => ExecutionLogFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => WorkflowExecutionCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// NODE EXECUTION -//------------------------------------------------------ - -export const NodeExecutionIncludeSchema: z.ZodType = z.object({ - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), - node: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const NodeExecutionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => NodeExecutionSelectSchema).optional(), - include: z.lazy(() => NodeExecutionIncludeSchema).optional(), -}).strict(); - -export const NodeExecutionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowExecutionId: z.boolean().optional(), - nodeId: z.boolean().optional(), - executionOrder: z.boolean().optional(), - status: z.boolean().optional(), - startedAt: z.boolean().optional(), - completedAt: z.boolean().optional(), - duration: z.boolean().optional(), - input: z.boolean().optional(), - output: z.boolean().optional(), - transformedData: z.boolean().optional(), - error: z.boolean().optional(), - errorDetails: z.boolean().optional(), - retryCount: z.boolean().optional(), - maxRetries: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), - node: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// EXECUTION VARIABLE -//------------------------------------------------------ - -export const ExecutionVariableIncludeSchema: z.ZodType = z.object({ - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), - variableDefinition: z.union([z.boolean(),z.lazy(() => VariableDefinitionArgsSchema)]).optional(), -}).strict() - -export const ExecutionVariableArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExecutionVariableSelectSchema).optional(), - include: z.lazy(() => ExecutionVariableIncludeSchema).optional(), -}).strict(); - -export const ExecutionVariableSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowExecutionId: z.boolean().optional(), - variableDefinitionId: z.boolean().optional(), - name: z.boolean().optional(), - value: z.boolean().optional(), - resolvedValue: z.boolean().optional(), - dataType: z.boolean().optional(), - source: z.boolean().optional(), - nodeId: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), - variableDefinition: z.union([z.boolean(),z.lazy(() => VariableDefinitionArgsSchema)]).optional(), -}).strict() - -// EXECUTION LOG -//------------------------------------------------------ - -export const ExecutionLogIncludeSchema: z.ZodType = z.object({ - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), -}).strict() - -export const ExecutionLogArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => ExecutionLogSelectSchema).optional(), - include: z.lazy(() => ExecutionLogIncludeSchema).optional(), -}).strict(); - -export const ExecutionLogSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowExecutionId: z.boolean().optional(), - nodeId: z.boolean().optional(), - level: z.boolean().optional(), - message: z.boolean().optional(), - details: z.boolean().optional(), - timestamp: z.boolean().optional(), - source: z.boolean().optional(), - category: z.boolean().optional(), - createdAt: z.boolean().optional(), - workflowExecution: z.union([z.boolean(),z.lazy(() => WorkflowExecutionArgsSchema)]).optional(), -}).strict() - -// INTEGRATION CONFIG -//------------------------------------------------------ - -export const IntegrationConfigIncludeSchema: z.ZodType = z.object({ - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -export const IntegrationConfigArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => IntegrationConfigSelectSchema).optional(), - include: z.lazy(() => IntegrationConfigIncludeSchema).optional(), -}).strict(); - -export const IntegrationConfigSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - type: z.boolean().optional(), - config: z.boolean().optional(), - credentials: z.boolean().optional(), - endpoints: z.boolean().optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.boolean().optional(), - healthDetails: z.boolean().optional(), - requestCount: z.boolean().optional(), - errorCount: z.boolean().optional(), - lastUsedAt: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), -}).strict() - -// EMAIL ACTION -//------------------------------------------------------ - -export const EmailActionIncludeSchema: z.ZodType = z.object({ - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const EmailActionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => EmailActionSelectSchema).optional(), - include: z.lazy(() => EmailActionIncludeSchema).optional(), -}).strict(); - -export const EmailActionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - actionId: z.boolean().optional(), - integrationId: z.boolean().optional(), - fromName: z.boolean().optional(), - fromEmail: z.boolean().optional(), - replyTo: z.boolean().optional(), - ccEmails: z.boolean().optional(), - bccEmails: z.boolean().optional(), - subject: z.boolean().optional(), - htmlBody: z.boolean().optional(), - textBody: z.boolean().optional(), - templateId: z.boolean().optional(), - attachments: z.boolean().optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// SMS ACTION -//------------------------------------------------------ - -export const SmsActionIncludeSchema: z.ZodType = z.object({ - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const SmsActionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => SmsActionSelectSchema).optional(), - include: z.lazy(() => SmsActionIncludeSchema).optional(), -}).strict(); - -export const SmsActionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - actionId: z.boolean().optional(), - integrationId: z.boolean().optional(), - fromNumber: z.boolean().optional(), - message: z.boolean().optional(), - templateId: z.boolean().optional(), - maxLength: z.boolean().optional(), - unicode: z.boolean().optional(), - variables: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// WHATS APP ACTION -//------------------------------------------------------ - -export const WhatsAppActionIncludeSchema: z.ZodType = z.object({ - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const WhatsAppActionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WhatsAppActionSelectSchema).optional(), - include: z.lazy(() => WhatsAppActionIncludeSchema).optional(), -}).strict(); - -export const WhatsAppActionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - actionId: z.boolean().optional(), - integrationId: z.boolean().optional(), - businessAccountId: z.boolean().optional(), - toNumbers: z.boolean().optional(), - messageType: z.boolean().optional(), - textMessage: z.boolean().optional(), - templateName: z.boolean().optional(), - templateLanguage: z.boolean().optional(), - mediaUrl: z.boolean().optional(), - mediaType: z.boolean().optional(), - caption: z.boolean().optional(), - templateParams: z.boolean().optional(), - variables: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// SLACK ACTION -//------------------------------------------------------ - -export const SlackActionIncludeSchema: z.ZodType = z.object({ - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const SlackActionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => SlackActionSelectSchema).optional(), - include: z.lazy(() => SlackActionIncludeSchema).optional(), -}).strict(); - -export const SlackActionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - actionId: z.boolean().optional(), - integrationId: z.boolean().optional(), - workspaceId: z.boolean().optional(), - channel: z.boolean().optional(), - userId: z.boolean().optional(), - message: z.boolean().optional(), - blocks: z.boolean().optional(), - attachments: z.boolean().optional(), - asUser: z.boolean().optional(), - username: z.boolean().optional(), - iconEmoji: z.boolean().optional(), - iconUrl: z.boolean().optional(), - threadTs: z.boolean().optional(), - replyBroadcast: z.boolean().optional(), - variables: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// CALENDAR ACTION -//------------------------------------------------------ - -export const CalendarActionIncludeSchema: z.ZodType = z.object({ - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -export const CalendarActionArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => CalendarActionSelectSchema).optional(), - include: z.lazy(() => CalendarActionIncludeSchema).optional(), -}).strict(); - -export const CalendarActionSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - actionId: z.boolean().optional(), - integrationId: z.boolean().optional(), - calendarId: z.boolean().optional(), - title: z.boolean().optional(), - description: z.boolean().optional(), - location: z.boolean().optional(), - startTime: z.boolean().optional(), - endTime: z.boolean().optional(), - isAllDay: z.boolean().optional(), - timezone: z.boolean().optional(), - attendees: z.boolean().optional(), - organizer: z.boolean().optional(), - reminders: z.boolean().optional(), - recurrence: z.boolean().optional(), - variables: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - action: z.union([z.boolean(),z.lazy(() => WorkflowNodeArgsSchema)]).optional(), -}).strict() - -// WORKFLOW ANALYTICS -//------------------------------------------------------ - -export const WorkflowAnalyticsIncludeSchema: z.ZodType = z.object({ - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), -}).strict() - -export const WorkflowAnalyticsArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => WorkflowAnalyticsSelectSchema).optional(), - include: z.lazy(() => WorkflowAnalyticsIncludeSchema).optional(), -}).strict(); - -export const WorkflowAnalyticsSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - workflowId: z.boolean().optional(), - periodStart: z.boolean().optional(), - periodEnd: z.boolean().optional(), - granularity: z.boolean().optional(), - totalExecutions: z.boolean().optional(), - successfulExecutions: z.boolean().optional(), - failedExecutions: z.boolean().optional(), - averageDuration: z.boolean().optional(), - minDuration: z.boolean().optional(), - maxDuration: z.boolean().optional(), - p95Duration: z.boolean().optional(), - commonErrors: z.boolean().optional(), - errorRate: z.boolean().optional(), - avgCpuUsage: z.boolean().optional(), - avgMemoryUsage: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - workflow: z.union([z.boolean(),z.lazy(() => WorkflowArgsSchema)]).optional(), -}).strict() - -// TEMPLATE SHARE -//------------------------------------------------------ - -export const TemplateShareIncludeSchema: z.ZodType = z.object({ - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - recipients: z.union([z.boolean(),z.lazy(() => TemplateShareRecipientFindManyArgsSchema)]).optional(), - accessLogs: z.union([z.boolean(),z.lazy(() => TemplateShareAccessLogFindManyArgsSchema)]).optional(), - imports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateShareCountOutputTypeArgsSchema)]).optional(), -}).strict() - -export const TemplateShareArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateShareSelectSchema).optional(), - include: z.lazy(() => TemplateShareIncludeSchema).optional(), -}).strict(); - -export const TemplateShareCountOutputTypeArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateShareCountOutputTypeSelectSchema).nullish(), -}).strict(); - -export const TemplateShareCountOutputTypeSelectSchema: z.ZodType = z.object({ - recipients: z.boolean().optional(), - accessLogs: z.boolean().optional(), - imports: z.boolean().optional(), -}).strict(); - -export const TemplateShareSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - templatePackageId: z.boolean().optional(), - organizationId: z.boolean().optional(), - name: z.boolean().optional(), - shareMode: z.boolean().optional(), - tokenHash: z.boolean().optional(), - expiresAt: z.boolean().optional(), - maxUses: z.boolean().optional(), - allowExternal: z.boolean().optional(), - notes: z.boolean().optional(), - status: z.boolean().optional(), - usageCount: z.boolean().optional(), - lastAccessedAt: z.boolean().optional(), - revokedAt: z.boolean().optional(), - revokedById: z.boolean().optional(), - snapshotData: z.boolean().optional(), - snapshotVersion: z.boolean().optional(), - createdById: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - recipients: z.union([z.boolean(),z.lazy(() => TemplateShareRecipientFindManyArgsSchema)]).optional(), - accessLogs: z.union([z.boolean(),z.lazy(() => TemplateShareAccessLogFindManyArgsSchema)]).optional(), - imports: z.union([z.boolean(),z.lazy(() => TemplateShareImportFindManyArgsSchema)]).optional(), - _count: z.union([z.boolean(),z.lazy(() => TemplateShareCountOutputTypeArgsSchema)]).optional(), -}).strict() - -// TEMPLATE SHARE RECIPIENT -//------------------------------------------------------ - -export const TemplateShareRecipientIncludeSchema: z.ZodType = z.object({ - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), -}).strict() - -export const TemplateShareRecipientArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateShareRecipientSelectSchema).optional(), - include: z.lazy(() => TemplateShareRecipientIncludeSchema).optional(), -}).strict(); - -export const TemplateShareRecipientSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - shareId: z.boolean().optional(), - email: z.boolean().optional(), - status: z.boolean().optional(), - invitedAt: z.boolean().optional(), - viewedAt: z.boolean().optional(), - importedAt: z.boolean().optional(), - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), -}).strict() - -// TEMPLATE SHARE ACCESS LOG -//------------------------------------------------------ - -export const TemplateShareAccessLogIncludeSchema: z.ZodType = z.object({ - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), -}).strict() - -export const TemplateShareAccessLogArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateShareAccessLogSelectSchema).optional(), - include: z.lazy(() => TemplateShareAccessLogIncludeSchema).optional(), -}).strict(); - -export const TemplateShareAccessLogSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - shareId: z.boolean().optional(), - action: z.boolean().optional(), - status: z.boolean().optional(), - recipientEmail: z.boolean().optional(), - userAgent: z.boolean().optional(), - ipAddress: z.boolean().optional(), - errorMessage: z.boolean().optional(), - metadata: z.boolean().optional(), - createdAt: z.boolean().optional(), - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), -}).strict() - -// TEMPLATE SHARE IMPORT -//------------------------------------------------------ - -export const TemplateShareImportIncludeSchema: z.ZodType = z.object({ - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), -}).strict() - -export const TemplateShareImportArgsSchema: z.ZodType = z.object({ - select: z.lazy(() => TemplateShareImportSelectSchema).optional(), - include: z.lazy(() => TemplateShareImportIncludeSchema).optional(), -}).strict(); - -export const TemplateShareImportSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - shareId: z.boolean().optional(), - organizationId: z.boolean().optional(), - templatePackageId: z.boolean().optional(), - importedById: z.boolean().optional(), - importedAt: z.boolean().optional(), - originalPackageId: z.boolean().optional(), - originalOrgId: z.boolean().optional(), - snapshotVersion: z.boolean().optional(), - share: z.union([z.boolean(),z.lazy(() => TemplateShareArgsSchema)]).optional(), - organization: z.union([z.boolean(),z.lazy(() => OrganizationArgsSchema)]).optional(), - templatePackage: z.union([z.boolean(),z.lazy(() => TemplatePackageArgsSchema)]).optional(), -}).strict() - -// EARLY ACCESS CODE -//------------------------------------------------------ - -export const EarlyAccessCodeSelectSchema: z.ZodType = z.object({ - id: z.boolean().optional(), - email: z.boolean().optional(), - code: z.boolean().optional(), - isUsed: z.boolean().optional(), - usedById: z.boolean().optional(), - usedAt: z.boolean().optional(), - createdAt: z.boolean().optional(), - updatedAt: z.boolean().optional(), -}).strict() - - -///////////////////////////////////////// -// INPUT TYPES -///////////////////////////////////////// - -export const PermissionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PermissionWhereInputSchema),z.lazy(() => PermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PermissionWhereInputSchema),z.lazy(() => PermissionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - rolePermissions: z.lazy(() => RolePermissionListRelationFilterSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionListRelationFilterSchema).optional() -}).strict(); - -export const PermissionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - rolePermissions: z.lazy(() => RolePermissionOrderByRelationAggregateInputSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const PermissionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - name: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - name: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - name: z.string().optional(), - AND: z.union([ z.lazy(() => PermissionWhereInputSchema),z.lazy(() => PermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PermissionWhereInputSchema),z.lazy(() => PermissionWhereInputSchema).array() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - rolePermissions: z.lazy(() => RolePermissionListRelationFilterSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionListRelationFilterSchema).optional() -}).strict()); - -export const PermissionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => PermissionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => PermissionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => PermissionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const PermissionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => PermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => PermissionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => PermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const RolePermissionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => RolePermissionWhereInputSchema),z.lazy(() => RolePermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => RolePermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => RolePermissionWhereInputSchema),z.lazy(() => RolePermissionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - permission: z.union([ z.lazy(() => PermissionRelationFilterSchema),z.lazy(() => PermissionWhereInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - permission: z.lazy(() => PermissionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const RolePermissionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - role_permissionId: z.lazy(() => RolePermissionRolePermissionIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - role_permissionId: z.lazy(() => RolePermissionRolePermissionIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - role_permissionId: z.lazy(() => RolePermissionRolePermissionIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => RolePermissionWhereInputSchema),z.lazy(() => RolePermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => RolePermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => RolePermissionWhereInputSchema),z.lazy(() => RolePermissionWhereInputSchema).array() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - permission: z.union([ z.lazy(() => PermissionRelationFilterSchema),z.lazy(() => PermissionWhereInputSchema) ]).optional(), -}).strict()); - -export const RolePermissionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => RolePermissionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => RolePermissionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => RolePermissionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const RolePermissionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => RolePermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => RolePermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => RolePermissionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => RolePermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => RolePermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleWithAggregatesFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - permissionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomRoleWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRoleWhereInputSchema),z.lazy(() => CustomRoleWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRoleWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRoleWhereInputSchema),z.lazy(() => CustomRoleWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionListRelationFilterSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationListRelationFilterSchema).optional() -}).strict(); - -export const CustomRoleOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - permissions: z.lazy(() => CustomRolePermissionOrderByRelationAggregateInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const CustomRoleWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => CustomRoleOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => CustomRoleOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => CustomRoleOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => CustomRoleWhereInputSchema),z.lazy(() => CustomRoleWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRoleWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRoleWhereInputSchema),z.lazy(() => CustomRoleWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionListRelationFilterSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationListRelationFilterSchema).optional() -}).strict()); - -export const CustomRoleOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CustomRoleCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CustomRoleMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CustomRoleMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CustomRoleScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRoleScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomRoleScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRoleScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRoleScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomRoleScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomRolePermissionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRolePermissionWhereInputSchema),z.lazy(() => CustomRolePermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRolePermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRolePermissionWhereInputSchema),z.lazy(() => CustomRolePermissionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customRoleId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customRole: z.union([ z.lazy(() => CustomRoleRelationFilterSchema),z.lazy(() => CustomRoleWhereInputSchema) ]).optional(), - permission: z.union([ z.lazy(() => PermissionRelationFilterSchema),z.lazy(() => PermissionWhereInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - customRole: z.lazy(() => CustomRoleOrderByWithRelationInputSchema).optional(), - permission: z.lazy(() => PermissionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const CustomRolePermissionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - customRoleId_permissionId: z.lazy(() => CustomRolePermissionCustomRoleIdPermissionIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - customRoleId_permissionId: z.lazy(() => CustomRolePermissionCustomRoleIdPermissionIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - customRoleId_permissionId: z.lazy(() => CustomRolePermissionCustomRoleIdPermissionIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => CustomRolePermissionWhereInputSchema),z.lazy(() => CustomRolePermissionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRolePermissionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRolePermissionWhereInputSchema),z.lazy(() => CustomRolePermissionWhereInputSchema).array() ]).optional(), - customRoleId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customRole: z.union([ z.lazy(() => CustomRoleRelationFilterSchema),z.lazy(() => CustomRoleWhereInputSchema) ]).optional(), - permission: z.union([ z.lazy(() => PermissionRelationFilterSchema),z.lazy(() => PermissionWhereInputSchema) ]).optional(), -}).strict()); - -export const CustomRolePermissionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CustomRolePermissionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CustomRolePermissionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CustomRolePermissionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CustomRolePermissionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRolePermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomRolePermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRolePermissionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRolePermissionScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomRolePermissionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customRoleId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - permissionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const OrganizationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => OrganizationWhereInputSchema),z.lazy(() => OrganizationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationWhereInputSchema),z.lazy(() => OrganizationWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - logo: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - website: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - industry: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - users: z.lazy(() => UserOrganizationListRelationFilterSchema).optional(), - customers: z.lazy(() => CustomerListRelationFilterSchema).optional(), - projects: z.lazy(() => ProjectListRelationFilterSchema).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - invoices: z.lazy(() => InvoiceListRelationFilterSchema).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryListRelationFilterSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagListRelationFilterSchema).optional(), - employees: z.lazy(() => EmployeeListRelationFilterSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignListRelationFilterSchema).optional(), - invitations: z.lazy(() => InvitationListRelationFilterSchema).optional(), - customRoles: z.lazy(() => CustomRoleListRelationFilterSchema).optional(), - financialReports: z.lazy(() => FinancialReportListRelationFilterSchema).optional(), - workflows: z.lazy(() => WorkflowListRelationFilterSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateListRelationFilterSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionListRelationFilterSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigListRelationFilterSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageListRelationFilterSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional(), - templateShares: z.lazy(() => TemplateShareListRelationFilterSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigListRelationFilterSchema).optional(), - importSessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateListRelationFilterSchema).optional() -}).strict(); - -export const OrganizationOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - logo: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - website: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - industry: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - users: z.lazy(() => UserOrganizationOrderByRelationAggregateInputSchema).optional(), - customers: z.lazy(() => CustomerOrderByRelationAggregateInputSchema).optional(), - projects: z.lazy(() => ProjectOrderByRelationAggregateInputSchema).optional(), - tasks: z.lazy(() => TaskOrderByRelationAggregateInputSchema).optional(), - invoices: z.lazy(() => InvoiceOrderByRelationAggregateInputSchema).optional(), - expenses: z.lazy(() => ExpenseOrderByRelationAggregateInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryOrderByRelationAggregateInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagOrderByRelationAggregateInputSchema).optional(), - employees: z.lazy(() => EmployeeOrderByRelationAggregateInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignOrderByRelationAggregateInputSchema).optional(), - invitations: z.lazy(() => InvitationOrderByRelationAggregateInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleOrderByRelationAggregateInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportOrderByRelationAggregateInputSchema).optional(), - workflows: z.lazy(() => WorkflowOrderByRelationAggregateInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateOrderByRelationAggregateInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionOrderByRelationAggregateInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigOrderByRelationAggregateInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageOrderByRelationAggregateInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationOrderByRelationAggregateInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareOrderByRelationAggregateInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportOrderByRelationAggregateInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigOrderByRelationAggregateInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionOrderByRelationAggregateInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const OrganizationWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => OrganizationWhereInputSchema),z.lazy(() => OrganizationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationWhereInputSchema),z.lazy(() => OrganizationWhereInputSchema).array() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - logo: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - website: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - industry: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - users: z.lazy(() => UserOrganizationListRelationFilterSchema).optional(), - customers: z.lazy(() => CustomerListRelationFilterSchema).optional(), - projects: z.lazy(() => ProjectListRelationFilterSchema).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - invoices: z.lazy(() => InvoiceListRelationFilterSchema).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryListRelationFilterSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagListRelationFilterSchema).optional(), - employees: z.lazy(() => EmployeeListRelationFilterSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignListRelationFilterSchema).optional(), - invitations: z.lazy(() => InvitationListRelationFilterSchema).optional(), - customRoles: z.lazy(() => CustomRoleListRelationFilterSchema).optional(), - financialReports: z.lazy(() => FinancialReportListRelationFilterSchema).optional(), - workflows: z.lazy(() => WorkflowListRelationFilterSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateListRelationFilterSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionListRelationFilterSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigListRelationFilterSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageListRelationFilterSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional(), - templateShares: z.lazy(() => TemplateShareListRelationFilterSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigListRelationFilterSchema).optional(), - importSessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateListRelationFilterSchema).optional() -}).strict()); - -export const OrganizationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - logo: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - website: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - industry: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => OrganizationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => OrganizationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => OrganizationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const OrganizationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => OrganizationScalarWhereWithAggregatesInputSchema),z.lazy(() => OrganizationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationScalarWhereWithAggregatesInputSchema),z.lazy(() => OrganizationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - logo: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - website: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - industry: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportSessionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportSessionWhereInputSchema),z.lazy(() => ImportSessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportSessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportSessionWhereInputSchema),z.lazy(() => ImportSessionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - fileType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumImportStatusFilterSchema),z.lazy(() => ImportStatusSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => EnumDedupeModeFilterSchema),z.lazy(() => DedupeModeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - summary: z.lazy(() => JsonNullableFilterSchema).optional(), - rowCount: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - processedCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failureCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - skippedCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - appliedTemplateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - createdBy: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), - rows: z.lazy(() => ImportRowListRelationFilterSchema).optional(), - issues: z.lazy(() => ImportRowIssueListRelationFilterSchema).optional(), - appliedTemplate: z.union([ z.lazy(() => ImportTemplateNullableRelationFilterSchema),z.lazy(() => ImportTemplateWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportSessionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - fileType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeMode: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - summary: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rowCount: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - appliedTemplateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - createdBy: z.lazy(() => UserOrderByWithRelationInputSchema).optional(), - rows: z.lazy(() => ImportRowOrderByRelationAggregateInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueOrderByRelationAggregateInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ImportSessionWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ImportSessionWhereInputSchema),z.lazy(() => ImportSessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportSessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportSessionWhereInputSchema),z.lazy(() => ImportSessionWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - fileType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumImportStatusFilterSchema),z.lazy(() => ImportStatusSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => EnumDedupeModeFilterSchema),z.lazy(() => DedupeModeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - summary: z.lazy(() => JsonNullableFilterSchema).optional(), - rowCount: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - processedCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - successCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - failureCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - skippedCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - appliedTemplateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - createdBy: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), - rows: z.lazy(() => ImportRowListRelationFilterSchema).optional(), - issues: z.lazy(() => ImportRowIssueListRelationFilterSchema).optional(), - appliedTemplate: z.union([ z.lazy(() => ImportTemplateNullableRelationFilterSchema),z.lazy(() => ImportTemplateWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const ImportSessionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - fileType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeMode: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - summary: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rowCount: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - appliedTemplateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => ImportSessionCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ImportSessionAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ImportSessionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ImportSessionMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ImportSessionSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ImportSessionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportSessionScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportSessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportSessionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportSessionScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportSessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - fileType: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => EnumImportModuleWithAggregatesFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeWithAggregatesFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumImportStatusWithAggregatesFilterSchema),z.lazy(() => ImportStatusSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => EnumDedupeModeWithAggregatesFilterSchema),z.lazy(() => DedupeModeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - summary: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - rowCount: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - processedCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - successCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - failureCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - skippedCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - appliedTemplateId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const ImportTemplateWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportTemplateWhereInputSchema),z.lazy(() => ImportTemplateWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportTemplateWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportTemplateWhereInputSchema),z.lazy(() => ImportTemplateWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonFilterSchema).optional(), - columnSignature: z.lazy(() => JsonFilterSchema).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - createdBy: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), - sessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional() -}).strict(); - -export const ImportTemplateOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.lazy(() => SortOrderSchema).optional(), - columnSignature: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - createdBy: z.lazy(() => UserOrderByWithRelationInputSchema).optional(), - sessions: z.lazy(() => ImportSessionOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ImportTemplateWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => ImportTemplateOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => ImportTemplateOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => ImportTemplateOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ImportTemplateWhereInputSchema),z.lazy(() => ImportTemplateWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportTemplateWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportTemplateWhereInputSchema),z.lazy(() => ImportTemplateWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonFilterSchema).optional(), - columnSignature: z.lazy(() => JsonFilterSchema).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - createdBy: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), - sessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional() -}).strict()); - -export const ImportTemplateOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.lazy(() => SortOrderSchema).optional(), - columnSignature: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ImportTemplateCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ImportTemplateAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ImportTemplateMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ImportTemplateMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ImportTemplateSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ImportTemplateScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportTemplateScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportTemplateScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportTemplateScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportTemplateScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportTemplateScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - module: z.union([ z.lazy(() => EnumImportModuleWithAggregatesFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeWithAggregatesFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - columnSignature: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - usageCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportRowWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowWhereInputSchema),z.lazy(() => ImportRowWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowWhereInputSchema),z.lazy(() => ImportRowWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowNumber: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - rawData: z.lazy(() => JsonFilterSchema).optional(), - mappedData: z.lazy(() => JsonNullableFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumRowStatusFilterSchema),z.lazy(() => RowStatusSchema) ]).optional(), - dedupeHint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - score: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - session: z.union([ z.lazy(() => ImportSessionRelationFilterSchema),z.lazy(() => ImportSessionWhereInputSchema) ]).optional(), - issues: z.lazy(() => ImportRowIssueListRelationFilterSchema).optional() -}).strict(); - -export const ImportRowOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowNumber: z.lazy(() => SortOrderSchema).optional(), - rawData: z.lazy(() => SortOrderSchema).optional(), - mappedData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeHint: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - score: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - session: z.lazy(() => ImportSessionOrderByWithRelationInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ImportRowWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - sessionId_rowNumber: z.lazy(() => ImportRowSessionIdRowNumberCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - sessionId_rowNumber: z.lazy(() => ImportRowSessionIdRowNumberCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - sessionId_rowNumber: z.lazy(() => ImportRowSessionIdRowNumberCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ImportRowWhereInputSchema),z.lazy(() => ImportRowWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowWhereInputSchema),z.lazy(() => ImportRowWhereInputSchema).array() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowNumber: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - rawData: z.lazy(() => JsonFilterSchema).optional(), - mappedData: z.lazy(() => JsonNullableFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumRowStatusFilterSchema),z.lazy(() => RowStatusSchema) ]).optional(), - dedupeHint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - score: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - session: z.union([ z.lazy(() => ImportSessionRelationFilterSchema),z.lazy(() => ImportSessionWhereInputSchema) ]).optional(), - issues: z.lazy(() => ImportRowIssueListRelationFilterSchema).optional() -}).strict()); - -export const ImportRowOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowNumber: z.lazy(() => SortOrderSchema).optional(), - rawData: z.lazy(() => SortOrderSchema).optional(), - mappedData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeHint: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - score: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ImportRowCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ImportRowAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ImportRowMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ImportRowMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ImportRowSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ImportRowScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportRowScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportRowScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - rowNumber: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - rawData: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - mappedData: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumRowStatusWithAggregatesFilterSchema),z.lazy(() => RowStatusSchema) ]).optional(), - dedupeHint: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - score: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportRowIssueWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowIssueWhereInputSchema),z.lazy(() => ImportRowIssueWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowIssueWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowIssueWhereInputSchema),z.lazy(() => ImportRowIssueWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - field: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - severity: z.union([ z.lazy(() => EnumIssueSeverityFilterSchema),z.lazy(() => IssueSeveritySchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - hint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - session: z.union([ z.lazy(() => ImportSessionRelationFilterSchema),z.lazy(() => ImportSessionWhereInputSchema) ]).optional(), - row: z.union([ z.lazy(() => ImportRowRelationFilterSchema),z.lazy(() => ImportRowWhereInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowId: z.lazy(() => SortOrderSchema).optional(), - field: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - severity: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - hint: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - value: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - session: z.lazy(() => ImportSessionOrderByWithRelationInputSchema).optional(), - row: z.lazy(() => ImportRowOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ImportRowIssueWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ImportRowIssueWhereInputSchema),z.lazy(() => ImportRowIssueWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowIssueWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowIssueWhereInputSchema),z.lazy(() => ImportRowIssueWhereInputSchema).array() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - field: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - severity: z.union([ z.lazy(() => EnumIssueSeverityFilterSchema),z.lazy(() => IssueSeveritySchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - hint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - session: z.union([ z.lazy(() => ImportSessionRelationFilterSchema),z.lazy(() => ImportSessionWhereInputSchema) ]).optional(), - row: z.union([ z.lazy(() => ImportRowRelationFilterSchema),z.lazy(() => ImportRowWhereInputSchema) ]).optional(), -}).strict()); - -export const ImportRowIssueOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowId: z.lazy(() => SortOrderSchema).optional(), - field: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - severity: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - hint: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - value: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ImportRowIssueCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ImportRowIssueMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ImportRowIssueMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ImportRowIssueScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowIssueScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportRowIssueScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowIssueScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowIssueScalarWhereWithAggregatesInputSchema),z.lazy(() => ImportRowIssueScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - rowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - field: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - severity: z.union([ z.lazy(() => EnumIssueSeverityWithAggregatesFilterSchema),z.lazy(() => IssueSeveritySchema) ]).optional(), - message: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - hint: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - value: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const UserOrganizationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserOrganizationWhereInputSchema),z.lazy(() => UserOrganizationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserOrganizationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserOrganizationWhereInputSchema),z.lazy(() => UserOrganizationWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleNullableFilterSchema),z.lazy(() => UserRoleSchema) ]).optional().nullable(), - customRoleId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - joinedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - customRole: z.union([ z.lazy(() => CustomRoleNullableRelationFilterSchema),z.lazy(() => CustomRoleWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const UserOrganizationOrderByWithRelationInputSchema: z.ZodType = z.object({ - userId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - role: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customRoleId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - joinedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - customRole: z.lazy(() => CustomRoleOrderByWithRelationInputSchema).optional() -}).strict(); - -export const UserOrganizationWhereUniqueInputSchema: z.ZodType = z.object({ - userId_organizationId: z.lazy(() => UserOrganizationUserIdOrganizationIdCompoundUniqueInputSchema) -}) -.and(z.object({ - userId_organizationId: z.lazy(() => UserOrganizationUserIdOrganizationIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => UserOrganizationWhereInputSchema),z.lazy(() => UserOrganizationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserOrganizationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserOrganizationWhereInputSchema),z.lazy(() => UserOrganizationWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleNullableFilterSchema),z.lazy(() => UserRoleSchema) ]).optional().nullable(), - customRoleId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - joinedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - customRole: z.union([ z.lazy(() => CustomRoleNullableRelationFilterSchema),z.lazy(() => CustomRoleWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const UserOrganizationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - userId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - role: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customRoleId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - joinedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => UserOrganizationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => UserOrganizationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => UserOrganizationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const UserOrganizationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserOrganizationScalarWhereWithAggregatesInputSchema),z.lazy(() => UserOrganizationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => UserOrganizationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserOrganizationScalarWhereWithAggregatesInputSchema),z.lazy(() => UserOrganizationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleNullableWithAggregatesFilterSchema),z.lazy(() => UserRoleSchema) ]).optional().nullable(), - customRoleId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - joinedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomerWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerWhereInputSchema),z.lazy(() => CustomerWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerWhereInputSchema),z.lazy(() => CustomerWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumCustomerTypeFilterSchema),z.lazy(() => CustomerTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusNullableFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional().nullable(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - company: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - source: z.union([ z.lazy(() => EnumLeadSourceNullableFilterSchema),z.lazy(() => LeadSourceSchema) ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionListRelationFilterSchema).optional(), - deals: z.lazy(() => DealListRelationFilterSchema).optional(), - invoices: z.lazy(() => InvoiceListRelationFilterSchema).optional() -}).strict(); - -export const CustomerOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - phone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - company: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - address: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - city: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - country: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - postalCode: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - interactions: z.lazy(() => CustomerInteractionOrderByRelationAggregateInputSchema).optional(), - deals: z.lazy(() => DealOrderByRelationAggregateInputSchema).optional(), - invoices: z.lazy(() => InvoiceOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const CustomerWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => CustomerWhereInputSchema),z.lazy(() => CustomerWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerWhereInputSchema),z.lazy(() => CustomerWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumCustomerTypeFilterSchema),z.lazy(() => CustomerTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusNullableFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional().nullable(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - company: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - source: z.union([ z.lazy(() => EnumLeadSourceNullableFilterSchema),z.lazy(() => LeadSourceSchema) ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionListRelationFilterSchema).optional(), - deals: z.lazy(() => DealListRelationFilterSchema).optional(), - invoices: z.lazy(() => InvoiceListRelationFilterSchema).optional() -}).strict()); - -export const CustomerOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - phone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - company: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - address: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - city: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - country: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - postalCode: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CustomerCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CustomerMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CustomerMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CustomerScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomerScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomerScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumCustomerTypeWithAggregatesFilterSchema),z.lazy(() => CustomerTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusNullableWithAggregatesFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional().nullable(), - firstName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - phone: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - company: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - source: z.union([ z.lazy(() => EnumLeadSourceNullableWithAggregatesFilterSchema),z.lazy(() => LeadSourceSchema) ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomerInteractionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerInteractionWhereInputSchema),z.lazy(() => CustomerInteractionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerInteractionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerInteractionWhereInputSchema),z.lazy(() => CustomerInteractionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumInteractionTypeFilterSchema),z.lazy(() => InteractionTypeSchema) ]).optional(), - medium: z.union([ z.lazy(() => EnumInteractionMediumFilterSchema),z.lazy(() => InteractionMediumSchema) ]).optional(), - subject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - content: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional() -}).strict(); - -export const CustomerInteractionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - medium: z.lazy(() => SortOrderSchema).optional(), - subject: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - content: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customer: z.lazy(() => CustomerOrderByWithRelationInputSchema).optional(), - tasks: z.lazy(() => TaskOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const CustomerInteractionWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => CustomerInteractionWhereInputSchema),z.lazy(() => CustomerInteractionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerInteractionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerInteractionWhereInputSchema),z.lazy(() => CustomerInteractionWhereInputSchema).array() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumInteractionTypeFilterSchema),z.lazy(() => InteractionTypeSchema) ]).optional(), - medium: z.union([ z.lazy(() => EnumInteractionMediumFilterSchema),z.lazy(() => InteractionMediumSchema) ]).optional(), - subject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - content: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional() -}).strict()); - -export const CustomerInteractionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - medium: z.lazy(() => SortOrderSchema).optional(), - subject: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - content: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CustomerInteractionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CustomerInteractionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CustomerInteractionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CustomerInteractionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerInteractionScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomerInteractionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerInteractionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerInteractionScalarWhereWithAggregatesInputSchema),z.lazy(() => CustomerInteractionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumInteractionTypeWithAggregatesFilterSchema),z.lazy(() => InteractionTypeSchema) ]).optional(), - medium: z.union([ z.lazy(() => EnumInteractionMediumWithAggregatesFilterSchema),z.lazy(() => InteractionMediumSchema) ]).optional(), - subject: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - content: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const DealWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => DealWhereInputSchema),z.lazy(() => DealWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => DealWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => DealWhereInputSchema),z.lazy(() => DealWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional(), - stage: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - probability: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - expectedCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - actualCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), -}).strict(); - -export const DealOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expectedCloseDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - actualCloseDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customer: z.lazy(() => CustomerOrderByWithRelationInputSchema).optional() -}).strict(); - -export const DealWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => DealWhereInputSchema),z.lazy(() => DealWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => DealWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => DealWhereInputSchema),z.lazy(() => DealWhereInputSchema).array() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional(), - stage: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - probability: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - expectedCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - actualCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), -}).strict()); - -export const DealOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expectedCloseDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - actualCloseDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => DealCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => DealAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => DealMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => DealMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => DealSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const DealScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => DealScalarWhereWithAggregatesInputSchema),z.lazy(() => DealScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => DealScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => DealScalarWhereWithAggregatesInputSchema),z.lazy(() => DealScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusWithAggregatesFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional(), - stage: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - probability: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - expectedCloseDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - actualCloseDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ProjectWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectWhereInputSchema),z.lazy(() => ProjectWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectWhereInputSchema),z.lazy(() => ProjectWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumProjectStatusFilterSchema),z.lazy(() => ProjectStatusSchema) ]).optional(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - resources: z.lazy(() => ProjectResourceListRelationFilterSchema).optional(), - timeEntries: z.lazy(() => TimeEntryListRelationFilterSchema).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional() -}).strict(); - -export const ProjectOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - budget: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - tasks: z.lazy(() => TaskOrderByRelationAggregateInputSchema).optional(), - resources: z.lazy(() => ProjectResourceOrderByRelationAggregateInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryOrderByRelationAggregateInputSchema).optional(), - expenses: z.lazy(() => ExpenseOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ProjectWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ProjectWhereInputSchema),z.lazy(() => ProjectWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectWhereInputSchema),z.lazy(() => ProjectWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumProjectStatusFilterSchema),z.lazy(() => ProjectStatusSchema) ]).optional(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - tasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - resources: z.lazy(() => ProjectResourceListRelationFilterSchema).optional(), - timeEntries: z.lazy(() => TimeEntryListRelationFilterSchema).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional() -}).strict()); - -export const ProjectOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - budget: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ProjectCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ProjectAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ProjectMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ProjectMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ProjectSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ProjectScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectScalarWhereWithAggregatesInputSchema),z.lazy(() => ProjectScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectScalarWhereWithAggregatesInputSchema),z.lazy(() => ProjectScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumProjectStatusWithAggregatesFilterSchema),z.lazy(() => ProjectStatusSchema) ]).optional(), - budget: z.union([ z.lazy(() => DecimalNullableWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TaskWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TaskWhereInputSchema),z.lazy(() => TaskWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TaskWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TaskWhereInputSchema),z.lazy(() => TaskWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - parentTaskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTaskStatusFilterSchema),z.lazy(() => TaskStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumPriorityFilterSchema),z.lazy(() => PrioritySchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - dueDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - assignedToId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - estimatedHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - actualHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - order: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customerInteractionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - parentTask: z.union([ z.lazy(() => TaskNullableRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - timeEntries: z.lazy(() => TimeEntryListRelationFilterSchema).optional(), - comments: z.lazy(() => CommentListRelationFilterSchema).optional(), - attachments: z.lazy(() => AttachmentListRelationFilterSchema).optional(), - customerInteraction: z.union([ z.lazy(() => CustomerInteractionNullableRelationFilterSchema),z.lazy(() => CustomerInteractionWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const TaskOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - parentTaskId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dueDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - assignedToId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - estimatedHours: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - actualHours: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - order: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customerInteractionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - project: z.lazy(() => ProjectOrderByWithRelationInputSchema).optional(), - parentTask: z.lazy(() => TaskOrderByWithRelationInputSchema).optional(), - subtasks: z.lazy(() => TaskOrderByRelationAggregateInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryOrderByRelationAggregateInputSchema).optional(), - comments: z.lazy(() => CommentOrderByRelationAggregateInputSchema).optional(), - attachments: z.lazy(() => AttachmentOrderByRelationAggregateInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TaskWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TaskWhereInputSchema),z.lazy(() => TaskWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TaskWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TaskWhereInputSchema),z.lazy(() => TaskWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - parentTaskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTaskStatusFilterSchema),z.lazy(() => TaskStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumPriorityFilterSchema),z.lazy(() => PrioritySchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - dueDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - assignedToId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - estimatedHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - actualHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - order: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customerInteractionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - parentTask: z.union([ z.lazy(() => TaskNullableRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskListRelationFilterSchema).optional(), - timeEntries: z.lazy(() => TimeEntryListRelationFilterSchema).optional(), - comments: z.lazy(() => CommentListRelationFilterSchema).optional(), - attachments: z.lazy(() => AttachmentListRelationFilterSchema).optional(), - customerInteraction: z.union([ z.lazy(() => CustomerInteractionNullableRelationFilterSchema),z.lazy(() => CustomerInteractionWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const TaskOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - parentTaskId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dueDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - assignedToId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - estimatedHours: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - actualHours: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - order: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customerInteractionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => TaskCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => TaskAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TaskMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TaskMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => TaskSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const TaskScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TaskScalarWhereWithAggregatesInputSchema),z.lazy(() => TaskScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TaskScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TaskScalarWhereWithAggregatesInputSchema),z.lazy(() => TaskScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - parentTaskId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTaskStatusWithAggregatesFilterSchema),z.lazy(() => TaskStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumPriorityWithAggregatesFilterSchema),z.lazy(() => PrioritySchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - dueDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - assignedToId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - estimatedHours: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - actualHours: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - order: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - customerInteractionId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const ProjectResourceWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectResourceWhereInputSchema),z.lazy(() => ProjectResourceWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectResourceWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectResourceWhereInputSchema),z.lazy(() => ProjectResourceWhereInputSchema).array() ]).optional(), - projectId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assigneeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - allocation: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - hourlyRate: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - project: z.union([ z.lazy(() => ProjectRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional(), -}).strict(); - -export const ProjectResourceOrderByWithRelationInputSchema: z.ZodType = z.object({ - projectId: z.lazy(() => SortOrderSchema).optional(), - assigneeId: z.lazy(() => SortOrderSchema).optional(), - role: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - allocation: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - hourlyRate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - project: z.lazy(() => ProjectOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ProjectResourceWhereUniqueInputSchema: z.ZodType = z.object({ - projectId_assigneeId: z.lazy(() => ProjectResourceProjectIdAssigneeIdCompoundUniqueInputSchema) -}) -.and(z.object({ - projectId_assigneeId: z.lazy(() => ProjectResourceProjectIdAssigneeIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ProjectResourceWhereInputSchema),z.lazy(() => ProjectResourceWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectResourceWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectResourceWhereInputSchema),z.lazy(() => ProjectResourceWhereInputSchema).array() ]).optional(), - projectId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assigneeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - allocation: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - hourlyRate: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - project: z.union([ z.lazy(() => ProjectRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional(), -}).strict()); - -export const ProjectResourceOrderByWithAggregationInputSchema: z.ZodType = z.object({ - projectId: z.lazy(() => SortOrderSchema).optional(), - assigneeId: z.lazy(() => SortOrderSchema).optional(), - role: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - allocation: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - hourlyRate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ProjectResourceCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ProjectResourceAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ProjectResourceMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ProjectResourceMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ProjectResourceSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ProjectResourceScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectResourceScalarWhereWithAggregatesInputSchema),z.lazy(() => ProjectResourceScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectResourceScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectResourceScalarWhereWithAggregatesInputSchema),z.lazy(() => ProjectResourceScalarWhereWithAggregatesInputSchema).array() ]).optional(), - projectId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - assigneeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - allocation: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - hourlyRate: z.union([ z.lazy(() => DecimalNullableWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TimeEntryWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeEntryWhereInputSchema),z.lazy(() => TimeEntryWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeEntryWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeEntryWhereInputSchema),z.lazy(() => TimeEntryWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - taskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - billable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiced: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - task: z.union([ z.lazy(() => TaskNullableRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const TimeEntryOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - taskId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - billable: z.lazy(() => SortOrderSchema).optional(), - invoiced: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - project: z.lazy(() => ProjectOrderByWithRelationInputSchema).optional(), - task: z.lazy(() => TaskOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TimeEntryWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TimeEntryWhereInputSchema),z.lazy(() => TimeEntryWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeEntryWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeEntryWhereInputSchema),z.lazy(() => TimeEntryWhereInputSchema).array() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - taskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - billable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiced: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - task: z.union([ z.lazy(() => TaskNullableRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const TimeEntryOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - taskId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - billable: z.lazy(() => SortOrderSchema).optional(), - invoiced: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TimeEntryCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => TimeEntryAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TimeEntryMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TimeEntryMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => TimeEntrySumOrderByAggregateInputSchema).optional() -}).strict(); - -export const TimeEntryScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeEntryScalarWhereWithAggregatesInputSchema),z.lazy(() => TimeEntryScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeEntryScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeEntryScalarWhereWithAggregatesInputSchema),z.lazy(() => TimeEntryScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - taskId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - billable: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - invoiced: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvoiceWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceWhereInputSchema),z.lazy(() => InvoiceWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceWhereInputSchema),z.lazy(() => InvoiceWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerEmail: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - invoiceNumber: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvoiceStatusFilterSchema),z.lazy(() => InvoiceStatusSchema) ]).optional(), - issueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - dueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - paymentTerms: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - poNumber: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - shippingAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - totalAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - paidAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - internalNotes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - termsAndConditions: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - footer: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - logoUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - lastReminder: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemListRelationFilterSchema).optional(), - payments: z.lazy(() => PaymentListRelationFilterSchema).optional() -}).strict(); - -export const InvoiceOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - customerEmail: z.lazy(() => SortOrderSchema).optional(), - customerName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customerAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customerPhone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - invoiceNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - issueDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - paymentTerms: z.lazy(() => SortOrderSchema).optional(), - poNumber: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - internalNotes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - termsAndConditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - footer: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - logoUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sentAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - viewedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - lastReminder: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - customer: z.lazy(() => CustomerOrderByWithRelationInputSchema).optional(), - items: z.lazy(() => InvoiceItemOrderByRelationAggregateInputSchema).optional(), - payments: z.lazy(() => PaymentOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const InvoiceWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_invoiceNumber: z.lazy(() => InvoiceOrganizationIdInvoiceNumberCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_invoiceNumber: z.lazy(() => InvoiceOrganizationIdInvoiceNumberCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_invoiceNumber: z.lazy(() => InvoiceOrganizationIdInvoiceNumberCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => InvoiceWhereInputSchema),z.lazy(() => InvoiceWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceWhereInputSchema),z.lazy(() => InvoiceWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerEmail: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - invoiceNumber: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvoiceStatusFilterSchema),z.lazy(() => InvoiceStatusSchema) ]).optional(), - issueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - dueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - paymentTerms: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - poNumber: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - shippingAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - totalAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - paidAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - internalNotes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - termsAndConditions: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - footer: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - logoUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - lastReminder: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - customer: z.union([ z.lazy(() => CustomerRelationFilterSchema),z.lazy(() => CustomerWhereInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemListRelationFilterSchema).optional(), - payments: z.lazy(() => PaymentListRelationFilterSchema).optional() -}).strict()); - -export const InvoiceOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - customerEmail: z.lazy(() => SortOrderSchema).optional(), - customerName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customerAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customerPhone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - invoiceNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - issueDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - paymentTerms: z.lazy(() => SortOrderSchema).optional(), - poNumber: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - internalNotes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - termsAndConditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - footer: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - logoUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sentAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - viewedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - lastReminder: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => InvoiceCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => InvoiceAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => InvoiceMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => InvoiceMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => InvoiceSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const InvoiceScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceScalarWhereWithAggregatesInputSchema),z.lazy(() => InvoiceScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceScalarWhereWithAggregatesInputSchema),z.lazy(() => InvoiceScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customerEmail: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - customerName: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - customerAddress: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - customerPhone: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - invoiceNumber: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvoiceStatusWithAggregatesFilterSchema),z.lazy(() => InvoiceStatusSchema) ]).optional(), - issueDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - dueDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - paymentTerms: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - poNumber: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - subtotal: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - shippingAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - totalAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - paidAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - internalNotes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - termsAndConditions: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - footer: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - logoUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - lastReminder: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvoiceItemWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceItemWhereInputSchema),z.lazy(() => InvoiceItemWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceItemWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceItemWhereInputSchema),z.lazy(() => InvoiceItemWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - productId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - quantity: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - unitPrice: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - sortOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - invoice: z.union([ z.lazy(() => InvoiceRelationFilterSchema),z.lazy(() => InvoiceWhereInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - productId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - invoice: z.lazy(() => InvoiceOrderByWithRelationInputSchema).optional() -}).strict(); - -export const InvoiceItemWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => InvoiceItemWhereInputSchema),z.lazy(() => InvoiceItemWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceItemWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceItemWhereInputSchema),z.lazy(() => InvoiceItemWhereInputSchema).array() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - productId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - quantity: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - unitPrice: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - sortOrder: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - invoice: z.union([ z.lazy(() => InvoiceRelationFilterSchema),z.lazy(() => InvoiceWhereInputSchema) ]).optional(), -}).strict()); - -export const InvoiceItemOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - productId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => InvoiceItemCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => InvoiceItemAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => InvoiceItemMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => InvoiceItemMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => InvoiceItemSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const InvoiceItemScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceItemScalarWhereWithAggregatesInputSchema),z.lazy(() => InvoiceItemScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceItemScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceItemScalarWhereWithAggregatesInputSchema),z.lazy(() => InvoiceItemScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - productId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - quantity: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - unitPrice: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxRate: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountRate: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - subtotal: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - sortOrder: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PaymentWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PaymentWhereInputSchema),z.lazy(() => PaymentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PaymentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PaymentWhereInputSchema),z.lazy(() => PaymentWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - method: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - reference: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - feeAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - status: z.union([ z.lazy(() => EnumPaymentStatusFilterSchema),z.lazy(() => PaymentStatusSchema) ]).optional(), - gatewayId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refundedAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - invoice: z.union([ z.lazy(() => InvoiceRelationFilterSchema),z.lazy(() => InvoiceWhereInputSchema) ]).optional(), -}).strict(); - -export const PaymentOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - method: z.lazy(() => SortOrderSchema).optional(), - reference: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - paymentDate: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - gatewayId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - invoice: z.lazy(() => InvoiceOrderByWithRelationInputSchema).optional() -}).strict(); - -export const PaymentWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => PaymentWhereInputSchema),z.lazy(() => PaymentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PaymentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PaymentWhereInputSchema),z.lazy(() => PaymentWhereInputSchema).array() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - method: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - reference: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - feeAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - status: z.union([ z.lazy(() => EnumPaymentStatusFilterSchema),z.lazy(() => PaymentStatusSchema) ]).optional(), - gatewayId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refundedAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - invoice: z.union([ z.lazy(() => InvoiceRelationFilterSchema),z.lazy(() => InvoiceWhereInputSchema) ]).optional(), -}).strict()); - -export const PaymentOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - method: z.lazy(() => SortOrderSchema).optional(), - reference: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - paymentDate: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - gatewayId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => PaymentCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => PaymentAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => PaymentMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => PaymentMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => PaymentSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const PaymentScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PaymentScalarWhereWithAggregatesInputSchema),z.lazy(() => PaymentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => PaymentScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PaymentScalarWhereWithAggregatesInputSchema),z.lazy(() => PaymentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - amount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - method: z.union([ z.lazy(() => EnumPaymentMethodWithAggregatesFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - reference: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - paymentDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - feeAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - status: z.union([ z.lazy(() => EnumPaymentStatusWithAggregatesFilterSchema),z.lazy(() => PaymentStatusSchema) ]).optional(), - gatewayId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - refundedAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseWhereInputSchema),z.lazy(() => ExpenseWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseWhereInputSchema),z.lazy(() => ExpenseWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - categoryId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customCategory: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - date: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - receipt: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - vendor: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumExpenseStatusFilterSchema),z.lazy(() => ExpenseStatusSchema) ]).optional(), - reimbursable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursed: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - submittedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectionReason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - category: z.union([ z.lazy(() => ExpenseCategoryNullableRelationFilterSchema),z.lazy(() => ExpenseCategoryWhereInputSchema) ]).optional().nullable(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - tags: z.lazy(() => ExpenseToTagListRelationFilterSchema).optional() -}).strict(); - -export const ExpenseOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - categoryId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customCategory: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - date: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - receipt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - vendor: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - paymentMethod: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - reimbursable: z.lazy(() => SortOrderSchema).optional(), - reimbursed: z.lazy(() => SortOrderSchema).optional(), - reimbursedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - submittedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rejectedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rejectionReason: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - category: z.lazy(() => ExpenseCategoryOrderByWithRelationInputSchema).optional(), - project: z.lazy(() => ProjectOrderByWithRelationInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ExpenseWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ExpenseWhereInputSchema),z.lazy(() => ExpenseWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseWhereInputSchema),z.lazy(() => ExpenseWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - categoryId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customCategory: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - date: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - receipt: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - vendor: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumExpenseStatusFilterSchema),z.lazy(() => ExpenseStatusSchema) ]).optional(), - reimbursable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursed: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - submittedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectionReason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - category: z.union([ z.lazy(() => ExpenseCategoryNullableRelationFilterSchema),z.lazy(() => ExpenseCategoryWhereInputSchema) ]).optional().nullable(), - project: z.union([ z.lazy(() => ProjectNullableRelationFilterSchema),z.lazy(() => ProjectWhereInputSchema) ]).optional().nullable(), - tags: z.lazy(() => ExpenseToTagListRelationFilterSchema).optional() -}).strict()); - -export const ExpenseOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - categoryId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - customCategory: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - date: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - receipt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - vendor: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - paymentMethod: z.lazy(() => SortOrderSchema).optional(), - projectId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - reimbursable: z.lazy(() => SortOrderSchema).optional(), - reimbursed: z.lazy(() => SortOrderSchema).optional(), - reimbursedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - submittedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rejectedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - rejectionReason: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExpenseCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ExpenseAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExpenseMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExpenseMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ExpenseSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExpenseScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - categoryId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - customCategory: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - amount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - date: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - receipt: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - vendor: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => EnumPaymentMethodWithAggregatesFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumExpenseStatusWithAggregatesFilterSchema),z.lazy(() => ExpenseStatusSchema) ]).optional(), - reimbursable: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - reimbursed: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - reimbursedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - submittedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - approvedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectionReason: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseCategoryWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseCategoryWhereInputSchema),z.lazy(() => ExpenseCategoryWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseCategoryWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseCategoryWhereInputSchema),z.lazy(() => ExpenseCategoryWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional() -}).strict(); - -export const ExpenseCategoryOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - expenses: z.lazy(() => ExpenseOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ExpenseCategoryWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => ExpenseCategoryOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => ExpenseCategoryOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => ExpenseCategoryOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ExpenseCategoryWhereInputSchema),z.lazy(() => ExpenseCategoryWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseCategoryWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseCategoryWhereInputSchema),z.lazy(() => ExpenseCategoryWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseListRelationFilterSchema).optional() -}).strict()); - -export const ExpenseCategoryOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExpenseCategoryCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExpenseCategoryMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExpenseCategoryMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExpenseCategoryScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseCategoryScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseCategoryScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseCategoryScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseCategoryScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseCategoryScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseTagWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseTagWhereInputSchema),z.lazy(() => ExpenseTagWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseTagWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseTagWhereInputSchema),z.lazy(() => ExpenseTagWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseToTagListRelationFilterSchema).optional() -}).strict(); - -export const ExpenseTagOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - expenses: z.lazy(() => ExpenseToTagOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ExpenseTagWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => ExpenseTagOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => ExpenseTagOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => ExpenseTagOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ExpenseTagWhereInputSchema),z.lazy(() => ExpenseTagWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseTagWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseTagWhereInputSchema),z.lazy(() => ExpenseTagWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseToTagListRelationFilterSchema).optional() -}).strict()); - -export const ExpenseTagOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExpenseTagCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExpenseTagMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExpenseTagMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExpenseTagScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseTagScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseTagScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseTagScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseTagScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseTagScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - color: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseToTagWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseToTagWhereInputSchema),z.lazy(() => ExpenseToTagWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseToTagWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseToTagWhereInputSchema),z.lazy(() => ExpenseToTagWhereInputSchema).array() ]).optional(), - expenseId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - tagId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expense: z.union([ z.lazy(() => ExpenseRelationFilterSchema),z.lazy(() => ExpenseWhereInputSchema) ]).optional(), - tag: z.union([ z.lazy(() => ExpenseTagRelationFilterSchema),z.lazy(() => ExpenseTagWhereInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagOrderByWithRelationInputSchema: z.ZodType = z.object({ - expenseId: z.lazy(() => SortOrderSchema).optional(), - tagId: z.lazy(() => SortOrderSchema).optional(), - expense: z.lazy(() => ExpenseOrderByWithRelationInputSchema).optional(), - tag: z.lazy(() => ExpenseTagOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ExpenseToTagWhereUniqueInputSchema: z.ZodType = z.object({ - expenseId_tagId: z.lazy(() => ExpenseToTagExpenseIdTagIdCompoundUniqueInputSchema) -}) -.and(z.object({ - expenseId_tagId: z.lazy(() => ExpenseToTagExpenseIdTagIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ExpenseToTagWhereInputSchema),z.lazy(() => ExpenseToTagWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseToTagWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseToTagWhereInputSchema),z.lazy(() => ExpenseToTagWhereInputSchema).array() ]).optional(), - expenseId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - tagId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expense: z.union([ z.lazy(() => ExpenseRelationFilterSchema),z.lazy(() => ExpenseWhereInputSchema) ]).optional(), - tag: z.union([ z.lazy(() => ExpenseTagRelationFilterSchema),z.lazy(() => ExpenseTagWhereInputSchema) ]).optional(), -}).strict()); - -export const ExpenseToTagOrderByWithAggregationInputSchema: z.ZodType = z.object({ - expenseId: z.lazy(() => SortOrderSchema).optional(), - tagId: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExpenseToTagCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExpenseToTagMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExpenseToTagMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExpenseToTagScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseToTagScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseToTagScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseToTagScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseToTagScalarWhereWithAggregatesInputSchema),z.lazy(() => ExpenseToTagScalarWhereWithAggregatesInputSchema).array() ]).optional(), - expenseId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - tagId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const CommentWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CommentWhereInputSchema),z.lazy(() => CommentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CommentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CommentWhereInputSchema),z.lazy(() => CommentWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - authorId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - task: z.union([ z.lazy(() => TaskRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional(), -}).strict(); - -export const CommentOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - authorId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - task: z.lazy(() => TaskOrderByWithRelationInputSchema).optional() -}).strict(); - -export const CommentWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => CommentWhereInputSchema),z.lazy(() => CommentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CommentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CommentWhereInputSchema),z.lazy(() => CommentWhereInputSchema).array() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - authorId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - task: z.union([ z.lazy(() => TaskRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional(), -}).strict()); - -export const CommentOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - authorId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CommentCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CommentMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CommentMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CommentScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CommentScalarWhereWithAggregatesInputSchema),z.lazy(() => CommentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CommentScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CommentScalarWhereWithAggregatesInputSchema),z.lazy(() => CommentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - authorId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const AttachmentWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AttachmentWhereInputSchema),z.lazy(() => AttachmentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AttachmentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AttachmentWhereInputSchema),z.lazy(() => AttachmentWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - uploadedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - task: z.union([ z.lazy(() => TaskRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional(), -}).strict(); - -export const AttachmentOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - uploadedById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - task: z.lazy(() => TaskOrderByWithRelationInputSchema).optional() -}).strict(); - -export const AttachmentWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => AttachmentWhereInputSchema),z.lazy(() => AttachmentWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AttachmentWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AttachmentWhereInputSchema),z.lazy(() => AttachmentWhereInputSchema).array() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - uploadedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - task: z.union([ z.lazy(() => TaskRelationFilterSchema),z.lazy(() => TaskWhereInputSchema) ]).optional(), -}).strict()); - -export const AttachmentOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - uploadedById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => AttachmentCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => AttachmentAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => AttachmentMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => AttachmentMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => AttachmentSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const AttachmentScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AttachmentScalarWhereWithAggregatesInputSchema),z.lazy(() => AttachmentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => AttachmentScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AttachmentScalarWhereWithAggregatesInputSchema),z.lazy(() => AttachmentScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileType: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - uploadedById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CalendarEventWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarEventWhereInputSchema),z.lazy(() => CalendarEventWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventWhereInputSchema),z.lazy(() => CalendarEventWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - allDay: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - location: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organizerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - attendees: z.lazy(() => CalendarEventAttendeeListRelationFilterSchema).optional() -}).strict(); - -export const CalendarEventOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - allDay: z.lazy(() => SortOrderSchema).optional(), - location: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organizerId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - attendees: z.lazy(() => CalendarEventAttendeeOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const CalendarEventWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => CalendarEventWhereInputSchema),z.lazy(() => CalendarEventWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventWhereInputSchema),z.lazy(() => CalendarEventWhereInputSchema).array() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - allDay: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - location: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - organizerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - attendees: z.lazy(() => CalendarEventAttendeeListRelationFilterSchema).optional() -}).strict()); - -export const CalendarEventOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - allDay: z.lazy(() => SortOrderSchema).optional(), - location: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organizerId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CalendarEventCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CalendarEventMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CalendarEventMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CalendarEventScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarEventScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarEventScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarEventScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - allDay: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - location: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - organizerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CalendarEventAttendeeWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarEventAttendeeWhereInputSchema),z.lazy(() => CalendarEventAttendeeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventAttendeeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventAttendeeWhereInputSchema),z.lazy(() => CalendarEventAttendeeWhereInputSchema).array() ]).optional(), - eventId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumAttendeeStatusFilterSchema),z.lazy(() => AttendeeStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - event: z.union([ z.lazy(() => CalendarEventRelationFilterSchema),z.lazy(() => CalendarEventWhereInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeOrderByWithRelationInputSchema: z.ZodType = z.object({ - eventId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - event: z.lazy(() => CalendarEventOrderByWithRelationInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeWhereUniqueInputSchema: z.ZodType = z.object({ - eventId_userId: z.lazy(() => CalendarEventAttendeeEventIdUserIdCompoundUniqueInputSchema) -}) -.and(z.object({ - eventId_userId: z.lazy(() => CalendarEventAttendeeEventIdUserIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => CalendarEventAttendeeWhereInputSchema),z.lazy(() => CalendarEventAttendeeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventAttendeeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventAttendeeWhereInputSchema),z.lazy(() => CalendarEventAttendeeWhereInputSchema).array() ]).optional(), - eventId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumAttendeeStatusFilterSchema),z.lazy(() => AttendeeStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - event: z.union([ z.lazy(() => CalendarEventRelationFilterSchema),z.lazy(() => CalendarEventWhereInputSchema) ]).optional(), -}).strict()); - -export const CalendarEventAttendeeOrderByWithAggregationInputSchema: z.ZodType = z.object({ - eventId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CalendarEventAttendeeCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CalendarEventAttendeeMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CalendarEventAttendeeMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventAttendeeScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - eventId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumAttendeeStatusWithAggregatesFilterSchema),z.lazy(() => AttendeeStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NotificationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NotificationWhereInputSchema),z.lazy(() => NotificationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NotificationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NotificationWhereInputSchema),z.lazy(() => NotificationWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumNotificationTypeFilterSchema),z.lazy(() => NotificationTypeSchema) ]).optional(), - read: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - actionUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NotificationOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - read: z.lazy(() => SortOrderSchema).optional(), - actionUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NotificationWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => NotificationWhereInputSchema),z.lazy(() => NotificationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NotificationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NotificationWhereInputSchema),z.lazy(() => NotificationWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumNotificationTypeFilterSchema),z.lazy(() => NotificationTypeSchema) ]).optional(), - read: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - actionUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict()); - -export const NotificationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - read: z.lazy(() => SortOrderSchema).optional(), - actionUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => NotificationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => NotificationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => NotificationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const NotificationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NotificationScalarWhereWithAggregatesInputSchema),z.lazy(() => NotificationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => NotificationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NotificationScalarWhereWithAggregatesInputSchema),z.lazy(() => NotificationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumNotificationTypeWithAggregatesFilterSchema),z.lazy(() => NotificationTypeSchema) ]).optional(), - read: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - actionUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvitationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvitationWhereInputSchema),z.lazy(() => InvitationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvitationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvitationWhereInputSchema),z.lazy(() => InvitationWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - inviterId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - token: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvitationStatusFilterSchema),z.lazy(() => InvitationStatusSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - acceptedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict(); - -export const InvitationOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - inviterId: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - acceptedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional() -}).strict(); - -export const InvitationWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - token: z.string(), - organizationId_email: z.lazy(() => InvitationOrganizationIdEmailCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - token: z.string(), - }), - z.object({ - id: z.string().cuid(), - organizationId_email: z.lazy(() => InvitationOrganizationIdEmailCompoundUniqueInputSchema), - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - token: z.string(), - organizationId_email: z.lazy(() => InvitationOrganizationIdEmailCompoundUniqueInputSchema), - }), - z.object({ - token: z.string(), - }), - z.object({ - organizationId_email: z.lazy(() => InvitationOrganizationIdEmailCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - token: z.string().optional(), - organizationId_email: z.lazy(() => InvitationOrganizationIdEmailCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => InvitationWhereInputSchema),z.lazy(() => InvitationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvitationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvitationWhereInputSchema),z.lazy(() => InvitationWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - inviterId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvitationStatusFilterSchema),z.lazy(() => InvitationStatusSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - acceptedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict()); - -export const InvitationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - inviterId: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - acceptedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => InvitationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => InvitationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => InvitationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const InvitationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvitationScalarWhereWithAggregatesInputSchema),z.lazy(() => InvitationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => InvitationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvitationScalarWhereWithAggregatesInputSchema),z.lazy(() => InvitationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleWithAggregatesFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - inviterId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - token: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvitationStatusWithAggregatesFilterSchema),z.lazy(() => InvitationStatusSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - acceptedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EmployeeWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmployeeWhereInputSchema),z.lazy(() => EmployeeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmployeeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmployeeWhereInputSchema),z.lazy(() => EmployeeWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - department: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - hireDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - terminationDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumEmployeeStatusFilterSchema),z.lazy(() => EmployeeStatusSchema) ]).optional(), - managerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - birthDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - taxId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollListRelationFilterSchema).optional(), - timeOff: z.lazy(() => TimeOffListRelationFilterSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewListRelationFilterSchema).optional() -}).strict(); - -export const EmployeeOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - department: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - hireDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - terminationDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - managerId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - address: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - city: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - country: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - postalCode: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - birthDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - taxId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emergencyContactName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emergencyContactPhone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - payrolls: z.lazy(() => PayrollOrderByRelationAggregateInputSchema).optional(), - timeOff: z.lazy(() => TimeOffOrderByRelationAggregateInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const EmployeeWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => EmployeeWhereInputSchema),z.lazy(() => EmployeeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmployeeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmployeeWhereInputSchema),z.lazy(() => EmployeeWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - department: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - hireDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - terminationDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumEmployeeStatusFilterSchema),z.lazy(() => EmployeeStatusSchema) ]).optional(), - managerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - birthDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - taxId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollListRelationFilterSchema).optional(), - timeOff: z.lazy(() => TimeOffListRelationFilterSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewListRelationFilterSchema).optional() -}).strict()); - -export const EmployeeOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - department: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - hireDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - terminationDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - managerId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - address: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - city: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - state: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - country: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - postalCode: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - birthDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - taxId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emergencyContactName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emergencyContactPhone: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => EmployeeCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => EmployeeMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => EmployeeMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const EmployeeScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmployeeScalarWhereWithAggregatesInputSchema),z.lazy(() => EmployeeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => EmployeeScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmployeeScalarWhereWithAggregatesInputSchema),z.lazy(() => EmployeeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - firstName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - phone: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - department: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - hireDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - terminationDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumEmployeeStatusWithAggregatesFilterSchema),z.lazy(() => EmployeeStatusSchema) ]).optional(), - managerId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - birthDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - taxId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - emergencyContactName: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - emergencyContactPhone: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PayrollWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PayrollWhereInputSchema),z.lazy(() => PayrollWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PayrollWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PayrollWhereInputSchema),z.lazy(() => PayrollWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - payPeriodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payPeriodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - basicSalary: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - overtime: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - bonus: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - tax: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - deductions: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - netAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumPayrollStatusFilterSchema),z.lazy(() => PayrollStatusSchema) ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict(); - -export const PayrollOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - payPeriodStart: z.lazy(() => SortOrderSchema).optional(), - payPeriodEnd: z.lazy(() => SortOrderSchema).optional(), - payDate: z.lazy(() => SortOrderSchema).optional(), - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - employee: z.lazy(() => EmployeeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const PayrollWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => PayrollWhereInputSchema),z.lazy(() => PayrollWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PayrollWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PayrollWhereInputSchema),z.lazy(() => PayrollWhereInputSchema).array() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - payPeriodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payPeriodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - basicSalary: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - overtime: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - bonus: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - tax: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - deductions: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - netAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumPayrollStatusFilterSchema),z.lazy(() => PayrollStatusSchema) ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict()); - -export const PayrollOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - payPeriodStart: z.lazy(() => SortOrderSchema).optional(), - payPeriodEnd: z.lazy(() => SortOrderSchema).optional(), - payDate: z.lazy(() => SortOrderSchema).optional(), - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => PayrollCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => PayrollAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => PayrollMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => PayrollMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => PayrollSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const PayrollScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PayrollScalarWhereWithAggregatesInputSchema),z.lazy(() => PayrollScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => PayrollScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PayrollScalarWhereWithAggregatesInputSchema),z.lazy(() => PayrollScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - payPeriodStart: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - payPeriodEnd: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - payDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - basicSalary: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - overtime: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - bonus: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - tax: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - deductions: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - netAmount: z.union([ z.lazy(() => DecimalWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumPayrollStatusWithAggregatesFilterSchema),z.lazy(() => PayrollStatusSchema) ]).optional(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TimeOffWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeOffWhereInputSchema),z.lazy(() => TimeOffWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeOffWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeOffWhereInputSchema),z.lazy(() => TimeOffWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumTimeOffTypeFilterSchema),z.lazy(() => TimeOffTypeSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - duration: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - reason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTimeOffStatusFilterSchema),z.lazy(() => TimeOffStatusSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict(); - -export const TimeOffOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - reason: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - employee: z.lazy(() => EmployeeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TimeOffWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TimeOffWhereInputSchema),z.lazy(() => TimeOffWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeOffWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeOffWhereInputSchema),z.lazy(() => TimeOffWhereInputSchema).array() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumTimeOffTypeFilterSchema),z.lazy(() => TimeOffTypeSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - duration: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - reason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTimeOffStatusFilterSchema),z.lazy(() => TimeOffStatusSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict()); - -export const TimeOffOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - reason: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - approvedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TimeOffCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => TimeOffAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TimeOffMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TimeOffMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => TimeOffSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const TimeOffScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeOffScalarWhereWithAggregatesInputSchema),z.lazy(() => TimeOffScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeOffScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeOffScalarWhereWithAggregatesInputSchema),z.lazy(() => TimeOffScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumTimeOffTypeWithAggregatesFilterSchema),z.lazy(() => TimeOffTypeSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - endDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - duration: z.union([ z.lazy(() => FloatWithAggregatesFilterSchema),z.number() ]).optional(), - reason: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTimeOffStatusWithAggregatesFilterSchema),z.lazy(() => TimeOffStatusSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PerformanceReviewWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PerformanceReviewWhereInputSchema),z.lazy(() => PerformanceReviewWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PerformanceReviewWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PerformanceReviewWhereInputSchema),z.lazy(() => PerformanceReviewWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewPeriod: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - performanceScore: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - strengths: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - improvements: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - goals: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - comments: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - reviewDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - status: z.union([ z.lazy(() => EnumReviewStatusFilterSchema),z.lazy(() => ReviewStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - reviewerId: z.lazy(() => SortOrderSchema).optional(), - reviewPeriod: z.lazy(() => SortOrderSchema).optional(), - performanceScore: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - strengths: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - improvements: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - goals: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - comments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - reviewDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - employee: z.lazy(() => EmployeeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const PerformanceReviewWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => PerformanceReviewWhereInputSchema),z.lazy(() => PerformanceReviewWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PerformanceReviewWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PerformanceReviewWhereInputSchema),z.lazy(() => PerformanceReviewWhereInputSchema).array() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewPeriod: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - performanceScore: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - strengths: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - improvements: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - goals: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - comments: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - reviewDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - status: z.union([ z.lazy(() => EnumReviewStatusFilterSchema),z.lazy(() => ReviewStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - employee: z.union([ z.lazy(() => EmployeeRelationFilterSchema),z.lazy(() => EmployeeWhereInputSchema) ]).optional(), -}).strict()); - -export const PerformanceReviewOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - reviewerId: z.lazy(() => SortOrderSchema).optional(), - reviewPeriod: z.lazy(() => SortOrderSchema).optional(), - performanceScore: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - strengths: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - improvements: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - goals: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - comments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - reviewDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => PerformanceReviewCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => PerformanceReviewAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => PerformanceReviewMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => PerformanceReviewMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => PerformanceReviewSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const PerformanceReviewScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PerformanceReviewScalarWhereWithAggregatesInputSchema),z.lazy(() => PerformanceReviewScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => PerformanceReviewScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PerformanceReviewScalarWhereWithAggregatesInputSchema),z.lazy(() => PerformanceReviewScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - reviewerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - reviewPeriod: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - performanceScore: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - strengths: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - improvements: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - goals: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - comments: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - reviewDate: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - status: z.union([ z.lazy(() => EnumReviewStatusWithAggregatesFilterSchema),z.lazy(() => ReviewStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const MarketingCampaignWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MarketingCampaignWhereInputSchema),z.lazy(() => MarketingCampaignWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MarketingCampaignWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MarketingCampaignWhereInputSchema),z.lazy(() => MarketingCampaignWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumCampaignTypeFilterSchema),z.lazy(() => CampaignTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumCampaignStatusFilterSchema),z.lazy(() => CampaignStatusSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetAudience: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignListRelationFilterSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostListRelationFilterSchema).optional() -}).strict(); - -export const MarketingCampaignOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - budget: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - targetAudience: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - emailCampaigns: z.lazy(() => EmailCampaignOrderByRelationAggregateInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const MarketingCampaignWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => MarketingCampaignWhereInputSchema),z.lazy(() => MarketingCampaignWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MarketingCampaignWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MarketingCampaignWhereInputSchema),z.lazy(() => MarketingCampaignWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumCampaignTypeFilterSchema),z.lazy(() => CampaignTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumCampaignStatusFilterSchema),z.lazy(() => CampaignStatusSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetAudience: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignListRelationFilterSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostListRelationFilterSchema).optional() -}).strict()); - -export const MarketingCampaignOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endDate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - budget: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - targetAudience: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => MarketingCampaignCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => MarketingCampaignAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => MarketingCampaignMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => MarketingCampaignMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => MarketingCampaignSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const MarketingCampaignScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MarketingCampaignScalarWhereWithAggregatesInputSchema),z.lazy(() => MarketingCampaignScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => MarketingCampaignScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MarketingCampaignScalarWhereWithAggregatesInputSchema),z.lazy(() => MarketingCampaignScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumCampaignTypeWithAggregatesFilterSchema),z.lazy(() => CampaignTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumCampaignStatusWithAggregatesFilterSchema),z.lazy(() => CampaignStatusSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - budget: z.union([ z.lazy(() => DecimalNullableWithAggregatesFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - targetAudience: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EmailCampaignWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmailCampaignWhereInputSchema),z.lazy(() => EmailCampaignWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailCampaignWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailCampaignWhereInputSchema),z.lazy(() => EmailCampaignWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - subject: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sender: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - opens: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - clicks: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - bounces: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - campaign: z.union([ z.lazy(() => MarketingCampaignRelationFilterSchema),z.lazy(() => MarketingCampaignWhereInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - sender: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sentAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - campaign: z.lazy(() => MarketingCampaignOrderByWithRelationInputSchema).optional() -}).strict(); - -export const EmailCampaignWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => EmailCampaignWhereInputSchema),z.lazy(() => EmailCampaignWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailCampaignWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailCampaignWhereInputSchema),z.lazy(() => EmailCampaignWhereInputSchema).array() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - subject: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sender: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - opens: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - clicks: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - bounces: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - campaign: z.union([ z.lazy(() => MarketingCampaignRelationFilterSchema),z.lazy(() => MarketingCampaignWhereInputSchema) ]).optional(), -}).strict()); - -export const EmailCampaignOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - sender: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sentAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => EmailCampaignCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => EmailCampaignAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => EmailCampaignMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => EmailCampaignMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => EmailCampaignSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const EmailCampaignScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmailCampaignScalarWhereWithAggregatesInputSchema),z.lazy(() => EmailCampaignScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailCampaignScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailCampaignScalarWhereWithAggregatesInputSchema),z.lazy(() => EmailCampaignScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - subject: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - sender: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - opens: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - clicks: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - bounces: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const SocialMediaPostWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SocialMediaPostWhereInputSchema),z.lazy(() => SocialMediaPostWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SocialMediaPostWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SocialMediaPostWhereInputSchema),z.lazy(() => SocialMediaPostWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - platform: z.union([ z.lazy(() => EnumSocialPlatformFilterSchema),z.lazy(() => SocialPlatformSchema) ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mediaUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - likes: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - shares: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - comments: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - campaign: z.union([ z.lazy(() => MarketingCampaignRelationFilterSchema),z.lazy(() => MarketingCampaignWhereInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - platform: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - campaign: z.lazy(() => MarketingCampaignOrderByWithRelationInputSchema).optional() -}).strict(); - -export const SocialMediaPostWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => SocialMediaPostWhereInputSchema),z.lazy(() => SocialMediaPostWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SocialMediaPostWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SocialMediaPostWhereInputSchema),z.lazy(() => SocialMediaPostWhereInputSchema).array() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - platform: z.union([ z.lazy(() => EnumSocialPlatformFilterSchema),z.lazy(() => SocialPlatformSchema) ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mediaUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - likes: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - shares: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - comments: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - campaign: z.union([ z.lazy(() => MarketingCampaignRelationFilterSchema),z.lazy(() => MarketingCampaignWhereInputSchema) ]).optional(), -}).strict()); - -export const SocialMediaPostOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - platform: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scheduledAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => SocialMediaPostCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => SocialMediaPostAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => SocialMediaPostMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => SocialMediaPostMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => SocialMediaPostSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const SocialMediaPostScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SocialMediaPostScalarWhereWithAggregatesInputSchema),z.lazy(() => SocialMediaPostScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => SocialMediaPostScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SocialMediaPostScalarWhereWithAggregatesInputSchema),z.lazy(() => SocialMediaPostScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - platform: z.union([ z.lazy(() => EnumSocialPlatformWithAggregatesFilterSchema),z.lazy(() => SocialPlatformSchema) ]).optional(), - content: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - mediaUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - likes: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - shares: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - comments: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const UserWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - emailVerified: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - image: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - sessions: z.lazy(() => SessionListRelationFilterSchema).optional(), - accounts: z.lazy(() => AccountListRelationFilterSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateListRelationFilterSchema).optional() -}).strict(); - -export const UserOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - sessions: z.lazy(() => SessionOrderByRelationAggregateInputSchema).optional(), - accounts: z.lazy(() => AccountOrderByRelationAggregateInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionOrderByRelationAggregateInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const UserWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string(), - email: z.string() - }), - z.object({ - id: z.string(), - }), - z.object({ - email: z.string(), - }), -]) -.and(z.object({ - id: z.string().optional(), - email: z.string().optional(), - AND: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - emailVerified: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - image: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - sessions: z.lazy(() => SessionListRelationFilterSchema).optional(), - accounts: z.lazy(() => AccountListRelationFilterSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionListRelationFilterSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateListRelationFilterSchema).optional() -}).strict()); - -export const UserOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => UserCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => UserMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => UserMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const UserScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserScalarWhereWithAggregatesInputSchema),z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserScalarWhereWithAggregatesInputSchema),z.lazy(() => UserScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - emailVerified: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - image: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const SessionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - token: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict(); - -export const SessionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userAgent: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - user: z.lazy(() => UserOrderByWithRelationInputSchema).optional() -}).strict(); - -export const SessionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string(), - token: z.string() - }), - z.object({ - id: z.string(), - }), - z.object({ - token: z.string(), - }), -]) -.and(z.object({ - id: z.string().optional(), - token: z.string().optional(), - AND: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict()); - -export const SessionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userAgent: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => SessionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => SessionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => SessionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const SessionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionScalarWhereWithAggregatesInputSchema),z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionScalarWhereWithAggregatesInputSchema),z.lazy(() => SessionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - token: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - ipAddress: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const AccountWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - accountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - accessToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refreshToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - idToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - password: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict(); - -export const AccountOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - accountId: z.lazy(() => SortOrderSchema).optional(), - providerId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - accessToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refreshToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - idToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - accessTokenExpiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refreshTokenExpiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - password: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - user: z.lazy(() => UserOrderByWithRelationInputSchema).optional() -}).strict(); - -export const AccountWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string() -}) -.and(z.object({ - id: z.string().optional(), - AND: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), - accountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - accessToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refreshToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - idToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - password: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), -}).strict()); - -export const AccountOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - accountId: z.lazy(() => SortOrderSchema).optional(), - providerId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - accessToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refreshToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - idToken: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - accessTokenExpiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - refreshTokenExpiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - password: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => AccountCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => AccountMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => AccountMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const AccountScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountScalarWhereWithAggregatesInputSchema),z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountScalarWhereWithAggregatesInputSchema),z.lazy(() => AccountScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - accountId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - providerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - accessToken: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - refreshToken: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - idToken: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - password: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const VerificationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VerificationWhereInputSchema),z.lazy(() => VerificationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationWhereInputSchema),z.lazy(() => VerificationWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - identifier: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - updatedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const VerificationOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - identifier: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - updatedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), -}).strict(); - -export const VerificationWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string() -}) -.and(z.object({ - id: z.string().optional(), - AND: z.union([ z.lazy(() => VerificationWhereInputSchema),z.lazy(() => VerificationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationWhereInputSchema),z.lazy(() => VerificationWhereInputSchema).array() ]).optional(), - identifier: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - updatedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict()); - -export const VerificationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - identifier: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - updatedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => VerificationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => VerificationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => VerificationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const VerificationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VerificationScalarWhereWithAggregatesInputSchema),z.lazy(() => VerificationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => VerificationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VerificationScalarWhereWithAggregatesInputSchema),z.lazy(() => VerificationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - identifier: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - updatedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const FinancialReportWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportWhereInputSchema),z.lazy(() => FinancialReportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportWhereInputSchema),z.lazy(() => FinancialReportWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumFinancialReportTypeFilterSchema),z.lazy(() => FinancialReportTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - filters: z.lazy(() => JsonNullableFilterSchema).optional(), - dateRange: z.lazy(() => JsonFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumFinancialReportStatusFilterSchema),z.lazy(() => FinancialReportStatusSchema) ]).optional(), - generatedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - generatedBy: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isScheduled: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scheduleConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataListRelationFilterSchema).optional(), - exports: z.lazy(() => FinancialReportExportListRelationFilterSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleListRelationFilterSchema).optional() -}).strict(); - -export const FinancialReportOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - filters: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dateRange: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - generatedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - generatedBy: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - isScheduled: z.lazy(() => SortOrderSchema).optional(), - scheduleConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - reportData: z.lazy(() => FinancialReportDataOrderByRelationAggregateInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportOrderByRelationAggregateInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const FinancialReportWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => FinancialReportWhereInputSchema),z.lazy(() => FinancialReportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportWhereInputSchema),z.lazy(() => FinancialReportWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumFinancialReportTypeFilterSchema),z.lazy(() => FinancialReportTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - filters: z.lazy(() => JsonNullableFilterSchema).optional(), - dateRange: z.lazy(() => JsonFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumFinancialReportStatusFilterSchema),z.lazy(() => FinancialReportStatusSchema) ]).optional(), - generatedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - generatedBy: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isScheduled: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scheduleConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataListRelationFilterSchema).optional(), - exports: z.lazy(() => FinancialReportExportListRelationFilterSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleListRelationFilterSchema).optional() -}).strict()); - -export const FinancialReportOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - filters: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dateRange: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - generatedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - generatedBy: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - isScheduled: z.lazy(() => SortOrderSchema).optional(), - scheduleConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => FinancialReportCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => FinancialReportMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => FinancialReportMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const FinancialReportScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumFinancialReportTypeWithAggregatesFilterSchema),z.lazy(() => FinancialReportTypeSchema) ]).optional(), - template: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - filters: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - dateRange: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumFinancialReportStatusWithAggregatesFilterSchema),z.lazy(() => FinancialReportStatusSchema) ]).optional(), - generatedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - generatedBy: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - isTemplate: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - isScheduled: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - scheduleConfig: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportDataWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportDataWhereInputSchema),z.lazy(() => FinancialReportDataWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportDataWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportDataWhereInputSchema),z.lazy(() => FinancialReportDataWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - data: z.lazy(() => JsonFilterSchema).optional(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - data: z.lazy(() => SortOrderSchema).optional(), - metadata: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - report: z.lazy(() => FinancialReportOrderByWithRelationInputSchema).optional() -}).strict(); - -export const FinancialReportDataWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => FinancialReportDataWhereInputSchema),z.lazy(() => FinancialReportDataWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportDataWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportDataWhereInputSchema),z.lazy(() => FinancialReportDataWhereInputSchema).array() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - data: z.lazy(() => JsonFilterSchema).optional(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict()); - -export const FinancialReportDataOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - data: z.lazy(() => SortOrderSchema).optional(), - metadata: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => FinancialReportDataCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => FinancialReportDataMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => FinancialReportDataMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const FinancialReportDataScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportDataScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportDataScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportDataScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportDataScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportDataScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - data: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - metadata: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportExportWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportExportWhereInputSchema),z.lazy(() => FinancialReportExportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportExportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportExportWhereInputSchema),z.lazy(() => FinancialReportExportWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - format: z.union([ z.lazy(() => EnumFinancialReportExportFormatFilterSchema),z.lazy(() => FinancialReportExportFormatSchema) ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fileSize: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumFinancialReportExportStatusFilterSchema),z.lazy(() => FinancialReportExportStatusSchema) ]).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - format: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fileSize: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - report: z.lazy(() => FinancialReportOrderByWithRelationInputSchema).optional() -}).strict(); - -export const FinancialReportExportWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => FinancialReportExportWhereInputSchema),z.lazy(() => FinancialReportExportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportExportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportExportWhereInputSchema),z.lazy(() => FinancialReportExportWhereInputSchema).array() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - format: z.union([ z.lazy(() => EnumFinancialReportExportFormatFilterSchema),z.lazy(() => FinancialReportExportFormatSchema) ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fileSize: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumFinancialReportExportStatusFilterSchema),z.lazy(() => FinancialReportExportStatusSchema) ]).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict()); - -export const FinancialReportExportOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - format: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fileSize: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => FinancialReportExportCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => FinancialReportExportAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => FinancialReportExportMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => FinancialReportExportMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => FinancialReportExportSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const FinancialReportExportScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportExportScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportExportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportExportScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportExportScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportExportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - format: z.union([ z.lazy(() => EnumFinancialReportExportFormatWithAggregatesFilterSchema),z.lazy(() => FinancialReportExportFormatSchema) ]).optional(), - fileName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - fileSize: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumFinancialReportExportStatusWithAggregatesFilterSchema),z.lazy(() => FinancialReportExportStatusSchema) ]).optional(), - error: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportScheduleWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportScheduleWhereInputSchema),z.lazy(() => FinancialReportScheduleWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScheduleWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScheduleWhereInputSchema),z.lazy(() => FinancialReportScheduleWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - frequency: z.union([ z.lazy(() => EnumFinancialReportScheduleFrequencyFilterSchema),z.lazy(() => FinancialReportScheduleFrequencySchema) ]).optional(), - dayOfWeek: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - dayOfMonth: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - time: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - timezone: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastRunAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - nextRunAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - recipients: z.lazy(() => JsonFilterSchema).optional(), - emailSubject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emailBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - frequency: z.lazy(() => SortOrderSchema).optional(), - dayOfWeek: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dayOfMonth: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - time: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastRunAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - nextRunAt: z.lazy(() => SortOrderSchema).optional(), - recipients: z.lazy(() => SortOrderSchema).optional(), - emailSubject: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emailBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - report: z.lazy(() => FinancialReportOrderByWithRelationInputSchema).optional() -}).strict(); - -export const FinancialReportScheduleWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => FinancialReportScheduleWhereInputSchema),z.lazy(() => FinancialReportScheduleWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScheduleWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScheduleWhereInputSchema),z.lazy(() => FinancialReportScheduleWhereInputSchema).array() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - frequency: z.union([ z.lazy(() => EnumFinancialReportScheduleFrequencyFilterSchema),z.lazy(() => FinancialReportScheduleFrequencySchema) ]).optional(), - dayOfWeek: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - dayOfMonth: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - time: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - timezone: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastRunAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - nextRunAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - recipients: z.lazy(() => JsonFilterSchema).optional(), - emailSubject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emailBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - report: z.union([ z.lazy(() => FinancialReportRelationFilterSchema),z.lazy(() => FinancialReportWhereInputSchema) ]).optional(), -}).strict()); - -export const FinancialReportScheduleOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - frequency: z.lazy(() => SortOrderSchema).optional(), - dayOfWeek: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dayOfMonth: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - time: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastRunAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - nextRunAt: z.lazy(() => SortOrderSchema).optional(), - recipients: z.lazy(() => SortOrderSchema).optional(), - emailSubject: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - emailBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => FinancialReportScheduleCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => FinancialReportScheduleAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => FinancialReportScheduleMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => FinancialReportScheduleMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => FinancialReportScheduleSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const FinancialReportScheduleScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScheduleScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereWithAggregatesInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - frequency: z.union([ z.lazy(() => EnumFinancialReportScheduleFrequencyWithAggregatesFilterSchema),z.lazy(() => FinancialReportScheduleFrequencySchema) ]).optional(), - dayOfWeek: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - dayOfMonth: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - time: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - timezone: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - lastRunAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - nextRunAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - recipients: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - emailSubject: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - emailBody: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplatePackageWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplatePackageWhereInputSchema),z.lazy(() => TemplatePackageWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplatePackageWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplatePackageWhereInputSchema),z.lazy(() => TemplatePackageWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - visibility: z.union([ z.lazy(() => EnumTemplateVisibilityFilterSchema),z.lazy(() => TemplateVisibilitySchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateStatusFilterSchema),z.lazy(() => TemplateStatusSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - tags: z.lazy(() => JsonNullableFilterSchema).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - assetsCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - sizeBytes: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - versions: z.lazy(() => TemplateVersionListRelationFilterSchema).optional(), - installations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional(), - shares: z.lazy(() => TemplateShareListRelationFilterSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional() -}).strict(); - -export const TemplatePackageOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - visibility: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - tags: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - versions: z.lazy(() => TemplateVersionOrderByRelationAggregateInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationOrderByRelationAggregateInputSchema).optional(), - shares: z.lazy(() => TemplateShareOrderByRelationAggregateInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const TemplatePackageWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TemplatePackageWhereInputSchema),z.lazy(() => TemplatePackageWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplatePackageWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplatePackageWhereInputSchema),z.lazy(() => TemplatePackageWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - visibility: z.union([ z.lazy(() => EnumTemplateVisibilityFilterSchema),z.lazy(() => TemplateVisibilitySchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateStatusFilterSchema),z.lazy(() => TemplateStatusSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - tags: z.lazy(() => JsonNullableFilterSchema).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - assetsCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - sizeBytes: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - versions: z.lazy(() => TemplateVersionListRelationFilterSchema).optional(), - installations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional(), - shares: z.lazy(() => TemplateShareListRelationFilterSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional() -}).strict()); - -export const TemplatePackageOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - visibility: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - tags: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplatePackageCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => TemplatePackageAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplatePackageMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplatePackageMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => TemplatePackageSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplatePackageScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplatePackageScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplatePackageScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplatePackageScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplatePackageScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplatePackageScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - visibility: z.union([ z.lazy(() => EnumTemplateVisibilityWithAggregatesFilterSchema),z.lazy(() => TemplateVisibilitySchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateStatusWithAggregatesFilterSchema),z.lazy(() => TemplateStatusSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - tags: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - manifest: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - assetsCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - sizeBytes: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateVersionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateVersionWhereInputSchema),z.lazy(() => TemplateVersionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateVersionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateVersionWhereInputSchema),z.lazy(() => TemplateVersionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - changelog: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional() -}).strict(); - -export const TemplateVersionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - changelog: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageOrderByWithRelationInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const TemplateVersionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - templatePackageId_version: z.lazy(() => TemplateVersionTemplatePackageIdVersionCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - templatePackageId_version: z.lazy(() => TemplateVersionTemplatePackageIdVersionCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - templatePackageId_version: z.lazy(() => TemplateVersionTemplatePackageIdVersionCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => TemplateVersionWhereInputSchema),z.lazy(() => TemplateVersionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateVersionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateVersionWhereInputSchema),z.lazy(() => TemplateVersionWhereInputSchema).array() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - changelog: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationListRelationFilterSchema).optional() -}).strict()); - -export const TemplateVersionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - changelog: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplateVersionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateVersionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateVersionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateVersionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateVersionScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateVersionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateVersionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateVersionScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateVersionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - manifest: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - changelog: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateInstallationWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallationWhereInputSchema),z.lazy(() => TemplateInstallationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallationWhereInputSchema),z.lazy(() => TemplateInstallationWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateVersionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateInstallStatusFilterSchema),z.lazy(() => TemplateInstallStatusSchema) ]).optional(), - strategy: z.union([ z.lazy(() => EnumTemplateInstallStrategyFilterSchema),z.lazy(() => TemplateInstallStrategySchema) ]).optional(), - namePrefix: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - preflight: z.lazy(() => JsonNullableFilterSchema).optional(), - logs: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageNullableRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional().nullable(), - templateVersion: z.union([ z.lazy(() => TemplateVersionNullableRelationFilterSchema),z.lazy(() => TemplateVersionWhereInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemListRelationFilterSchema).optional() -}).strict(); - -export const TemplateInstallationOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateVersionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - strategy: z.lazy(() => SortOrderSchema).optional(), - namePrefix: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - preflight: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - logs: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageOrderByWithRelationInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionOrderByWithRelationInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const TemplateInstallationWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TemplateInstallationWhereInputSchema),z.lazy(() => TemplateInstallationWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallationWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallationWhereInputSchema),z.lazy(() => TemplateInstallationWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateVersionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateInstallStatusFilterSchema),z.lazy(() => TemplateInstallStatusSchema) ]).optional(), - strategy: z.union([ z.lazy(() => EnumTemplateInstallStrategyFilterSchema),z.lazy(() => TemplateInstallStrategySchema) ]).optional(), - namePrefix: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - preflight: z.lazy(() => JsonNullableFilterSchema).optional(), - logs: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageNullableRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional().nullable(), - templateVersion: z.union([ z.lazy(() => TemplateVersionNullableRelationFilterSchema),z.lazy(() => TemplateVersionWhereInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemListRelationFilterSchema).optional() -}).strict()); - -export const TemplateInstallationOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateVersionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - strategy: z.lazy(() => SortOrderSchema).optional(), - namePrefix: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - preflight: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - logs: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => TemplateInstallationCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateInstallationMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateInstallationMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateInstallationScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallationScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateInstallationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallationScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallationScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateInstallationScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - templateVersionId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateInstallStatusWithAggregatesFilterSchema),z.lazy(() => TemplateInstallStatusSchema) ]).optional(), - strategy: z.union([ z.lazy(() => EnumTemplateInstallStrategyWithAggregatesFilterSchema),z.lazy(() => TemplateInstallStrategySchema) ]).optional(), - namePrefix: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - preflight: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - logs: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const TemplateInstallItemWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallItemWhereInputSchema),z.lazy(() => TemplateInstallItemWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallItemWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallItemWhereInputSchema),z.lazy(() => TemplateInstallItemWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - installationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assetType: z.union([ z.lazy(() => EnumTemplateAssetTypeFilterSchema),z.lazy(() => TemplateAssetTypeSchema) ]).optional(), - sourceKey: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdModel: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateItemStatusFilterSchema),z.lazy(() => TemplateItemStatusSchema) ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - installation: z.union([ z.lazy(() => TemplateInstallationRelationFilterSchema),z.lazy(() => TemplateInstallationWhereInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - installationId: z.lazy(() => SortOrderSchema).optional(), - assetType: z.lazy(() => SortOrderSchema).optional(), - sourceKey: z.lazy(() => SortOrderSchema).optional(), - createdModel: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - details: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - installation: z.lazy(() => TemplateInstallationOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TemplateInstallItemWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TemplateInstallItemWhereInputSchema),z.lazy(() => TemplateInstallItemWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallItemWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallItemWhereInputSchema),z.lazy(() => TemplateInstallItemWhereInputSchema).array() ]).optional(), - installationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assetType: z.union([ z.lazy(() => EnumTemplateAssetTypeFilterSchema),z.lazy(() => TemplateAssetTypeSchema) ]).optional(), - sourceKey: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdModel: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateItemStatusFilterSchema),z.lazy(() => TemplateItemStatusSchema) ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - installation: z.union([ z.lazy(() => TemplateInstallationRelationFilterSchema),z.lazy(() => TemplateInstallationWhereInputSchema) ]).optional(), -}).strict()); - -export const TemplateInstallItemOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - installationId: z.lazy(() => SortOrderSchema).optional(), - assetType: z.lazy(() => SortOrderSchema).optional(), - sourceKey: z.lazy(() => SortOrderSchema).optional(), - createdModel: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - details: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplateInstallItemCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateInstallItemMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateInstallItemMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateInstallItemScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallItemScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateInstallItemScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallItemScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallItemScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateInstallItemScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - installationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - assetType: z.union([ z.lazy(() => EnumTemplateAssetTypeWithAggregatesFilterSchema),z.lazy(() => TemplateAssetTypeSchema) ]).optional(), - sourceKey: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdModel: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateItemStatusWithAggregatesFilterSchema),z.lazy(() => TemplateItemStatusSchema) ]).optional(), - details: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowWhereInputSchema),z.lazy(() => WorkflowWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowWhereInputSchema),z.lazy(() => WorkflowWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowStatusFilterSchema),z.lazy(() => WorkflowStatusSchema) ]).optional(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - canvasData: z.lazy(() => JsonNullableFilterSchema).optional(), - retryConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - timeoutConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastExecutedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - updatedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - archivedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerListRelationFilterSchema).optional(), - nodes: z.lazy(() => WorkflowNodeListRelationFilterSchema).optional(), - connections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - executions: z.lazy(() => WorkflowExecutionListRelationFilterSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsListRelationFilterSchema).optional() -}).strict(); - -export const WorkflowOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - canvasData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - timeoutConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - lastExecutedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - updatedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - archivedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerOrderByRelationAggregateInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeOrderByRelationAggregateInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionOrderByRelationAggregateInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionOrderByRelationAggregateInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const WorkflowWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name_version: z.lazy(() => WorkflowOrganizationIdNameVersionCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name_version: z.lazy(() => WorkflowOrganizationIdNameVersionCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name_version: z.lazy(() => WorkflowOrganizationIdNameVersionCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => WorkflowWhereInputSchema),z.lazy(() => WorkflowWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowWhereInputSchema),z.lazy(() => WorkflowWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowStatusFilterSchema),z.lazy(() => WorkflowStatusSchema) ]).optional(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - canvasData: z.lazy(() => JsonNullableFilterSchema).optional(), - retryConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - timeoutConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - lastExecutedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - updatedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - archivedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerListRelationFilterSchema).optional(), - nodes: z.lazy(() => WorkflowNodeListRelationFilterSchema).optional(), - connections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - executions: z.lazy(() => WorkflowExecutionListRelationFilterSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsListRelationFilterSchema).optional() -}).strict()); - -export const WorkflowOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - canvasData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - timeoutConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - lastExecutedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - updatedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - publishedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - archivedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowStatusWithAggregatesFilterSchema),z.lazy(() => WorkflowStatusSchema) ]).optional(), - isTemplate: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - category: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - canvasData: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - retryConfig: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - timeoutConfig: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - totalExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - lastExecutedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - updatedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - archivedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const OrganizationUiConfigWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => OrganizationUiConfigWhereInputSchema),z.lazy(() => OrganizationUiConfigWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationUiConfigWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationUiConfigWhereInputSchema),z.lazy(() => OrganizationUiConfigWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - key: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - key: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional() -}).strict(); - -export const OrganizationUiConfigWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_key: z.lazy(() => OrganizationUiConfigOrganizationIdKeyCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_key: z.lazy(() => OrganizationUiConfigOrganizationIdKeyCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_key: z.lazy(() => OrganizationUiConfigOrganizationIdKeyCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => OrganizationUiConfigWhereInputSchema),z.lazy(() => OrganizationUiConfigWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationUiConfigWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationUiConfigWhereInputSchema),z.lazy(() => OrganizationUiConfigWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - key: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict()); - -export const OrganizationUiConfigOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - key: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => OrganizationUiConfigCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => OrganizationUiConfigMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => OrganizationUiConfigMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const OrganizationUiConfigScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereWithAggregatesInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationUiConfigScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereWithAggregatesInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - key: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - config: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowTriggerWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowTriggerWhereInputSchema),z.lazy(() => WorkflowTriggerWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowTriggerWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowTriggerWhereInputSchema),z.lazy(() => WorkflowTriggerWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumWorkflowTriggerTypeFilterSchema),z.lazy(() => WorkflowTriggerTypeSchema) ]).optional(), - module: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - entityType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - eventType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - delay: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastTriggered: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - triggerCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionListRelationFilterSchema).optional(), - variables: z.lazy(() => TriggerVariableListRelationFilterSchema).optional(), - node: z.union([ z.lazy(() => WorkflowNodeNullableRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const WorkflowTriggerOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - eventType: z.lazy(() => SortOrderSchema).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - delay: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastTriggered: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflow: z.lazy(() => WorkflowOrderByWithRelationInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionOrderByRelationAggregateInputSchema).optional(), - variables: z.lazy(() => TriggerVariableOrderByRelationAggregateInputSchema).optional(), - node: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const WorkflowTriggerWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - nodeId_workflowId: z.lazy(() => WorkflowTriggerNodeIdWorkflowIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - nodeId_workflowId: z.lazy(() => WorkflowTriggerNodeIdWorkflowIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - nodeId_workflowId: z.lazy(() => WorkflowTriggerNodeIdWorkflowIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => WorkflowTriggerWhereInputSchema),z.lazy(() => WorkflowTriggerWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowTriggerWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowTriggerWhereInputSchema),z.lazy(() => WorkflowTriggerWhereInputSchema).array() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumWorkflowTriggerTypeFilterSchema),z.lazy(() => WorkflowTriggerTypeSchema) ]).optional(), - module: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - entityType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - eventType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - delay: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastTriggered: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - triggerCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionListRelationFilterSchema).optional(), - variables: z.lazy(() => TriggerVariableListRelationFilterSchema).optional(), - node: z.union([ z.lazy(() => WorkflowNodeNullableRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const WorkflowTriggerOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - eventType: z.lazy(() => SortOrderSchema).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - delay: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastTriggered: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowTriggerCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowTriggerAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowTriggerMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowTriggerMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowTriggerSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowTriggerScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowTriggerScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowTriggerScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowTriggerScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowTriggerScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowTriggerScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumWorkflowTriggerTypeWithAggregatesFilterSchema),z.lazy(() => WorkflowTriggerTypeSchema) ]).optional(), - module: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - entityType: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - eventType: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - conditions: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - delay: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - lastTriggered: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - triggerCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowNodeWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowNodeWhereInputSchema),z.lazy(() => WorkflowNodeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowNodeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowNodeWhereInputSchema),z.lazy(() => WorkflowNodeWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.lazy(() => JsonFilterSchema).optional(), - config: z.lazy(() => JsonNullableFilterSchema).optional(), - template: z.lazy(() => JsonNullableFilterSchema).optional(), - executionOrder: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - isOptional: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - retryLimit: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - timeout: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionListRelationFilterSchema).optional(), - dependencies: z.lazy(() => NodeDependencyListRelationFilterSchema).optional(), - dependents: z.lazy(() => NodeDependencyListRelationFilterSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - emailAction: z.union([ z.lazy(() => EmailActionNullableRelationFilterSchema),z.lazy(() => EmailActionWhereInputSchema) ]).optional().nullable(), - smsAction: z.union([ z.lazy(() => SmsActionNullableRelationFilterSchema),z.lazy(() => SmsActionWhereInputSchema) ]).optional().nullable(), - whatsAppAction: z.union([ z.lazy(() => WhatsAppActionNullableRelationFilterSchema),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional().nullable(), - slackAction: z.union([ z.lazy(() => SlackActionNullableRelationFilterSchema),z.lazy(() => SlackActionWhereInputSchema) ]).optional().nullable(), - calendarAction: z.union([ z.lazy(() => CalendarActionNullableRelationFilterSchema),z.lazy(() => CalendarActionWhereInputSchema) ]).optional().nullable(), - trigger: z.union([ z.lazy(() => WorkflowTriggerNullableRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const WorkflowNodeOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - config: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - template: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - executionOrder: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isOptional: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflow: z.lazy(() => WorkflowOrderByWithRelationInputSchema).optional(), - executions: z.lazy(() => NodeExecutionOrderByRelationAggregateInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyOrderByRelationAggregateInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyOrderByRelationAggregateInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionOrderByRelationAggregateInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionOrderByRelationAggregateInputSchema).optional(), - emailAction: z.lazy(() => EmailActionOrderByWithRelationInputSchema).optional(), - smsAction: z.lazy(() => SmsActionOrderByWithRelationInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionOrderByWithRelationInputSchema).optional(), - slackAction: z.lazy(() => SlackActionOrderByWithRelationInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionOrderByWithRelationInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerOrderByWithRelationInputSchema).optional() -}).strict(); - -export const WorkflowNodeWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - workflowId_nodeId: z.lazy(() => WorkflowNodeWorkflowIdNodeIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - workflowId_nodeId: z.lazy(() => WorkflowNodeWorkflowIdNodeIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - workflowId_nodeId: z.lazy(() => WorkflowNodeWorkflowIdNodeIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => WorkflowNodeWhereInputSchema),z.lazy(() => WorkflowNodeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowNodeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowNodeWhereInputSchema),z.lazy(() => WorkflowNodeWhereInputSchema).array() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.lazy(() => JsonFilterSchema).optional(), - config: z.lazy(() => JsonNullableFilterSchema).optional(), - template: z.lazy(() => JsonNullableFilterSchema).optional(), - executionOrder: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - isOptional: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - retryLimit: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - timeout: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionListRelationFilterSchema).optional(), - dependencies: z.lazy(() => NodeDependencyListRelationFilterSchema).optional(), - dependents: z.lazy(() => NodeDependencyListRelationFilterSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionListRelationFilterSchema).optional(), - emailAction: z.union([ z.lazy(() => EmailActionNullableRelationFilterSchema),z.lazy(() => EmailActionWhereInputSchema) ]).optional().nullable(), - smsAction: z.union([ z.lazy(() => SmsActionNullableRelationFilterSchema),z.lazy(() => SmsActionWhereInputSchema) ]).optional().nullable(), - whatsAppAction: z.union([ z.lazy(() => WhatsAppActionNullableRelationFilterSchema),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional().nullable(), - slackAction: z.union([ z.lazy(() => SlackActionNullableRelationFilterSchema),z.lazy(() => SlackActionWhereInputSchema) ]).optional().nullable(), - calendarAction: z.union([ z.lazy(() => CalendarActionNullableRelationFilterSchema),z.lazy(() => CalendarActionWhereInputSchema) ]).optional().nullable(), - trigger: z.union([ z.lazy(() => WorkflowTriggerNullableRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const WorkflowNodeOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - config: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - template: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - executionOrder: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isOptional: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowNodeCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowNodeAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowNodeMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowNodeMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowNodeSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowNodeScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowNodeScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowNodeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowNodeScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowNodeScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowNodeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeWithAggregatesFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - position: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - config: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - template: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - executionOrder: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - isOptional: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - retryLimit: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - timeout: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowConnectionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowConnectionWhereInputSchema),z.lazy(() => WorkflowConnectionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowConnectionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowConnectionWhereInputSchema),z.lazy(() => WorkflowConnectionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sourceNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - label: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - edgeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sourceHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - targetHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - style: z.lazy(() => JsonNullableFilterSchema).optional(), - animated: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - sourceNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - targetNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - sourceNodeId: z.lazy(() => SortOrderSchema).optional(), - targetNodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - label: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - edgeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sourceHandle: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - targetHandle: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - style: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - animated: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflow: z.lazy(() => WorkflowOrderByWithRelationInputSchema).optional(), - sourceNode: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional(), - targetNode: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const WorkflowConnectionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - sourceNodeId_targetNodeId: z.lazy(() => WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema), - workflowId_edgeId: z.lazy(() => WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - sourceNodeId_targetNodeId: z.lazy(() => WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema), - }), - z.object({ - id: z.string().cuid(), - workflowId_edgeId: z.lazy(() => WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema), - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - sourceNodeId_targetNodeId: z.lazy(() => WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema), - workflowId_edgeId: z.lazy(() => WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema), - }), - z.object({ - sourceNodeId_targetNodeId: z.lazy(() => WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema), - }), - z.object({ - workflowId_edgeId: z.lazy(() => WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - sourceNodeId_targetNodeId: z.lazy(() => WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema).optional(), - workflowId_edgeId: z.lazy(() => WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => WorkflowConnectionWhereInputSchema),z.lazy(() => WorkflowConnectionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowConnectionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowConnectionWhereInputSchema),z.lazy(() => WorkflowConnectionWhereInputSchema).array() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sourceNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - label: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - edgeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sourceHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - targetHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - style: z.lazy(() => JsonNullableFilterSchema).optional(), - animated: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - sourceNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - targetNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const WorkflowConnectionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - sourceNodeId: z.lazy(() => SortOrderSchema).optional(), - targetNodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - label: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - edgeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - sourceHandle: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - targetHandle: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - style: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - animated: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowConnectionCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowConnectionAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowConnectionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowConnectionMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowConnectionSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowConnectionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowConnectionScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowConnectionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowConnectionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowConnectionScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowConnectionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - sourceNodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - targetNodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - label: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - edgeId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - sourceHandle: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - targetHandle: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - style: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - animated: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NodeDependencyWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeDependencyWhereInputSchema),z.lazy(() => NodeDependencyWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeDependencyWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeDependencyWhereInputSchema),z.lazy(() => NodeDependencyWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dependentNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - prerequisiteNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dependencyType: z.union([ z.lazy(() => EnumDependencyTypeFilterSchema),z.lazy(() => DependencyTypeSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - dependentNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - prerequisiteNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - dependentNodeId: z.lazy(() => SortOrderSchema).optional(), - prerequisiteNodeId: z.lazy(() => SortOrderSchema).optional(), - dependencyType: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - dependentNode: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional(), - prerequisiteNode: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const NodeDependencyWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - dependentNodeId_prerequisiteNodeId: z.lazy(() => NodeDependencyDependentNodeIdPrerequisiteNodeIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - dependentNodeId_prerequisiteNodeId: z.lazy(() => NodeDependencyDependentNodeIdPrerequisiteNodeIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - dependentNodeId_prerequisiteNodeId: z.lazy(() => NodeDependencyDependentNodeIdPrerequisiteNodeIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => NodeDependencyWhereInputSchema),z.lazy(() => NodeDependencyWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeDependencyWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeDependencyWhereInputSchema),z.lazy(() => NodeDependencyWhereInputSchema).array() ]).optional(), - dependentNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - prerequisiteNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dependencyType: z.union([ z.lazy(() => EnumDependencyTypeFilterSchema),z.lazy(() => DependencyTypeSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - dependentNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - prerequisiteNode: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const NodeDependencyOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - dependentNodeId: z.lazy(() => SortOrderSchema).optional(), - prerequisiteNodeId: z.lazy(() => SortOrderSchema).optional(), - dependencyType: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => NodeDependencyCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => NodeDependencyMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => NodeDependencyMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const NodeDependencyScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeDependencyScalarWhereWithAggregatesInputSchema),z.lazy(() => NodeDependencyScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeDependencyScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeDependencyScalarWhereWithAggregatesInputSchema),z.lazy(() => NodeDependencyScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - dependentNodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - prerequisiteNodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - dependencyType: z.union([ z.lazy(() => EnumDependencyTypeWithAggregatesFilterSchema),z.lazy(() => DependencyTypeSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ActionTemplateWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateWhereInputSchema),z.lazy(() => ActionTemplateWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateWhereInputSchema),z.lazy(() => ActionTemplateWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => EnumActionTemplateCategoryFilterSchema),z.lazy(() => ActionTemplateCategorySchema) ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - defaultConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - schema: z.lazy(() => JsonNullableFilterSchema).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isPublic: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - isLocked: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - requiredVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - optionalVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - versions: z.lazy(() => ActionTemplateVersionListRelationFilterSchema).optional() -}).strict(); - -export const ActionTemplateOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - defaultConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - schema: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - isPublic: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - isLocked: z.lazy(() => SortOrderSchema).optional(), - requiredVariables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - optionalVariables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - versions: z.lazy(() => ActionTemplateVersionOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const ActionTemplateWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ActionTemplateWhereInputSchema),z.lazy(() => ActionTemplateWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateWhereInputSchema),z.lazy(() => ActionTemplateWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => EnumActionTemplateCategoryFilterSchema),z.lazy(() => ActionTemplateCategorySchema) ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - defaultConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - schema: z.lazy(() => JsonNullableFilterSchema).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isPublic: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - isLocked: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - requiredVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - optionalVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - versions: z.lazy(() => ActionTemplateVersionListRelationFilterSchema).optional() -}).strict()); - -export const ActionTemplateOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - defaultConfig: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - schema: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - isPublic: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - isLocked: z.lazy(() => SortOrderSchema).optional(), - requiredVariables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - optionalVariables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ActionTemplateCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => ActionTemplateAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ActionTemplateMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ActionTemplateMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => ActionTemplateSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const ActionTemplateScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateScalarWhereWithAggregatesInputSchema),z.lazy(() => ActionTemplateScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateScalarWhereWithAggregatesInputSchema),z.lazy(() => ActionTemplateScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => EnumActionTemplateCategoryWithAggregatesFilterSchema),z.lazy(() => ActionTemplateCategorySchema) ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeWithAggregatesFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - template: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - defaultConfig: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - schema: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - version: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isPublic: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - usageCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - isLocked: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - requiredVariables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - optionalVariables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ActionTemplateVersionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateVersionWhereInputSchema),z.lazy(() => ActionTemplateVersionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateVersionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateVersionWhereInputSchema),z.lazy(() => ActionTemplateVersionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - changes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - actionTemplate: z.union([ z.lazy(() => ActionTemplateRelationFilterSchema),z.lazy(() => ActionTemplateWhereInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - changes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - actionTemplate: z.lazy(() => ActionTemplateOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - templateId_version: z.lazy(() => ActionTemplateVersionTemplateIdVersionCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - templateId_version: z.lazy(() => ActionTemplateVersionTemplateIdVersionCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - templateId_version: z.lazy(() => ActionTemplateVersionTemplateIdVersionCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => ActionTemplateVersionWhereInputSchema),z.lazy(() => ActionTemplateVersionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateVersionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateVersionWhereInputSchema),z.lazy(() => ActionTemplateVersionWhereInputSchema).array() ]).optional(), - templateId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - changes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - actionTemplate: z.union([ z.lazy(() => ActionTemplateRelationFilterSchema),z.lazy(() => ActionTemplateWhereInputSchema) ]).optional(), -}).strict()); - -export const ActionTemplateVersionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - changes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ActionTemplateVersionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ActionTemplateVersionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ActionTemplateVersionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereWithAggregatesInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateVersionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereWithAggregatesInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - template: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - changes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const VariableDefinitionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VariableDefinitionWhereInputSchema),z.lazy(() => VariableDefinitionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VariableDefinitionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VariableDefinitionWhereInputSchema),z.lazy(() => VariableDefinitionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - displayName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - validation: z.lazy(() => JsonNullableFilterSchema).optional(), - formatting: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isCustom: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scope: z.union([ z.lazy(() => EnumVariableScopeFilterSchema),z.lazy(() => VariableScopeSchema) ]).optional(), - moduleScope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - triggerVars: z.lazy(() => TriggerVariableListRelationFilterSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableListRelationFilterSchema).optional() -}).strict(); - -export const VariableDefinitionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - displayName: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - validation: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - formatting: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - isCustom: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - moduleScope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - triggerVars: z.lazy(() => TriggerVariableOrderByRelationAggregateInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const VariableDefinitionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => VariableDefinitionOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => VariableDefinitionOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => VariableDefinitionOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => VariableDefinitionWhereInputSchema),z.lazy(() => VariableDefinitionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VariableDefinitionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VariableDefinitionWhereInputSchema),z.lazy(() => VariableDefinitionWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - displayName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - validation: z.lazy(() => JsonNullableFilterSchema).optional(), - formatting: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isCustom: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scope: z.union([ z.lazy(() => EnumVariableScopeFilterSchema),z.lazy(() => VariableScopeSchema) ]).optional(), - moduleScope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationNullableRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional().nullable(), - triggerVars: z.lazy(() => TriggerVariableListRelationFilterSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableListRelationFilterSchema).optional() -}).strict()); - -export const VariableDefinitionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - displayName: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - validation: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - formatting: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - isCustom: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - moduleScope: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => VariableDefinitionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => VariableDefinitionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => VariableDefinitionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const VariableDefinitionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VariableDefinitionScalarWhereWithAggregatesInputSchema),z.lazy(() => VariableDefinitionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => VariableDefinitionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VariableDefinitionScalarWhereWithAggregatesInputSchema),z.lazy(() => VariableDefinitionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - displayName: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeWithAggregatesFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - validation: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - formatting: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - isCustom: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - scope: z.union([ z.lazy(() => EnumVariableScopeWithAggregatesFilterSchema),z.lazy(() => VariableScopeSchema) ]).optional(), - moduleScope: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TriggerVariableWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TriggerVariableWhereInputSchema),z.lazy(() => TriggerVariableWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TriggerVariableWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TriggerVariableWhereInputSchema),z.lazy(() => TriggerVariableWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mapping: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - trigger: z.union([ z.lazy(() => WorkflowTriggerRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - variable: z.union([ z.lazy(() => VariableDefinitionRelationFilterSchema),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - variableId: z.lazy(() => SortOrderSchema).optional(), - mapping: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerOrderByWithRelationInputSchema).optional(), - variable: z.lazy(() => VariableDefinitionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TriggerVariableWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - triggerId_variableId: z.lazy(() => TriggerVariableTriggerIdVariableIdCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - triggerId_variableId: z.lazy(() => TriggerVariableTriggerIdVariableIdCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - triggerId_variableId: z.lazy(() => TriggerVariableTriggerIdVariableIdCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => TriggerVariableWhereInputSchema),z.lazy(() => TriggerVariableWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TriggerVariableWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TriggerVariableWhereInputSchema),z.lazy(() => TriggerVariableWhereInputSchema).array() ]).optional(), - triggerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mapping: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - trigger: z.union([ z.lazy(() => WorkflowTriggerRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - variable: z.union([ z.lazy(() => VariableDefinitionRelationFilterSchema),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional(), -}).strict()); - -export const TriggerVariableOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - variableId: z.lazy(() => SortOrderSchema).optional(), - mapping: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TriggerVariableCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TriggerVariableMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TriggerVariableMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TriggerVariableScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TriggerVariableScalarWhereWithAggregatesInputSchema),z.lazy(() => TriggerVariableScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TriggerVariableScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TriggerVariableScalarWhereWithAggregatesInputSchema),z.lazy(() => TriggerVariableScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - variableId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - mapping: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowExecutionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowExecutionWhereInputSchema),z.lazy(() => WorkflowExecutionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowExecutionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowExecutionWhereInputSchema),z.lazy(() => WorkflowExecutionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - executionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowExecutionStatusFilterSchema),z.lazy(() => WorkflowExecutionStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumExecutionPriorityFilterSchema),z.lazy(() => ExecutionPrioritySchema) ]).optional(), - triggerData: z.lazy(() => JsonNullableFilterSchema).optional(), - triggerContext: z.lazy(() => JsonNullableFilterSchema).optional(), - currentNodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - progress: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - failedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - result: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - retryDelay: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - trigger: z.union([ z.lazy(() => WorkflowTriggerNullableRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional().nullable(), - nodeExecutions: z.lazy(() => NodeExecutionListRelationFilterSchema).optional(), - variables: z.lazy(() => ExecutionVariableListRelationFilterSchema).optional(), - logs: z.lazy(() => ExecutionLogListRelationFilterSchema).optional() -}).strict(); - -export const WorkflowExecutionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - executionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - triggerData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - triggerContext: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currentNodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - progress: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - failedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - result: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflow: z.lazy(() => WorkflowOrderByWithRelationInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerOrderByWithRelationInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionOrderByRelationAggregateInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableOrderByRelationAggregateInputSchema).optional(), - logs: z.lazy(() => ExecutionLogOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const WorkflowExecutionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - executionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - executionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - executionId: z.string().optional(), - AND: z.union([ z.lazy(() => WorkflowExecutionWhereInputSchema),z.lazy(() => WorkflowExecutionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowExecutionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowExecutionWhereInputSchema),z.lazy(() => WorkflowExecutionWhereInputSchema).array() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumWorkflowExecutionStatusFilterSchema),z.lazy(() => WorkflowExecutionStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumExecutionPriorityFilterSchema),z.lazy(() => ExecutionPrioritySchema) ]).optional(), - triggerData: z.lazy(() => JsonNullableFilterSchema).optional(), - triggerContext: z.lazy(() => JsonNullableFilterSchema).optional(), - currentNodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - progress: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - failedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - result: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - retryDelay: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), - trigger: z.union([ z.lazy(() => WorkflowTriggerNullableRelationFilterSchema),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional().nullable(), - nodeExecutions: z.lazy(() => NodeExecutionListRelationFilterSchema).optional(), - variables: z.lazy(() => ExecutionVariableListRelationFilterSchema).optional(), - logs: z.lazy(() => ExecutionLogListRelationFilterSchema).optional() -}).strict()); - -export const WorkflowExecutionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - executionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - triggerData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - triggerContext: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - currentNodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - progress: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - failedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - result: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowExecutionCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowExecutionAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowExecutionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowExecutionMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowExecutionSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowExecutionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowExecutionScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowExecutionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowExecutionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowExecutionScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowExecutionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - executionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowExecutionStatusWithAggregatesFilterSchema),z.lazy(() => WorkflowExecutionStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumExecutionPriorityWithAggregatesFilterSchema),z.lazy(() => ExecutionPrioritySchema) ]).optional(), - triggerData: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - triggerContext: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - currentNodeId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - progress: z.union([ z.lazy(() => FloatWithAggregatesFilterSchema),z.number() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - failedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - result: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - retryDelay: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NodeExecutionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeExecutionWhereInputSchema),z.lazy(() => NodeExecutionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeExecutionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeExecutionWhereInputSchema),z.lazy(() => NodeExecutionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumNodeExecutionStatusFilterSchema),z.lazy(() => NodeExecutionStatusSchema) ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - input: z.lazy(() => JsonNullableFilterSchema).optional(), - output: z.lazy(() => JsonNullableFilterSchema).optional(), - transformedData: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), - node: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - input: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - output: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - transformedData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionOrderByWithRelationInputSchema).optional(), - node: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const NodeExecutionWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => NodeExecutionWhereInputSchema),z.lazy(() => NodeExecutionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeExecutionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeExecutionWhereInputSchema),z.lazy(() => NodeExecutionWhereInputSchema).array() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - status: z.union([ z.lazy(() => EnumNodeExecutionStatusFilterSchema),z.lazy(() => NodeExecutionStatusSchema) ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - input: z.lazy(() => JsonNullableFilterSchema).optional(), - output: z.lazy(() => JsonNullableFilterSchema).optional(), - transformedData: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), - node: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const NodeExecutionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - completedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - input: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - output: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - transformedData: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - error: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => NodeExecutionCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => NodeExecutionAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => NodeExecutionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => NodeExecutionMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => NodeExecutionSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const NodeExecutionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeExecutionScalarWhereWithAggregatesInputSchema),z.lazy(() => NodeExecutionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeExecutionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeExecutionScalarWhereWithAggregatesInputSchema),z.lazy(() => NodeExecutionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumNodeExecutionStatusWithAggregatesFilterSchema),z.lazy(() => NodeExecutionStatusSchema) ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - input: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - output: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - transformedData: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExecutionVariableWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionVariableWhereInputSchema),z.lazy(() => ExecutionVariableWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionVariableWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionVariableWhereInputSchema),z.lazy(() => ExecutionVariableWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableDefinitionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - resolvedValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), - variableDefinition: z.union([ z.lazy(() => VariableDefinitionNullableRelationFilterSchema),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional().nullable(), -}).strict(); - -export const ExecutionVariableOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - variableDefinitionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - value: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - resolvedValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionOrderByWithRelationInputSchema).optional(), - variableDefinition: z.lazy(() => VariableDefinitionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ExecutionVariableWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ExecutionVariableWhereInputSchema),z.lazy(() => ExecutionVariableWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionVariableWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionVariableWhereInputSchema),z.lazy(() => ExecutionVariableWhereInputSchema).array() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableDefinitionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - resolvedValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), - variableDefinition: z.union([ z.lazy(() => VariableDefinitionNullableRelationFilterSchema),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional().nullable(), -}).strict()); - -export const ExecutionVariableOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - variableDefinitionId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - value: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - resolvedValue: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExecutionVariableCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExecutionVariableMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExecutionVariableMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExecutionVariableScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionVariableScalarWhereWithAggregatesInputSchema),z.lazy(() => ExecutionVariableScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionVariableScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionVariableScalarWhereWithAggregatesInputSchema),z.lazy(() => ExecutionVariableScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - variableDefinitionId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - resolvedValue: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeWithAggregatesFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - source: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - nodeId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExecutionLogWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionLogWhereInputSchema),z.lazy(() => ExecutionLogWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionLogWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionLogWhereInputSchema),z.lazy(() => ExecutionLogWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - level: z.union([ z.lazy(() => EnumLogLevelFilterSchema),z.lazy(() => LogLevelSchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - timestamp: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - level: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - details: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - timestamp: z.lazy(() => SortOrderSchema).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionOrderByWithRelationInputSchema).optional() -}).strict(); - -export const ExecutionLogWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => ExecutionLogWhereInputSchema),z.lazy(() => ExecutionLogWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionLogWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionLogWhereInputSchema),z.lazy(() => ExecutionLogWhereInputSchema).array() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - level: z.union([ z.lazy(() => EnumLogLevelFilterSchema),z.lazy(() => LogLevelSchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - timestamp: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflowExecution: z.union([ z.lazy(() => WorkflowExecutionRelationFilterSchema),z.lazy(() => WorkflowExecutionWhereInputSchema) ]).optional(), -}).strict()); - -export const ExecutionLogOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - level: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - details: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - timestamp: z.lazy(() => SortOrderSchema).optional(), - source: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - category: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => ExecutionLogCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => ExecutionLogMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => ExecutionLogMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const ExecutionLogScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionLogScalarWhereWithAggregatesInputSchema),z.lazy(() => ExecutionLogScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionLogScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionLogScalarWhereWithAggregatesInputSchema),z.lazy(() => ExecutionLogScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - level: z.union([ z.lazy(() => EnumLogLevelWithAggregatesFilterSchema),z.lazy(() => LogLevelSchema) ]).optional(), - message: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - details: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - timestamp: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - source: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const IntegrationConfigWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => IntegrationConfigWhereInputSchema),z.lazy(() => IntegrationConfigWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => IntegrationConfigWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => IntegrationConfigWhereInputSchema),z.lazy(() => IntegrationConfigWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumIntegrationTypeFilterSchema),z.lazy(() => IntegrationTypeSchema) ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - credentials: z.lazy(() => JsonNullableFilterSchema).optional(), - endpoints: z.lazy(() => JsonNullableFilterSchema).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isHealthy: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastHealthCheck: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - healthDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - requestCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - errorCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - credentials: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endpoints: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - isHealthy: z.lazy(() => SortOrderSchema).optional(), - lastHealthCheck: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - healthDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional() -}).strict(); - -export const IntegrationConfigWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - organizationId_name: z.lazy(() => IntegrationConfigOrganizationIdNameCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - organizationId_name: z.lazy(() => IntegrationConfigOrganizationIdNameCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - organizationId_name: z.lazy(() => IntegrationConfigOrganizationIdNameCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => IntegrationConfigWhereInputSchema),z.lazy(() => IntegrationConfigWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => IntegrationConfigWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => IntegrationConfigWhereInputSchema),z.lazy(() => IntegrationConfigWhereInputSchema).array() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumIntegrationTypeFilterSchema),z.lazy(() => IntegrationTypeSchema) ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - credentials: z.lazy(() => JsonNullableFilterSchema).optional(), - endpoints: z.lazy(() => JsonNullableFilterSchema).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isHealthy: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastHealthCheck: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - healthDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - requestCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - errorCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), -}).strict()); - -export const IntegrationConfigOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - credentials: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - endpoints: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - isHealthy: z.lazy(() => SortOrderSchema).optional(), - lastHealthCheck: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - healthDetails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => IntegrationConfigCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => IntegrationConfigAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => IntegrationConfigMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => IntegrationConfigMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => IntegrationConfigSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const IntegrationConfigScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => IntegrationConfigScalarWhereWithAggregatesInputSchema),z.lazy(() => IntegrationConfigScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => IntegrationConfigScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => IntegrationConfigScalarWhereWithAggregatesInputSchema),z.lazy(() => IntegrationConfigScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumIntegrationTypeWithAggregatesFilterSchema),z.lazy(() => IntegrationTypeSchema) ]).optional(), - config: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - credentials: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - endpoints: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - isActive: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - isHealthy: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - lastHealthCheck: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - healthDetails: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - requestCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - errorCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EmailActionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmailActionWhereInputSchema),z.lazy(() => EmailActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailActionWhereInputSchema),z.lazy(() => EmailActionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - replyTo: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - ccEmails: z.lazy(() => JsonNullableFilterSchema).optional(), - bccEmails: z.lazy(() => JsonNullableFilterSchema).optional(), - subject: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - htmlBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - textBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - attachments: z.lazy(() => JsonNullableFilterSchema).optional(), - trackOpens: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - trackClicks: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const EmailActionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromEmail: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - replyTo: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ccEmails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - bccEmails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - htmlBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - textBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - attachments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - trackOpens: z.lazy(() => SortOrderSchema).optional(), - trackClicks: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const EmailActionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - actionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - actionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - actionId: z.string().optional(), - AND: z.union([ z.lazy(() => EmailActionWhereInputSchema),z.lazy(() => EmailActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailActionWhereInputSchema),z.lazy(() => EmailActionWhereInputSchema).array() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - replyTo: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - ccEmails: z.lazy(() => JsonNullableFilterSchema).optional(), - bccEmails: z.lazy(() => JsonNullableFilterSchema).optional(), - subject: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - htmlBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - textBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - attachments: z.lazy(() => JsonNullableFilterSchema).optional(), - trackOpens: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - trackClicks: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const EmailActionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromEmail: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - replyTo: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ccEmails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - bccEmails: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - htmlBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - textBody: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - attachments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - trackOpens: z.lazy(() => SortOrderSchema).optional(), - trackClicks: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => EmailActionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => EmailActionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => EmailActionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const EmailActionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmailActionScalarWhereWithAggregatesInputSchema),z.lazy(() => EmailActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailActionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailActionScalarWhereWithAggregatesInputSchema),z.lazy(() => EmailActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - fromName: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - fromEmail: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - replyTo: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - ccEmails: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - bccEmails: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - subject: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - htmlBody: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - textBody: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - templateId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - attachments: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - trackOpens: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - trackClicks: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const SmsActionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SmsActionWhereInputSchema),z.lazy(() => SmsActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SmsActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SmsActionWhereInputSchema),z.lazy(() => SmsActionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromNumber: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - maxLength: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - unicode: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const SmsActionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromNumber: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - templateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxLength: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - unicode: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const SmsActionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - actionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - actionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - actionId: z.string().optional(), - AND: z.union([ z.lazy(() => SmsActionWhereInputSchema),z.lazy(() => SmsActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SmsActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SmsActionWhereInputSchema),z.lazy(() => SmsActionWhereInputSchema).array() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fromNumber: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - maxLength: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - unicode: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const SmsActionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - fromNumber: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - templateId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxLength: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - unicode: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => SmsActionCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => SmsActionAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => SmsActionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => SmsActionMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => SmsActionSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const SmsActionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SmsActionScalarWhereWithAggregatesInputSchema),z.lazy(() => SmsActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => SmsActionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SmsActionScalarWhereWithAggregatesInputSchema),z.lazy(() => SmsActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - fromNumber: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - maxLength: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - unicode: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WhatsAppActionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WhatsAppActionWhereInputSchema),z.lazy(() => WhatsAppActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WhatsAppActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WhatsAppActionWhereInputSchema),z.lazy(() => WhatsAppActionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - businessAccountId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - toNumbers: z.lazy(() => JsonFilterSchema).optional(), - messageType: z.union([ z.lazy(() => EnumWhatsAppMessageTypeFilterSchema),z.lazy(() => WhatsAppMessageTypeSchema) ]).optional(), - textMessage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateLanguage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - mediaUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - mediaType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - caption: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateParams: z.lazy(() => JsonNullableFilterSchema).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - businessAccountId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - toNumbers: z.lazy(() => SortOrderSchema).optional(), - messageType: z.lazy(() => SortOrderSchema).optional(), - textMessage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateLanguage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - mediaUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - mediaType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - caption: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateParams: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const WhatsAppActionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - actionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - actionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - actionId: z.string().optional(), - AND: z.union([ z.lazy(() => WhatsAppActionWhereInputSchema),z.lazy(() => WhatsAppActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WhatsAppActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WhatsAppActionWhereInputSchema),z.lazy(() => WhatsAppActionWhereInputSchema).array() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - businessAccountId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - toNumbers: z.lazy(() => JsonFilterSchema).optional(), - messageType: z.union([ z.lazy(() => EnumWhatsAppMessageTypeFilterSchema),z.lazy(() => WhatsAppMessageTypeSchema) ]).optional(), - textMessage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateLanguage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - mediaUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - mediaType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - caption: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateParams: z.lazy(() => JsonNullableFilterSchema).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const WhatsAppActionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - businessAccountId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - toNumbers: z.lazy(() => SortOrderSchema).optional(), - messageType: z.lazy(() => SortOrderSchema).optional(), - textMessage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateName: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateLanguage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - mediaUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - mediaType: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - caption: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - templateParams: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WhatsAppActionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WhatsAppActionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WhatsAppActionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const WhatsAppActionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WhatsAppActionScalarWhereWithAggregatesInputSchema),z.lazy(() => WhatsAppActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WhatsAppActionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WhatsAppActionScalarWhereWithAggregatesInputSchema),z.lazy(() => WhatsAppActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - businessAccountId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - toNumbers: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - messageType: z.union([ z.lazy(() => EnumWhatsAppMessageTypeWithAggregatesFilterSchema),z.lazy(() => WhatsAppMessageTypeSchema) ]).optional(), - textMessage: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - templateName: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - templateLanguage: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - mediaUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - mediaType: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - caption: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - templateParams: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - variables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const SlackActionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SlackActionWhereInputSchema),z.lazy(() => SlackActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SlackActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SlackActionWhereInputSchema),z.lazy(() => SlackActionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - workspaceId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - channel: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - blocks: z.lazy(() => JsonNullableFilterSchema).optional(), - attachments: z.lazy(() => JsonNullableFilterSchema).optional(), - asUser: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - username: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - iconEmoji: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - iconUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - threadTs: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - replyBroadcast: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const SlackActionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - workspaceId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - channel: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - blocks: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - attachments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - asUser: z.lazy(() => SortOrderSchema).optional(), - username: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - iconEmoji: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - threadTs: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - replyBroadcast: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const SlackActionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - actionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - actionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - actionId: z.string().optional(), - AND: z.union([ z.lazy(() => SlackActionWhereInputSchema),z.lazy(() => SlackActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SlackActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SlackActionWhereInputSchema),z.lazy(() => SlackActionWhereInputSchema).array() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - workspaceId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - channel: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - blocks: z.lazy(() => JsonNullableFilterSchema).optional(), - attachments: z.lazy(() => JsonNullableFilterSchema).optional(), - asUser: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - username: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - iconEmoji: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - iconUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - threadTs: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - replyBroadcast: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const SlackActionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - workspaceId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - channel: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - blocks: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - attachments: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - asUser: z.lazy(() => SortOrderSchema).optional(), - username: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - iconEmoji: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - threadTs: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - replyBroadcast: z.lazy(() => SortOrderSchema).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => SlackActionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => SlackActionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => SlackActionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const SlackActionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SlackActionScalarWhereWithAggregatesInputSchema),z.lazy(() => SlackActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => SlackActionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SlackActionScalarWhereWithAggregatesInputSchema),z.lazy(() => SlackActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - workspaceId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - channel: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - message: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - blocks: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - attachments: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - asUser: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - username: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - iconEmoji: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - iconUrl: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - threadTs: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - replyBroadcast: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - variables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CalendarActionWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarActionWhereInputSchema),z.lazy(() => CalendarActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarActionWhereInputSchema),z.lazy(() => CalendarActionWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - calendarId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - location: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - endTime: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isAllDay: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - timezone: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - attendees: z.lazy(() => JsonNullableFilterSchema).optional(), - organizer: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - reminders: z.lazy(() => JsonNullableFilterSchema).optional(), - recurrence: z.lazy(() => JsonNullableFilterSchema).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - calendarId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - location: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - isAllDay: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - attendees: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organizer: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - reminders: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - recurrence: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => WorkflowNodeOrderByWithRelationInputSchema).optional() -}).strict(); - -export const CalendarActionWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - actionId: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - actionId: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - actionId: z.string().optional(), - AND: z.union([ z.lazy(() => CalendarActionWhereInputSchema),z.lazy(() => CalendarActionWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarActionWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarActionWhereInputSchema),z.lazy(() => CalendarActionWhereInputSchema).array() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - calendarId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - location: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - endTime: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isAllDay: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - timezone: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - attendees: z.lazy(() => JsonNullableFilterSchema).optional(), - organizer: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - reminders: z.lazy(() => JsonNullableFilterSchema).optional(), - recurrence: z.lazy(() => JsonNullableFilterSchema).optional(), - variables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - action: z.union([ z.lazy(() => WorkflowNodeRelationFilterSchema),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), -}).strict()); - -export const CalendarActionOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - calendarId: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - location: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - isAllDay: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - attendees: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - organizer: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - reminders: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - recurrence: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => CalendarActionCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => CalendarActionMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => CalendarActionMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const CalendarActionScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarActionScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarActionScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarActionScalarWhereWithAggregatesInputSchema),z.lazy(() => CalendarActionScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - actionId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - integrationId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - calendarId: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - location: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - endTime: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isAllDay: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - timezone: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - attendees: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - organizer: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - reminders: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - recurrence: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - variables: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowAnalyticsWhereInputSchema),z.lazy(() => WorkflowAnalyticsWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowAnalyticsWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowAnalyticsWhereInputSchema),z.lazy(() => WorkflowAnalyticsWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - periodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - periodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - granularity: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - averageDuration: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - minDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - maxDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - p95Duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - commonErrors: z.lazy(() => JsonNullableFilterSchema).optional(), - errorRate: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgCpuUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgMemoryUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - periodStart: z.lazy(() => SortOrderSchema).optional(), - periodEnd: z.lazy(() => SortOrderSchema).optional(), - granularity: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - minDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - p95Duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - commonErrors: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorRate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - avgCpuUsage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - avgMemoryUsage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - workflow: z.lazy(() => WorkflowOrderByWithRelationInputSchema).optional() -}).strict(); - -export const WorkflowAnalyticsWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - workflowId_periodStart_granularity: z.lazy(() => WorkflowAnalyticsWorkflowIdPeriodStartGranularityCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - workflowId_periodStart_granularity: z.lazy(() => WorkflowAnalyticsWorkflowIdPeriodStartGranularityCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - workflowId_periodStart_granularity: z.lazy(() => WorkflowAnalyticsWorkflowIdPeriodStartGranularityCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => WorkflowAnalyticsWhereInputSchema),z.lazy(() => WorkflowAnalyticsWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowAnalyticsWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowAnalyticsWhereInputSchema),z.lazy(() => WorkflowAnalyticsWhereInputSchema).array() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - periodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - periodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - granularity: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - averageDuration: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - minDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - maxDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - p95Duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - commonErrors: z.lazy(() => JsonNullableFilterSchema).optional(), - errorRate: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgCpuUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgMemoryUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - workflow: z.union([ z.lazy(() => WorkflowRelationFilterSchema),z.lazy(() => WorkflowWhereInputSchema) ]).optional(), -}).strict()); - -export const WorkflowAnalyticsOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - periodStart: z.lazy(() => SortOrderSchema).optional(), - periodEnd: z.lazy(() => SortOrderSchema).optional(), - granularity: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - minDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxDuration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - p95Duration: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - commonErrors: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorRate: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - avgCpuUsage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - avgMemoryUsage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => WorkflowAnalyticsCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => WorkflowAnalyticsAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => WorkflowAnalyticsMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => WorkflowAnalyticsMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => WorkflowAnalyticsSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const WorkflowAnalyticsScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowAnalyticsScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereWithAggregatesInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - periodStart: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - periodEnd: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - granularity: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - totalExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - averageDuration: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - minDuration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - maxDuration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - p95Duration: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - commonErrors: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - errorRate: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - avgCpuUsage: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - avgMemoryUsage: z.union([ z.lazy(() => FloatNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateShareWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareWhereInputSchema),z.lazy(() => TemplateShareWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareWhereInputSchema),z.lazy(() => TemplateShareWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => EnumTemplateShareModeFilterSchema),z.lazy(() => TemplateShareModeSchema) ]).optional(), - tokenHash: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - expiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - maxUses: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - allowExternal: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateShareStatusFilterSchema),z.lazy(() => TemplateShareStatusSchema) ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastAccessedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - snapshotData: z.lazy(() => JsonFilterSchema).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientListRelationFilterSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogListRelationFilterSchema).optional(), - imports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional() -}).strict(); - -export const TemplateShareOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - shareMode: z.lazy(() => SortOrderSchema).optional(), - tokenHash: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxUses: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - allowExternal: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastAccessedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - revokedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - revokedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - snapshotData: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageOrderByWithRelationInputSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientOrderByRelationAggregateInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogOrderByRelationAggregateInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportOrderByRelationAggregateInputSchema).optional() -}).strict(); - -export const TemplateShareWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - tokenHash: z.string() - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - tokenHash: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - tokenHash: z.string().optional(), - AND: z.union([ z.lazy(() => TemplateShareWhereInputSchema),z.lazy(() => TemplateShareWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareWhereInputSchema),z.lazy(() => TemplateShareWhereInputSchema).array() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => EnumTemplateShareModeFilterSchema),z.lazy(() => TemplateShareModeSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - maxUses: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), - allowExternal: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateShareStatusFilterSchema),z.lazy(() => TemplateShareStatusSchema) ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), - lastAccessedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - snapshotData: z.lazy(() => JsonFilterSchema).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientListRelationFilterSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogListRelationFilterSchema).optional(), - imports: z.lazy(() => TemplateShareImportListRelationFilterSchema).optional() -}).strict()); - -export const TemplateShareOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - shareMode: z.lazy(() => SortOrderSchema).optional(), - tokenHash: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - maxUses: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - allowExternal: z.lazy(() => SortOrderSchema).optional(), - notes: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastAccessedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - revokedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - revokedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - snapshotData: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplateShareCountOrderByAggregateInputSchema).optional(), - _avg: z.lazy(() => TemplateShareAvgOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateShareMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateShareMinOrderByAggregateInputSchema).optional(), - _sum: z.lazy(() => TemplateShareSumOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateShareScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => EnumTemplateShareModeWithAggregatesFilterSchema),z.lazy(() => TemplateShareModeSchema) ]).optional(), - tokenHash: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - expiresAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - maxUses: z.union([ z.lazy(() => IntNullableWithAggregatesFilterSchema),z.number() ]).optional().nullable(), - allowExternal: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateShareStatusWithAggregatesFilterSchema),z.lazy(() => TemplateShareStatusSchema) ]).optional(), - usageCount: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(), - lastAccessedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - snapshotData: z.lazy(() => JsonWithAggregatesFilterSchema).optional(), - snapshotVersion: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateShareRecipientWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareRecipientWhereInputSchema),z.lazy(() => TemplateShareRecipientWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareRecipientWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareRecipientWhereInputSchema),z.lazy(() => TemplateShareRecipientWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareRecipientStatusFilterSchema),z.lazy(() => TemplateShareRecipientStatusSchema) ]).optional(), - invitedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - importedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareRecipientOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - invitedAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - importedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - share: z.lazy(() => TemplateShareOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - shareId_email: z.lazy(() => TemplateShareRecipientShareIdEmailCompoundUniqueInputSchema) - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - shareId_email: z.lazy(() => TemplateShareRecipientShareIdEmailCompoundUniqueInputSchema), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - shareId_email: z.lazy(() => TemplateShareRecipientShareIdEmailCompoundUniqueInputSchema).optional(), - AND: z.union([ z.lazy(() => TemplateShareRecipientWhereInputSchema),z.lazy(() => TemplateShareRecipientWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareRecipientWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareRecipientWhereInputSchema),z.lazy(() => TemplateShareRecipientWhereInputSchema).array() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareRecipientStatusFilterSchema),z.lazy(() => TemplateShareRecipientStatusSchema) ]).optional(), - invitedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - importedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), -}).strict()); - -export const TemplateShareRecipientOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - invitedAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - importedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - _count: z.lazy(() => TemplateShareRecipientCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateShareRecipientMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateShareRecipientMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareRecipientScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareRecipientStatusWithAggregatesFilterSchema),z.lazy(() => TemplateShareRecipientStatusSchema) ]).optional(), - invitedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - importedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const TemplateShareAccessLogWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareAccessLogWhereInputSchema),z.lazy(() => TemplateShareAccessLogWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareAccessLogWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareAccessLogWhereInputSchema),z.lazy(() => TemplateShareAccessLogWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => EnumTemplateShareAccessActionFilterSchema),z.lazy(() => TemplateShareAccessActionSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareAccessStatusFilterSchema),z.lazy(() => TemplateShareAccessStatusSchema) ]).optional(), - recipientEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorMessage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - recipientEmail: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userAgent: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ipAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorMessage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - metadata: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - share: z.lazy(() => TemplateShareOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TemplateShareAccessLogWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TemplateShareAccessLogWhereInputSchema),z.lazy(() => TemplateShareAccessLogWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareAccessLogWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareAccessLogWhereInputSchema),z.lazy(() => TemplateShareAccessLogWhereInputSchema).array() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => EnumTemplateShareAccessActionFilterSchema),z.lazy(() => TemplateShareAccessActionSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareAccessStatusFilterSchema),z.lazy(() => TemplateShareAccessStatusSchema) ]).optional(), - recipientEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorMessage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), -}).strict()); - -export const TemplateShareAccessLogOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - recipientEmail: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - userAgent: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - ipAddress: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - errorMessage: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - metadata: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplateShareAccessLogCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateShareAccessLogMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateShareAccessLogMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateShareAccessLogScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareAccessLogScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => EnumTemplateShareAccessActionWithAggregatesFilterSchema),z.lazy(() => TemplateShareAccessActionSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareAccessStatusWithAggregatesFilterSchema),z.lazy(() => TemplateShareAccessStatusSchema) ]).optional(), - recipientEmail: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - ipAddress: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - errorMessage: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - metadata: z.lazy(() => JsonNullableWithAggregatesFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateShareImportWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareImportWhereInputSchema),z.lazy(() => TemplateShareImportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareImportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareImportWhereInputSchema),z.lazy(() => TemplateShareImportWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - originalPackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - originalOrgId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - importedById: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional(), - originalPackageId: z.lazy(() => SortOrderSchema).optional(), - originalOrgId: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - share: z.lazy(() => TemplateShareOrderByWithRelationInputSchema).optional(), - organization: z.lazy(() => OrganizationOrderByWithRelationInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageOrderByWithRelationInputSchema).optional() -}).strict(); - -export const TemplateShareImportWhereUniqueInputSchema: z.ZodType = z.object({ - id: z.string().cuid() -}) -.and(z.object({ - id: z.string().cuid().optional(), - AND: z.union([ z.lazy(() => TemplateShareImportWhereInputSchema),z.lazy(() => TemplateShareImportWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareImportWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareImportWhereInputSchema),z.lazy(() => TemplateShareImportWhereInputSchema).array() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - originalPackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - originalOrgId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - share: z.union([ z.lazy(() => TemplateShareRelationFilterSchema),z.lazy(() => TemplateShareWhereInputSchema) ]).optional(), - organization: z.union([ z.lazy(() => OrganizationRelationFilterSchema),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - templatePackage: z.union([ z.lazy(() => TemplatePackageRelationFilterSchema),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), -}).strict()); - -export const TemplateShareImportOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - importedById: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional(), - originalPackageId: z.lazy(() => SortOrderSchema).optional(), - originalOrgId: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => TemplateShareImportCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => TemplateShareImportMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => TemplateShareImportMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const TemplateShareImportScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareImportScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareImportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareImportScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareImportScalarWhereWithAggregatesInputSchema),z.lazy(() => TemplateShareImportScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - importedById: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - importedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - originalPackageId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - originalOrgId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - snapshotVersion: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), -}).strict(); - -export const EarlyAccessCodeWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EarlyAccessCodeWhereInputSchema),z.lazy(() => EarlyAccessCodeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EarlyAccessCodeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EarlyAccessCodeWhereInputSchema),z.lazy(() => EarlyAccessCodeWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - code: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isUsed: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - usedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - usedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EarlyAccessCodeOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - code: z.lazy(() => SortOrderSchema).optional(), - isUsed: z.lazy(() => SortOrderSchema).optional(), - usedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - usedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EarlyAccessCodeWhereUniqueInputSchema: z.ZodType = z.union([ - z.object({ - id: z.string().cuid(), - email: z.string(), - code: z.string() - }), - z.object({ - id: z.string().cuid(), - email: z.string(), - }), - z.object({ - id: z.string().cuid(), - code: z.string(), - }), - z.object({ - id: z.string().cuid(), - }), - z.object({ - email: z.string(), - code: z.string(), - }), - z.object({ - email: z.string(), - }), - z.object({ - code: z.string(), - }), -]) -.and(z.object({ - id: z.string().cuid().optional(), - email: z.string().optional(), - code: z.string().optional(), - AND: z.union([ z.lazy(() => EarlyAccessCodeWhereInputSchema),z.lazy(() => EarlyAccessCodeWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EarlyAccessCodeWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EarlyAccessCodeWhereInputSchema),z.lazy(() => EarlyAccessCodeWhereInputSchema).array() ]).optional(), - isUsed: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - usedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - usedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict()); - -export const EarlyAccessCodeOrderByWithAggregationInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - code: z.lazy(() => SortOrderSchema).optional(), - isUsed: z.lazy(() => SortOrderSchema).optional(), - usedById: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - usedAt: z.union([ z.lazy(() => SortOrderSchema),z.lazy(() => SortOrderInputSchema) ]).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - _count: z.lazy(() => EarlyAccessCodeCountOrderByAggregateInputSchema).optional(), - _max: z.lazy(() => EarlyAccessCodeMaxOrderByAggregateInputSchema).optional(), - _min: z.lazy(() => EarlyAccessCodeMinOrderByAggregateInputSchema).optional() -}).strict(); - -export const EarlyAccessCodeScalarWhereWithAggregatesInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EarlyAccessCodeScalarWhereWithAggregatesInputSchema),z.lazy(() => EarlyAccessCodeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - OR: z.lazy(() => EarlyAccessCodeScalarWhereWithAggregatesInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EarlyAccessCodeScalarWhereWithAggregatesInputSchema),z.lazy(() => EarlyAccessCodeScalarWhereWithAggregatesInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - code: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(), - isUsed: z.union([ z.lazy(() => BoolWithAggregatesFilterSchema),z.boolean() ]).optional(), - usedById: z.union([ z.lazy(() => StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(), - usedAt: z.union([ z.lazy(() => DateTimeNullableWithAggregatesFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeWithAggregatesFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PermissionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - rolePermissions: z.lazy(() => RolePermissionCreateNestedManyWithoutPermissionInputSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - rolePermissions: z.lazy(() => RolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - rolePermissions: z.lazy(() => RolePermissionUpdateManyWithoutPermissionNestedInputSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const PermissionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - rolePermissions: z.lazy(() => RolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const PermissionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PermissionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PermissionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - createdAt: z.coerce.date().optional(), - permission: z.lazy(() => PermissionCreateNestedOneWithoutRolePermissionsInputSchema) -}).strict(); - -export const RolePermissionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const RolePermissionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permission: z.lazy(() => PermissionUpdateOneRequiredWithoutRolePermissionsNestedInputSchema).optional() -}).strict(); - -export const RolePermissionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const RolePermissionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRoleCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomRolesInputSchema), - permissions: z.lazy(() => CustomRolePermissionCreateNestedManyWithoutCustomRoleInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomRolesNestedInputSchema).optional(), - permissions: z.lazy(() => CustomRolePermissionUpdateManyWithoutCustomRoleNestedInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomRoleUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRoleUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - customRole: z.lazy(() => CustomRoleCreateNestedOneWithoutPermissionsInputSchema), - permission: z.lazy(() => PermissionCreateNestedOneWithoutCustomRolePermissionsInputSchema) -}).strict(); - -export const CustomRolePermissionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customRoleId: z.string(), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customRole: z.lazy(() => CustomRoleUpdateOneRequiredWithoutPermissionsNestedInputSchema).optional(), - permission: z.lazy(() => PermissionUpdateOneRequiredWithoutCustomRolePermissionsNestedInputSchema).optional() -}).strict(); - -export const CustomRolePermissionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customRoleId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customRoleId: z.string(), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customRoleId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const OrganizationUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportSessionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportSessionsInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportSessionsInputSchema), - rows: z.lazy(() => ImportRowCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutSessionInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateCreateNestedOneWithoutSessionsInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema).optional(), - rows: z.lazy(() => ImportRowUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutSessionNestedInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateUpdateOneWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportSessionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable() -}).strict(); - -export const ImportSessionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportSessionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportTemplateCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportTemplatesInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportTemplatesInputSchema), - sessions: z.lazy(() => ImportSessionCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - sessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportTemplatesNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportTemplatesNestedInputSchema).optional(), - sessions: z.lazy(() => ImportSessionUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportTemplateUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportTemplateUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - session: z.lazy(() => ImportSessionCreateNestedOneWithoutRowsInputSchema), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutRowInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutRowInputSchema).optional() -}).strict(); - -export const ImportRowUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - session: z.lazy(() => ImportSessionUpdateOneRequiredWithoutRowsNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutRowNestedInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutRowNestedInputSchema).optional() -}).strict(); - -export const ImportRowCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - session: z.lazy(() => ImportSessionCreateNestedOneWithoutIssuesInputSchema), - row: z.lazy(() => ImportRowCreateNestedOneWithoutIssuesInputSchema) -}).strict(); - -export const ImportRowIssueUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - rowId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - session: z.lazy(() => ImportSessionUpdateOneRequiredWithoutIssuesNestedInputSchema).optional(), - row: z.lazy(() => ImportRowUpdateOneRequiredWithoutIssuesNestedInputSchema).optional() -}).strict(); - -export const ImportRowIssueUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - rowId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationCreateInputSchema: z.ZodType = z.object({ - userId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - joinedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutUsersInputSchema), - customRole: z.lazy(() => CustomRoleCreateNestedOneWithoutUserAssignmentsInputSchema).optional() -}).strict(); - -export const UserOrganizationUncheckedCreateInputSchema: z.ZodType = z.object({ - userId: z.string(), - organizationId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - customRoleId: z.string().optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationUpdateInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutUsersNestedInputSchema).optional(), - customRole: z.lazy(() => CustomRoleUpdateOneWithoutUserAssignmentsNestedInputSchema).optional() -}).strict(); - -export const UserOrganizationUncheckedUpdateInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customRoleId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationCreateManyInputSchema: z.ZodType = z.object({ - userId: z.string(), - organizationId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - customRoleId: z.string().optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationUpdateManyMutationInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customRoleId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomersInputSchema), - interactions: z.lazy(() => CustomerInteractionCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomersNestedInputSchema).optional(), - interactions: z.lazy(() => CustomerInteractionUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomerUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerInteractionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInteractionsInputSchema), - tasks: z.lazy(() => TaskCreateNestedManyWithoutCustomerInteractionInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutCustomerInteractionInputSchema).optional() -}).strict(); - -export const CustomerInteractionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInteractionsNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutCustomerInteractionNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutCustomerInteractionNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomerInteractionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerInteractionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customer: z.lazy(() => CustomerCreateNestedOneWithoutDealsInputSchema) -}).strict(); - -export const DealUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const DealUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutDealsNestedInputSchema).optional() -}).strict(); - -export const DealUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const DealUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutProjectsInputSchema), - tasks: z.lazy(() => TaskCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable() -}).strict(); - -export const TaskUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ProjectResourceCreateInputSchema: z.ZodType = z.object({ - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutResourcesInputSchema) -}).strict(); - -export const ProjectResourceUncheckedCreateInputSchema: z.ZodType = z.object({ - projectId: z.string(), - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectResourceUpdateInputSchema: z.ZodType = z.object({ - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - project: z.lazy(() => ProjectUpdateOneRequiredWithoutResourcesNestedInputSchema).optional() -}).strict(); - -export const ProjectResourceUncheckedUpdateInputSchema: z.ZodType = z.object({ - projectId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectResourceCreateManyInputSchema: z.ZodType = z.object({ - projectId: z.string(), - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectResourceUpdateManyMutationInputSchema: z.ZodType = z.object({ - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectResourceUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - projectId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutTimeEntriesInputSchema).optional(), - task: z.lazy(() => TaskCreateNestedOneWithoutTimeEntriesInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - taskId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeEntryUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTimeEntriesNestedInputSchema).optional(), - task: z.lazy(() => TaskUpdateOneWithoutTimeEntriesNestedInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - taskId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeEntryUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutInvoicesInputSchema), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInvoicesInputSchema), - items: z.lazy(() => InvoiceItemCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - items: z.lazy(() => InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - items: z.lazy(() => InvoiceItemUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - invoice: z.lazy(() => InvoiceCreateNestedOneWithoutItemsInputSchema) -}).strict(); - -export const InvoiceItemUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - invoiceId: z.string(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceItemUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - invoice: z.lazy(() => InvoiceUpdateOneRequiredWithoutItemsNestedInputSchema).optional() -}).strict(); - -export const InvoiceItemUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - invoiceId: z.string(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceItemUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - invoice: z.lazy(() => InvoiceCreateNestedOneWithoutPaymentsInputSchema) -}).strict(); - -export const PaymentUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - invoiceId: z.string(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PaymentUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - invoice: z.lazy(() => InvoiceUpdateOneRequiredWithoutPaymentsNestedInputSchema).optional() -}).strict(); - -export const PaymentUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - invoiceId: z.string(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PaymentUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpensesInputSchema), - category: z.lazy(() => ExpenseCategoryCreateNestedOneWithoutExpensesInputSchema).optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutExpensesInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tags: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpensesNestedInputSchema).optional(), - category: z.lazy(() => ExpenseCategoryUpdateOneWithoutExpensesNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutExpensesNestedInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tags: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCategoryCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpenseCategoriesInputSchema), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutCategoryInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutCategoryInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpenseCategoriesNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutCategoryNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutCategoryNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCategoryUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCategoryUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseTagCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpenseTagsInputSchema), - expenses: z.lazy(() => ExpenseToTagCreateNestedManyWithoutTagInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutTagInputSchema).optional() -}).strict(); - -export const ExpenseTagUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpenseTagsNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseToTagUpdateManyWithoutTagNestedInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutTagNestedInputSchema).optional() -}).strict(); - -export const ExpenseTagCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseTagUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseTagUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagCreateInputSchema: z.ZodType = z.object({ - expense: z.lazy(() => ExpenseCreateNestedOneWithoutTagsInputSchema), - tag: z.lazy(() => ExpenseTagCreateNestedOneWithoutExpensesInputSchema) -}).strict(); - -export const ExpenseToTagUncheckedCreateInputSchema: z.ZodType = z.object({ - expenseId: z.string(), - tagId: z.string() -}).strict(); - -export const ExpenseToTagUpdateInputSchema: z.ZodType = z.object({ - expense: z.lazy(() => ExpenseUpdateOneRequiredWithoutTagsNestedInputSchema).optional(), - tag: z.lazy(() => ExpenseTagUpdateOneRequiredWithoutExpensesNestedInputSchema).optional() -}).strict(); - -export const ExpenseToTagUncheckedUpdateInputSchema: z.ZodType = z.object({ - expenseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - tagId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagCreateManyInputSchema: z.ZodType = z.object({ - expenseId: z.string(), - tagId: z.string() -}).strict(); - -export const ExpenseToTagUpdateManyMutationInputSchema: z.ZodType = z.object({ -}).strict(); - -export const ExpenseToTagUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - expenseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - tagId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - task: z.lazy(() => TaskCreateNestedOneWithoutCommentsInputSchema) -}).strict(); - -export const CommentUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CommentUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - task: z.lazy(() => TaskUpdateOneRequiredWithoutCommentsNestedInputSchema).optional() -}).strict(); - -export const CommentUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CommentUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - task: z.lazy(() => TaskCreateNestedOneWithoutAttachmentsInputSchema) -}).strict(); - -export const AttachmentUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const AttachmentUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - task: z.lazy(() => TaskUpdateOneRequiredWithoutAttachmentsNestedInputSchema).optional() -}).strict(); - -export const AttachmentUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const AttachmentUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date(), - allDay: z.boolean().optional(), - location: z.string().optional().nullable(), - organizerId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - attendees: z.lazy(() => CalendarEventAttendeeCreateNestedManyWithoutEventInputSchema).optional() -}).strict(); - -export const CalendarEventUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date(), - allDay: z.boolean().optional(), - location: z.string().optional().nullable(), - organizerId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - attendees: z.lazy(() => CalendarEventAttendeeUncheckedCreateNestedManyWithoutEventInputSchema).optional() -}).strict(); - -export const CalendarEventUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.lazy(() => CalendarEventAttendeeUpdateManyWithoutEventNestedInputSchema).optional() -}).strict(); - -export const CalendarEventUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.lazy(() => CalendarEventAttendeeUncheckedUpdateManyWithoutEventNestedInputSchema).optional() -}).strict(); - -export const CalendarEventCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date(), - allDay: z.boolean().optional(), - location: z.string().optional().nullable(), - organizerId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeCreateInputSchema: z.ZodType = z.object({ - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - event: z.lazy(() => CalendarEventCreateNestedOneWithoutAttendeesInputSchema) -}).strict(); - -export const CalendarEventAttendeeUncheckedCreateInputSchema: z.ZodType = z.object({ - eventId: z.string(), - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventAttendeeUpdateInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - event: z.lazy(() => CalendarEventUpdateOneRequiredWithoutAttendeesNestedInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeUncheckedUpdateInputSchema: z.ZodType = z.object({ - eventId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeCreateManyInputSchema: z.ZodType = z.object({ - eventId: z.string(), - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventAttendeeUpdateManyMutationInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - eventId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NotificationCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - title: z.string(), - content: z.string(), - type: z.lazy(() => NotificationTypeSchema), - read: z.boolean().optional(), - actionUrl: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NotificationUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - title: z.string(), - content: z.string(), - type: z.lazy(() => NotificationTypeSchema), - read: z.boolean().optional(), - actionUrl: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NotificationUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => EnumNotificationTypeFieldUpdateOperationsInputSchema) ]).optional(), - read: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - actionUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NotificationUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => EnumNotificationTypeFieldUpdateOperationsInputSchema) ]).optional(), - read: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - actionUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NotificationCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - title: z.string(), - content: z.string(), - type: z.lazy(() => NotificationTypeSchema), - read: z.boolean().optional(), - actionUrl: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NotificationUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => EnumNotificationTypeFieldUpdateOperationsInputSchema) ]).optional(), - read: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - actionUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NotificationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => EnumNotificationTypeFieldUpdateOperationsInputSchema) ]).optional(), - read: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - actionUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutInvitationsInputSchema) -}).strict(); - -export const InvitationUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvitationUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutInvitationsNestedInputSchema).optional() -}).strict(); - -export const InvitationUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvitationUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmployeeCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutEmployeesInputSchema), - payrolls: z.lazy(() => PayrollCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payrolls: z.lazy(() => PayrollUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutEmployeesNestedInputSchema).optional(), - payrolls: z.lazy(() => PayrollUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmployeeUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmployeeUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - employee: z.lazy(() => EmployeeCreateNestedOneWithoutPayrollsInputSchema) -}).strict(); - -export const PayrollUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PayrollUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - employee: z.lazy(() => EmployeeUpdateOneRequiredWithoutPayrollsNestedInputSchema).optional() -}).strict(); - -export const PayrollUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PayrollUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - employee: z.lazy(() => EmployeeCreateNestedOneWithoutTimeOffInputSchema) -}).strict(); - -export const TimeOffUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeOffUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - employee: z.lazy(() => EmployeeUpdateOneRequiredWithoutTimeOffNestedInputSchema).optional() -}).strict(); - -export const TimeOffUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeOffUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - employee: z.lazy(() => EmployeeCreateNestedOneWithoutPerformanceReviewsInputSchema) -}).strict(); - -export const PerformanceReviewUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PerformanceReviewUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - employee: z.lazy(() => EmployeeUpdateOneRequiredWithoutPerformanceReviewsNestedInputSchema).optional() -}).strict(); - -export const PerformanceReviewUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - employeeId: z.string(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PerformanceReviewUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - employeeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MarketingCampaignCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCampaignsInputSchema), - emailCampaigns: z.lazy(() => EmailCampaignCreateNestedManyWithoutCampaignInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedCreateNestedManyWithoutCampaignInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCampaignsNestedInputSchema).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUpdateManyWithoutCampaignNestedInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const MarketingCampaignUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MarketingCampaignUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - campaign: z.lazy(() => MarketingCampaignCreateNestedOneWithoutEmailCampaignsInputSchema) -}).strict(); - -export const EmailCampaignUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - campaignId: z.string(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailCampaignUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - campaign: z.lazy(() => MarketingCampaignUpdateOneRequiredWithoutEmailCampaignsNestedInputSchema).optional() -}).strict(); - -export const EmailCampaignUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - campaignId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - campaignId: z.string(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailCampaignUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - campaignId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - campaign: z.lazy(() => MarketingCampaignCreateNestedOneWithoutSocialPostsInputSchema) -}).strict(); - -export const SocialMediaPostUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - campaignId: z.string(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SocialMediaPostUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - campaign: z.lazy(() => MarketingCampaignUpdateOneRequiredWithoutSocialPostsNestedInputSchema).optional() -}).strict(); - -export const SocialMediaPostUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - campaignId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - campaignId: z.string(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SocialMediaPostUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - campaignId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserCreateManyInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const UserUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - user: z.lazy(() => UserCreateNestedOneWithoutSessionsInputSchema) -}).strict(); - -export const SessionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - userId: z.string() -}).strict(); - -export const SessionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - user: z.lazy(() => UserUpdateOneRequiredWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const SessionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - userId: z.string() -}).strict(); - -export const SessionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const SessionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - user: z.lazy(() => UserCreateNestedOneWithoutAccountsInputSchema) -}).strict(); - -export const AccountUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - userId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const AccountUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - user: z.lazy(() => UserUpdateOneRequiredWithoutAccountsNestedInputSchema).optional() -}).strict(); - -export const AccountUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountCreateManyInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - userId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const AccountUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VerificationCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - identifier: z.string(), - value: z.string(), - expiresAt: z.coerce.date(), - createdAt: z.coerce.date().optional().nullable(), - updatedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const VerificationUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string(), - identifier: z.string(), - value: z.string(), - expiresAt: z.coerce.date(), - createdAt: z.coerce.date().optional().nullable(), - updatedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const VerificationUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const VerificationUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const VerificationCreateManyInputSchema: z.ZodType = z.object({ - id: z.string(), - identifier: z.string(), - value: z.string(), - expiresAt: z.coerce.date(), - createdAt: z.coerce.date().optional().nullable(), - updatedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const VerificationUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const VerificationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - identifier: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const FinancialReportCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutFinancialReportsInputSchema), - reportData: z.lazy(() => FinancialReportDataCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutFinancialReportsNestedInputSchema).optional(), - reportData: z.lazy(() => FinancialReportDataUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - report: z.lazy(() => FinancialReportCreateNestedOneWithoutReportDataInputSchema) -}).strict(); - -export const FinancialReportDataUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportDataUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - report: z.lazy(() => FinancialReportUpdateOneRequiredWithoutReportDataNestedInputSchema).optional() -}).strict(); - -export const FinancialReportDataUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportDataUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - report: z.lazy(() => FinancialReportCreateNestedOneWithoutExportsInputSchema) -}).strict(); - -export const FinancialReportExportUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportExportUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - report: z.lazy(() => FinancialReportUpdateOneRequiredWithoutExportsNestedInputSchema).optional() -}).strict(); - -export const FinancialReportExportUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportExportUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - report: z.lazy(() => FinancialReportCreateNestedOneWithoutSchedulesInputSchema) -}).strict(); - -export const FinancialReportScheduleUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportScheduleUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - report: z.lazy(() => FinancialReportUpdateOneRequiredWithoutSchedulesNestedInputSchema).optional() -}).strict(); - -export const FinancialReportScheduleUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reportId: z.string(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportScheduleUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema).optional(), - versions: z.lazy(() => TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema).optional(), - versions: z.lazy(() => TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplatePackageUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateVersionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutVersionsInputSchema), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplateVersionInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplateVersionInputSchema).optional() -}).strict(); - -export const TemplateVersionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutVersionsNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplateVersionNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplateVersionNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateVersionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateVersionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateInstallationsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutInstallationsInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionCreateNestedOneWithoutInstallationsInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string().optional().nullable(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateInstallationsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneWithoutInstallationsNestedInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionUpdateOneWithoutInstallationsNestedInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string().optional().nullable(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateInstallationUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateInstallItemCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - installation: z.lazy(() => TemplateInstallationCreateNestedOneWithoutItemsInputSchema) -}).strict(); - -export const TemplateInstallItemUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - installationId: z.string(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallItemUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - installation: z.lazy(() => TemplateInstallationUpdateOneRequiredWithoutItemsNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallItemUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - installationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - installationId: z.string(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallItemUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - installationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutUiConfigsInputSchema) -}).strict(); - -export const OrganizationUiConfigUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const OrganizationUiConfigUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutUiConfigsNestedInputSchema).optional() -}).strict(); - -export const OrganizationUiConfigUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const OrganizationUiConfigUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutTriggersInputSchema), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableCreateNestedManyWithoutTriggerInputSchema).optional(), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutTriggersNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUpdateManyWithoutTriggerNestedInputSchema).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowTriggerUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowNodeUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutConnectionsInputSchema), - sourceNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutSourceConnectionsInputSchema), - targetNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTargetConnectionsInputSchema) -}).strict(); - -export const WorkflowConnectionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - sourceNodeId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutConnectionsNestedInputSchema).optional(), - sourceNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutSourceConnectionsNestedInputSchema).optional(), - targetNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutTargetConnectionsNestedInputSchema).optional() -}).strict(); - -export const WorkflowConnectionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - sourceNodeId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional(), - dependentNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutDependenciesInputSchema), - prerequisiteNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutDependentsInputSchema) -}).strict(); - -export const NodeDependencyUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependentNodeId: z.string(), - prerequisiteNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dependentNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutDependenciesNestedInputSchema).optional(), - prerequisiteNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutDependentsNestedInputSchema).optional() -}).strict(); - -export const NodeDependencyUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependentNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - prerequisiteNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependentNodeId: z.string(), - prerequisiteNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependentNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - prerequisiteNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutActionTemplatesInputSchema).optional(), - versions: z.lazy(() => ActionTemplateVersionCreateNestedManyWithoutActionTemplateInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => ActionTemplateVersionUncheckedCreateNestedManyWithoutActionTemplateInputSchema).optional() -}).strict(); - -export const ActionTemplateUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutActionTemplatesNestedInputSchema).optional(), - versions: z.lazy(() => ActionTemplateVersionUpdateManyWithoutActionTemplateNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => ActionTemplateVersionUncheckedUpdateManyWithoutActionTemplateNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - actionTemplate: z.lazy(() => ActionTemplateCreateNestedOneWithoutVersionsInputSchema) -}).strict(); - -export const ActionTemplateVersionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templateId: z.string(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateVersionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - actionTemplate: z.lazy(() => ActionTemplateUpdateOneRequiredWithoutVersionsNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templateId: z.string(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateVersionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VariableDefinitionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutVariableDefinitionsInputSchema).optional(), - triggerVars: z.lazy(() => TriggerVariableCreateNestedManyWithoutVariableInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutVariableInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutVariableDefinitionsNestedInputSchema).optional(), - triggerVars: z.lazy(() => TriggerVariableUpdateManyWithoutVariableNestedInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutVariableNestedInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const VariableDefinitionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VariableDefinitionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutVariablesInputSchema), - variable: z.lazy(() => VariableDefinitionCreateNestedOneWithoutTriggerVarsInputSchema) -}).strict(); - -export const TriggerVariableUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string(), - variableId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneRequiredWithoutVariablesNestedInputSchema).optional(), - variable: z.lazy(() => VariableDefinitionUpdateOneRequiredWithoutTriggerVarsNestedInputSchema).optional() -}).strict(); - -export const TriggerVariableUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string(), - variableId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutExecutionsInputSchema), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowExecutionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflowExecution: z.lazy(() => WorkflowExecutionCreateNestedOneWithoutNodeExecutionsInputSchema), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutExecutionsInputSchema) -}).strict(); - -export const NodeExecutionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - nodeId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionUpdateOneRequiredWithoutNodeExecutionsNestedInputSchema).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional() -}).strict(); - -export const NodeExecutionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - nodeId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflowExecution: z.lazy(() => WorkflowExecutionCreateNestedOneWithoutVariablesInputSchema), - variableDefinition: z.lazy(() => VariableDefinitionCreateNestedOneWithoutExecutionVarsInputSchema).optional() -}).strict(); - -export const ExecutionVariableUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - variableDefinitionId: z.string().optional().nullable(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionUpdateOneRequiredWithoutVariablesNestedInputSchema).optional(), - variableDefinition: z.lazy(() => VariableDefinitionUpdateOneWithoutExecutionVarsNestedInputSchema).optional() -}).strict(); - -export const ExecutionVariableUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableDefinitionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - variableDefinitionId: z.string().optional().nullable(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableDefinitionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - workflowExecution: z.lazy(() => WorkflowExecutionCreateNestedOneWithoutLogsInputSchema) -}).strict(); - -export const ExecutionLogUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionLogUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionUpdateOneRequiredWithoutLogsNestedInputSchema).optional() -}).strict(); - -export const ExecutionLogUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionLogUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutIntegrationConfigsInputSchema) -}).strict(); - -export const IntegrationConfigUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const IntegrationConfigUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutIntegrationConfigsNestedInputSchema).optional() -}).strict(); - -export const IntegrationConfigUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const IntegrationConfigUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailActionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromName: z.string().optional().nullable(), - fromEmail: z.string().optional().nullable(), - replyTo: z.string().optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.string(), - htmlBody: z.string().optional().nullable(), - textBody: z.string().optional().nullable(), - templateId: z.string().optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - action: z.lazy(() => WorkflowNodeCreateNestedOneWithoutEmailActionInputSchema) -}).strict(); - -export const EmailActionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - fromName: z.string().optional().nullable(), - fromEmail: z.string().optional().nullable(), - replyTo: z.string().optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.string(), - htmlBody: z.string().optional().nullable(), - textBody: z.string().optional().nullable(), - templateId: z.string().optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailActionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - action: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutEmailActionNestedInputSchema).optional() -}).strict(); - -export const EmailActionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailActionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - fromName: z.string().optional().nullable(), - fromEmail: z.string().optional().nullable(), - replyTo: z.string().optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.string(), - htmlBody: z.string().optional().nullable(), - textBody: z.string().optional().nullable(), - templateId: z.string().optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailActionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailActionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SmsActionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromNumber: z.string().optional().nullable(), - message: z.string(), - templateId: z.string().optional().nullable(), - maxLength: z.number().int().optional().nullable(), - unicode: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - action: z.lazy(() => WorkflowNodeCreateNestedOneWithoutSmsActionInputSchema) -}).strict(); - -export const SmsActionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - fromNumber: z.string().optional().nullable(), - message: z.string(), - templateId: z.string().optional().nullable(), - maxLength: z.number().int().optional().nullable(), - unicode: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SmsActionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - action: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutSmsActionNestedInputSchema).optional() -}).strict(); - -export const SmsActionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SmsActionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - fromNumber: z.string().optional().nullable(), - message: z.string(), - templateId: z.string().optional().nullable(), - maxLength: z.number().int().optional().nullable(), - unicode: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SmsActionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SmsActionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - businessAccountId: z.string().optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - messageType: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - textMessage: z.string().optional().nullable(), - templateName: z.string().optional().nullable(), - templateLanguage: z.string().optional().nullable(), - mediaUrl: z.string().optional().nullable(), - mediaType: z.string().optional().nullable(), - caption: z.string().optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - action: z.lazy(() => WorkflowNodeCreateNestedOneWithoutWhatsAppActionInputSchema) -}).strict(); - -export const WhatsAppActionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - businessAccountId: z.string().optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - messageType: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - textMessage: z.string().optional().nullable(), - templateName: z.string().optional().nullable(), - templateLanguage: z.string().optional().nullable(), - mediaUrl: z.string().optional().nullable(), - mediaType: z.string().optional().nullable(), - caption: z.string().optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WhatsAppActionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - action: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutWhatsAppActionNestedInputSchema).optional() -}).strict(); - -export const WhatsAppActionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - businessAccountId: z.string().optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - messageType: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - textMessage: z.string().optional().nullable(), - templateName: z.string().optional().nullable(), - templateLanguage: z.string().optional().nullable(), - mediaUrl: z.string().optional().nullable(), - mediaType: z.string().optional().nullable(), - caption: z.string().optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WhatsAppActionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SlackActionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - workspaceId: z.string().optional().nullable(), - channel: z.string().optional().nullable(), - userId: z.string().optional().nullable(), - message: z.string(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.boolean().optional(), - username: z.string().optional().nullable(), - iconEmoji: z.string().optional().nullable(), - iconUrl: z.string().optional().nullable(), - threadTs: z.string().optional().nullable(), - replyBroadcast: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - action: z.lazy(() => WorkflowNodeCreateNestedOneWithoutSlackActionInputSchema) -}).strict(); - -export const SlackActionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - workspaceId: z.string().optional().nullable(), - channel: z.string().optional().nullable(), - userId: z.string().optional().nullable(), - message: z.string(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.boolean().optional(), - username: z.string().optional().nullable(), - iconEmoji: z.string().optional().nullable(), - iconUrl: z.string().optional().nullable(), - threadTs: z.string().optional().nullable(), - replyBroadcast: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SlackActionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - action: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutSlackActionNestedInputSchema).optional() -}).strict(); - -export const SlackActionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SlackActionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - workspaceId: z.string().optional().nullable(), - channel: z.string().optional().nullable(), - userId: z.string().optional().nullable(), - message: z.string(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.boolean().optional(), - username: z.string().optional().nullable(), - iconEmoji: z.string().optional().nullable(), - iconUrl: z.string().optional().nullable(), - threadTs: z.string().optional().nullable(), - replyBroadcast: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SlackActionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SlackActionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - calendarId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - location: z.string().optional().nullable(), - startTime: z.string(), - endTime: z.string(), - isAllDay: z.boolean().optional(), - timezone: z.string().optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.string().optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - action: z.lazy(() => WorkflowNodeCreateNestedOneWithoutCalendarActionInputSchema) -}).strict(); - -export const CalendarActionUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - calendarId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - location: z.string().optional().nullable(), - startTime: z.string(), - endTime: z.string(), - isAllDay: z.boolean().optional(), - timezone: z.string().optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.string().optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarActionUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - action: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutCalendarActionNestedInputSchema).optional() -}).strict(); - -export const CalendarActionUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - actionId: z.string(), - integrationId: z.string().optional().nullable(), - calendarId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - location: z.string().optional().nullable(), - startTime: z.string(), - endTime: z.string(), - isAllDay: z.boolean().optional(), - timezone: z.string().optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.string().optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarActionUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - actionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutAnalyticsInputSchema) -}).strict(); - -export const WorkflowAnalyticsUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowAnalyticsUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutAnalyticsNestedInputSchema).optional() -}).strict(); - -export const WorkflowAnalyticsUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowAnalyticsUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutSharesInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateSharesInputSchema), - recipients: z.lazy(() => TemplateShareRecipientCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareRecipientCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable(), - share: z.lazy(() => TemplateShareCreateNestedOneWithoutRecipientsInputSchema) -}).strict(); - -export const TemplateShareRecipientUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareRecipientUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - share: z.lazy(() => TemplateShareUpdateOneRequiredWithoutRecipientsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareRecipientCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareRecipientUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareRecipientUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareAccessLogCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - share: z.lazy(() => TemplateShareCreateNestedOneWithoutAccessLogsInputSchema) -}).strict(); - -export const TemplateShareAccessLogUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareAccessLogUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - share: z.lazy(() => TemplateShareUpdateOneRequiredWithoutAccessLogsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareAccessLogUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareAccessLogUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string(), - share: z.lazy(() => TemplateShareCreateNestedOneWithoutImportsInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateShareImportsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutShareImportsInputSchema) -}).strict(); - -export const TemplateShareImportUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - organizationId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareImportUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - share: z.lazy(() => TemplateShareUpdateOneRequiredWithoutImportsNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateShareImportsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutShareImportsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareImportUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - organizationId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareImportUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EarlyAccessCodeCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - code: z.string(), - isUsed: z.boolean().optional(), - usedById: z.string().optional().nullable(), - usedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EarlyAccessCodeUncheckedCreateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - code: z.string(), - isUsed: z.boolean().optional(), - usedById: z.string().optional().nullable(), - usedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EarlyAccessCodeUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - code: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isUsed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - usedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EarlyAccessCodeUncheckedUpdateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - code: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isUsed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - usedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EarlyAccessCodeCreateManyInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - code: z.string(), - isUsed: z.boolean().optional(), - usedById: z.string().optional().nullable(), - usedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EarlyAccessCodeUpdateManyMutationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - code: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isUsed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - usedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EarlyAccessCodeUncheckedUpdateManyInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - code: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isUsed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - usedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const StringFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(), -}).strict(); - -export const StringNullableFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const DateTimeFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(), -}).strict(); - -export const RolePermissionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => RolePermissionWhereInputSchema).optional(), - some: z.lazy(() => RolePermissionWhereInputSchema).optional(), - none: z.lazy(() => RolePermissionWhereInputSchema).optional() -}).strict(); - -export const CustomRolePermissionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CustomRolePermissionWhereInputSchema).optional(), - some: z.lazy(() => CustomRolePermissionWhereInputSchema).optional(), - none: z.lazy(() => CustomRolePermissionWhereInputSchema).optional() -}).strict(); - -export const SortOrderInputSchema: z.ZodType = z.object({ - sort: z.lazy(() => SortOrderSchema), - nulls: z.lazy(() => NullsOrderSchema).optional() -}).strict(); - -export const RolePermissionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRolePermissionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PermissionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PermissionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PermissionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const StringWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedStringFilterSchema).optional(), - _max: z.lazy(() => NestedStringFilterSchema).optional() -}).strict(); - -export const StringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - mode: z.lazy(() => QueryModeSchema).optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedStringNullableFilterSchema).optional(), - _max: z.lazy(() => NestedStringNullableFilterSchema).optional() -}).strict(); - -export const DateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeFilterSchema).optional() -}).strict(); - -export const EnumUserRoleFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional(), - in: z.lazy(() => UserRoleSchema).array().optional(), - notIn: z.lazy(() => UserRoleSchema).array().optional(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleFilterSchema) ]).optional(), -}).strict(); - -export const PermissionRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => PermissionWhereInputSchema).optional(), - isNot: z.lazy(() => PermissionWhereInputSchema).optional() -}).strict(); - -export const RolePermissionRolePermissionIdCompoundUniqueInputSchema: z.ZodType = z.object({ - role: z.lazy(() => UserRoleSchema), - permissionId: z.string() -}).strict(); - -export const RolePermissionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const RolePermissionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const RolePermissionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumUserRoleWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional(), - in: z.lazy(() => UserRoleSchema).array().optional(), - notIn: z.lazy(() => UserRoleSchema).array().optional(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumUserRoleFilterSchema).optional(), - _max: z.lazy(() => NestedEnumUserRoleFilterSchema).optional() -}).strict(); - -export const BoolFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(), -}).strict(); - -export const OrganizationRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => OrganizationWhereInputSchema).optional(), - isNot: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const UserOrganizationListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => UserOrganizationWhereInputSchema).optional(), - some: z.lazy(() => UserOrganizationWhereInputSchema).optional(), - none: z.lazy(() => UserOrganizationWhereInputSchema).optional() -}).strict(); - -export const UserOrganizationOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRoleOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const CustomRoleCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRoleMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRoleMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const BoolWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedBoolFilterSchema).optional(), - _max: z.lazy(() => NestedBoolFilterSchema).optional() -}).strict(); - -export const CustomRoleRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CustomRoleWhereInputSchema).optional(), - isNot: z.lazy(() => CustomRoleWhereInputSchema).optional() -}).strict(); - -export const CustomRolePermissionCustomRoleIdPermissionIdCompoundUniqueInputSchema: z.ZodType = z.object({ - customRoleId: z.string(), - permissionId: z.string() -}).strict(); - -export const CustomRolePermissionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRolePermissionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRolePermissionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - permissionId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CustomerWhereInputSchema).optional(), - some: z.lazy(() => CustomerWhereInputSchema).optional(), - none: z.lazy(() => CustomerWhereInputSchema).optional() -}).strict(); - -export const ProjectListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ProjectWhereInputSchema).optional(), - some: z.lazy(() => ProjectWhereInputSchema).optional(), - none: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const TaskListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TaskWhereInputSchema).optional(), - some: z.lazy(() => TaskWhereInputSchema).optional(), - none: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const InvoiceListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => InvoiceWhereInputSchema).optional(), - some: z.lazy(() => InvoiceWhereInputSchema).optional(), - none: z.lazy(() => InvoiceWhereInputSchema).optional() -}).strict(); - -export const ExpenseListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExpenseWhereInputSchema).optional(), - some: z.lazy(() => ExpenseWhereInputSchema).optional(), - none: z.lazy(() => ExpenseWhereInputSchema).optional() -}).strict(); - -export const ExpenseCategoryListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExpenseCategoryWhereInputSchema).optional(), - some: z.lazy(() => ExpenseCategoryWhereInputSchema).optional(), - none: z.lazy(() => ExpenseCategoryWhereInputSchema).optional() -}).strict(); - -export const ExpenseTagListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExpenseTagWhereInputSchema).optional(), - some: z.lazy(() => ExpenseTagWhereInputSchema).optional(), - none: z.lazy(() => ExpenseTagWhereInputSchema).optional() -}).strict(); - -export const EmployeeListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => EmployeeWhereInputSchema).optional(), - some: z.lazy(() => EmployeeWhereInputSchema).optional(), - none: z.lazy(() => EmployeeWhereInputSchema).optional() -}).strict(); - -export const MarketingCampaignListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => MarketingCampaignWhereInputSchema).optional(), - some: z.lazy(() => MarketingCampaignWhereInputSchema).optional(), - none: z.lazy(() => MarketingCampaignWhereInputSchema).optional() -}).strict(); - -export const InvitationListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => InvitationWhereInputSchema).optional(), - some: z.lazy(() => InvitationWhereInputSchema).optional(), - none: z.lazy(() => InvitationWhereInputSchema).optional() -}).strict(); - -export const CustomRoleListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CustomRoleWhereInputSchema).optional(), - some: z.lazy(() => CustomRoleWhereInputSchema).optional(), - none: z.lazy(() => CustomRoleWhereInputSchema).optional() -}).strict(); - -export const FinancialReportListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => FinancialReportWhereInputSchema).optional(), - some: z.lazy(() => FinancialReportWhereInputSchema).optional(), - none: z.lazy(() => FinancialReportWhereInputSchema).optional() -}).strict(); - -export const WorkflowListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowWhereInputSchema).optional(), - some: z.lazy(() => WorkflowWhereInputSchema).optional(), - none: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const ActionTemplateListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ActionTemplateWhereInputSchema).optional(), - some: z.lazy(() => ActionTemplateWhereInputSchema).optional(), - none: z.lazy(() => ActionTemplateWhereInputSchema).optional() -}).strict(); - -export const VariableDefinitionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => VariableDefinitionWhereInputSchema).optional(), - some: z.lazy(() => VariableDefinitionWhereInputSchema).optional(), - none: z.lazy(() => VariableDefinitionWhereInputSchema).optional() -}).strict(); - -export const IntegrationConfigListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => IntegrationConfigWhereInputSchema).optional(), - some: z.lazy(() => IntegrationConfigWhereInputSchema).optional(), - none: z.lazy(() => IntegrationConfigWhereInputSchema).optional() -}).strict(); - -export const TemplatePackageListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - some: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - none: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplateInstallationListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateInstallationWhereInputSchema).optional(), - some: z.lazy(() => TemplateInstallationWhereInputSchema).optional(), - none: z.lazy(() => TemplateInstallationWhereInputSchema).optional() -}).strict(); - -export const TemplateShareListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateShareWhereInputSchema).optional(), - some: z.lazy(() => TemplateShareWhereInputSchema).optional(), - none: z.lazy(() => TemplateShareWhereInputSchema).optional() -}).strict(); - -export const TemplateShareImportListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateShareImportWhereInputSchema).optional(), - some: z.lazy(() => TemplateShareImportWhereInputSchema).optional(), - none: z.lazy(() => TemplateShareImportWhereInputSchema).optional() -}).strict(); - -export const OrganizationUiConfigListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => OrganizationUiConfigWhereInputSchema).optional(), - some: z.lazy(() => OrganizationUiConfigWhereInputSchema).optional(), - none: z.lazy(() => OrganizationUiConfigWhereInputSchema).optional() -}).strict(); - -export const ImportSessionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ImportSessionWhereInputSchema).optional(), - some: z.lazy(() => ImportSessionWhereInputSchema).optional(), - none: z.lazy(() => ImportSessionWhereInputSchema).optional() -}).strict(); - -export const ImportTemplateListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ImportTemplateWhereInputSchema).optional(), - some: z.lazy(() => ImportTemplateWhereInputSchema).optional(), - none: z.lazy(() => ImportTemplateWhereInputSchema).optional() -}).strict(); - -export const CustomerOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseCategoryOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseTagOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmployeeOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvitationOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomRoleOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VariableDefinitionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntegrationConfigOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallationOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareImportOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationUiConfigOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportTemplateOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - logo: z.lazy(() => SortOrderSchema).optional(), - website: z.lazy(() => SortOrderSchema).optional(), - industry: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - logo: z.lazy(() => SortOrderSchema).optional(), - website: z.lazy(() => SortOrderSchema).optional(), - industry: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - logo: z.lazy(() => SortOrderSchema).optional(), - website: z.lazy(() => SortOrderSchema).optional(), - industry: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntFilterSchema) ]).optional(), -}).strict(); - -export const EnumImportModuleFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportModuleSchema).optional(), - in: z.lazy(() => ImportModuleSchema).array().optional(), - notIn: z.lazy(() => ImportModuleSchema).array().optional(), - not: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => NestedEnumImportModuleFilterSchema) ]).optional(), -}).strict(); - -export const EnumImportEntityTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportEntityTypeSchema).optional(), - in: z.lazy(() => ImportEntityTypeSchema).array().optional(), - notIn: z.lazy(() => ImportEntityTypeSchema).array().optional(), - not: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => NestedEnumImportEntityTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumImportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportStatusSchema).optional(), - in: z.lazy(() => ImportStatusSchema).array().optional(), - notIn: z.lazy(() => ImportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => NestedEnumImportStatusFilterSchema) ]).optional(), -}).strict(); - -export const EnumDedupeModeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DedupeModeSchema).optional(), - in: z.lazy(() => DedupeModeSchema).array().optional(), - notIn: z.lazy(() => DedupeModeSchema).array().optional(), - not: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => NestedEnumDedupeModeFilterSchema) ]).optional(), -}).strict(); - -export const JsonNullableFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional() -}).strict(); - -export const IntNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const DateTimeNullableFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const UserRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => UserWhereInputSchema).optional(), - isNot: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const ImportRowListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ImportRowWhereInputSchema).optional(), - some: z.lazy(() => ImportRowWhereInputSchema).optional(), - none: z.lazy(() => ImportRowWhereInputSchema).optional() -}).strict(); - -export const ImportRowIssueListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ImportRowIssueWhereInputSchema).optional(), - some: z.lazy(() => ImportRowIssueWhereInputSchema).optional(), - none: z.lazy(() => ImportRowIssueWhereInputSchema).optional() -}).strict(); - -export const ImportTemplateNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ImportTemplateWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => ImportTemplateWhereInputSchema).optional().nullable() -}).strict(); - -export const ImportRowOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowIssueOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeMode: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.lazy(() => SortOrderSchema).optional(), - summary: z.lazy(() => SortOrderSchema).optional(), - rowCount: z.lazy(() => SortOrderSchema).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - appliedTemplateId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional(), - rowCount: z.lazy(() => SortOrderSchema).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeMode: z.lazy(() => SortOrderSchema).optional(), - rowCount: z.lazy(() => SortOrderSchema).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - appliedTemplateId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeMode: z.lazy(() => SortOrderSchema).optional(), - rowCount: z.lazy(() => SortOrderSchema).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - appliedTemplateId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportSessionSumOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional(), - rowCount: z.lazy(() => SortOrderSchema).optional(), - processedCount: z.lazy(() => SortOrderSchema).optional(), - successCount: z.lazy(() => SortOrderSchema).optional(), - failureCount: z.lazy(() => SortOrderSchema).optional(), - skippedCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedIntFilterSchema).optional(), - _max: z.lazy(() => NestedIntFilterSchema).optional() -}).strict(); - -export const EnumImportModuleWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportModuleSchema).optional(), - in: z.lazy(() => ImportModuleSchema).array().optional(), - notIn: z.lazy(() => ImportModuleSchema).array().optional(), - not: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => NestedEnumImportModuleWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportModuleFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportModuleFilterSchema).optional() -}).strict(); - -export const EnumImportEntityTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportEntityTypeSchema).optional(), - in: z.lazy(() => ImportEntityTypeSchema).array().optional(), - notIn: z.lazy(() => ImportEntityTypeSchema).array().optional(), - not: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => NestedEnumImportEntityTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportEntityTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportEntityTypeFilterSchema).optional() -}).strict(); - -export const EnumImportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportStatusSchema).optional(), - in: z.lazy(() => ImportStatusSchema).array().optional(), - notIn: z.lazy(() => ImportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => NestedEnumImportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportStatusFilterSchema).optional() -}).strict(); - -export const EnumDedupeModeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DedupeModeSchema).optional(), - in: z.lazy(() => DedupeModeSchema).array().optional(), - notIn: z.lazy(() => DedupeModeSchema).array().optional(), - not: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => NestedEnumDedupeModeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumDedupeModeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumDedupeModeFilterSchema).optional() -}).strict(); - -export const JsonNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedJsonNullableFilterSchema).optional(), - _max: z.lazy(() => NestedJsonNullableFilterSchema).optional() -}).strict(); - -export const IntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _max: z.lazy(() => NestedIntNullableFilterSchema).optional() -}).strict(); - -export const DateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional() -}).strict(); - -export const JsonFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional() -}).strict(); - -export const ImportTemplateOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const ImportTemplateCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - mappingConfig: z.lazy(() => SortOrderSchema).optional(), - columnSignature: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportTemplateAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportTemplateMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportTemplateMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - createdByUserId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportTemplateSumOrderByAggregateInputSchema: z.ZodType = z.object({ - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const JsonWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedJsonFilterSchema).optional(), - _max: z.lazy(() => NestedJsonFilterSchema).optional() -}).strict(); - -export const EnumRowStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => RowStatusSchema).optional(), - in: z.lazy(() => RowStatusSchema).array().optional(), - notIn: z.lazy(() => RowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => NestedEnumRowStatusFilterSchema) ]).optional(), -}).strict(); - -export const ImportSessionRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ImportSessionWhereInputSchema).optional(), - isNot: z.lazy(() => ImportSessionWhereInputSchema).optional() -}).strict(); - -export const ImportRowSessionIdRowNumberCompoundUniqueInputSchema: z.ZodType = z.object({ - sessionId: z.string(), - rowNumber: z.number() -}).strict(); - -export const ImportRowCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowNumber: z.lazy(() => SortOrderSchema).optional(), - rawData: z.lazy(() => SortOrderSchema).optional(), - mappedData: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeHint: z.lazy(() => SortOrderSchema).optional(), - score: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - rowNumber: z.lazy(() => SortOrderSchema).optional(), - score: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeHint: z.lazy(() => SortOrderSchema).optional(), - score: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - dedupeHint: z.lazy(() => SortOrderSchema).optional(), - score: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowSumOrderByAggregateInputSchema: z.ZodType = z.object({ - rowNumber: z.lazy(() => SortOrderSchema).optional(), - score: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumRowStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => RowStatusSchema).optional(), - in: z.lazy(() => RowStatusSchema).array().optional(), - notIn: z.lazy(() => RowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => NestedEnumRowStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumRowStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumRowStatusFilterSchema).optional() -}).strict(); - -export const EnumIssueSeverityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IssueSeveritySchema).optional(), - in: z.lazy(() => IssueSeveritySchema).array().optional(), - notIn: z.lazy(() => IssueSeveritySchema).array().optional(), - not: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => NestedEnumIssueSeverityFilterSchema) ]).optional(), -}).strict(); - -export const ImportRowRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ImportRowWhereInputSchema).optional(), - isNot: z.lazy(() => ImportRowWhereInputSchema).optional() -}).strict(); - -export const ImportRowIssueCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowId: z.lazy(() => SortOrderSchema).optional(), - field: z.lazy(() => SortOrderSchema).optional(), - severity: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - hint: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowIssueMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowId: z.lazy(() => SortOrderSchema).optional(), - field: z.lazy(() => SortOrderSchema).optional(), - severity: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - hint: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ImportRowIssueMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - sessionId: z.lazy(() => SortOrderSchema).optional(), - rowId: z.lazy(() => SortOrderSchema).optional(), - field: z.lazy(() => SortOrderSchema).optional(), - severity: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - hint: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumIssueSeverityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IssueSeveritySchema).optional(), - in: z.lazy(() => IssueSeveritySchema).array().optional(), - notIn: z.lazy(() => IssueSeveritySchema).array().optional(), - not: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => NestedEnumIssueSeverityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumIssueSeverityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumIssueSeverityFilterSchema).optional() -}).strict(); - -export const EnumUserRoleNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional().nullable(), - in: z.lazy(() => UserRoleSchema).array().optional().nullable(), - notIn: z.lazy(() => UserRoleSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const CustomRoleNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CustomRoleWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => CustomRoleWhereInputSchema).optional().nullable() -}).strict(); - -export const UserOrganizationUserIdOrganizationIdCompoundUniqueInputSchema: z.ZodType = z.object({ - userId: z.string(), - organizationId: z.string() -}).strict(); - -export const UserOrganizationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - userId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - joinedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserOrganizationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - userId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - joinedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserOrganizationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - userId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - customRoleId: z.lazy(() => SortOrderSchema).optional(), - joinedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumUserRoleNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional().nullable(), - in: z.lazy(() => UserRoleSchema).array().optional().nullable(), - notIn: z.lazy(() => UserRoleSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumUserRoleNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumUserRoleNullableFilterSchema).optional() -}).strict(); - -export const EnumCustomerTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CustomerTypeSchema).optional(), - in: z.lazy(() => CustomerTypeSchema).array().optional(), - notIn: z.lazy(() => CustomerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => NestedEnumCustomerTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumLeadStatusNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional().nullable(), - in: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const EnumLeadSourceNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadSourceSchema).optional().nullable(), - in: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NestedEnumLeadSourceNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const CustomerInteractionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CustomerInteractionWhereInputSchema).optional(), - some: z.lazy(() => CustomerInteractionWhereInputSchema).optional(), - none: z.lazy(() => CustomerInteractionWhereInputSchema).optional() -}).strict(); - -export const DealListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => DealWhereInputSchema).optional(), - some: z.lazy(() => DealWhereInputSchema).optional(), - none: z.lazy(() => DealWhereInputSchema).optional() -}).strict(); - -export const CustomerInteractionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DealOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - company: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - company: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - company: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumCustomerTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CustomerTypeSchema).optional(), - in: z.lazy(() => CustomerTypeSchema).array().optional(), - notIn: z.lazy(() => CustomerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => NestedEnumCustomerTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCustomerTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCustomerTypeFilterSchema).optional() -}).strict(); - -export const EnumLeadStatusNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional().nullable(), - in: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadStatusNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadStatusNullableFilterSchema).optional() -}).strict(); - -export const EnumLeadSourceNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadSourceSchema).optional().nullable(), - in: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NestedEnumLeadSourceNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadSourceNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadSourceNullableFilterSchema).optional() -}).strict(); - -export const EnumInteractionTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionTypeSchema).optional(), - in: z.lazy(() => InteractionTypeSchema).array().optional(), - notIn: z.lazy(() => InteractionTypeSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => NestedEnumInteractionTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumInteractionMediumFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionMediumSchema).optional(), - in: z.lazy(() => InteractionMediumSchema).array().optional(), - notIn: z.lazy(() => InteractionMediumSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => NestedEnumInteractionMediumFilterSchema) ]).optional(), -}).strict(); - -export const CustomerRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CustomerWhereInputSchema).optional(), - isNot: z.lazy(() => CustomerWhereInputSchema).optional() -}).strict(); - -export const CustomerInteractionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - medium: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerInteractionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - medium: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CustomerInteractionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - medium: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumInteractionTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionTypeSchema).optional(), - in: z.lazy(() => InteractionTypeSchema).array().optional(), - notIn: z.lazy(() => InteractionTypeSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => NestedEnumInteractionTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInteractionTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInteractionTypeFilterSchema).optional() -}).strict(); - -export const EnumInteractionMediumWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionMediumSchema).optional(), - in: z.lazy(() => InteractionMediumSchema).array().optional(), - notIn: z.lazy(() => InteractionMediumSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => NestedEnumInteractionMediumWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInteractionMediumFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInteractionMediumFilterSchema).optional() -}).strict(); - -export const DecimalFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalFilterSchema) ]).optional(), -}).strict(); - -export const EnumLeadStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional(), - in: z.lazy(() => LeadStatusSchema).array().optional(), - notIn: z.lazy(() => LeadStatusSchema).array().optional(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusFilterSchema) ]).optional(), -}).strict(); - -export const FloatNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const DealCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.lazy(() => SortOrderSchema).optional(), - expectedCloseDate: z.lazy(() => SortOrderSchema).optional(), - actualCloseDate: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DealAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - value: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DealMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.lazy(() => SortOrderSchema).optional(), - expectedCloseDate: z.lazy(() => SortOrderSchema).optional(), - actualCloseDate: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DealMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.lazy(() => SortOrderSchema).optional(), - expectedCloseDate: z.lazy(() => SortOrderSchema).optional(), - actualCloseDate: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DealSumOrderByAggregateInputSchema: z.ZodType = z.object({ - value: z.lazy(() => SortOrderSchema).optional(), - stage: z.lazy(() => SortOrderSchema).optional(), - probability: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const DecimalWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedDecimalFilterSchema).optional(), - _sum: z.lazy(() => NestedDecimalFilterSchema).optional(), - _min: z.lazy(() => NestedDecimalFilterSchema).optional(), - _max: z.lazy(() => NestedDecimalFilterSchema).optional() -}).strict(); - -export const EnumLeadStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional(), - in: z.lazy(() => LeadStatusSchema).array().optional(), - notIn: z.lazy(() => LeadStatusSchema).array().optional(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadStatusFilterSchema).optional() -}).strict(); - -export const FloatNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _min: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _max: z.lazy(() => NestedFloatNullableFilterSchema).optional() -}).strict(); - -export const EnumProjectStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ProjectStatusSchema).optional(), - in: z.lazy(() => ProjectStatusSchema).array().optional(), - notIn: z.lazy(() => ProjectStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => NestedEnumProjectStatusFilterSchema) ]).optional(), -}).strict(); - -export const DecimalNullableFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const ProjectResourceListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ProjectResourceWhereInputSchema).optional(), - some: z.lazy(() => ProjectResourceWhereInputSchema).optional(), - none: z.lazy(() => ProjectResourceWhereInputSchema).optional() -}).strict(); - -export const TimeEntryListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TimeEntryWhereInputSchema).optional(), - some: z.lazy(() => TimeEntryWhereInputSchema).optional(), - none: z.lazy(() => TimeEntryWhereInputSchema).optional() -}).strict(); - -export const ProjectResourceOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntryOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - budget: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectSumOrderByAggregateInputSchema: z.ZodType = z.object({ - budget: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumProjectStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ProjectStatusSchema).optional(), - in: z.lazy(() => ProjectStatusSchema).array().optional(), - notIn: z.lazy(() => ProjectStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => NestedEnumProjectStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumProjectStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumProjectStatusFilterSchema).optional() -}).strict(); - -export const DecimalNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDecimalNullableFilterSchema).optional() -}).strict(); - -export const EnumTaskStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TaskStatusSchema).optional(), - in: z.lazy(() => TaskStatusSchema).array().optional(), - notIn: z.lazy(() => TaskStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => NestedEnumTaskStatusFilterSchema) ]).optional(), -}).strict(); - -export const EnumPriorityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PrioritySchema).optional(), - in: z.lazy(() => PrioritySchema).array().optional(), - notIn: z.lazy(() => PrioritySchema).array().optional(), - not: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => NestedEnumPriorityFilterSchema) ]).optional(), -}).strict(); - -export const ProjectNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ProjectWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => ProjectWhereInputSchema).optional().nullable() -}).strict(); - -export const TaskNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TaskWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => TaskWhereInputSchema).optional().nullable() -}).strict(); - -export const CommentListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CommentWhereInputSchema).optional(), - some: z.lazy(() => CommentWhereInputSchema).optional(), - none: z.lazy(() => CommentWhereInputSchema).optional() -}).strict(); - -export const AttachmentListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => AttachmentWhereInputSchema).optional(), - some: z.lazy(() => AttachmentWhereInputSchema).optional(), - none: z.lazy(() => AttachmentWhereInputSchema).optional() -}).strict(); - -export const CustomerInteractionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CustomerInteractionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => CustomerInteractionWhereInputSchema).optional().nullable() -}).strict(); - -export const CommentOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - parentTaskId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - assignedToId: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - estimatedHours: z.lazy(() => SortOrderSchema).optional(), - actualHours: z.lazy(() => SortOrderSchema).optional(), - order: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customerInteractionId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - estimatedHours: z.lazy(() => SortOrderSchema).optional(), - actualHours: z.lazy(() => SortOrderSchema).optional(), - order: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - parentTaskId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - assignedToId: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - estimatedHours: z.lazy(() => SortOrderSchema).optional(), - actualHours: z.lazy(() => SortOrderSchema).optional(), - order: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customerInteractionId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - parentTaskId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - assignedToId: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - estimatedHours: z.lazy(() => SortOrderSchema).optional(), - actualHours: z.lazy(() => SortOrderSchema).optional(), - order: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - customerInteractionId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskSumOrderByAggregateInputSchema: z.ZodType = z.object({ - estimatedHours: z.lazy(() => SortOrderSchema).optional(), - actualHours: z.lazy(() => SortOrderSchema).optional(), - order: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTaskStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TaskStatusSchema).optional(), - in: z.lazy(() => TaskStatusSchema).array().optional(), - notIn: z.lazy(() => TaskStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => NestedEnumTaskStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTaskStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTaskStatusFilterSchema).optional() -}).strict(); - -export const EnumPriorityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PrioritySchema).optional(), - in: z.lazy(() => PrioritySchema).array().optional(), - notIn: z.lazy(() => PrioritySchema).array().optional(), - not: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => NestedEnumPriorityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPriorityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPriorityFilterSchema).optional() -}).strict(); - -export const ProjectRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ProjectWhereInputSchema).optional(), - isNot: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const ProjectResourceProjectIdAssigneeIdCompoundUniqueInputSchema: z.ZodType = z.object({ - projectId: z.string(), - assigneeId: z.string() -}).strict(); - -export const ProjectResourceCountOrderByAggregateInputSchema: z.ZodType = z.object({ - projectId: z.lazy(() => SortOrderSchema).optional(), - assigneeId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - allocation: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - hourlyRate: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectResourceAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - allocation: z.lazy(() => SortOrderSchema).optional(), - hourlyRate: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectResourceMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - projectId: z.lazy(() => SortOrderSchema).optional(), - assigneeId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - allocation: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - hourlyRate: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectResourceMinOrderByAggregateInputSchema: z.ZodType = z.object({ - projectId: z.lazy(() => SortOrderSchema).optional(), - assigneeId: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - allocation: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - hourlyRate: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ProjectResourceSumOrderByAggregateInputSchema: z.ZodType = z.object({ - allocation: z.lazy(() => SortOrderSchema).optional(), - hourlyRate: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntryCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - billable: z.lazy(() => SortOrderSchema).optional(), - invoiced: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntryAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - duration: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntryMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - billable: z.lazy(() => SortOrderSchema).optional(), - invoiced: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntryMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - billable: z.lazy(() => SortOrderSchema).optional(), - invoiced: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeEntrySumOrderByAggregateInputSchema: z.ZodType = z.object({ - duration: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumInvoiceStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvoiceStatusSchema).optional(), - in: z.lazy(() => InvoiceStatusSchema).array().optional(), - notIn: z.lazy(() => InvoiceStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => NestedEnumInvoiceStatusFilterSchema) ]).optional(), -}).strict(); - -export const InvoiceItemListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => InvoiceItemWhereInputSchema).optional(), - some: z.lazy(() => InvoiceItemWhereInputSchema).optional(), - none: z.lazy(() => InvoiceItemWhereInputSchema).optional() -}).strict(); - -export const PaymentListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => PaymentWhereInputSchema).optional(), - some: z.lazy(() => PaymentWhereInputSchema).optional(), - none: z.lazy(() => PaymentWhereInputSchema).optional() -}).strict(); - -export const InvoiceItemOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PaymentOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceOrganizationIdInvoiceNumberCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - invoiceNumber: z.string() -}).strict(); - -export const InvoiceCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - customerEmail: z.lazy(() => SortOrderSchema).optional(), - customerName: z.lazy(() => SortOrderSchema).optional(), - customerAddress: z.lazy(() => SortOrderSchema).optional(), - customerPhone: z.lazy(() => SortOrderSchema).optional(), - invoiceNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - issueDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - paymentTerms: z.lazy(() => SortOrderSchema).optional(), - poNumber: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - internalNotes: z.lazy(() => SortOrderSchema).optional(), - termsAndConditions: z.lazy(() => SortOrderSchema).optional(), - footer: z.lazy(() => SortOrderSchema).optional(), - logoUrl: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - lastReminder: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - customerEmail: z.lazy(() => SortOrderSchema).optional(), - customerName: z.lazy(() => SortOrderSchema).optional(), - customerAddress: z.lazy(() => SortOrderSchema).optional(), - customerPhone: z.lazy(() => SortOrderSchema).optional(), - invoiceNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - issueDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - paymentTerms: z.lazy(() => SortOrderSchema).optional(), - poNumber: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - internalNotes: z.lazy(() => SortOrderSchema).optional(), - termsAndConditions: z.lazy(() => SortOrderSchema).optional(), - footer: z.lazy(() => SortOrderSchema).optional(), - logoUrl: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - lastReminder: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - customerId: z.lazy(() => SortOrderSchema).optional(), - customerEmail: z.lazy(() => SortOrderSchema).optional(), - customerName: z.lazy(() => SortOrderSchema).optional(), - customerAddress: z.lazy(() => SortOrderSchema).optional(), - customerPhone: z.lazy(() => SortOrderSchema).optional(), - invoiceNumber: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - issueDate: z.lazy(() => SortOrderSchema).optional(), - dueDate: z.lazy(() => SortOrderSchema).optional(), - paymentTerms: z.lazy(() => SortOrderSchema).optional(), - poNumber: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - internalNotes: z.lazy(() => SortOrderSchema).optional(), - termsAndConditions: z.lazy(() => SortOrderSchema).optional(), - footer: z.lazy(() => SortOrderSchema).optional(), - logoUrl: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - lastReminder: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceSumOrderByAggregateInputSchema: z.ZodType = z.object({ - subtotal: z.lazy(() => SortOrderSchema).optional(), - taxAmount: z.lazy(() => SortOrderSchema).optional(), - discountAmount: z.lazy(() => SortOrderSchema).optional(), - shippingAmount: z.lazy(() => SortOrderSchema).optional(), - totalAmount: z.lazy(() => SortOrderSchema).optional(), - paidAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumInvoiceStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvoiceStatusSchema).optional(), - in: z.lazy(() => InvoiceStatusSchema).array().optional(), - notIn: z.lazy(() => InvoiceStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => NestedEnumInvoiceStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInvoiceStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInvoiceStatusFilterSchema).optional() -}).strict(); - -export const InvoiceRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => InvoiceWhereInputSchema).optional(), - isNot: z.lazy(() => InvoiceWhereInputSchema).optional() -}).strict(); - -export const InvoiceItemCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - productId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceItemAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceItemMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - productId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceItemMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - productId: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvoiceItemSumOrderByAggregateInputSchema: z.ZodType = z.object({ - quantity: z.lazy(() => SortOrderSchema).optional(), - unitPrice: z.lazy(() => SortOrderSchema).optional(), - taxRate: z.lazy(() => SortOrderSchema).optional(), - discountRate: z.lazy(() => SortOrderSchema).optional(), - subtotal: z.lazy(() => SortOrderSchema).optional(), - sortOrder: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumPaymentMethodFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentMethodSchema).optional(), - in: z.lazy(() => PaymentMethodSchema).array().optional(), - notIn: z.lazy(() => PaymentMethodSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => NestedEnumPaymentMethodFilterSchema) ]).optional(), -}).strict(); - -export const EnumPaymentStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentStatusSchema).optional(), - in: z.lazy(() => PaymentStatusSchema).array().optional(), - notIn: z.lazy(() => PaymentStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => NestedEnumPaymentStatusFilterSchema) ]).optional(), -}).strict(); - -export const PaymentCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - method: z.lazy(() => SortOrderSchema).optional(), - reference: z.lazy(() => SortOrderSchema).optional(), - paymentDate: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - gatewayId: z.lazy(() => SortOrderSchema).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PaymentAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - amount: z.lazy(() => SortOrderSchema).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PaymentMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - method: z.lazy(() => SortOrderSchema).optional(), - reference: z.lazy(() => SortOrderSchema).optional(), - paymentDate: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - gatewayId: z.lazy(() => SortOrderSchema).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PaymentMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - invoiceId: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - method: z.lazy(() => SortOrderSchema).optional(), - reference: z.lazy(() => SortOrderSchema).optional(), - paymentDate: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - gatewayId: z.lazy(() => SortOrderSchema).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PaymentSumOrderByAggregateInputSchema: z.ZodType = z.object({ - amount: z.lazy(() => SortOrderSchema).optional(), - feeAmount: z.lazy(() => SortOrderSchema).optional(), - refundedAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumPaymentMethodWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentMethodSchema).optional(), - in: z.lazy(() => PaymentMethodSchema).array().optional(), - notIn: z.lazy(() => PaymentMethodSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => NestedEnumPaymentMethodWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPaymentMethodFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPaymentMethodFilterSchema).optional() -}).strict(); - -export const EnumPaymentStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentStatusSchema).optional(), - in: z.lazy(() => PaymentStatusSchema).array().optional(), - notIn: z.lazy(() => PaymentStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => NestedEnumPaymentStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPaymentStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPaymentStatusFilterSchema).optional() -}).strict(); - -export const EnumExpenseStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExpenseStatusSchema).optional(), - in: z.lazy(() => ExpenseStatusSchema).array().optional(), - notIn: z.lazy(() => ExpenseStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => NestedEnumExpenseStatusFilterSchema) ]).optional(), -}).strict(); - -export const ExpenseCategoryNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ExpenseCategoryWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => ExpenseCategoryWhereInputSchema).optional().nullable() -}).strict(); - -export const ExpenseToTagListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExpenseToTagWhereInputSchema).optional(), - some: z.lazy(() => ExpenseToTagWhereInputSchema).optional(), - none: z.lazy(() => ExpenseToTagWhereInputSchema).optional() -}).strict(); - -export const ExpenseToTagOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - categoryId: z.lazy(() => SortOrderSchema).optional(), - customCategory: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - date: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - receipt: z.lazy(() => SortOrderSchema).optional(), - vendor: z.lazy(() => SortOrderSchema).optional(), - paymentMethod: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - reimbursable: z.lazy(() => SortOrderSchema).optional(), - reimbursed: z.lazy(() => SortOrderSchema).optional(), - reimbursedAt: z.lazy(() => SortOrderSchema).optional(), - submittedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - rejectedAt: z.lazy(() => SortOrderSchema).optional(), - rejectionReason: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - amount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - categoryId: z.lazy(() => SortOrderSchema).optional(), - customCategory: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - date: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - receipt: z.lazy(() => SortOrderSchema).optional(), - vendor: z.lazy(() => SortOrderSchema).optional(), - paymentMethod: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - reimbursable: z.lazy(() => SortOrderSchema).optional(), - reimbursed: z.lazy(() => SortOrderSchema).optional(), - reimbursedAt: z.lazy(() => SortOrderSchema).optional(), - submittedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - rejectedAt: z.lazy(() => SortOrderSchema).optional(), - rejectionReason: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - categoryId: z.lazy(() => SortOrderSchema).optional(), - customCategory: z.lazy(() => SortOrderSchema).optional(), - amount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - date: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - receipt: z.lazy(() => SortOrderSchema).optional(), - vendor: z.lazy(() => SortOrderSchema).optional(), - paymentMethod: z.lazy(() => SortOrderSchema).optional(), - projectId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - reimbursable: z.lazy(() => SortOrderSchema).optional(), - reimbursed: z.lazy(() => SortOrderSchema).optional(), - reimbursedAt: z.lazy(() => SortOrderSchema).optional(), - submittedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - rejectedAt: z.lazy(() => SortOrderSchema).optional(), - rejectionReason: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseSumOrderByAggregateInputSchema: z.ZodType = z.object({ - amount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumExpenseStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExpenseStatusSchema).optional(), - in: z.lazy(() => ExpenseStatusSchema).array().optional(), - notIn: z.lazy(() => ExpenseStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => NestedEnumExpenseStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumExpenseStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumExpenseStatusFilterSchema).optional() -}).strict(); - -export const ExpenseCategoryOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const ExpenseCategoryCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseCategoryMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseCategoryMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseTagOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const ExpenseTagCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseTagMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseTagMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - color: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ExpenseWhereInputSchema).optional(), - isNot: z.lazy(() => ExpenseWhereInputSchema).optional() -}).strict(); - -export const ExpenseTagRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ExpenseTagWhereInputSchema).optional(), - isNot: z.lazy(() => ExpenseTagWhereInputSchema).optional() -}).strict(); - -export const ExpenseToTagExpenseIdTagIdCompoundUniqueInputSchema: z.ZodType = z.object({ - expenseId: z.string(), - tagId: z.string() -}).strict(); - -export const ExpenseToTagCountOrderByAggregateInputSchema: z.ZodType = z.object({ - expenseId: z.lazy(() => SortOrderSchema).optional(), - tagId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseToTagMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - expenseId: z.lazy(() => SortOrderSchema).optional(), - tagId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExpenseToTagMinOrderByAggregateInputSchema: z.ZodType = z.object({ - expenseId: z.lazy(() => SortOrderSchema).optional(), - tagId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TaskRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TaskWhereInputSchema).optional(), - isNot: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const CommentCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - authorId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CommentMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - authorId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CommentMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - authorId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - uploadedById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - uploadedById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - taskId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileType: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - uploadedById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AttachmentSumOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventAttendeeListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => CalendarEventAttendeeWhereInputSchema).optional(), - some: z.lazy(() => CalendarEventAttendeeWhereInputSchema).optional(), - none: z.lazy(() => CalendarEventAttendeeWhereInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - allDay: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - organizerId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - allDay: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - organizerId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - allDay: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - organizerId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumAttendeeStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => AttendeeStatusSchema).optional(), - in: z.lazy(() => AttendeeStatusSchema).array().optional(), - notIn: z.lazy(() => AttendeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => NestedEnumAttendeeStatusFilterSchema) ]).optional(), -}).strict(); - -export const CalendarEventRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CalendarEventWhereInputSchema).optional(), - isNot: z.lazy(() => CalendarEventWhereInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeEventIdUserIdCompoundUniqueInputSchema: z.ZodType = z.object({ - eventId: z.string(), - userId: z.string() -}).strict(); - -export const CalendarEventAttendeeCountOrderByAggregateInputSchema: z.ZodType = z.object({ - eventId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventAttendeeMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - eventId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarEventAttendeeMinOrderByAggregateInputSchema: z.ZodType = z.object({ - eventId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumAttendeeStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => AttendeeStatusSchema).optional(), - in: z.lazy(() => AttendeeStatusSchema).array().optional(), - notIn: z.lazy(() => AttendeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => NestedEnumAttendeeStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumAttendeeStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumAttendeeStatusFilterSchema).optional() -}).strict(); - -export const EnumNotificationTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NotificationTypeSchema).optional(), - in: z.lazy(() => NotificationTypeSchema).array().optional(), - notIn: z.lazy(() => NotificationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => NestedEnumNotificationTypeFilterSchema) ]).optional(), -}).strict(); - -export const NotificationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - read: z.lazy(() => SortOrderSchema).optional(), - actionUrl: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NotificationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - read: z.lazy(() => SortOrderSchema).optional(), - actionUrl: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NotificationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - read: z.lazy(() => SortOrderSchema).optional(), - actionUrl: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumNotificationTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NotificationTypeSchema).optional(), - in: z.lazy(() => NotificationTypeSchema).array().optional(), - notIn: z.lazy(() => NotificationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => NestedEnumNotificationTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumNotificationTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumNotificationTypeFilterSchema).optional() -}).strict(); - -export const EnumInvitationStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvitationStatusSchema).optional(), - in: z.lazy(() => InvitationStatusSchema).array().optional(), - notIn: z.lazy(() => InvitationStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => NestedEnumInvitationStatusFilterSchema) ]).optional(), -}).strict(); - -export const InvitationOrganizationIdEmailCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - email: z.string() -}).strict(); - -export const InvitationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - inviterId: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - acceptedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvitationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - inviterId: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - acceptedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const InvitationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - role: z.lazy(() => SortOrderSchema).optional(), - inviterId: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - acceptedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumInvitationStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvitationStatusSchema).optional(), - in: z.lazy(() => InvitationStatusSchema).array().optional(), - notIn: z.lazy(() => InvitationStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => NestedEnumInvitationStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInvitationStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInvitationStatusFilterSchema).optional() -}).strict(); - -export const EnumEmployeeStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => EmployeeStatusSchema).optional(), - in: z.lazy(() => EmployeeStatusSchema).array().optional(), - notIn: z.lazy(() => EmployeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => NestedEnumEmployeeStatusFilterSchema) ]).optional(), -}).strict(); - -export const PayrollListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => PayrollWhereInputSchema).optional(), - some: z.lazy(() => PayrollWhereInputSchema).optional(), - none: z.lazy(() => PayrollWhereInputSchema).optional() -}).strict(); - -export const TimeOffListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TimeOffWhereInputSchema).optional(), - some: z.lazy(() => TimeOffWhereInputSchema).optional(), - none: z.lazy(() => TimeOffWhereInputSchema).optional() -}).strict(); - -export const PerformanceReviewListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => PerformanceReviewWhereInputSchema).optional(), - some: z.lazy(() => PerformanceReviewWhereInputSchema).optional(), - none: z.lazy(() => PerformanceReviewWhereInputSchema).optional() -}).strict(); - -export const PayrollOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeOffOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PerformanceReviewOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmployeeCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - department: z.lazy(() => SortOrderSchema).optional(), - hireDate: z.lazy(() => SortOrderSchema).optional(), - terminationDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - managerId: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - birthDate: z.lazy(() => SortOrderSchema).optional(), - taxId: z.lazy(() => SortOrderSchema).optional(), - emergencyContactName: z.lazy(() => SortOrderSchema).optional(), - emergencyContactPhone: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmployeeMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - department: z.lazy(() => SortOrderSchema).optional(), - hireDate: z.lazy(() => SortOrderSchema).optional(), - terminationDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - managerId: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - birthDate: z.lazy(() => SortOrderSchema).optional(), - taxId: z.lazy(() => SortOrderSchema).optional(), - emergencyContactName: z.lazy(() => SortOrderSchema).optional(), - emergencyContactPhone: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmployeeMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - firstName: z.lazy(() => SortOrderSchema).optional(), - lastName: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - phone: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - department: z.lazy(() => SortOrderSchema).optional(), - hireDate: z.lazy(() => SortOrderSchema).optional(), - terminationDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - managerId: z.lazy(() => SortOrderSchema).optional(), - address: z.lazy(() => SortOrderSchema).optional(), - city: z.lazy(() => SortOrderSchema).optional(), - state: z.lazy(() => SortOrderSchema).optional(), - country: z.lazy(() => SortOrderSchema).optional(), - postalCode: z.lazy(() => SortOrderSchema).optional(), - birthDate: z.lazy(() => SortOrderSchema).optional(), - taxId: z.lazy(() => SortOrderSchema).optional(), - emergencyContactName: z.lazy(() => SortOrderSchema).optional(), - emergencyContactPhone: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumEmployeeStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => EmployeeStatusSchema).optional(), - in: z.lazy(() => EmployeeStatusSchema).array().optional(), - notIn: z.lazy(() => EmployeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => NestedEnumEmployeeStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumEmployeeStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumEmployeeStatusFilterSchema).optional() -}).strict(); - -export const EnumPayrollStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PayrollStatusSchema).optional(), - in: z.lazy(() => PayrollStatusSchema).array().optional(), - notIn: z.lazy(() => PayrollStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => NestedEnumPayrollStatusFilterSchema) ]).optional(), -}).strict(); - -export const EmployeeRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => EmployeeWhereInputSchema).optional(), - isNot: z.lazy(() => EmployeeWhereInputSchema).optional() -}).strict(); - -export const PayrollCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - payPeriodStart: z.lazy(() => SortOrderSchema).optional(), - payPeriodEnd: z.lazy(() => SortOrderSchema).optional(), - payDate: z.lazy(() => SortOrderSchema).optional(), - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PayrollAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PayrollMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - payPeriodStart: z.lazy(() => SortOrderSchema).optional(), - payPeriodEnd: z.lazy(() => SortOrderSchema).optional(), - payDate: z.lazy(() => SortOrderSchema).optional(), - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PayrollMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - payPeriodStart: z.lazy(() => SortOrderSchema).optional(), - payPeriodEnd: z.lazy(() => SortOrderSchema).optional(), - payDate: z.lazy(() => SortOrderSchema).optional(), - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PayrollSumOrderByAggregateInputSchema: z.ZodType = z.object({ - basicSalary: z.lazy(() => SortOrderSchema).optional(), - overtime: z.lazy(() => SortOrderSchema).optional(), - bonus: z.lazy(() => SortOrderSchema).optional(), - tax: z.lazy(() => SortOrderSchema).optional(), - deductions: z.lazy(() => SortOrderSchema).optional(), - netAmount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumPayrollStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PayrollStatusSchema).optional(), - in: z.lazy(() => PayrollStatusSchema).array().optional(), - notIn: z.lazy(() => PayrollStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => NestedEnumPayrollStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPayrollStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPayrollStatusFilterSchema).optional() -}).strict(); - -export const EnumTimeOffTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffTypeSchema).optional(), - in: z.lazy(() => TimeOffTypeSchema).array().optional(), - notIn: z.lazy(() => TimeOffTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => NestedEnumTimeOffTypeFilterSchema) ]).optional(), -}).strict(); - -export const FloatFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatFilterSchema) ]).optional(), -}).strict(); - -export const EnumTimeOffStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffStatusSchema).optional(), - in: z.lazy(() => TimeOffStatusSchema).array().optional(), - notIn: z.lazy(() => TimeOffStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => NestedEnumTimeOffStatusFilterSchema) ]).optional(), -}).strict(); - -export const TimeOffCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - reason: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeOffAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - duration: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeOffMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - reason: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeOffMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - reason: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - approvedById: z.lazy(() => SortOrderSchema).optional(), - approvedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TimeOffSumOrderByAggregateInputSchema: z.ZodType = z.object({ - duration: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTimeOffTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffTypeSchema).optional(), - in: z.lazy(() => TimeOffTypeSchema).array().optional(), - notIn: z.lazy(() => TimeOffTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => NestedEnumTimeOffTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTimeOffTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTimeOffTypeFilterSchema).optional() -}).strict(); - -export const FloatWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedFloatFilterSchema).optional(), - _min: z.lazy(() => NestedFloatFilterSchema).optional(), - _max: z.lazy(() => NestedFloatFilterSchema).optional() -}).strict(); - -export const EnumTimeOffStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffStatusSchema).optional(), - in: z.lazy(() => TimeOffStatusSchema).array().optional(), - notIn: z.lazy(() => TimeOffStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => NestedEnumTimeOffStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTimeOffStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTimeOffStatusFilterSchema).optional() -}).strict(); - -export const EnumReviewStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ReviewStatusSchema).optional(), - in: z.lazy(() => ReviewStatusSchema).array().optional(), - notIn: z.lazy(() => ReviewStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => NestedEnumReviewStatusFilterSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - reviewerId: z.lazy(() => SortOrderSchema).optional(), - reviewPeriod: z.lazy(() => SortOrderSchema).optional(), - performanceScore: z.lazy(() => SortOrderSchema).optional(), - strengths: z.lazy(() => SortOrderSchema).optional(), - improvements: z.lazy(() => SortOrderSchema).optional(), - goals: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - reviewDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PerformanceReviewAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - performanceScore: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PerformanceReviewMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - reviewerId: z.lazy(() => SortOrderSchema).optional(), - reviewPeriod: z.lazy(() => SortOrderSchema).optional(), - performanceScore: z.lazy(() => SortOrderSchema).optional(), - strengths: z.lazy(() => SortOrderSchema).optional(), - improvements: z.lazy(() => SortOrderSchema).optional(), - goals: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - reviewDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PerformanceReviewMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - employeeId: z.lazy(() => SortOrderSchema).optional(), - reviewerId: z.lazy(() => SortOrderSchema).optional(), - reviewPeriod: z.lazy(() => SortOrderSchema).optional(), - performanceScore: z.lazy(() => SortOrderSchema).optional(), - strengths: z.lazy(() => SortOrderSchema).optional(), - improvements: z.lazy(() => SortOrderSchema).optional(), - goals: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - reviewDate: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const PerformanceReviewSumOrderByAggregateInputSchema: z.ZodType = z.object({ - performanceScore: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumReviewStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ReviewStatusSchema).optional(), - in: z.lazy(() => ReviewStatusSchema).array().optional(), - notIn: z.lazy(() => ReviewStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => NestedEnumReviewStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumReviewStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumReviewStatusFilterSchema).optional() -}).strict(); - -export const EnumCampaignTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignTypeSchema).optional(), - in: z.lazy(() => CampaignTypeSchema).array().optional(), - notIn: z.lazy(() => CampaignTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => NestedEnumCampaignTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumCampaignStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignStatusSchema).optional(), - in: z.lazy(() => CampaignStatusSchema).array().optional(), - notIn: z.lazy(() => CampaignStatusSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => NestedEnumCampaignStatusFilterSchema) ]).optional(), -}).strict(); - -export const EmailCampaignListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => EmailCampaignWhereInputSchema).optional(), - some: z.lazy(() => EmailCampaignWhereInputSchema).optional(), - none: z.lazy(() => EmailCampaignWhereInputSchema).optional() -}).strict(); - -export const SocialMediaPostListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => SocialMediaPostWhereInputSchema).optional(), - some: z.lazy(() => SocialMediaPostWhereInputSchema).optional(), - none: z.lazy(() => SocialMediaPostWhereInputSchema).optional() -}).strict(); - -export const EmailCampaignOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SocialMediaPostOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - targetAudience: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - budget: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - targetAudience: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startDate: z.lazy(() => SortOrderSchema).optional(), - endDate: z.lazy(() => SortOrderSchema).optional(), - budget: z.lazy(() => SortOrderSchema).optional(), - currency: z.lazy(() => SortOrderSchema).optional(), - targetAudience: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const MarketingCampaignSumOrderByAggregateInputSchema: z.ZodType = z.object({ - budget: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumCampaignTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignTypeSchema).optional(), - in: z.lazy(() => CampaignTypeSchema).array().optional(), - notIn: z.lazy(() => CampaignTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => NestedEnumCampaignTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCampaignTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCampaignTypeFilterSchema).optional() -}).strict(); - -export const EnumCampaignStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignStatusSchema).optional(), - in: z.lazy(() => CampaignStatusSchema).array().optional(), - notIn: z.lazy(() => CampaignStatusSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => NestedEnumCampaignStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCampaignStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCampaignStatusFilterSchema).optional() -}).strict(); - -export const MarketingCampaignRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => MarketingCampaignWhereInputSchema).optional(), - isNot: z.lazy(() => MarketingCampaignWhereInputSchema).optional() -}).strict(); - -export const EmailCampaignCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - sender: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailCampaignAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailCampaignMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - sender: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailCampaignMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - sender: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - sentAt: z.lazy(() => SortOrderSchema).optional(), - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailCampaignSumOrderByAggregateInputSchema: z.ZodType = z.object({ - opens: z.lazy(() => SortOrderSchema).optional(), - clicks: z.lazy(() => SortOrderSchema).optional(), - bounces: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumSocialPlatformFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => SocialPlatformSchema).optional(), - in: z.lazy(() => SocialPlatformSchema).array().optional(), - notIn: z.lazy(() => SocialPlatformSchema).array().optional(), - not: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => NestedEnumSocialPlatformFilterSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - platform: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SocialMediaPostAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SocialMediaPostMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - platform: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SocialMediaPostMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - campaignId: z.lazy(() => SortOrderSchema).optional(), - platform: z.lazy(() => SortOrderSchema).optional(), - content: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - scheduledAt: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SocialMediaPostSumOrderByAggregateInputSchema: z.ZodType = z.object({ - likes: z.lazy(() => SortOrderSchema).optional(), - shares: z.lazy(() => SortOrderSchema).optional(), - comments: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumSocialPlatformWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => SocialPlatformSchema).optional(), - in: z.lazy(() => SocialPlatformSchema).array().optional(), - notIn: z.lazy(() => SocialPlatformSchema).array().optional(), - not: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => NestedEnumSocialPlatformWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumSocialPlatformFilterSchema).optional(), - _max: z.lazy(() => NestedEnumSocialPlatformFilterSchema).optional() -}).strict(); - -export const SessionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => SessionWhereInputSchema).optional(), - some: z.lazy(() => SessionWhereInputSchema).optional(), - none: z.lazy(() => SessionWhereInputSchema).optional() -}).strict(); - -export const AccountListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => AccountWhereInputSchema).optional(), - some: z.lazy(() => AccountWhereInputSchema).optional(), - none: z.lazy(() => AccountWhereInputSchema).optional() -}).strict(); - -export const SessionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const UserMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - emailVerified: z.lazy(() => SortOrderSchema).optional(), - image: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SessionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - token: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - accountId: z.lazy(() => SortOrderSchema).optional(), - providerId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - accessToken: z.lazy(() => SortOrderSchema).optional(), - refreshToken: z.lazy(() => SortOrderSchema).optional(), - idToken: z.lazy(() => SortOrderSchema).optional(), - accessTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - refreshTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - password: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - accountId: z.lazy(() => SortOrderSchema).optional(), - providerId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - accessToken: z.lazy(() => SortOrderSchema).optional(), - refreshToken: z.lazy(() => SortOrderSchema).optional(), - idToken: z.lazy(() => SortOrderSchema).optional(), - accessTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - refreshTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - password: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const AccountMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - accountId: z.lazy(() => SortOrderSchema).optional(), - providerId: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - accessToken: z.lazy(() => SortOrderSchema).optional(), - refreshToken: z.lazy(() => SortOrderSchema).optional(), - idToken: z.lazy(() => SortOrderSchema).optional(), - accessTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - refreshTokenExpiresAt: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - password: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - identifier: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - identifier: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VerificationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - identifier: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumFinancialReportTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportTypeSchema).optional(), - in: z.lazy(() => FinancialReportTypeSchema).array().optional(), - notIn: z.lazy(() => FinancialReportTypeSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => NestedEnumFinancialReportTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumFinancialReportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportStatusSchema).optional(), - in: z.lazy(() => FinancialReportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => NestedEnumFinancialReportStatusFilterSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => FinancialReportDataWhereInputSchema).optional(), - some: z.lazy(() => FinancialReportDataWhereInputSchema).optional(), - none: z.lazy(() => FinancialReportDataWhereInputSchema).optional() -}).strict(); - -export const FinancialReportExportListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => FinancialReportExportWhereInputSchema).optional(), - some: z.lazy(() => FinancialReportExportWhereInputSchema).optional(), - none: z.lazy(() => FinancialReportExportWhereInputSchema).optional() -}).strict(); - -export const FinancialReportScheduleListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => FinancialReportScheduleWhereInputSchema).optional(), - some: z.lazy(() => FinancialReportScheduleWhereInputSchema).optional(), - none: z.lazy(() => FinancialReportScheduleWhereInputSchema).optional() -}).strict(); - -export const FinancialReportDataOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportExportOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportScheduleOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - filters: z.lazy(() => SortOrderSchema).optional(), - dateRange: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - generatedAt: z.lazy(() => SortOrderSchema).optional(), - generatedBy: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - isScheduled: z.lazy(() => SortOrderSchema).optional(), - scheduleConfig: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - generatedAt: z.lazy(() => SortOrderSchema).optional(), - generatedBy: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - isScheduled: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - generatedAt: z.lazy(() => SortOrderSchema).optional(), - generatedBy: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - isScheduled: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumFinancialReportTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportTypeSchema).optional(), - in: z.lazy(() => FinancialReportTypeSchema).array().optional(), - notIn: z.lazy(() => FinancialReportTypeSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => NestedEnumFinancialReportTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportTypeFilterSchema).optional() -}).strict(); - -export const EnumFinancialReportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportStatusSchema).optional(), - in: z.lazy(() => FinancialReportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => NestedEnumFinancialReportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportStatusFilterSchema).optional() -}).strict(); - -export const FinancialReportRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => FinancialReportWhereInputSchema).optional(), - isNot: z.lazy(() => FinancialReportWhereInputSchema).optional() -}).strict(); - -export const FinancialReportDataCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - data: z.lazy(() => SortOrderSchema).optional(), - metadata: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportDataMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportDataMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumFinancialReportExportFormatFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportFormatSchema).optional(), - in: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema) ]).optional(), -}).strict(); - -export const EnumFinancialReportExportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportStatusSchema).optional(), - in: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - format: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportExportAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportExportMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - format: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportExportMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - format: z.lazy(() => SortOrderSchema).optional(), - fileName: z.lazy(() => SortOrderSchema).optional(), - fileUrl: z.lazy(() => SortOrderSchema).optional(), - fileSize: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportExportSumOrderByAggregateInputSchema: z.ZodType = z.object({ - fileSize: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumFinancialReportExportFormatWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportFormatSchema).optional(), - in: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => NestedEnumFinancialReportExportFormatWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema).optional() -}).strict(); - -export const EnumFinancialReportExportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportStatusSchema).optional(), - in: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => NestedEnumFinancialReportExportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema).optional() -}).strict(); - -export const EnumFinancialReportScheduleFrequencyFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportScheduleFrequencySchema).optional(), - in: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - notIn: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - frequency: z.lazy(() => SortOrderSchema).optional(), - dayOfWeek: z.lazy(() => SortOrderSchema).optional(), - dayOfMonth: z.lazy(() => SortOrderSchema).optional(), - time: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastRunAt: z.lazy(() => SortOrderSchema).optional(), - nextRunAt: z.lazy(() => SortOrderSchema).optional(), - recipients: z.lazy(() => SortOrderSchema).optional(), - emailSubject: z.lazy(() => SortOrderSchema).optional(), - emailBody: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportScheduleAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - dayOfWeek: z.lazy(() => SortOrderSchema).optional(), - dayOfMonth: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportScheduleMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - frequency: z.lazy(() => SortOrderSchema).optional(), - dayOfWeek: z.lazy(() => SortOrderSchema).optional(), - dayOfMonth: z.lazy(() => SortOrderSchema).optional(), - time: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastRunAt: z.lazy(() => SortOrderSchema).optional(), - nextRunAt: z.lazy(() => SortOrderSchema).optional(), - emailSubject: z.lazy(() => SortOrderSchema).optional(), - emailBody: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportScheduleMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - reportId: z.lazy(() => SortOrderSchema).optional(), - frequency: z.lazy(() => SortOrderSchema).optional(), - dayOfWeek: z.lazy(() => SortOrderSchema).optional(), - dayOfMonth: z.lazy(() => SortOrderSchema).optional(), - time: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastRunAt: z.lazy(() => SortOrderSchema).optional(), - nextRunAt: z.lazy(() => SortOrderSchema).optional(), - emailSubject: z.lazy(() => SortOrderSchema).optional(), - emailBody: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const FinancialReportScheduleSumOrderByAggregateInputSchema: z.ZodType = z.object({ - dayOfWeek: z.lazy(() => SortOrderSchema).optional(), - dayOfMonth: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumFinancialReportScheduleFrequencyWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportScheduleFrequencySchema).optional(), - in: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - notIn: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => NestedEnumFinancialReportScheduleFrequencyWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema).optional() -}).strict(); - -export const EnumTemplateVisibilityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateVisibilitySchema).optional(), - in: z.lazy(() => TemplateVisibilitySchema).array().optional(), - notIn: z.lazy(() => TemplateVisibilitySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => NestedEnumTemplateVisibilityFilterSchema) ]).optional(), -}).strict(); - -export const EnumTemplateStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateStatusSchema).optional(), - in: z.lazy(() => TemplateStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => NestedEnumTemplateStatusFilterSchema) ]).optional(), -}).strict(); - -export const OrganizationNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => OrganizationWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => OrganizationWhereInputSchema).optional().nullable() -}).strict(); - -export const TemplateVersionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateVersionWhereInputSchema).optional(), - some: z.lazy(() => TemplateVersionWhereInputSchema).optional(), - none: z.lazy(() => TemplateVersionWhereInputSchema).optional() -}).strict(); - -export const TemplateVersionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - visibility: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - tags: z.lazy(() => SortOrderSchema).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - visibility: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - visibility: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplatePackageSumOrderByAggregateInputSchema: z.ZodType = z.object({ - assetsCount: z.lazy(() => SortOrderSchema).optional(), - sizeBytes: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateVisibilityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateVisibilitySchema).optional(), - in: z.lazy(() => TemplateVisibilitySchema).array().optional(), - notIn: z.lazy(() => TemplateVisibilitySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => NestedEnumTemplateVisibilityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateVisibilityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateVisibilityFilterSchema).optional() -}).strict(); - -export const EnumTemplateStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateStatusSchema).optional(), - in: z.lazy(() => TemplateStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => NestedEnumTemplateStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateStatusFilterSchema).optional() -}).strict(); - -export const TemplatePackageRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - isNot: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplateVersionTemplatePackageIdVersionCompoundUniqueInputSchema: z.ZodType = z.object({ - templatePackageId: z.string(), - version: z.string() -}).strict(); - -export const TemplateVersionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - manifest: z.lazy(() => SortOrderSchema).optional(), - changelog: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateVersionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - changelog: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateVersionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - changelog: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateInstallStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStatusSchema).optional(), - in: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema) ]).optional(), -}).strict(); - -export const EnumTemplateInstallStrategyFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStrategySchema).optional(), - in: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema) ]).optional(), -}).strict(); - -export const TemplatePackageNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TemplatePackageWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => TemplatePackageWhereInputSchema).optional().nullable() -}).strict(); - -export const TemplateVersionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TemplateVersionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => TemplateVersionWhereInputSchema).optional().nullable() -}).strict(); - -export const TemplateInstallItemListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateInstallItemWhereInputSchema).optional(), - some: z.lazy(() => TemplateInstallItemWhereInputSchema).optional(), - none: z.lazy(() => TemplateInstallItemWhereInputSchema).optional() -}).strict(); - -export const TemplateInstallItemOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallationCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - templateVersionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - strategy: z.lazy(() => SortOrderSchema).optional(), - namePrefix: z.lazy(() => SortOrderSchema).optional(), - preflight: z.lazy(() => SortOrderSchema).optional(), - logs: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallationMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - templateVersionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - strategy: z.lazy(() => SortOrderSchema).optional(), - namePrefix: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallationMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - templateVersionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - strategy: z.lazy(() => SortOrderSchema).optional(), - namePrefix: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateInstallStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStatusSchema).optional(), - in: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => NestedEnumTemplateInstallStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema).optional() -}).strict(); - -export const EnumTemplateInstallStrategyWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStrategySchema).optional(), - in: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => NestedEnumTemplateInstallStrategyWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema).optional() -}).strict(); - -export const EnumTemplateAssetTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateAssetTypeSchema).optional(), - in: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - notIn: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumTemplateItemStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateItemStatusSchema).optional(), - in: z.lazy(() => TemplateItemStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateItemStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => NestedEnumTemplateItemStatusFilterSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TemplateInstallationWhereInputSchema).optional(), - isNot: z.lazy(() => TemplateInstallationWhereInputSchema).optional() -}).strict(); - -export const TemplateInstallItemCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - installationId: z.lazy(() => SortOrderSchema).optional(), - assetType: z.lazy(() => SortOrderSchema).optional(), - sourceKey: z.lazy(() => SortOrderSchema).optional(), - createdModel: z.lazy(() => SortOrderSchema).optional(), - createdId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - details: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallItemMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - installationId: z.lazy(() => SortOrderSchema).optional(), - assetType: z.lazy(() => SortOrderSchema).optional(), - sourceKey: z.lazy(() => SortOrderSchema).optional(), - createdModel: z.lazy(() => SortOrderSchema).optional(), - createdId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateInstallItemMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - installationId: z.lazy(() => SortOrderSchema).optional(), - assetType: z.lazy(() => SortOrderSchema).optional(), - sourceKey: z.lazy(() => SortOrderSchema).optional(), - createdModel: z.lazy(() => SortOrderSchema).optional(), - createdId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateAssetTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateAssetTypeSchema).optional(), - in: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - notIn: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => NestedEnumTemplateAssetTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema).optional() -}).strict(); - -export const EnumTemplateItemStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateItemStatusSchema).optional(), - in: z.lazy(() => TemplateItemStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateItemStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => NestedEnumTemplateItemStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateItemStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateItemStatusFilterSchema).optional() -}).strict(); - -export const EnumWorkflowStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowStatusSchema).optional(), - in: z.lazy(() => WorkflowStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => NestedEnumWorkflowStatusFilterSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - some: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - none: z.lazy(() => WorkflowTriggerWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - some: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - none: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowConnectionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowConnectionWhereInputSchema).optional(), - some: z.lazy(() => WorkflowConnectionWhereInputSchema).optional(), - none: z.lazy(() => WorkflowConnectionWhereInputSchema).optional() -}).strict(); - -export const WorkflowExecutionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - some: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - none: z.lazy(() => WorkflowExecutionWhereInputSchema).optional() -}).strict(); - -export const WorkflowAnalyticsListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => WorkflowAnalyticsWhereInputSchema).optional(), - some: z.lazy(() => WorkflowAnalyticsWhereInputSchema).optional(), - none: z.lazy(() => WorkflowAnalyticsWhereInputSchema).optional() -}).strict(); - -export const WorkflowTriggerOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowConnectionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowOrganizationIdNameVersionCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string(), - version: z.number() -}).strict(); - -export const WorkflowCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - canvasData: z.lazy(() => SortOrderSchema).optional(), - retryConfig: z.lazy(() => SortOrderSchema).optional(), - timeoutConfig: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - lastExecutedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - updatedById: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - publishedById: z.lazy(() => SortOrderSchema).optional(), - archivedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - version: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - lastExecutedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - updatedById: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - publishedById: z.lazy(() => SortOrderSchema).optional(), - archivedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - isTemplate: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - lastExecutedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - updatedById: z.lazy(() => SortOrderSchema).optional(), - publishedAt: z.lazy(() => SortOrderSchema).optional(), - publishedById: z.lazy(() => SortOrderSchema).optional(), - archivedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowSumOrderByAggregateInputSchema: z.ZodType = z.object({ - version: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowStatusSchema).optional(), - in: z.lazy(() => WorkflowStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => NestedEnumWorkflowStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowStatusFilterSchema).optional() -}).strict(); - -export const OrganizationUiConfigOrganizationIdKeyCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - key: z.string() -}).strict(); - -export const OrganizationUiConfigCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - key: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationUiConfigMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - key: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const OrganizationUiConfigMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - key: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowTriggerTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowTriggerTypeSchema).optional(), - in: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema) ]).optional(), -}).strict(); - -export const WorkflowRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowWhereInputSchema).optional(), - isNot: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const TriggerVariableListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TriggerVariableWhereInputSchema).optional(), - some: z.lazy(() => TriggerVariableWhereInputSchema).optional(), - none: z.lazy(() => TriggerVariableWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowNodeWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => WorkflowNodeWhereInputSchema).optional().nullable() -}).strict(); - -export const TriggerVariableOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowTriggerNodeIdWorkflowIdCompoundUniqueInputSchema: z.ZodType = z.object({ - nodeId: z.string(), - workflowId: z.string() -}).strict(); - -export const WorkflowTriggerCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - eventType: z.lazy(() => SortOrderSchema).optional(), - conditions: z.lazy(() => SortOrderSchema).optional(), - delay: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastTriggered: z.lazy(() => SortOrderSchema).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowTriggerAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - delay: z.lazy(() => SortOrderSchema).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowTriggerMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - eventType: z.lazy(() => SortOrderSchema).optional(), - delay: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastTriggered: z.lazy(() => SortOrderSchema).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowTriggerMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - module: z.lazy(() => SortOrderSchema).optional(), - entityType: z.lazy(() => SortOrderSchema).optional(), - eventType: z.lazy(() => SortOrderSchema).optional(), - delay: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - lastTriggered: z.lazy(() => SortOrderSchema).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowTriggerSumOrderByAggregateInputSchema: z.ZodType = z.object({ - delay: z.lazy(() => SortOrderSchema).optional(), - triggerCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowTriggerTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowTriggerTypeSchema).optional(), - in: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => NestedEnumWorkflowTriggerTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema).optional() -}).strict(); - -export const EnumWorkflowNodeTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowNodeTypeSchema).optional(), - in: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema) ]).optional(), -}).strict(); - -export const NodeExecutionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => NodeExecutionWhereInputSchema).optional(), - some: z.lazy(() => NodeExecutionWhereInputSchema).optional(), - none: z.lazy(() => NodeExecutionWhereInputSchema).optional() -}).strict(); - -export const NodeDependencyListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => NodeDependencyWhereInputSchema).optional(), - some: z.lazy(() => NodeDependencyWhereInputSchema).optional(), - none: z.lazy(() => NodeDependencyWhereInputSchema).optional() -}).strict(); - -export const EmailActionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => EmailActionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => EmailActionWhereInputSchema).optional().nullable() -}).strict(); - -export const SmsActionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => SmsActionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => SmsActionWhereInputSchema).optional().nullable() -}).strict(); - -export const WhatsAppActionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WhatsAppActionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => WhatsAppActionWhereInputSchema).optional().nullable() -}).strict(); - -export const SlackActionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => SlackActionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => SlackActionWhereInputSchema).optional().nullable() -}).strict(); - -export const CalendarActionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => CalendarActionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => CalendarActionWhereInputSchema).optional().nullable() -}).strict(); - -export const WorkflowTriggerNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowTriggerWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => WorkflowTriggerWhereInputSchema).optional().nullable() -}).strict(); - -export const NodeExecutionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeDependencyOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeWorkflowIdNodeIdCompoundUniqueInputSchema: z.ZodType = z.object({ - workflowId: z.string(), - nodeId: z.string() -}).strict(); - -export const WorkflowNodeCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - position: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - isOptional: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.lazy(() => SortOrderSchema).optional(), - conditions: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - isOptional: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - isOptional: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowNodeSumOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional(), - retryLimit: z.lazy(() => SortOrderSchema).optional(), - timeout: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowNodeTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowNodeTypeSchema).optional(), - in: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => NestedEnumWorkflowNodeTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema).optional() -}).strict(); - -export const WorkflowNodeRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - isNot: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowConnectionSourceNodeIdTargetNodeIdCompoundUniqueInputSchema: z.ZodType = z.object({ - sourceNodeId: z.string(), - targetNodeId: z.string() -}).strict(); - -export const WorkflowConnectionWorkflowIdEdgeIdCompoundUniqueInputSchema: z.ZodType = z.object({ - workflowId: z.string(), - edgeId: z.string() -}).strict(); - -export const WorkflowConnectionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - sourceNodeId: z.lazy(() => SortOrderSchema).optional(), - targetNodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - label: z.lazy(() => SortOrderSchema).optional(), - conditions: z.lazy(() => SortOrderSchema).optional(), - edgeId: z.lazy(() => SortOrderSchema).optional(), - sourceHandle: z.lazy(() => SortOrderSchema).optional(), - targetHandle: z.lazy(() => SortOrderSchema).optional(), - style: z.lazy(() => SortOrderSchema).optional(), - animated: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowConnectionAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowConnectionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - sourceNodeId: z.lazy(() => SortOrderSchema).optional(), - targetNodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - label: z.lazy(() => SortOrderSchema).optional(), - edgeId: z.lazy(() => SortOrderSchema).optional(), - sourceHandle: z.lazy(() => SortOrderSchema).optional(), - targetHandle: z.lazy(() => SortOrderSchema).optional(), - animated: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowConnectionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - sourceNodeId: z.lazy(() => SortOrderSchema).optional(), - targetNodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - label: z.lazy(() => SortOrderSchema).optional(), - edgeId: z.lazy(() => SortOrderSchema).optional(), - sourceHandle: z.lazy(() => SortOrderSchema).optional(), - targetHandle: z.lazy(() => SortOrderSchema).optional(), - animated: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowConnectionSumOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumDependencyTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DependencyTypeSchema).optional(), - in: z.lazy(() => DependencyTypeSchema).array().optional(), - notIn: z.lazy(() => DependencyTypeSchema).array().optional(), - not: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => NestedEnumDependencyTypeFilterSchema) ]).optional(), -}).strict(); - -export const NodeDependencyDependentNodeIdPrerequisiteNodeIdCompoundUniqueInputSchema: z.ZodType = z.object({ - dependentNodeId: z.string(), - prerequisiteNodeId: z.string() -}).strict(); - -export const NodeDependencyCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - dependentNodeId: z.lazy(() => SortOrderSchema).optional(), - prerequisiteNodeId: z.lazy(() => SortOrderSchema).optional(), - dependencyType: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeDependencyMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - dependentNodeId: z.lazy(() => SortOrderSchema).optional(), - prerequisiteNodeId: z.lazy(() => SortOrderSchema).optional(), - dependencyType: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeDependencyMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - dependentNodeId: z.lazy(() => SortOrderSchema).optional(), - prerequisiteNodeId: z.lazy(() => SortOrderSchema).optional(), - dependencyType: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumDependencyTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DependencyTypeSchema).optional(), - in: z.lazy(() => DependencyTypeSchema).array().optional(), - notIn: z.lazy(() => DependencyTypeSchema).array().optional(), - not: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => NestedEnumDependencyTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumDependencyTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumDependencyTypeFilterSchema).optional() -}).strict(); - -export const EnumActionTemplateCategoryFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ActionTemplateCategorySchema).optional(), - in: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - notIn: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - not: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ActionTemplateVersionWhereInputSchema).optional(), - some: z.lazy(() => ActionTemplateVersionWhereInputSchema).optional(), - none: z.lazy(() => ActionTemplateVersionWhereInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - defaultConfig: z.lazy(() => SortOrderSchema).optional(), - schema: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - isPublic: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - isLocked: z.lazy(() => SortOrderSchema).optional(), - requiredVariables: z.lazy(() => SortOrderSchema).optional(), - optionalVariables: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - isPublic: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - isLocked: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - isPublic: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - isLocked: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateSumOrderByAggregateInputSchema: z.ZodType = z.object({ - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumActionTemplateCategoryWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ActionTemplateCategorySchema).optional(), - in: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - notIn: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - not: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => NestedEnumActionTemplateCategoryWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema).optional(), - _max: z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema).optional() -}).strict(); - -export const ActionTemplateRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => ActionTemplateWhereInputSchema).optional(), - isNot: z.lazy(() => ActionTemplateWhereInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionTemplateIdVersionCompoundUniqueInputSchema: z.ZodType = z.object({ - templateId: z.string(), - version: z.string() -}).strict(); - -export const ActionTemplateVersionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - template: z.lazy(() => SortOrderSchema).optional(), - changes: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateVersionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - changes: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ActionTemplateVersionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - version: z.lazy(() => SortOrderSchema).optional(), - changes: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumVariableDataTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableDataTypeSchema).optional(), - in: z.lazy(() => VariableDataTypeSchema).array().optional(), - notIn: z.lazy(() => VariableDataTypeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => NestedEnumVariableDataTypeFilterSchema) ]).optional(), -}).strict(); - -export const EnumVariableScopeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableScopeSchema).optional(), - in: z.lazy(() => VariableScopeSchema).array().optional(), - notIn: z.lazy(() => VariableScopeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => NestedEnumVariableScopeFilterSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExecutionVariableWhereInputSchema).optional(), - some: z.lazy(() => ExecutionVariableWhereInputSchema).optional(), - none: z.lazy(() => ExecutionVariableWhereInputSchema).optional() -}).strict(); - -export const ExecutionVariableOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VariableDefinitionOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const VariableDefinitionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - displayName: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - validation: z.lazy(() => SortOrderSchema).optional(), - formatting: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - isCustom: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - moduleScope: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VariableDefinitionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - displayName: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - isCustom: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - moduleScope: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const VariableDefinitionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - displayName: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - isCustom: z.lazy(() => SortOrderSchema).optional(), - scope: z.lazy(() => SortOrderSchema).optional(), - moduleScope: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumVariableDataTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableDataTypeSchema).optional(), - in: z.lazy(() => VariableDataTypeSchema).array().optional(), - notIn: z.lazy(() => VariableDataTypeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => NestedEnumVariableDataTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumVariableDataTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumVariableDataTypeFilterSchema).optional() -}).strict(); - -export const EnumVariableScopeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableScopeSchema).optional(), - in: z.lazy(() => VariableScopeSchema).array().optional(), - notIn: z.lazy(() => VariableScopeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => NestedEnumVariableScopeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumVariableScopeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumVariableScopeFilterSchema).optional() -}).strict(); - -export const WorkflowTriggerRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - isNot: z.lazy(() => WorkflowTriggerWhereInputSchema).optional() -}).strict(); - -export const VariableDefinitionRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => VariableDefinitionWhereInputSchema).optional(), - isNot: z.lazy(() => VariableDefinitionWhereInputSchema).optional() -}).strict(); - -export const TriggerVariableTriggerIdVariableIdCompoundUniqueInputSchema: z.ZodType = z.object({ - triggerId: z.string(), - variableId: z.string() -}).strict(); - -export const TriggerVariableCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - variableId: z.lazy(() => SortOrderSchema).optional(), - mapping: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TriggerVariableMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - variableId: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TriggerVariableMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - variableId: z.lazy(() => SortOrderSchema).optional(), - isRequired: z.lazy(() => SortOrderSchema).optional(), - defaultValue: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowExecutionStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - in: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema) ]).optional(), -}).strict(); - -export const EnumExecutionPriorityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExecutionPrioritySchema).optional(), - in: z.lazy(() => ExecutionPrioritySchema).array().optional(), - notIn: z.lazy(() => ExecutionPrioritySchema).array().optional(), - not: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => NestedEnumExecutionPriorityFilterSchema) ]).optional(), -}).strict(); - -export const ExecutionLogListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => ExecutionLogWhereInputSchema).optional(), - some: z.lazy(() => ExecutionLogWhereInputSchema).optional(), - none: z.lazy(() => ExecutionLogWhereInputSchema).optional() -}).strict(); - -export const ExecutionLogOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - executionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - triggerData: z.lazy(() => SortOrderSchema).optional(), - triggerContext: z.lazy(() => SortOrderSchema).optional(), - currentNodeId: z.lazy(() => SortOrderSchema).optional(), - progress: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - failedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - result: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - errorDetails: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - progress: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - executionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - currentNodeId: z.lazy(() => SortOrderSchema).optional(), - progress: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - failedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - triggerId: z.lazy(() => SortOrderSchema).optional(), - executionId: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - priority: z.lazy(() => SortOrderSchema).optional(), - currentNodeId: z.lazy(() => SortOrderSchema).optional(), - progress: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - failedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowExecutionSumOrderByAggregateInputSchema: z.ZodType = z.object({ - progress: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - retryDelay: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWorkflowExecutionStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - in: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => NestedEnumWorkflowExecutionStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema).optional() -}).strict(); - -export const EnumExecutionPriorityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExecutionPrioritySchema).optional(), - in: z.lazy(() => ExecutionPrioritySchema).array().optional(), - notIn: z.lazy(() => ExecutionPrioritySchema).array().optional(), - not: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => NestedEnumExecutionPriorityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumExecutionPriorityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumExecutionPriorityFilterSchema).optional() -}).strict(); - -export const EnumNodeExecutionStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NodeExecutionStatusSchema).optional(), - in: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - isNot: z.lazy(() => WorkflowExecutionWhereInputSchema).optional() -}).strict(); - -export const NodeExecutionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - input: z.lazy(() => SortOrderSchema).optional(), - output: z.lazy(() => SortOrderSchema).optional(), - transformedData: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - errorDetails: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeExecutionAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeExecutionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeExecutionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - executionOrder: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - startedAt: z.lazy(() => SortOrderSchema).optional(), - completedAt: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - error: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const NodeExecutionSumOrderByAggregateInputSchema: z.ZodType = z.object({ - executionOrder: z.lazy(() => SortOrderSchema).optional(), - duration: z.lazy(() => SortOrderSchema).optional(), - retryCount: z.lazy(() => SortOrderSchema).optional(), - maxRetries: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumNodeExecutionStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NodeExecutionStatusSchema).optional(), - in: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => NestedEnumNodeExecutionStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema).optional() -}).strict(); - -export const VariableDefinitionNullableRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => VariableDefinitionWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => VariableDefinitionWhereInputSchema).optional().nullable() -}).strict(); - -export const ExecutionVariableCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - variableDefinitionId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - resolvedValue: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExecutionVariableMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - variableDefinitionId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - resolvedValue: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExecutionVariableMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - variableDefinitionId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - value: z.lazy(() => SortOrderSchema).optional(), - resolvedValue: z.lazy(() => SortOrderSchema).optional(), - dataType: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumLogLevelFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LogLevelSchema).optional(), - in: z.lazy(() => LogLevelSchema).array().optional(), - notIn: z.lazy(() => LogLevelSchema).array().optional(), - not: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => NestedEnumLogLevelFilterSchema) ]).optional(), -}).strict(); - -export const ExecutionLogCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - level: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - details: z.lazy(() => SortOrderSchema).optional(), - timestamp: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExecutionLogMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - level: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - timestamp: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const ExecutionLogMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowExecutionId: z.lazy(() => SortOrderSchema).optional(), - nodeId: z.lazy(() => SortOrderSchema).optional(), - level: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - timestamp: z.lazy(() => SortOrderSchema).optional(), - source: z.lazy(() => SortOrderSchema).optional(), - category: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumLogLevelWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LogLevelSchema).optional(), - in: z.lazy(() => LogLevelSchema).array().optional(), - notIn: z.lazy(() => LogLevelSchema).array().optional(), - not: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => NestedEnumLogLevelWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLogLevelFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLogLevelFilterSchema).optional() -}).strict(); - -export const EnumIntegrationTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IntegrationTypeSchema).optional(), - in: z.lazy(() => IntegrationTypeSchema).array().optional(), - notIn: z.lazy(() => IntegrationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => NestedEnumIntegrationTypeFilterSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigOrganizationIdNameCompoundUniqueInputSchema: z.ZodType = z.object({ - organizationId: z.string(), - name: z.string() -}).strict(); - -export const IntegrationConfigCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - config: z.lazy(() => SortOrderSchema).optional(), - credentials: z.lazy(() => SortOrderSchema).optional(), - endpoints: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - isHealthy: z.lazy(() => SortOrderSchema).optional(), - lastHealthCheck: z.lazy(() => SortOrderSchema).optional(), - healthDetails: z.lazy(() => SortOrderSchema).optional(), - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntegrationConfigAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntegrationConfigMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - isHealthy: z.lazy(() => SortOrderSchema).optional(), - lastHealthCheck: z.lazy(() => SortOrderSchema).optional(), - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntegrationConfigMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - type: z.lazy(() => SortOrderSchema).optional(), - isActive: z.lazy(() => SortOrderSchema).optional(), - isHealthy: z.lazy(() => SortOrderSchema).optional(), - lastHealthCheck: z.lazy(() => SortOrderSchema).optional(), - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional(), - lastUsedAt: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const IntegrationConfigSumOrderByAggregateInputSchema: z.ZodType = z.object({ - requestCount: z.lazy(() => SortOrderSchema).optional(), - errorCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumIntegrationTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IntegrationTypeSchema).optional(), - in: z.lazy(() => IntegrationTypeSchema).array().optional(), - notIn: z.lazy(() => IntegrationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => NestedEnumIntegrationTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumIntegrationTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumIntegrationTypeFilterSchema).optional() -}).strict(); - -export const EmailActionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromName: z.lazy(() => SortOrderSchema).optional(), - fromEmail: z.lazy(() => SortOrderSchema).optional(), - replyTo: z.lazy(() => SortOrderSchema).optional(), - ccEmails: z.lazy(() => SortOrderSchema).optional(), - bccEmails: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - htmlBody: z.lazy(() => SortOrderSchema).optional(), - textBody: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - attachments: z.lazy(() => SortOrderSchema).optional(), - trackOpens: z.lazy(() => SortOrderSchema).optional(), - trackClicks: z.lazy(() => SortOrderSchema).optional(), - variables: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailActionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromName: z.lazy(() => SortOrderSchema).optional(), - fromEmail: z.lazy(() => SortOrderSchema).optional(), - replyTo: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - htmlBody: z.lazy(() => SortOrderSchema).optional(), - textBody: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - trackOpens: z.lazy(() => SortOrderSchema).optional(), - trackClicks: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EmailActionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromName: z.lazy(() => SortOrderSchema).optional(), - fromEmail: z.lazy(() => SortOrderSchema).optional(), - replyTo: z.lazy(() => SortOrderSchema).optional(), - subject: z.lazy(() => SortOrderSchema).optional(), - htmlBody: z.lazy(() => SortOrderSchema).optional(), - textBody: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - trackOpens: z.lazy(() => SortOrderSchema).optional(), - trackClicks: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SmsActionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromNumber: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - maxLength: z.lazy(() => SortOrderSchema).optional(), - unicode: z.lazy(() => SortOrderSchema).optional(), - variables: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SmsActionAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - maxLength: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SmsActionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromNumber: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - maxLength: z.lazy(() => SortOrderSchema).optional(), - unicode: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SmsActionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - fromNumber: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - templateId: z.lazy(() => SortOrderSchema).optional(), - maxLength: z.lazy(() => SortOrderSchema).optional(), - unicode: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SmsActionSumOrderByAggregateInputSchema: z.ZodType = z.object({ - maxLength: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWhatsAppMessageTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - in: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - notIn: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - businessAccountId: z.lazy(() => SortOrderSchema).optional(), - toNumbers: z.lazy(() => SortOrderSchema).optional(), - messageType: z.lazy(() => SortOrderSchema).optional(), - textMessage: z.lazy(() => SortOrderSchema).optional(), - templateName: z.lazy(() => SortOrderSchema).optional(), - templateLanguage: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - mediaType: z.lazy(() => SortOrderSchema).optional(), - caption: z.lazy(() => SortOrderSchema).optional(), - templateParams: z.lazy(() => SortOrderSchema).optional(), - variables: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WhatsAppActionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - businessAccountId: z.lazy(() => SortOrderSchema).optional(), - messageType: z.lazy(() => SortOrderSchema).optional(), - textMessage: z.lazy(() => SortOrderSchema).optional(), - templateName: z.lazy(() => SortOrderSchema).optional(), - templateLanguage: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - mediaType: z.lazy(() => SortOrderSchema).optional(), - caption: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WhatsAppActionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - businessAccountId: z.lazy(() => SortOrderSchema).optional(), - messageType: z.lazy(() => SortOrderSchema).optional(), - textMessage: z.lazy(() => SortOrderSchema).optional(), - templateName: z.lazy(() => SortOrderSchema).optional(), - templateLanguage: z.lazy(() => SortOrderSchema).optional(), - mediaUrl: z.lazy(() => SortOrderSchema).optional(), - mediaType: z.lazy(() => SortOrderSchema).optional(), - caption: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumWhatsAppMessageTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - in: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - notIn: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => NestedEnumWhatsAppMessageTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema).optional() -}).strict(); - -export const SlackActionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - workspaceId: z.lazy(() => SortOrderSchema).optional(), - channel: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - blocks: z.lazy(() => SortOrderSchema).optional(), - attachments: z.lazy(() => SortOrderSchema).optional(), - asUser: z.lazy(() => SortOrderSchema).optional(), - username: z.lazy(() => SortOrderSchema).optional(), - iconEmoji: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - threadTs: z.lazy(() => SortOrderSchema).optional(), - replyBroadcast: z.lazy(() => SortOrderSchema).optional(), - variables: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SlackActionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - workspaceId: z.lazy(() => SortOrderSchema).optional(), - channel: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - asUser: z.lazy(() => SortOrderSchema).optional(), - username: z.lazy(() => SortOrderSchema).optional(), - iconEmoji: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - threadTs: z.lazy(() => SortOrderSchema).optional(), - replyBroadcast: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const SlackActionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - workspaceId: z.lazy(() => SortOrderSchema).optional(), - channel: z.lazy(() => SortOrderSchema).optional(), - userId: z.lazy(() => SortOrderSchema).optional(), - message: z.lazy(() => SortOrderSchema).optional(), - asUser: z.lazy(() => SortOrderSchema).optional(), - username: z.lazy(() => SortOrderSchema).optional(), - iconEmoji: z.lazy(() => SortOrderSchema).optional(), - iconUrl: z.lazy(() => SortOrderSchema).optional(), - threadTs: z.lazy(() => SortOrderSchema).optional(), - replyBroadcast: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarActionCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - calendarId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - isAllDay: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - attendees: z.lazy(() => SortOrderSchema).optional(), - organizer: z.lazy(() => SortOrderSchema).optional(), - reminders: z.lazy(() => SortOrderSchema).optional(), - recurrence: z.lazy(() => SortOrderSchema).optional(), - variables: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarActionMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - calendarId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - isAllDay: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - organizer: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const CalendarActionMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - actionId: z.lazy(() => SortOrderSchema).optional(), - integrationId: z.lazy(() => SortOrderSchema).optional(), - calendarId: z.lazy(() => SortOrderSchema).optional(), - title: z.lazy(() => SortOrderSchema).optional(), - description: z.lazy(() => SortOrderSchema).optional(), - location: z.lazy(() => SortOrderSchema).optional(), - startTime: z.lazy(() => SortOrderSchema).optional(), - endTime: z.lazy(() => SortOrderSchema).optional(), - isAllDay: z.lazy(() => SortOrderSchema).optional(), - timezone: z.lazy(() => SortOrderSchema).optional(), - organizer: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsWorkflowIdPeriodStartGranularityCompoundUniqueInputSchema: z.ZodType = z.object({ - workflowId: z.string(), - periodStart: z.coerce.date(), - granularity: z.string() -}).strict(); - -export const WorkflowAnalyticsCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - periodStart: z.lazy(() => SortOrderSchema).optional(), - periodEnd: z.lazy(() => SortOrderSchema).optional(), - granularity: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.lazy(() => SortOrderSchema).optional(), - minDuration: z.lazy(() => SortOrderSchema).optional(), - maxDuration: z.lazy(() => SortOrderSchema).optional(), - p95Duration: z.lazy(() => SortOrderSchema).optional(), - commonErrors: z.lazy(() => SortOrderSchema).optional(), - errorRate: z.lazy(() => SortOrderSchema).optional(), - avgCpuUsage: z.lazy(() => SortOrderSchema).optional(), - avgMemoryUsage: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.lazy(() => SortOrderSchema).optional(), - minDuration: z.lazy(() => SortOrderSchema).optional(), - maxDuration: z.lazy(() => SortOrderSchema).optional(), - p95Duration: z.lazy(() => SortOrderSchema).optional(), - errorRate: z.lazy(() => SortOrderSchema).optional(), - avgCpuUsage: z.lazy(() => SortOrderSchema).optional(), - avgMemoryUsage: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - periodStart: z.lazy(() => SortOrderSchema).optional(), - periodEnd: z.lazy(() => SortOrderSchema).optional(), - granularity: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.lazy(() => SortOrderSchema).optional(), - minDuration: z.lazy(() => SortOrderSchema).optional(), - maxDuration: z.lazy(() => SortOrderSchema).optional(), - p95Duration: z.lazy(() => SortOrderSchema).optional(), - errorRate: z.lazy(() => SortOrderSchema).optional(), - avgCpuUsage: z.lazy(() => SortOrderSchema).optional(), - avgMemoryUsage: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - workflowId: z.lazy(() => SortOrderSchema).optional(), - periodStart: z.lazy(() => SortOrderSchema).optional(), - periodEnd: z.lazy(() => SortOrderSchema).optional(), - granularity: z.lazy(() => SortOrderSchema).optional(), - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.lazy(() => SortOrderSchema).optional(), - minDuration: z.lazy(() => SortOrderSchema).optional(), - maxDuration: z.lazy(() => SortOrderSchema).optional(), - p95Duration: z.lazy(() => SortOrderSchema).optional(), - errorRate: z.lazy(() => SortOrderSchema).optional(), - avgCpuUsage: z.lazy(() => SortOrderSchema).optional(), - avgMemoryUsage: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const WorkflowAnalyticsSumOrderByAggregateInputSchema: z.ZodType = z.object({ - totalExecutions: z.lazy(() => SortOrderSchema).optional(), - successfulExecutions: z.lazy(() => SortOrderSchema).optional(), - failedExecutions: z.lazy(() => SortOrderSchema).optional(), - averageDuration: z.lazy(() => SortOrderSchema).optional(), - minDuration: z.lazy(() => SortOrderSchema).optional(), - maxDuration: z.lazy(() => SortOrderSchema).optional(), - p95Duration: z.lazy(() => SortOrderSchema).optional(), - errorRate: z.lazy(() => SortOrderSchema).optional(), - avgCpuUsage: z.lazy(() => SortOrderSchema).optional(), - avgMemoryUsage: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateShareModeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareModeSchema).optional(), - in: z.lazy(() => TemplateShareModeSchema).array().optional(), - notIn: z.lazy(() => TemplateShareModeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => NestedEnumTemplateShareModeFilterSchema) ]).optional(), -}).strict(); - -export const EnumTemplateShareStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareStatusSchema).optional(), - in: z.lazy(() => TemplateShareStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => NestedEnumTemplateShareStatusFilterSchema) ]).optional(), -}).strict(); - -export const TemplateShareRecipientListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateShareRecipientWhereInputSchema).optional(), - some: z.lazy(() => TemplateShareRecipientWhereInputSchema).optional(), - none: z.lazy(() => TemplateShareRecipientWhereInputSchema).optional() -}).strict(); - -export const TemplateShareAccessLogListRelationFilterSchema: z.ZodType = z.object({ - every: z.lazy(() => TemplateShareAccessLogWhereInputSchema).optional(), - some: z.lazy(() => TemplateShareAccessLogWhereInputSchema).optional(), - none: z.lazy(() => TemplateShareAccessLogWhereInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareAccessLogOrderByRelationAggregateInputSchema: z.ZodType = z.object({ - _count: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - shareMode: z.lazy(() => SortOrderSchema).optional(), - tokenHash: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - maxUses: z.lazy(() => SortOrderSchema).optional(), - allowExternal: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastAccessedAt: z.lazy(() => SortOrderSchema).optional(), - revokedAt: z.lazy(() => SortOrderSchema).optional(), - revokedById: z.lazy(() => SortOrderSchema).optional(), - snapshotData: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareAvgOrderByAggregateInputSchema: z.ZodType = z.object({ - maxUses: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - shareMode: z.lazy(() => SortOrderSchema).optional(), - tokenHash: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - maxUses: z.lazy(() => SortOrderSchema).optional(), - allowExternal: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastAccessedAt: z.lazy(() => SortOrderSchema).optional(), - revokedAt: z.lazy(() => SortOrderSchema).optional(), - revokedById: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - name: z.lazy(() => SortOrderSchema).optional(), - shareMode: z.lazy(() => SortOrderSchema).optional(), - tokenHash: z.lazy(() => SortOrderSchema).optional(), - expiresAt: z.lazy(() => SortOrderSchema).optional(), - maxUses: z.lazy(() => SortOrderSchema).optional(), - allowExternal: z.lazy(() => SortOrderSchema).optional(), - notes: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional(), - lastAccessedAt: z.lazy(() => SortOrderSchema).optional(), - revokedAt: z.lazy(() => SortOrderSchema).optional(), - revokedById: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional(), - createdById: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareSumOrderByAggregateInputSchema: z.ZodType = z.object({ - maxUses: z.lazy(() => SortOrderSchema).optional(), - usageCount: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateShareModeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareModeSchema).optional(), - in: z.lazy(() => TemplateShareModeSchema).array().optional(), - notIn: z.lazy(() => TemplateShareModeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => NestedEnumTemplateShareModeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareModeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareModeFilterSchema).optional() -}).strict(); - -export const EnumTemplateShareStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareStatusSchema).optional(), - in: z.lazy(() => TemplateShareStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => NestedEnumTemplateShareStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareStatusFilterSchema).optional() -}).strict(); - -export const EnumTemplateShareRecipientStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - in: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema) ]).optional(), -}).strict(); - -export const TemplateShareRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => TemplateShareWhereInputSchema).optional(), - isNot: z.lazy(() => TemplateShareWhereInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientShareIdEmailCompoundUniqueInputSchema: z.ZodType = z.object({ - shareId: z.string(), - email: z.string() -}).strict(); - -export const TemplateShareRecipientCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - invitedAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareRecipientMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - invitedAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareRecipientMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - invitedAt: z.lazy(() => SortOrderSchema).optional(), - viewedAt: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateShareRecipientStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - in: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => NestedEnumTemplateShareRecipientStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema).optional() -}).strict(); - -export const EnumTemplateShareAccessActionFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessActionSchema).optional(), - in: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema) ]).optional(), -}).strict(); - -export const EnumTemplateShareAccessStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessStatusSchema).optional(), - in: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - recipientEmail: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - errorMessage: z.lazy(() => SortOrderSchema).optional(), - metadata: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareAccessLogMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - recipientEmail: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - errorMessage: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareAccessLogMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - action: z.lazy(() => SortOrderSchema).optional(), - status: z.lazy(() => SortOrderSchema).optional(), - recipientEmail: z.lazy(() => SortOrderSchema).optional(), - userAgent: z.lazy(() => SortOrderSchema).optional(), - ipAddress: z.lazy(() => SortOrderSchema).optional(), - errorMessage: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EnumTemplateShareAccessActionWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessActionSchema).optional(), - in: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => NestedEnumTemplateShareAccessActionWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema).optional() -}).strict(); - -export const EnumTemplateShareAccessStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessStatusSchema).optional(), - in: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => NestedEnumTemplateShareAccessStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema).optional() -}).strict(); - -export const TemplateShareImportCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - importedById: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional(), - originalPackageId: z.lazy(() => SortOrderSchema).optional(), - originalOrgId: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareImportMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - importedById: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional(), - originalPackageId: z.lazy(() => SortOrderSchema).optional(), - originalOrgId: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const TemplateShareImportMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - shareId: z.lazy(() => SortOrderSchema).optional(), - organizationId: z.lazy(() => SortOrderSchema).optional(), - templatePackageId: z.lazy(() => SortOrderSchema).optional(), - importedById: z.lazy(() => SortOrderSchema).optional(), - importedAt: z.lazy(() => SortOrderSchema).optional(), - originalPackageId: z.lazy(() => SortOrderSchema).optional(), - originalOrgId: z.lazy(() => SortOrderSchema).optional(), - snapshotVersion: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EarlyAccessCodeCountOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - code: z.lazy(() => SortOrderSchema).optional(), - isUsed: z.lazy(() => SortOrderSchema).optional(), - usedById: z.lazy(() => SortOrderSchema).optional(), - usedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EarlyAccessCodeMaxOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - code: z.lazy(() => SortOrderSchema).optional(), - isUsed: z.lazy(() => SortOrderSchema).optional(), - usedById: z.lazy(() => SortOrderSchema).optional(), - usedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const EarlyAccessCodeMinOrderByAggregateInputSchema: z.ZodType = z.object({ - id: z.lazy(() => SortOrderSchema).optional(), - email: z.lazy(() => SortOrderSchema).optional(), - code: z.lazy(() => SortOrderSchema).optional(), - isUsed: z.lazy(() => SortOrderSchema).optional(), - usedById: z.lazy(() => SortOrderSchema).optional(), - usedAt: z.lazy(() => SortOrderSchema).optional(), - createdAt: z.lazy(() => SortOrderSchema).optional(), - updatedAt: z.lazy(() => SortOrderSchema).optional() -}).strict(); - -export const RolePermissionCreateNestedManyWithoutPermissionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => RolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionCreateNestedManyWithoutPermissionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const RolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => RolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const StringFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.string().optional() -}).strict(); - -export const NullableStringFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.string().optional().nullable() -}).strict(); - -export const DateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.coerce.date().optional() -}).strict(); - -export const RolePermissionUpdateManyWithoutPermissionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => RolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => RolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => RolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => RolePermissionUpdateManyWithWhereWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpdateManyWithWhereWithoutPermissionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => RolePermissionScalarWhereInputSchema),z.lazy(() => RolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionUpdateManyWithoutPermissionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutPermissionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const RolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => RolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => RolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => RolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => RolePermissionWhereUniqueInputSchema),z.lazy(() => RolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => RolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => RolePermissionUpdateManyWithWhereWithoutPermissionInputSchema),z.lazy(() => RolePermissionUpdateManyWithWhereWithoutPermissionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => RolePermissionScalarWhereInputSchema),z.lazy(() => RolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyPermissionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutPermissionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PermissionCreateNestedOneWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PermissionCreateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutRolePermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => PermissionCreateOrConnectWithoutRolePermissionsInputSchema).optional(), - connect: z.lazy(() => PermissionWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumUserRoleFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => UserRoleSchema).optional() -}).strict(); - -export const PermissionUpdateOneRequiredWithoutRolePermissionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PermissionCreateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutRolePermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => PermissionCreateOrConnectWithoutRolePermissionsInputSchema).optional(), - upsert: z.lazy(() => PermissionUpsertWithoutRolePermissionsInputSchema).optional(), - connect: z.lazy(() => PermissionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => PermissionUpdateToOneWithWhereWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUpdateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutRolePermissionsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutCustomRolesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomRolesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCustomRolesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const CustomRolePermissionCreateNestedManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationCreateNestedManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyCustomRoleInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedCreateNestedManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedCreateNestedManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyCustomRoleInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const BoolFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.boolean().optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutCustomRolesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomRolesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCustomRolesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutCustomRolesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUpdateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomRolesInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionUpdateManyWithoutCustomRoleNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutCustomRoleInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUpdateManyWithoutCustomRoleNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyCustomRoleInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutCustomRoleInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpsertWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRolePermissionWhereUniqueInputSchema),z.lazy(() => CustomRolePermissionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpdateWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUpdateManyWithWhereWithoutCustomRoleInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedUpdateManyWithoutCustomRoleNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyCustomRoleInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutCustomRoleInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutCustomRoleInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRoleCreateNestedOneWithoutPermissionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutPermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomRoleCreateOrConnectWithoutPermissionsInputSchema).optional(), - connect: z.lazy(() => CustomRoleWhereUniqueInputSchema).optional() -}).strict(); - -export const PermissionCreateNestedOneWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PermissionCreateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutCustomRolePermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => PermissionCreateOrConnectWithoutCustomRolePermissionsInputSchema).optional(), - connect: z.lazy(() => PermissionWhereUniqueInputSchema).optional() -}).strict(); - -export const CustomRoleUpdateOneRequiredWithoutPermissionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutPermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomRoleCreateOrConnectWithoutPermissionsInputSchema).optional(), - upsert: z.lazy(() => CustomRoleUpsertWithoutPermissionsInputSchema).optional(), - connect: z.lazy(() => CustomRoleWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomRoleUpdateToOneWithWhereWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUpdateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutPermissionsInputSchema) ]).optional(), -}).strict(); - -export const PermissionUpdateOneRequiredWithoutCustomRolePermissionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PermissionCreateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutCustomRolePermissionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => PermissionCreateOrConnectWithoutCustomRolePermissionsInputSchema).optional(), - upsert: z.lazy(() => PermissionUpsertWithoutCustomRolePermissionsInputSchema).optional(), - connect: z.lazy(() => PermissionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => PermissionUpdateToOneWithWhereWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUpdateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutCustomRolePermissionsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TaskCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCategoryCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseTagCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseTagCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EmployeeCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema).array(),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmployeeCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema).array(),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => MarketingCampaignCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvitationCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvitationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRoleCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRoleCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema).array(),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => VariableDefinitionCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => IntegrationConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplatePackageCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCategoryCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseTagCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema).array(),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmployeeCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema).array(),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => MarketingCampaignCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvitationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRoleCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema).array(),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => VariableDefinitionCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => IntegrationConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplatePackageCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomerUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomerUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomerUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomerUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomerUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => CustomerUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomerScalarWhereInputSchema),z.lazy(() => CustomerScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ProjectUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ProjectUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ProjectUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ProjectUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ProjectUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ProjectUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ProjectScalarWhereInputSchema),z.lazy(() => ProjectScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseCategoryUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCategoryCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseCategoryUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseCategoryUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseCategoryScalarWhereInputSchema),z.lazy(() => ExpenseCategoryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseTagUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseTagCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseTagUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseTagUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseTagScalarWhereInputSchema),z.lazy(() => ExpenseTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmployeeUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema).array(),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => EmployeeUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmployeeCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => EmployeeUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => EmployeeUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => EmployeeScalarWhereInputSchema),z.lazy(() => EmployeeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema).array(),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => MarketingCampaignUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => MarketingCampaignCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => MarketingCampaignUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => MarketingCampaignUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => MarketingCampaignScalarWhereInputSchema),z.lazy(() => MarketingCampaignScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvitationUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvitationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvitationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvitationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvitationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvitationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvitationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => InvitationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvitationScalarWhereInputSchema),z.lazy(() => InvitationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRoleUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRoleUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRoleCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRoleUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRoleUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRoleScalarWhereInputSchema),z.lazy(() => CustomRoleScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportScalarWhereInputSchema),z.lazy(() => FinancialReportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema).array(),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowScalarWhereInputSchema),z.lazy(() => WorkflowScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ActionTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ActionTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ActionTemplateUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ActionTemplateScalarWhereInputSchema),z.lazy(() => ActionTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => VariableDefinitionUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => VariableDefinitionCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => VariableDefinitionUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => VariableDefinitionUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => VariableDefinitionScalarWhereInputSchema),z.lazy(() => VariableDefinitionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => IntegrationConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => IntegrationConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => IntegrationConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => IntegrationConfigUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => IntegrationConfigScalarWhereInputSchema),z.lazy(() => IntegrationConfigScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplatePackageUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplatePackageCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplatePackageUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplatePackageScalarWhereInputSchema),z.lazy(() => TemplatePackageScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => OrganizationUiConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => OrganizationUiConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => OrganizationUiConfigUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => UserOrganizationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => UserOrganizationWhereUniqueInputSchema),z.lazy(() => UserOrganizationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomerCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomerUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomerUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomerWhereUniqueInputSchema),z.lazy(() => CustomerWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomerUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomerUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomerUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => CustomerUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomerScalarWhereInputSchema),z.lazy(() => CustomerScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ProjectCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ProjectUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ProjectUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ProjectWhereUniqueInputSchema),z.lazy(() => ProjectWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ProjectUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ProjectUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ProjectUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ProjectUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ProjectScalarWhereInputSchema),z.lazy(() => ProjectScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TaskCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => InvoiceUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseCategoryUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCategoryCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseCategoryWhereUniqueInputSchema),z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseCategoryUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseCategoryUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseCategoryScalarWhereInputSchema),z.lazy(() => ExpenseCategoryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseTagUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseTagCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseTagWhereUniqueInputSchema),z.lazy(() => ExpenseTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseTagUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseTagUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseTagScalarWhereInputSchema),z.lazy(() => ExpenseTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema).array(),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => EmployeeCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => EmployeeUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmployeeCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => EmployeeWhereUniqueInputSchema),z.lazy(() => EmployeeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => EmployeeUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => EmployeeUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => EmployeeUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => EmployeeScalarWhereInputSchema),z.lazy(() => EmployeeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema).array(),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => MarketingCampaignUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => MarketingCampaignCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => MarketingCampaignWhereUniqueInputSchema),z.lazy(() => MarketingCampaignWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => MarketingCampaignUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => MarketingCampaignUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => MarketingCampaignScalarWhereInputSchema),z.lazy(() => MarketingCampaignScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => InvitationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvitationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvitationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvitationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvitationWhereUniqueInputSchema),z.lazy(() => InvitationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvitationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => InvitationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvitationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => InvitationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvitationScalarWhereInputSchema),z.lazy(() => InvitationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema).array(),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => CustomRoleCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomRoleUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomRoleCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomRoleWhereUniqueInputSchema),z.lazy(() => CustomRoleWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomRoleUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomRoleUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomRoleScalarWhereInputSchema),z.lazy(() => CustomRoleScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => FinancialReportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportWhereUniqueInputSchema),z.lazy(() => FinancialReportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportScalarWhereInputSchema),z.lazy(() => FinancialReportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema).array(),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => WorkflowCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowWhereUniqueInputSchema),z.lazy(() => WorkflowWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => WorkflowUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowScalarWhereInputSchema),z.lazy(() => WorkflowScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ActionTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ActionTemplateWhereUniqueInputSchema),z.lazy(() => ActionTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ActionTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ActionTemplateUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ActionTemplateScalarWhereInputSchema),z.lazy(() => ActionTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => VariableDefinitionUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => VariableDefinitionCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => VariableDefinitionWhereUniqueInputSchema),z.lazy(() => VariableDefinitionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => VariableDefinitionUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => VariableDefinitionUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => VariableDefinitionScalarWhereInputSchema),z.lazy(() => VariableDefinitionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => IntegrationConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => IntegrationConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => IntegrationConfigWhereUniqueInputSchema),z.lazy(() => IntegrationConfigWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => IntegrationConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => IntegrationConfigUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => IntegrationConfigScalarWhereInputSchema),z.lazy(() => IntegrationConfigScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplatePackageUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplatePackageCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplatePackageWhereUniqueInputSchema),z.lazy(() => TemplatePackageWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplatePackageUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplatePackageScalarWhereInputSchema),z.lazy(() => TemplatePackageScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema).array(),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => OrganizationUiConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema),z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => OrganizationUiConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => OrganizationUiConfigUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutOrganizationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyOrganizationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutOrganizationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutImportSessionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutImportSessionsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const UserCreateNestedOneWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutCreatedImportSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const ImportRowCreateNestedManyWithoutSessionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowCreateManySessionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueCreateNestedManyWithoutSessionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManySessionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateCreateNestedOneWithoutSessionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportTemplateCreateOrConnectWithoutSessionsInputSchema).optional(), - connect: z.lazy(() => ImportTemplateWhereUniqueInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowCreateManySessionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManySessionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const IntFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const EnumImportModuleFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ImportModuleSchema).optional() -}).strict(); - -export const EnumImportEntityTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ImportEntityTypeSchema).optional() -}).strict(); - -export const EnumImportStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ImportStatusSchema).optional() -}).strict(); - -export const EnumDedupeModeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => DedupeModeSchema).optional() -}).strict(); - -export const NullableIntFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional().nullable(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const NullableDateTimeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.coerce.date().optional().nullable() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutImportSessionsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutImportSessionsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUpdateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportSessionsInputSchema) ]).optional(), -}).strict(); - -export const UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutCreatedImportSessionsInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutCreatedImportSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUpdateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportSessionsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowUpdateManyWithoutSessionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowUpsertWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowUpsertWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowCreateManySessionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowUpdateWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowUpdateWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowUpdateManyWithWhereWithoutSessionInputSchema),z.lazy(() => ImportRowUpdateManyWithWhereWithoutSessionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowScalarWhereInputSchema),z.lazy(() => ImportRowScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueUpdateManyWithoutSessionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManySessionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutSessionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUpdateOneWithoutSessionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportTemplateCreateOrConnectWithoutSessionsInputSchema).optional(), - upsert: z.lazy(() => ImportTemplateUpsertWithoutSessionsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => ImportTemplateWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => ImportTemplateWhereInputSchema) ]).optional(), - connect: z.lazy(() => ImportTemplateWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ImportTemplateUpdateToOneWithWhereWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUpdateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutSessionsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowUpsertWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowUpsertWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowCreateManySessionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowWhereUniqueInputSchema),z.lazy(() => ImportRowWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowUpdateWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowUpdateWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowUpdateManyWithWhereWithoutSessionInputSchema),z.lazy(() => ImportRowUpdateManyWithWhereWithoutSessionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowScalarWhereInputSchema),z.lazy(() => ImportRowScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutSessionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManySessionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutSessionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutSessionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutImportTemplatesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const UserCreateNestedOneWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutCreatedImportTemplatesInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const ImportSessionCreateNestedManyWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyAppliedTemplateInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedCreateNestedManyWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyAppliedTemplateInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutImportTemplatesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutImportTemplatesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutImportTemplatesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUpdateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportTemplatesInputSchema) ]).optional(), -}).strict(); - -export const UserUpdateOneRequiredWithoutCreatedImportTemplatesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutCreatedImportTemplatesInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutCreatedImportTemplatesInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUpdateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportTemplatesInputSchema) ]).optional(), -}).strict(); - -export const ImportSessionUpdateManyWithoutAppliedTemplateNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutAppliedTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyAppliedTemplateInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutAppliedTemplateInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutAppliedTemplateInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutAppliedTemplateNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutAppliedTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyAppliedTemplateInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutAppliedTemplateInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutAppliedTemplateInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionCreateNestedOneWithoutRowsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutRowsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportSessionCreateOrConnectWithoutRowsInputSchema).optional(), - connect: z.lazy(() => ImportSessionWhereUniqueInputSchema).optional() -}).strict(); - -export const ImportRowIssueCreateNestedManyWithoutRowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManyRowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedCreateNestedManyWithoutRowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManyRowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumRowStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => RowStatusSchema).optional() -}).strict(); - -export const ImportSessionUpdateOneRequiredWithoutRowsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutRowsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportSessionCreateOrConnectWithoutRowsInputSchema).optional(), - upsert: z.lazy(() => ImportSessionUpsertWithoutRowsInputSchema).optional(), - connect: z.lazy(() => ImportSessionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateToOneWithWhereWithoutRowsInputSchema),z.lazy(() => ImportSessionUpdateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutRowsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueUpdateManyWithoutRowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutRowInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManyRowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutRowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutRowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedUpdateManyWithoutRowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema).array(),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema),z.lazy(() => ImportRowIssueCreateOrConnectWithoutRowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpsertWithWhereUniqueWithoutRowInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportRowIssueCreateManyRowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportRowIssueWhereUniqueInputSchema),z.lazy(() => ImportRowIssueWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpdateWithWhereUniqueWithoutRowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutRowInputSchema),z.lazy(() => ImportRowIssueUpdateManyWithWhereWithoutRowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionCreateNestedOneWithoutIssuesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutIssuesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportSessionCreateOrConnectWithoutIssuesInputSchema).optional(), - connect: z.lazy(() => ImportSessionWhereUniqueInputSchema).optional() -}).strict(); - -export const ImportRowCreateNestedOneWithoutIssuesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutIssuesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportRowCreateOrConnectWithoutIssuesInputSchema).optional(), - connect: z.lazy(() => ImportRowWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumIssueSeverityFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => IssueSeveritySchema).optional() -}).strict(); - -export const ImportSessionUpdateOneRequiredWithoutIssuesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutIssuesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportSessionCreateOrConnectWithoutIssuesInputSchema).optional(), - upsert: z.lazy(() => ImportSessionUpsertWithoutIssuesInputSchema).optional(), - connect: z.lazy(() => ImportSessionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateToOneWithWhereWithoutIssuesInputSchema),z.lazy(() => ImportSessionUpdateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutIssuesInputSchema) ]).optional(), -}).strict(); - -export const ImportRowUpdateOneRequiredWithoutIssuesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportRowCreateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutIssuesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ImportRowCreateOrConnectWithoutIssuesInputSchema).optional(), - upsert: z.lazy(() => ImportRowUpsertWithoutIssuesInputSchema).optional(), - connect: z.lazy(() => ImportRowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ImportRowUpdateToOneWithWhereWithoutIssuesInputSchema),z.lazy(() => ImportRowUpdateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedUpdateWithoutIssuesInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutUsersInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUsersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutUsersInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const CustomRoleCreateNestedOneWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutUserAssignmentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomRoleCreateOrConnectWithoutUserAssignmentsInputSchema).optional(), - connect: z.lazy(() => CustomRoleWhereUniqueInputSchema).optional() -}).strict(); - -export const NullableEnumUserRoleFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => UserRoleSchema).optional().nullable() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutUsersNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUsersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutUsersInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutUsersInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutUsersInputSchema),z.lazy(() => OrganizationUpdateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUsersInputSchema) ]).optional(), -}).strict(); - -export const CustomRoleUpdateOneWithoutUserAssignmentsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomRoleCreateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutUserAssignmentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomRoleCreateOrConnectWithoutUserAssignmentsInputSchema).optional(), - upsert: z.lazy(() => CustomRoleUpsertWithoutUserAssignmentsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => CustomRoleWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => CustomRoleWhereInputSchema) ]).optional(), - connect: z.lazy(() => CustomRoleWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomRoleUpdateToOneWithWhereWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUpdateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutUserAssignmentsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutCustomersInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCustomersInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const CustomerInteractionCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema).array(),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerInteractionCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const DealCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealCreateWithoutCustomerInputSchema).array(),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => DealCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateWithoutCustomerInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerInteractionUncheckedCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema).array(),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerInteractionCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const DealUncheckedCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealCreateWithoutCustomerInputSchema).array(),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => DealCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUncheckedCreateNestedManyWithoutCustomerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateWithoutCustomerInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyCustomerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumCustomerTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => CustomerTypeSchema).optional() -}).strict(); - -export const NullableEnumLeadStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => LeadStatusSchema).optional().nullable() -}).strict(); - -export const NullableEnumLeadSourceFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => LeadSourceSchema).optional().nullable() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutCustomersNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCustomersInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutCustomersInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutCustomersInputSchema),z.lazy(() => OrganizationUpdateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomersInputSchema) ]).optional(), -}).strict(); - -export const CustomerInteractionUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema).array(),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomerInteractionUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerInteractionCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomerInteractionUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomerInteractionUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomerInteractionScalarWhereInputSchema),z.lazy(() => CustomerInteractionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const DealUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealCreateWithoutCustomerInputSchema).array(),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => DealUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => DealUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => DealCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => DealUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => DealUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => DealUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => DealUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => DealScalarWhereInputSchema),z.lazy(() => DealScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateWithoutCustomerInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => InvoiceUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerInteractionUncheckedUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema).array(),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CustomerInteractionUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => CustomerInteractionCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CustomerInteractionWhereUniqueInputSchema),z.lazy(() => CustomerInteractionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CustomerInteractionUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CustomerInteractionUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CustomerInteractionScalarWhereInputSchema),z.lazy(() => CustomerInteractionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const DealUncheckedUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealCreateWithoutCustomerInputSchema).array(),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => DealCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => DealUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => DealUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => DealCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => DealWhereUniqueInputSchema),z.lazy(() => DealWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => DealUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => DealUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => DealUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => DealUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => DealScalarWhereInputSchema),z.lazy(() => DealScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceUncheckedUpdateManyWithoutCustomerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateWithoutCustomerInputSchema).array(),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema),z.lazy(() => InvoiceCreateOrConnectWithoutCustomerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => InvoiceUpsertWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceCreateManyCustomerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceWhereUniqueInputSchema),z.lazy(() => InvoiceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutCustomerInputSchema),z.lazy(() => InvoiceUpdateWithWhereUniqueWithoutCustomerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceUpdateManyWithWhereWithoutCustomerInputSchema),z.lazy(() => InvoiceUpdateManyWithWhereWithoutCustomerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerCreateNestedOneWithoutInteractionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInteractionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutInteractionsInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskCreateNestedManyWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyCustomerInteractionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedCreateNestedManyWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyCustomerInteractionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumInteractionTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => InteractionTypeSchema).optional() -}).strict(); - -export const EnumInteractionMediumFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => InteractionMediumSchema).optional() -}).strict(); - -export const CustomerUpdateOneRequiredWithoutInteractionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInteractionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutInteractionsInputSchema).optional(), - upsert: z.lazy(() => CustomerUpsertWithoutInteractionsInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomerUpdateToOneWithWhereWithoutInteractionsInputSchema),z.lazy(() => CustomerUpdateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInteractionsInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateManyWithoutCustomerInteractionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutCustomerInteractionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyCustomerInteractionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutCustomerInteractionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutCustomerInteractionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedUpdateManyWithoutCustomerInteractionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema),z.lazy(() => TaskCreateOrConnectWithoutCustomerInteractionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutCustomerInteractionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyCustomerInteractionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutCustomerInteractionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutCustomerInteractionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerCreateNestedOneWithoutDealsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutDealsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutDealsInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional() -}).strict(); - -export const DecimalFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - increment: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - decrement: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - multiply: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - divide: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional() -}).strict(); - -export const EnumLeadStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => LeadStatusSchema).optional() -}).strict(); - -export const NullableFloatFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional().nullable(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const CustomerUpdateOneRequiredWithoutDealsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutDealsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutDealsInputSchema).optional(), - upsert: z.lazy(() => CustomerUpsertWithoutDealsInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomerUpdateToOneWithWhereWithoutDealsInputSchema),z.lazy(() => CustomerUpdateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutDealsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutProjectsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutProjectsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutProjectsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskCreateWithoutProjectInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectResourceCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema).array(),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectResourceCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateWithoutProjectInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseCreateWithoutProjectInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskCreateWithoutProjectInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema).array(),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectResourceCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateWithoutProjectInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseCreateWithoutProjectInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyProjectInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumProjectStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ProjectStatusSchema).optional() -}).strict(); - -export const NullableDecimalFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - increment: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - decrement: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - multiply: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - divide: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutProjectsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutProjectsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutProjectsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutProjectsInputSchema),z.lazy(() => OrganizationUpdateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutProjectsInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskCreateWithoutProjectInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectResourceUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema).array(),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ProjectResourceUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectResourceCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ProjectResourceUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ProjectResourceUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ProjectResourceScalarWhereInputSchema),z.lazy(() => ProjectResourceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateWithoutProjectInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeEntryUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => TimeEntryUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseCreateWithoutProjectInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TaskUncheckedUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskCreateWithoutProjectInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TaskCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema).array(),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ProjectResourceCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ProjectResourceUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ProjectResourceCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ProjectResourceWhereUniqueInputSchema),z.lazy(() => ProjectResourceWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ProjectResourceUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ProjectResourceUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => ProjectResourceUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ProjectResourceScalarWhereInputSchema),z.lazy(() => ProjectResourceScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateWithoutProjectInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeEntryUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => TimeEntryUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseCreateWithoutProjectInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutProjectInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyProjectInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutProjectInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutProjectInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutProjectInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutProjectInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutTasksInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTasksInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const ProjectCreateNestedOneWithoutTasksInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutTasksInputSchema).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskCreateNestedOneWithoutSubtasksInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedCreateWithoutSubtasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutSubtasksInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskCreateNestedManyWithoutParentTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskCreateWithoutParentTaskInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema),z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyParentTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateWithoutTaskInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CommentCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentCreateWithoutTaskInputSchema).array(),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => CommentCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AttachmentCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentCreateWithoutTaskInputSchema).array(),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => AttachmentCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerInteractionCreateNestedOneWithoutTasksInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerInteractionCreateOrConnectWithoutTasksInputSchema).optional(), - connect: z.lazy(() => CustomerInteractionWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskCreateWithoutParentTaskInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema),z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyParentTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateWithoutTaskInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CommentUncheckedCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentCreateWithoutTaskInputSchema).array(),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => CommentCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentCreateWithoutTaskInputSchema).array(),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => AttachmentCreateManyTaskInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumTaskStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TaskStatusSchema).optional() -}).strict(); - -export const EnumPriorityFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => PrioritySchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTasksInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutTasksInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutTasksInputSchema),z.lazy(() => OrganizationUpdateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTasksInputSchema) ]).optional(), -}).strict(); - -export const ProjectUpdateOneWithoutTasksNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutTasksInputSchema).optional(), - upsert: z.lazy(() => ProjectUpsertWithoutTasksInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ProjectUpdateToOneWithWhereWithoutTasksInputSchema),z.lazy(() => ProjectUpdateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTasksInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateOneWithoutSubtasksNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedCreateWithoutSubtasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutSubtasksInputSchema).optional(), - upsert: z.lazy(() => TaskUpsertWithoutSubtasksInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => TaskWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => TaskWhereInputSchema) ]).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TaskUpdateToOneWithWhereWithoutSubtasksInputSchema),z.lazy(() => TaskUpdateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutSubtasksInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateManyWithoutParentTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskCreateWithoutParentTaskInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema),z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutParentTaskInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutParentTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyParentTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutParentTaskInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutParentTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutParentTaskInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutParentTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateWithoutTaskInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeEntryUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => TimeEntryUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CommentUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentCreateWithoutTaskInputSchema).array(),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CommentUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => CommentUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => CommentCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CommentUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => CommentUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CommentUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => CommentUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CommentScalarWhereInputSchema),z.lazy(() => CommentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AttachmentUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentCreateWithoutTaskInputSchema).array(),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AttachmentUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => AttachmentUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => AttachmentCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AttachmentUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => AttachmentUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AttachmentUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => AttachmentUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AttachmentScalarWhereInputSchema),z.lazy(() => AttachmentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CustomerInteractionUpdateOneWithoutTasksNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutTasksInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerInteractionCreateOrConnectWithoutTasksInputSchema).optional(), - upsert: z.lazy(() => CustomerInteractionUpsertWithoutTasksInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => CustomerInteractionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => CustomerInteractionWhereInputSchema) ]).optional(), - connect: z.lazy(() => CustomerInteractionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomerInteractionUpdateToOneWithWhereWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUpdateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateWithoutTasksInputSchema) ]).optional(), -}).strict(); - -export const TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskCreateWithoutParentTaskInputSchema).array(),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema),z.lazy(() => TaskCreateOrConnectWithoutParentTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TaskUpsertWithWhereUniqueWithoutParentTaskInputSchema),z.lazy(() => TaskUpsertWithWhereUniqueWithoutParentTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TaskCreateManyParentTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TaskWhereUniqueInputSchema),z.lazy(() => TaskWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TaskUpdateWithWhereUniqueWithoutParentTaskInputSchema),z.lazy(() => TaskUpdateWithWhereUniqueWithoutParentTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TaskUpdateManyWithWhereWithoutParentTaskInputSchema),z.lazy(() => TaskUpdateManyWithWhereWithoutParentTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateWithoutTaskInputSchema).array(),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema),z.lazy(() => TimeEntryCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => TimeEntryUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeEntryCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeEntryWhereUniqueInputSchema),z.lazy(() => TimeEntryWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => TimeEntryUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeEntryUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => TimeEntryUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CommentUncheckedUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentCreateWithoutTaskInputSchema).array(),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => CommentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CommentUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => CommentUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => CommentCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CommentWhereUniqueInputSchema),z.lazy(() => CommentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CommentUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => CommentUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CommentUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => CommentUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CommentScalarWhereInputSchema),z.lazy(() => CommentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentCreateWithoutTaskInputSchema).array(),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema),z.lazy(() => AttachmentCreateOrConnectWithoutTaskInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AttachmentUpsertWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => AttachmentUpsertWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - createMany: z.lazy(() => AttachmentCreateManyTaskInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AttachmentWhereUniqueInputSchema),z.lazy(() => AttachmentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AttachmentUpdateWithWhereUniqueWithoutTaskInputSchema),z.lazy(() => AttachmentUpdateWithWhereUniqueWithoutTaskInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AttachmentUpdateManyWithWhereWithoutTaskInputSchema),z.lazy(() => AttachmentUpdateManyWithWhereWithoutTaskInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AttachmentScalarWhereInputSchema),z.lazy(() => AttachmentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ProjectCreateNestedOneWithoutResourcesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutResourcesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutResourcesInputSchema).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional() -}).strict(); - -export const ProjectUpdateOneRequiredWithoutResourcesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutResourcesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutResourcesInputSchema).optional(), - upsert: z.lazy(() => ProjectUpsertWithoutResourcesInputSchema).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ProjectUpdateToOneWithWhereWithoutResourcesInputSchema),z.lazy(() => ProjectUpdateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutResourcesInputSchema) ]).optional(), -}).strict(); - -export const ProjectCreateNestedOneWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTimeEntriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutTimeEntriesInputSchema).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskCreateNestedOneWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedCreateWithoutTimeEntriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutTimeEntriesInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional() -}).strict(); - -export const ProjectUpdateOneWithoutTimeEntriesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTimeEntriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutTimeEntriesInputSchema).optional(), - upsert: z.lazy(() => ProjectUpsertWithoutTimeEntriesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ProjectUpdateToOneWithWhereWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUpdateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTimeEntriesInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateOneWithoutTimeEntriesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedCreateWithoutTimeEntriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutTimeEntriesInputSchema).optional(), - upsert: z.lazy(() => TaskUpsertWithoutTimeEntriesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => TaskWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => TaskWhereInputSchema) ]).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TaskUpdateToOneWithWhereWithoutTimeEntriesInputSchema),z.lazy(() => TaskUpdateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutTimeEntriesInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutInvoicesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvoicesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutInvoicesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const CustomerCreateNestedOneWithoutInvoicesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInvoicesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutInvoicesInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional() -}).strict(); - -export const InvoiceItemCreateNestedManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema).array(),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceItemCreateManyInvoiceInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const PaymentCreateNestedManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateWithoutInvoiceInputSchema).array(),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => PaymentCreateManyInvoiceInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema).array(),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceItemCreateManyInvoiceInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const PaymentUncheckedCreateNestedManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateWithoutInvoiceInputSchema).array(),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => PaymentCreateManyInvoiceInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumInvoiceStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => InvoiceStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutInvoicesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvoicesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutInvoicesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutInvoicesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutInvoicesInputSchema),z.lazy(() => OrganizationUpdateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvoicesInputSchema) ]).optional(), -}).strict(); - -export const CustomerUpdateOneRequiredWithoutInvoicesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CustomerCreateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInvoicesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CustomerCreateOrConnectWithoutInvoicesInputSchema).optional(), - upsert: z.lazy(() => CustomerUpsertWithoutInvoicesInputSchema).optional(), - connect: z.lazy(() => CustomerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CustomerUpdateToOneWithWhereWithoutInvoicesInputSchema),z.lazy(() => CustomerUpdateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInvoicesInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemUpdateManyWithoutInvoiceNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema).array(),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceItemCreateManyInvoiceInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceItemUpdateManyWithWhereWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpdateManyWithWhereWithoutInvoiceInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceItemScalarWhereInputSchema),z.lazy(() => InvoiceItemScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PaymentUpdateManyWithoutInvoiceNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateWithoutInvoiceInputSchema).array(),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PaymentUpsertWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => PaymentUpsertWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => PaymentCreateManyInvoiceInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PaymentUpdateWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => PaymentUpdateWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PaymentUpdateManyWithWhereWithoutInvoiceInputSchema),z.lazy(() => PaymentUpdateManyWithWhereWithoutInvoiceInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PaymentScalarWhereInputSchema),z.lazy(() => PaymentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema).array(),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => InvoiceItemCreateManyInvoiceInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => InvoiceItemWhereUniqueInputSchema),z.lazy(() => InvoiceItemWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => InvoiceItemUpdateManyWithWhereWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUpdateManyWithWhereWithoutInvoiceInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => InvoiceItemScalarWhereInputSchema),z.lazy(() => InvoiceItemScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PaymentUncheckedUpdateManyWithoutInvoiceNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateWithoutInvoiceInputSchema).array(),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema),z.lazy(() => PaymentCreateOrConnectWithoutInvoiceInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PaymentUpsertWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => PaymentUpsertWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - createMany: z.lazy(() => PaymentCreateManyInvoiceInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PaymentWhereUniqueInputSchema),z.lazy(() => PaymentWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PaymentUpdateWithWhereUniqueWithoutInvoiceInputSchema),z.lazy(() => PaymentUpdateWithWhereUniqueWithoutInvoiceInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PaymentUpdateManyWithWhereWithoutInvoiceInputSchema),z.lazy(() => PaymentUpdateManyWithWhereWithoutInvoiceInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PaymentScalarWhereInputSchema),z.lazy(() => PaymentScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const InvoiceCreateNestedOneWithoutItemsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutItemsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => InvoiceCreateOrConnectWithoutItemsInputSchema).optional(), - connect: z.lazy(() => InvoiceWhereUniqueInputSchema).optional() -}).strict(); - -export const InvoiceUpdateOneRequiredWithoutItemsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutItemsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => InvoiceCreateOrConnectWithoutItemsInputSchema).optional(), - upsert: z.lazy(() => InvoiceUpsertWithoutItemsInputSchema).optional(), - connect: z.lazy(() => InvoiceWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateToOneWithWhereWithoutItemsInputSchema),z.lazy(() => InvoiceUpdateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutItemsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceCreateNestedOneWithoutPaymentsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutPaymentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => InvoiceCreateOrConnectWithoutPaymentsInputSchema).optional(), - connect: z.lazy(() => InvoiceWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumPaymentMethodFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => PaymentMethodSchema).optional() -}).strict(); - -export const EnumPaymentStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => PaymentStatusSchema).optional() -}).strict(); - -export const InvoiceUpdateOneRequiredWithoutPaymentsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => InvoiceCreateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutPaymentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => InvoiceCreateOrConnectWithoutPaymentsInputSchema).optional(), - upsert: z.lazy(() => InvoiceUpsertWithoutPaymentsInputSchema).optional(), - connect: z.lazy(() => InvoiceWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => InvoiceUpdateToOneWithWhereWithoutPaymentsInputSchema),z.lazy(() => InvoiceUpdateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutPaymentsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutExpensesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseCategoryCreateNestedOneWithoutExpensesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseCategoryCreateOrConnectWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).optional() -}).strict(); - -export const ProjectCreateNestedOneWithoutExpensesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseToTagCreateNestedManyWithoutExpenseInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyExpenseInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedCreateNestedManyWithoutExpenseInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyExpenseInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumExpenseStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ExpenseStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutExpensesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpensesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutExpensesInputSchema),z.lazy(() => OrganizationUpdateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpensesInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCategoryUpdateOneWithoutExpensesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseCategoryCreateOrConnectWithoutExpensesInputSchema).optional(), - upsert: z.lazy(() => ExpenseCategoryUpsertWithoutExpensesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => ExpenseCategoryWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => ExpenseCategoryWhereInputSchema) ]).optional(), - connect: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ExpenseCategoryUpdateToOneWithWhereWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateWithoutExpensesInputSchema) ]).optional(), -}).strict(); - -export const ProjectUpdateOneWithoutExpensesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ProjectCreateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ProjectCreateOrConnectWithoutExpensesInputSchema).optional(), - upsert: z.lazy(() => ProjectUpsertWithoutExpensesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => ProjectWhereInputSchema) ]).optional(), - connect: z.lazy(() => ProjectWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ProjectUpdateToOneWithWhereWithoutExpensesInputSchema),z.lazy(() => ProjectUpdateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutExpensesInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagUpdateManyWithoutExpenseNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutExpenseInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyExpenseInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutExpenseInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutExpenseInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedUpdateManyWithoutExpenseNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutExpenseInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutExpenseInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyExpenseInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutExpenseInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutExpenseInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseCategoriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpenseCategoriesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseCreateNestedManyWithoutCategoryInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateWithoutCategoryInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyCategoryInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedCreateNestedManyWithoutCategoryInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateWithoutCategoryInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyCategoryInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutExpenseCategoriesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseCategoriesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpenseCategoriesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutExpenseCategoriesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUpdateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseCategoriesInputSchema) ]).optional(), -}).strict(); - -export const ExpenseUpdateManyWithoutCategoryNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateWithoutCategoryInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutCategoryInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutCategoryInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyCategoryInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutCategoryInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutCategoryInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutCategoryInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutCategoryInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutCategoryNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateWithoutCategoryInputSchema).array(),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema),z.lazy(() => ExpenseCreateOrConnectWithoutCategoryInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutCategoryInputSchema),z.lazy(() => ExpenseUpsertWithWhereUniqueWithoutCategoryInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseCreateManyCategoryInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseWhereUniqueInputSchema),z.lazy(() => ExpenseWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutCategoryInputSchema),z.lazy(() => ExpenseUpdateWithWhereUniqueWithoutCategoryInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseUpdateManyWithWhereWithoutCategoryInputSchema),z.lazy(() => ExpenseUpdateManyWithWhereWithoutCategoryInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseTagsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpenseTagsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseToTagCreateNestedManyWithoutTagInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyTagInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedCreateNestedManyWithoutTagInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyTagInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutExpenseTagsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseTagsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutExpenseTagsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutExpenseTagsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUpdateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseTagsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagUpdateManyWithoutTagNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutTagInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyTagInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutTagInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutTagInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedUpdateManyWithoutTagNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema).array(),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema),z.lazy(() => ExpenseToTagCreateOrConnectWithoutTagInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpsertWithWhereUniqueWithoutTagInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExpenseToTagCreateManyTagInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExpenseToTagWhereUniqueInputSchema),z.lazy(() => ExpenseToTagWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpdateWithWhereUniqueWithoutTagInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutTagInputSchema),z.lazy(() => ExpenseToTagUpdateManyWithWhereWithoutTagInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExpenseCreateNestedOneWithoutTagsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutTagsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseCreateOrConnectWithoutTagsInputSchema).optional(), - connect: z.lazy(() => ExpenseWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseTagCreateNestedOneWithoutExpensesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseTagCreateOrConnectWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => ExpenseTagWhereUniqueInputSchema).optional() -}).strict(); - -export const ExpenseUpdateOneRequiredWithoutTagsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseCreateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutTagsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseCreateOrConnectWithoutTagsInputSchema).optional(), - upsert: z.lazy(() => ExpenseUpsertWithoutTagsInputSchema).optional(), - connect: z.lazy(() => ExpenseWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ExpenseUpdateToOneWithWhereWithoutTagsInputSchema),z.lazy(() => ExpenseUpdateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutTagsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseTagUpdateOneRequiredWithoutExpensesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutExpensesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ExpenseTagCreateOrConnectWithoutExpensesInputSchema).optional(), - upsert: z.lazy(() => ExpenseTagUpsertWithoutExpensesInputSchema).optional(), - connect: z.lazy(() => ExpenseTagWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ExpenseTagUpdateToOneWithWhereWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateWithoutExpensesInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateNestedOneWithoutCommentsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCommentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutCommentsInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskUpdateOneRequiredWithoutCommentsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCommentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutCommentsInputSchema).optional(), - upsert: z.lazy(() => TaskUpsertWithoutCommentsInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TaskUpdateToOneWithWhereWithoutCommentsInputSchema),z.lazy(() => TaskUpdateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutCommentsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateNestedOneWithoutAttachmentsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutAttachmentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutAttachmentsInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional() -}).strict(); - -export const TaskUpdateOneRequiredWithoutAttachmentsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TaskCreateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutAttachmentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TaskCreateOrConnectWithoutAttachmentsInputSchema).optional(), - upsert: z.lazy(() => TaskUpsertWithoutAttachmentsInputSchema).optional(), - connect: z.lazy(() => TaskWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TaskUpdateToOneWithWhereWithoutAttachmentsInputSchema),z.lazy(() => TaskUpdateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutAttachmentsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeCreateNestedManyWithoutEventInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema).array(),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema).array() ]).optional(), - createMany: z.lazy(() => CalendarEventAttendeeCreateManyEventInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUncheckedCreateNestedManyWithoutEventInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema).array(),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema).array() ]).optional(), - createMany: z.lazy(() => CalendarEventAttendeeCreateManyEventInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUpdateManyWithoutEventNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema).array(),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CalendarEventAttendeeUpsertWithWhereUniqueWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpsertWithWhereUniqueWithoutEventInputSchema).array() ]).optional(), - createMany: z.lazy(() => CalendarEventAttendeeCreateManyEventInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CalendarEventAttendeeUpdateWithWhereUniqueWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpdateWithWhereUniqueWithoutEventInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CalendarEventAttendeeUpdateManyWithWhereWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpdateManyWithWhereWithoutEventInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUncheckedUpdateManyWithoutEventNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema).array(),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => CalendarEventAttendeeUpsertWithWhereUniqueWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpsertWithWhereUniqueWithoutEventInputSchema).array() ]).optional(), - createMany: z.lazy(() => CalendarEventAttendeeCreateManyEventInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema),z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => CalendarEventAttendeeUpdateWithWhereUniqueWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpdateWithWhereUniqueWithoutEventInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => CalendarEventAttendeeUpdateManyWithWhereWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUpdateManyWithWhereWithoutEventInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const CalendarEventCreateNestedOneWithoutAttendeesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventCreateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedCreateWithoutAttendeesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarEventCreateOrConnectWithoutAttendeesInputSchema).optional(), - connect: z.lazy(() => CalendarEventWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumAttendeeStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => AttendeeStatusSchema).optional() -}).strict(); - -export const CalendarEventUpdateOneRequiredWithoutAttendeesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarEventCreateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedCreateWithoutAttendeesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarEventCreateOrConnectWithoutAttendeesInputSchema).optional(), - upsert: z.lazy(() => CalendarEventUpsertWithoutAttendeesInputSchema).optional(), - connect: z.lazy(() => CalendarEventWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CalendarEventUpdateToOneWithWhereWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUpdateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedUpdateWithoutAttendeesInputSchema) ]).optional(), -}).strict(); - -export const EnumNotificationTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => NotificationTypeSchema).optional() -}).strict(); - -export const OrganizationCreateNestedOneWithoutInvitationsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvitationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutInvitationsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumInvitationStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => InvitationStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutInvitationsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvitationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutInvitationsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutInvitationsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutInvitationsInputSchema),z.lazy(() => OrganizationUpdateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvitationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutEmployeesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutEmployeesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutEmployeesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const PayrollCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PayrollCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeOffCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema).array(),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeOffCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const PerformanceReviewCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PerformanceReviewCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const PayrollUncheckedCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PayrollCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TimeOffUncheckedCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema).array(),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeOffCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const PerformanceReviewUncheckedCreateNestedManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PerformanceReviewCreateManyEmployeeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumEmployeeStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => EmployeeStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutEmployeesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutEmployeesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutEmployeesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutEmployeesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutEmployeesInputSchema),z.lazy(() => OrganizationUpdateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutEmployeesInputSchema) ]).optional(), -}).strict(); - -export const PayrollUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PayrollUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PayrollUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PayrollCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PayrollUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PayrollUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PayrollUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => PayrollUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PayrollScalarWhereInputSchema),z.lazy(() => PayrollScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeOffUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema).array(),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeOffUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeOffCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeOffUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeOffUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeOffScalarWhereInputSchema),z.lazy(() => TimeOffScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PerformanceReviewUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PerformanceReviewUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PerformanceReviewCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PerformanceReviewUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PerformanceReviewUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PerformanceReviewScalarWhereInputSchema),z.lazy(() => PerformanceReviewScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PayrollUncheckedUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PayrollCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PayrollUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PayrollUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PayrollCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PayrollWhereUniqueInputSchema),z.lazy(() => PayrollWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PayrollUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PayrollUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PayrollUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => PayrollUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PayrollScalarWhereInputSchema),z.lazy(() => PayrollScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TimeOffUncheckedUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema).array(),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => TimeOffCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TimeOffUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => TimeOffCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TimeOffWhereUniqueInputSchema),z.lazy(() => TimeOffWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TimeOffUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TimeOffUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => TimeOffUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TimeOffScalarWhereInputSchema),z.lazy(() => TimeOffScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const PerformanceReviewUncheckedUpdateManyWithoutEmployeeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema).array(),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => PerformanceReviewUpsertWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpsertWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - createMany: z.lazy(() => PerformanceReviewCreateManyEmployeeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => PerformanceReviewWhereUniqueInputSchema),z.lazy(() => PerformanceReviewWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => PerformanceReviewUpdateWithWhereUniqueWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpdateWithWhereUniqueWithoutEmployeeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => PerformanceReviewUpdateManyWithWhereWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUpdateManyWithWhereWithoutEmployeeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => PerformanceReviewScalarWhereInputSchema),z.lazy(() => PerformanceReviewScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmployeeCreateNestedOneWithoutPayrollsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPayrollsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutPayrollsInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumPayrollStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => PayrollStatusSchema).optional() -}).strict(); - -export const EmployeeUpdateOneRequiredWithoutPayrollsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPayrollsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutPayrollsInputSchema).optional(), - upsert: z.lazy(() => EmployeeUpsertWithoutPayrollsInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => EmployeeUpdateToOneWithWhereWithoutPayrollsInputSchema),z.lazy(() => EmployeeUpdateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPayrollsInputSchema) ]).optional(), -}).strict(); - -export const EmployeeCreateNestedOneWithoutTimeOffInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutTimeOffInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutTimeOffInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumTimeOffTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TimeOffTypeSchema).optional() -}).strict(); - -export const FloatFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.number().optional(), - increment: z.number().optional(), - decrement: z.number().optional(), - multiply: z.number().optional(), - divide: z.number().optional() -}).strict(); - -export const EnumTimeOffStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TimeOffStatusSchema).optional() -}).strict(); - -export const EmployeeUpdateOneRequiredWithoutTimeOffNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutTimeOffInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutTimeOffInputSchema).optional(), - upsert: z.lazy(() => EmployeeUpsertWithoutTimeOffInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => EmployeeUpdateToOneWithWhereWithoutTimeOffInputSchema),z.lazy(() => EmployeeUpdateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutTimeOffInputSchema) ]).optional(), -}).strict(); - -export const EmployeeCreateNestedOneWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPerformanceReviewsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutPerformanceReviewsInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumReviewStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ReviewStatusSchema).optional() -}).strict(); - -export const EmployeeUpdateOneRequiredWithoutPerformanceReviewsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmployeeCreateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPerformanceReviewsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmployeeCreateOrConnectWithoutPerformanceReviewsInputSchema).optional(), - upsert: z.lazy(() => EmployeeUpsertWithoutPerformanceReviewsInputSchema).optional(), - connect: z.lazy(() => EmployeeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => EmployeeUpdateToOneWithWhereWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUpdateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPerformanceReviewsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutCampaignsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCampaignsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCampaignsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const EmailCampaignCreateNestedManyWithoutCampaignInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema).array(),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmailCampaignCreateManyCampaignInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SocialMediaPostCreateNestedManyWithoutCampaignInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema).array(),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => SocialMediaPostCreateManyCampaignInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EmailCampaignUncheckedCreateNestedManyWithoutCampaignInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema).array(),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmailCampaignCreateManyCampaignInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SocialMediaPostUncheckedCreateNestedManyWithoutCampaignInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema).array(),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => SocialMediaPostCreateManyCampaignInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumCampaignTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => CampaignTypeSchema).optional() -}).strict(); - -export const EnumCampaignStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => CampaignStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutCampaignsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCampaignsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutCampaignsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutCampaignsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutCampaignsInputSchema),z.lazy(() => OrganizationUpdateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCampaignsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignUpdateManyWithoutCampaignNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema).array(),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => EmailCampaignUpsertWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpsertWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmailCampaignCreateManyCampaignInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => EmailCampaignUpdateWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpdateWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => EmailCampaignUpdateManyWithWhereWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpdateManyWithWhereWithoutCampaignInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => EmailCampaignScalarWhereInputSchema),z.lazy(() => EmailCampaignScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const SocialMediaPostUpdateManyWithoutCampaignNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema).array(),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SocialMediaPostUpsertWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpsertWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => SocialMediaPostCreateManyCampaignInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SocialMediaPostUpdateWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpdateWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SocialMediaPostUpdateManyWithWhereWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpdateManyWithWhereWithoutCampaignInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SocialMediaPostScalarWhereInputSchema),z.lazy(() => SocialMediaPostScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmailCampaignUncheckedUpdateManyWithoutCampaignNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema).array(),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => EmailCampaignCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => EmailCampaignUpsertWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpsertWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => EmailCampaignCreateManyCampaignInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => EmailCampaignWhereUniqueInputSchema),z.lazy(() => EmailCampaignWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => EmailCampaignUpdateWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpdateWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => EmailCampaignUpdateManyWithWhereWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUpdateManyWithWhereWithoutCampaignInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => EmailCampaignScalarWhereInputSchema),z.lazy(() => EmailCampaignScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const SocialMediaPostUncheckedUpdateManyWithoutCampaignNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema).array(),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostCreateOrConnectWithoutCampaignInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SocialMediaPostUpsertWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpsertWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - createMany: z.lazy(() => SocialMediaPostCreateManyCampaignInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SocialMediaPostWhereUniqueInputSchema),z.lazy(() => SocialMediaPostWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SocialMediaPostUpdateWithWhereUniqueWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpdateWithWhereUniqueWithoutCampaignInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SocialMediaPostUpdateManyWithWhereWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUpdateManyWithWhereWithoutCampaignInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SocialMediaPostScalarWhereInputSchema),z.lazy(() => SocialMediaPostScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const MarketingCampaignCreateNestedOneWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutEmailCampaignsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => MarketingCampaignCreateOrConnectWithoutEmailCampaignsInputSchema).optional(), - connect: z.lazy(() => MarketingCampaignWhereUniqueInputSchema).optional() -}).strict(); - -export const MarketingCampaignUpdateOneRequiredWithoutEmailCampaignsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutEmailCampaignsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => MarketingCampaignCreateOrConnectWithoutEmailCampaignsInputSchema).optional(), - upsert: z.lazy(() => MarketingCampaignUpsertWithoutEmailCampaignsInputSchema).optional(), - connect: z.lazy(() => MarketingCampaignWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => MarketingCampaignUpdateToOneWithWhereWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUpdateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutEmailCampaignsInputSchema) ]).optional(), -}).strict(); - -export const MarketingCampaignCreateNestedOneWithoutSocialPostsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutSocialPostsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => MarketingCampaignCreateOrConnectWithoutSocialPostsInputSchema).optional(), - connect: z.lazy(() => MarketingCampaignWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumSocialPlatformFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => SocialPlatformSchema).optional() -}).strict(); - -export const MarketingCampaignUpdateOneRequiredWithoutSocialPostsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutSocialPostsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => MarketingCampaignCreateOrConnectWithoutSocialPostsInputSchema).optional(), - upsert: z.lazy(() => MarketingCampaignUpsertWithoutSocialPostsInputSchema).optional(), - connect: z.lazy(() => MarketingCampaignWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => MarketingCampaignUpdateToOneWithWhereWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUpdateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutSocialPostsInputSchema) ]).optional(), -}).strict(); - -export const SessionCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AccountCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionCreateNestedManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyCreatedByInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateCreateNestedManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyCreatedByInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedCreateNestedManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyCreatedByInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUncheckedCreateNestedManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyCreatedByInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUpdateManyWithoutCreatedByNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyCreatedByInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutCreatedByInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUpdateManyWithoutCreatedByNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyCreatedByInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutCreatedByInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const SessionUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionCreateWithoutUserInputSchema).array(),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema),z.lazy(() => SessionCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => SessionCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => SessionWhereUniqueInputSchema),z.lazy(() => SessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => SessionUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => SessionUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const AccountUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountCreateWithoutUserInputSchema).array(),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema),z.lazy(() => AccountCreateOrConnectWithoutUserInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpsertWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - createMany: z.lazy(() => AccountCreateManyUserInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => AccountWhereUniqueInputSchema),z.lazy(() => AccountWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema),z.lazy(() => AccountUpdateWithWhereUniqueWithoutUserInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema),z.lazy(() => AccountUpdateManyWithWhereWithoutUserInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutCreatedByNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportSessionCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpsertWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportSessionCreateManyCreatedByInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportSessionWhereUniqueInputSchema),z.lazy(() => ImportSessionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpdateWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportSessionUpdateManyWithWhereWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUpdateManyWithWhereWithoutCreatedByInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ImportTemplateUncheckedUpdateManyWithoutCreatedByNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema).array(),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateCreateOrConnectWithoutCreatedByInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpsertWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - createMany: z.lazy(() => ImportTemplateCreateManyCreatedByInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ImportTemplateWhereUniqueInputSchema),z.lazy(() => ImportTemplateWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpdateWithWhereUniqueWithoutCreatedByInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUpdateManyWithWhereWithoutCreatedByInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const UserCreateNestedOneWithoutSessionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const UserUpdateOneRequiredWithoutSessionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutSessionsInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutSessionsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutSessionsInputSchema),z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]).optional(), -}).strict(); - -export const UserCreateNestedOneWithoutAccountsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutAccountsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional() -}).strict(); - -export const UserUpdateOneRequiredWithoutAccountsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutAccountsInputSchema).optional(), - upsert: z.lazy(() => UserUpsertWithoutAccountsInputSchema).optional(), - connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutAccountsInputSchema),z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutFinancialReportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutFinancialReportsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const FinancialReportDataCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportDataCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportExportCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportExportCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportScheduleCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportScheduleCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportDataUncheckedCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportDataCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportExportUncheckedCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportExportCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportScheduleUncheckedCreateNestedManyWithoutReportInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportScheduleCreateManyReportInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumFinancialReportTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => FinancialReportTypeSchema).optional() -}).strict(); - -export const EnumFinancialReportStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => FinancialReportStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutFinancialReportsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutFinancialReportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutFinancialReportsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutFinancialReportsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUpdateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutFinancialReportsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportDataUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportDataCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportDataUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportDataUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportDataScalarWhereInputSchema),z.lazy(() => FinancialReportDataScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportExportUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportExportUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportExportCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportExportUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportExportUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportExportScalarWhereInputSchema),z.lazy(() => FinancialReportExportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportScheduleUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportScheduleUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportScheduleCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportScheduleUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportScheduleUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportDataUncheckedUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportDataCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportDataUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportDataCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportDataWhereUniqueInputSchema),z.lazy(() => FinancialReportDataWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportDataUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportDataUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportDataUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportDataScalarWhereInputSchema),z.lazy(() => FinancialReportDataScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportExportUncheckedUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportExportCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportExportUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportExportCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportExportWhereUniqueInputSchema),z.lazy(() => FinancialReportExportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportExportUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportExportUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportExportUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportExportScalarWhereInputSchema),z.lazy(() => FinancialReportExportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportScheduleUncheckedUpdateManyWithoutReportNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema).array(),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleCreateOrConnectWithoutReportInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => FinancialReportScheduleUpsertWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpsertWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - createMany: z.lazy(() => FinancialReportScheduleCreateManyReportInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema),z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => FinancialReportScheduleUpdateWithWhereUniqueWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpdateWithWhereUniqueWithoutReportInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => FinancialReportScheduleUpdateManyWithWhereWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUpdateManyWithWhereWithoutReportInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const FinancialReportCreateNestedOneWithoutReportDataInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutReportDataInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutReportDataInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional() -}).strict(); - -export const FinancialReportUpdateOneRequiredWithoutReportDataNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutReportDataInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutReportDataInputSchema).optional(), - upsert: z.lazy(() => FinancialReportUpsertWithoutReportDataInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => FinancialReportUpdateToOneWithWhereWithoutReportDataInputSchema),z.lazy(() => FinancialReportUpdateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutReportDataInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportCreateNestedOneWithoutExportsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutExportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutExportsInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => FinancialReportExportFormatSchema).optional() -}).strict(); - -export const EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => FinancialReportExportStatusSchema).optional() -}).strict(); - -export const FinancialReportUpdateOneRequiredWithoutExportsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutExportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutExportsInputSchema).optional(), - upsert: z.lazy(() => FinancialReportUpsertWithoutExportsInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => FinancialReportUpdateToOneWithWhereWithoutExportsInputSchema),z.lazy(() => FinancialReportUpdateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutExportsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportCreateNestedOneWithoutSchedulesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutSchedulesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutSchedulesInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => FinancialReportScheduleFrequencySchema).optional() -}).strict(); - -export const FinancialReportUpdateOneRequiredWithoutSchedulesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => FinancialReportCreateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutSchedulesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => FinancialReportCreateOrConnectWithoutSchedulesInputSchema).optional(), - upsert: z.lazy(() => FinancialReportUpsertWithoutSchedulesInputSchema).optional(), - connect: z.lazy(() => FinancialReportWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => FinancialReportUpdateToOneWithWhereWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUpdateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutSchedulesInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplatePackagesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplatePackagesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateVersionCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateVersionCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumTemplateVisibilityFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateVisibilitySchema).optional() -}).strict(); - -export const EnumTemplateStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplatePackagesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplatePackagesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutTemplatePackagesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUpdateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplatePackagesInputSchema) ]).optional(), -}).strict(); - -export const TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateVersionUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateVersionCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateVersionUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateVersionUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateVersionScalarWhereInputSchema),z.lazy(() => TemplateVersionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateVersionUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateVersionCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateVersionWhereUniqueInputSchema),z.lazy(() => TemplateVersionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateVersionUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateVersionUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateVersionScalarWhereInputSchema),z.lazy(() => TemplateVersionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareWhereUniqueInputSchema),z.lazy(() => TemplateShareWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutTemplatePackageInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutTemplatePackageInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageCreateNestedOneWithoutVersionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutVersionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutVersionsInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateInstallationCreateNestedManyWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedCreateNestedManyWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplatePackageUpdateOneRequiredWithoutVersionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutVersionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutVersionsInputSchema).optional(), - upsert: z.lazy(() => TemplatePackageUpsertWithoutVersionsInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateToOneWithWhereWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUpdateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutVersionsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationUpdateManyWithoutTemplateVersionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplateVersionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplateVersionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplateVersionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutTemplateVersionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema).array(),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpsertWithWhereUniqueWithoutTemplateVersionInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallationWhereUniqueInputSchema),z.lazy(() => TemplateInstallationWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpdateWithWhereUniqueWithoutTemplateVersionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUpdateManyWithWhereWithoutTemplateVersionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateInstallationsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateNestedOneWithoutInstallationsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutInstallationsInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateVersionCreateNestedOneWithoutInstallationsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateVersionCreateOrConnectWithoutInstallationsInputSchema).optional(), - connect: z.lazy(() => TemplateVersionWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateInstallItemCreateNestedManyWithoutInstallationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema).array(),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallItemCreateManyInstallationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallItemUncheckedCreateNestedManyWithoutInstallationInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema).array(),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallItemCreateManyInstallationInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumTemplateInstallStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateInstallStatusSchema).optional() -}).strict(); - -export const EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateInstallStrategySchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutTemplateInstallationsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateInstallationsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutTemplateInstallationsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUpdateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateInstallationsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageUpdateOneWithoutInstallationsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutInstallationsInputSchema).optional(), - upsert: z.lazy(() => TemplatePackageUpsertWithoutInstallationsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => TemplatePackageWhereInputSchema) ]).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateToOneWithWhereWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutInstallationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateVersionUpdateOneWithoutInstallationsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutInstallationsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateVersionCreateOrConnectWithoutInstallationsInputSchema).optional(), - upsert: z.lazy(() => TemplateVersionUpsertWithoutInstallationsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => TemplateVersionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => TemplateVersionWhereInputSchema) ]).optional(), - connect: z.lazy(() => TemplateVersionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplateVersionUpdateToOneWithWhereWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateWithoutInstallationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemUpdateManyWithoutInstallationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema).array(),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallItemUpsertWithWhereUniqueWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpsertWithWhereUniqueWithoutInstallationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallItemCreateManyInstallationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallItemUpdateWithWhereUniqueWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpdateWithWhereUniqueWithoutInstallationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallItemUpdateManyWithWhereWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpdateManyWithWhereWithoutInstallationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallItemScalarWhereInputSchema),z.lazy(() => TemplateInstallItemScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallItemUncheckedUpdateManyWithoutInstallationNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema).array(),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateInstallItemUpsertWithWhereUniqueWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpsertWithWhereUniqueWithoutInstallationInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateInstallItemCreateManyInstallationInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateInstallItemWhereUniqueInputSchema),z.lazy(() => TemplateInstallItemWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateInstallItemUpdateWithWhereUniqueWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpdateWithWhereUniqueWithoutInstallationInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateInstallItemUpdateManyWithWhereWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUpdateManyWithWhereWithoutInstallationInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateInstallItemScalarWhereInputSchema),z.lazy(() => TemplateInstallItemScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateInstallationCreateNestedOneWithoutItemsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutItemsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateInstallationCreateOrConnectWithoutItemsInputSchema).optional(), - connect: z.lazy(() => TemplateInstallationWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumTemplateAssetTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateAssetTypeSchema).optional() -}).strict(); - -export const EnumTemplateItemStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateItemStatusSchema).optional() -}).strict(); - -export const TemplateInstallationUpdateOneRequiredWithoutItemsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutItemsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateInstallationCreateOrConnectWithoutItemsInputSchema).optional(), - upsert: z.lazy(() => TemplateInstallationUpsertWithoutItemsInputSchema).optional(), - connect: z.lazy(() => TemplateInstallationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplateInstallationUpdateToOneWithWhereWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUpdateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutItemsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutWorkflowsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutWorkflowsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutWorkflowsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowTriggerCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowNodeCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowTriggerCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowNodeCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumWorkflowStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => WorkflowStatusSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutWorkflowsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutWorkflowsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutWorkflowsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUpdateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutWorkflowsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowTriggerUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowTriggerCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowTriggerUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowTriggerScalarWhereInputSchema),z.lazy(() => WorkflowTriggerScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowNodeUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowNodeCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowNodeUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowNodeScalarWhereInputSchema),z.lazy(() => WorkflowNodeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowAnalyticsUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowAnalyticsUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowAnalyticsUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowTriggerUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowTriggerCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowTriggerWhereUniqueInputSchema),z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowTriggerUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowTriggerScalarWhereInputSchema),z.lazy(() => WorkflowTriggerScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowNodeUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowNodeCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowNodeWhereUniqueInputSchema),z.lazy(() => WorkflowNodeWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowNodeUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowNodeScalarWhereInputSchema),z.lazy(() => WorkflowNodeScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema).array(),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowAnalyticsUpsertWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpsertWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema),z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowAnalyticsUpdateWithWhereUniqueWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpdateWithWhereUniqueWithoutWorkflowInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowAnalyticsUpdateManyWithWhereWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUpdateManyWithWhereWithoutWorkflowInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutUiConfigsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUiConfigsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutUiConfigsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutUiConfigsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUiConfigsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutUiConfigsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutUiConfigsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUpdateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUiConfigsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowCreateNestedOneWithoutTriggersInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutTriggersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutTriggersInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateNestedManyWithoutTriggerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyTriggerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableCreateNestedManyWithoutTriggerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyTriggerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutTriggerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTriggerInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutTriggerInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateNestedManyWithoutTriggerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyTriggerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedCreateNestedManyWithoutTriggerInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyTriggerInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => WorkflowTriggerTypeSchema).optional() -}).strict(); - -export const WorkflowUpdateOneRequiredWithoutTriggersNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutTriggersInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutTriggersInputSchema).optional(), - upsert: z.lazy(() => WorkflowUpsertWithoutTriggersInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateToOneWithWhereWithoutTriggersInputSchema),z.lazy(() => WorkflowUpdateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutTriggersInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionUpdateManyWithoutTriggerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyTriggerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutTriggerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableUpdateManyWithoutTriggerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyTriggerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutTriggerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateOneWithoutTriggerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTriggerInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutTriggerInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutTriggerInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WorkflowNodeWhereInputSchema) ]).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTriggerInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionUncheckedUpdateManyWithoutTriggerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema).array(),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpsertWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowExecutionCreateManyTriggerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowExecutionWhereUniqueInputSchema),z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpdateWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUpdateManyWithWhereWithoutTriggerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedUpdateManyWithoutTriggerNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutTriggerInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyTriggerInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutTriggerInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutTriggerInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowCreateNestedOneWithoutNodesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutNodesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutNodesInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional() -}).strict(); - -export const NodeExecutionCreateNestedManyWithoutNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyDependentNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManySourceNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EmailActionCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmailActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => EmailActionWhereUniqueInputSchema).optional() -}).strict(); - -export const SmsActionCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SmsActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => SmsActionWhereUniqueInputSchema).optional() -}).strict(); - -export const WhatsAppActionCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WhatsAppActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => WhatsAppActionWhereUniqueInputSchema).optional() -}).strict(); - -export const SlackActionCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SlackActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => SlackActionWhereUniqueInputSchema).optional() -}).strict(); - -export const CalendarActionCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => CalendarActionWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateNestedOneWithoutNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutNodeInputSchema).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional() -}).strict(); - -export const NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyDependentNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManySourceNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EmailActionUncheckedCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmailActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => EmailActionWhereUniqueInputSchema).optional() -}).strict(); - -export const SmsActionUncheckedCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SmsActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => SmsActionWhereUniqueInputSchema).optional() -}).strict(); - -export const WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WhatsAppActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => WhatsAppActionWhereUniqueInputSchema).optional() -}).strict(); - -export const SlackActionUncheckedCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SlackActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => SlackActionWhereUniqueInputSchema).optional() -}).strict(); - -export const CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarActionCreateOrConnectWithoutActionInputSchema).optional(), - connect: z.lazy(() => CalendarActionWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutNodeInputSchema).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => WorkflowNodeTypeSchema).optional() -}).strict(); - -export const WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutNodesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutNodesInputSchema).optional(), - upsert: z.lazy(() => WorkflowUpsertWithoutNodesInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateToOneWithWhereWithoutNodesInputSchema),z.lazy(() => WorkflowUpdateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutNodesInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUpdateManyWithoutNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutDependentNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyDependentNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutDependentNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutDependentNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutSourceNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManySourceNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutSourceNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutSourceNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutTargetNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutTargetNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutTargetNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmailActionUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmailActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => EmailActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => EmailActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => EmailActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => EmailActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => EmailActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => EmailActionUpdateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const SmsActionUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SmsActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => SmsActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => SmsActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => SmsActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => SmsActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => SmsActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => SmsActionUpdateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WhatsAppActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => WhatsAppActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => WhatsAppActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WhatsAppActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => WhatsAppActionUpdateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const SlackActionUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SlackActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => SlackActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => SlackActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => SlackActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => SlackActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => SlackActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => SlackActionUpdateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => CalendarActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => CalendarActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => CalendarActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => CalendarActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CalendarActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => CalendarActionUpdateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutNodeInputSchema).optional(), - upsert: z.lazy(() => WorkflowTriggerUpsertWithoutNodeInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateToOneWithWhereWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUpdateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutNodeInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutNodeInputSchema),z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutDependentNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyDependentNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutDependentNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutDependentNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema).array(),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpsertWithWhereUniqueWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeDependencyWhereUniqueInputSchema),z.lazy(() => NodeDependencyWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpdateWithWhereUniqueWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUpdateManyWithWhereWithoutPrerequisiteNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutSourceNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManySourceNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutSourceNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutSourceNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema).array(),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpsertWithWhereUniqueWithoutTargetNodeInputSchema).array() ]).optional(), - createMany: z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => WorkflowConnectionWhereUniqueInputSchema),z.lazy(() => WorkflowConnectionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateWithWhereUniqueWithoutTargetNodeInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUpdateManyWithWhereWithoutTargetNodeInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => EmailActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => EmailActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => EmailActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => EmailActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => EmailActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => EmailActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => EmailActionUpdateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SmsActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => SmsActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => SmsActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => SmsActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => SmsActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => SmsActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => SmsActionUpdateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WhatsAppActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => WhatsAppActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WhatsAppActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => WhatsAppActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WhatsAppActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => WhatsAppActionUpdateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => SlackActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => SlackActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => SlackActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => SlackActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => SlackActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => SlackActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => SlackActionUpdateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => CalendarActionCreateOrConnectWithoutActionInputSchema).optional(), - upsert: z.lazy(() => CalendarActionUpsertWithoutActionInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => CalendarActionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => CalendarActionWhereInputSchema) ]).optional(), - connect: z.lazy(() => CalendarActionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => CalendarActionUpdateToOneWithWhereWithoutActionInputSchema),z.lazy(() => CalendarActionUpdateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedUpdateWithoutActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutNodeInputSchema).optional(), - upsert: z.lazy(() => WorkflowTriggerUpsertWithoutNodeInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateToOneWithWhereWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUpdateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutNodeInputSchema) ]).optional(), -}).strict(); - -export const WorkflowCreateNestedOneWithoutConnectionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSourceConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSourceConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTargetConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutTargetConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowUpdateOneRequiredWithoutConnectionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutConnectionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowUpsertWithoutConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateToOneWithWhereWithoutConnectionsInputSchema),z.lazy(() => WorkflowUpdateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutConnectionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutSourceConnectionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSourceConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSourceConnectionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutSourceConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSourceConnectionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutTargetConnectionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTargetConnectionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutTargetConnectionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutTargetConnectionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTargetConnectionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutDependenciesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependenciesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutDependenciesInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutDependentsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutDependentsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumDependencyTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => DependencyTypeSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutDependenciesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependenciesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutDependenciesInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutDependenciesInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependenciesInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutDependentsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependentsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutDependentsInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutDependentsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependentsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutActionTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutActionTemplatesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionCreateNestedManyWithoutActionTemplateInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema).array(),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateVersionUncheckedCreateNestedManyWithoutActionTemplateInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema).array(),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumActionTemplateCategoryFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ActionTemplateCategorySchema).optional() -}).strict(); - -export const OrganizationUpdateOneWithoutActionTemplatesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutActionTemplatesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutActionTemplatesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutActionTemplatesInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUpdateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutActionTemplatesInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionUpdateManyWithoutActionTemplateNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema).array(),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ActionTemplateVersionUpsertWithWhereUniqueWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpsertWithWhereUniqueWithoutActionTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ActionTemplateVersionUpdateWithWhereUniqueWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpdateWithWhereUniqueWithoutActionTemplateInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ActionTemplateVersionUpdateManyWithWhereWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpdateManyWithWhereWithoutActionTemplateInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateVersionUncheckedUpdateManyWithoutActionTemplateNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema).array(),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ActionTemplateVersionUpsertWithWhereUniqueWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpsertWithWhereUniqueWithoutActionTemplateInputSchema).array() ]).optional(), - createMany: z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema),z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ActionTemplateVersionUpdateWithWhereUniqueWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpdateWithWhereUniqueWithoutActionTemplateInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ActionTemplateVersionUpdateManyWithWhereWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUpdateManyWithWhereWithoutActionTemplateInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ActionTemplateCreateNestedOneWithoutVersionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutVersionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ActionTemplateCreateOrConnectWithoutVersionsInputSchema).optional(), - connect: z.lazy(() => ActionTemplateWhereUniqueInputSchema).optional() -}).strict(); - -export const ActionTemplateUpdateOneRequiredWithoutVersionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutVersionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => ActionTemplateCreateOrConnectWithoutVersionsInputSchema).optional(), - upsert: z.lazy(() => ActionTemplateUpsertWithoutVersionsInputSchema).optional(), - connect: z.lazy(() => ActionTemplateWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => ActionTemplateUpdateToOneWithWhereWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUpdateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateWithoutVersionsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutVariableDefinitionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutVariableDefinitionsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TriggerVariableCreateNestedManyWithoutVariableInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyVariableInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableCreateNestedManyWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedCreateNestedManyWithoutVariableInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyVariableInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedCreateNestedManyWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumVariableDataTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => VariableDataTypeSchema).optional() -}).strict(); - -export const EnumVariableScopeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => VariableScopeSchema).optional() -}).strict(); - -export const OrganizationUpdateOneWithoutVariableDefinitionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutVariableDefinitionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutVariableDefinitionsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutVariableDefinitionsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => OrganizationWhereInputSchema) ]).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUpdateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutVariableDefinitionsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableUpdateManyWithoutVariableNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutVariableInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyVariableInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutVariableInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutVariableInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUpdateManyWithoutVariableDefinitionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutVariableDefinitionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutVariableDefinitionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutVariableDefinitionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedUpdateManyWithoutVariableNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema).array(),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema),z.lazy(() => TriggerVariableCreateOrConnectWithoutVariableInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpsertWithWhereUniqueWithoutVariableInputSchema).array() ]).optional(), - createMany: z.lazy(() => TriggerVariableCreateManyVariableInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TriggerVariableWhereUniqueInputSchema),z.lazy(() => TriggerVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpdateWithWhereUniqueWithoutVariableInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutVariableInputSchema),z.lazy(() => TriggerVariableUpdateManyWithWhereWithoutVariableInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutVariableDefinitionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutVariableDefinitionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutVariableDefinitionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowTriggerCreateNestedOneWithoutVariablesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutVariablesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutVariablesInputSchema).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateNestedOneWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutTriggerVarsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => VariableDefinitionCreateOrConnectWithoutTriggerVarsInputSchema).optional(), - connect: z.lazy(() => VariableDefinitionWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpdateOneRequiredWithoutVariablesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutVariablesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutVariablesInputSchema).optional(), - upsert: z.lazy(() => WorkflowTriggerUpsertWithoutVariablesInputSchema).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateToOneWithWhereWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutVariablesInputSchema) ]).optional(), -}).strict(); - -export const VariableDefinitionUpdateOneRequiredWithoutTriggerVarsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutTriggerVarsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => VariableDefinitionCreateOrConnectWithoutTriggerVarsInputSchema).optional(), - upsert: z.lazy(() => VariableDefinitionUpsertWithoutTriggerVarsInputSchema).optional(), - connect: z.lazy(() => VariableDefinitionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => VariableDefinitionUpdateToOneWithWhereWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUpdateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutTriggerVarsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowCreateNestedOneWithoutExecutionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional() -}).strict(); - -export const NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => WorkflowExecutionStatusSchema).optional() -}).strict(); - -export const EnumExecutionPriorityFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => ExecutionPrioritySchema).optional() -}).strict(); - -export const WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutExecutionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowUpsertWithoutExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateToOneWithWhereWithoutExecutionsInputSchema),z.lazy(() => WorkflowUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutExecutionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowTriggerCreateOrConnectWithoutExecutionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowTriggerUpsertWithoutExecutionsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => WorkflowTriggerWhereInputSchema) ]).optional(), - connect: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateToOneWithWhereWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutExecutionsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionLogUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionLogUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionLogUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionLogScalarWhereInputSchema),z.lazy(() => ExecutionLogScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => NodeExecutionWhereUniqueInputSchema),z.lazy(() => NodeExecutionWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionVariableWhereUniqueInputSchema),z.lazy(() => ExecutionVariableWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema).array(),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => ExecutionLogUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - createMany: z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => ExecutionLogWhereUniqueInputSchema),z.lazy(() => ExecutionLogWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => ExecutionLogUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => ExecutionLogUpdateManyWithWhereWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUpdateManyWithWhereWithoutWorkflowExecutionInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => ExecutionLogScalarWhereInputSchema),z.lazy(() => ExecutionLogScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateNestedOneWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutNodeExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutNodeExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutExecutionsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumNodeExecutionStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => NodeExecutionStatusSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateOneRequiredWithoutNodeExecutionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutNodeExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutNodeExecutionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowExecutionUpsertWithoutNodeExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateToOneWithWhereWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUpdateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutNodeExecutionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutExecutionsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutExecutionsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutExecutionsInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutExecutionsInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutExecutionsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateNestedOneWithoutVariablesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutVariablesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutVariablesInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateNestedOneWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutExecutionVarsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => VariableDefinitionCreateOrConnectWithoutExecutionVarsInputSchema).optional(), - connect: z.lazy(() => VariableDefinitionWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateOneRequiredWithoutVariablesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutVariablesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutVariablesInputSchema).optional(), - upsert: z.lazy(() => WorkflowExecutionUpsertWithoutVariablesInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateToOneWithWhereWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutVariablesInputSchema) ]).optional(), -}).strict(); - -export const VariableDefinitionUpdateOneWithoutExecutionVarsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutExecutionVarsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => VariableDefinitionCreateOrConnectWithoutExecutionVarsInputSchema).optional(), - upsert: z.lazy(() => VariableDefinitionUpsertWithoutExecutionVarsInputSchema).optional(), - disconnect: z.union([ z.boolean(),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional(), - delete: z.union([ z.boolean(),z.lazy(() => VariableDefinitionWhereInputSchema) ]).optional(), - connect: z.lazy(() => VariableDefinitionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => VariableDefinitionUpdateToOneWithWhereWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUpdateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutExecutionVarsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateNestedOneWithoutLogsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutLogsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutLogsInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumLogLevelFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => LogLevelSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateOneRequiredWithoutLogsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutLogsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowExecutionCreateOrConnectWithoutLogsInputSchema).optional(), - upsert: z.lazy(() => WorkflowExecutionUpsertWithoutLogsInputSchema).optional(), - connect: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateToOneWithWhereWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUpdateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutLogsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateNestedOneWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutIntegrationConfigsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutIntegrationConfigsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumIntegrationTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => IntegrationTypeSchema).optional() -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutIntegrationConfigsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutIntegrationConfigsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutIntegrationConfigsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutIntegrationConfigsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUpdateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutIntegrationConfigsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutEmailActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutEmailActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutEmailActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutEmailActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutEmailActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutEmailActionInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutEmailActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutEmailActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutSmsActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSmsActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSmsActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutSmsActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSmsActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSmsActionInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutSmsActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSmsActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWhatsAppActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutWhatsAppActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => WhatsAppMessageTypeSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutWhatsAppActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWhatsAppActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutWhatsAppActionInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutWhatsAppActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutWhatsAppActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutSlackActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSlackActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSlackActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutSlackActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSlackActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutSlackActionInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutSlackActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSlackActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeCreateNestedOneWithoutCalendarActionInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutCalendarActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutCalendarActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateOneRequiredWithoutCalendarActionNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutCalendarActionInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowNodeCreateOrConnectWithoutCalendarActionInputSchema).optional(), - upsert: z.lazy(() => WorkflowNodeUpsertWithoutCalendarActionInputSchema).optional(), - connect: z.lazy(() => WorkflowNodeWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowNodeUpdateToOneWithWhereWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUpdateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutCalendarActionInputSchema) ]).optional(), -}).strict(); - -export const WorkflowCreateNestedOneWithoutAnalyticsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutAnalyticsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutAnalyticsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional() -}).strict(); - -export const WorkflowUpdateOneRequiredWithoutAnalyticsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => WorkflowCreateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutAnalyticsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => WorkflowCreateOrConnectWithoutAnalyticsInputSchema).optional(), - upsert: z.lazy(() => WorkflowUpsertWithoutAnalyticsInputSchema).optional(), - connect: z.lazy(() => WorkflowWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => WorkflowUpdateToOneWithWhereWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUpdateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutAnalyticsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageCreateNestedOneWithoutSharesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutSharesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutSharesInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional() -}).strict(); - -export const OrganizationCreateNestedOneWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateSharesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateSharesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareRecipientCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareAccessLogCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareRecipientCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareAccessLogCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyShareInputEnvelopeSchema).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), -}).strict(); - -export const EnumTemplateShareModeFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateShareModeSchema).optional() -}).strict(); - -export const EnumTemplateShareStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateShareStatusSchema).optional() -}).strict(); - -export const TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutSharesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutSharesInputSchema).optional(), - upsert: z.lazy(() => TemplatePackageUpsertWithoutSharesInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateToOneWithWhereWithoutSharesInputSchema),z.lazy(() => TemplatePackageUpdateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutSharesInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateSharesInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateSharesInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutTemplateSharesInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUpdateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateSharesInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareRecipientUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareRecipientCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareRecipientUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareRecipientUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareAccessLogUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareAccessLogCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareAccessLogUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareAccessLogUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareRecipientUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareRecipientCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema),z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareRecipientUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareRecipientUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareAccessLogUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareAccessLogCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema),z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareAccessLogUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareAccessLogUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema).array(),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema).array() ]).optional(), - connectOrCreate: z.union([ z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema),z.lazy(() => TemplateShareImportCreateOrConnectWithoutShareInputSchema).array() ]).optional(), - upsert: z.union([ z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpsertWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - createMany: z.lazy(() => TemplateShareImportCreateManyShareInputEnvelopeSchema).optional(), - set: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - disconnect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - delete: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - connect: z.union([ z.lazy(() => TemplateShareImportWhereUniqueInputSchema),z.lazy(() => TemplateShareImportWhereUniqueInputSchema).array() ]).optional(), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpdateWithWhereUniqueWithoutShareInputSchema).array() ]).optional(), - updateMany: z.union([ z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutShareInputSchema),z.lazy(() => TemplateShareImportUpdateManyWithWhereWithoutShareInputSchema).array() ]).optional(), - deleteMany: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), -}).strict(); - -export const TemplateShareCreateNestedOneWithoutRecipientsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutRecipientsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutRecipientsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateShareRecipientStatusSchema).optional() -}).strict(); - -export const TemplateShareUpdateOneRequiredWithoutRecipientsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutRecipientsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutRecipientsInputSchema).optional(), - upsert: z.lazy(() => TemplateShareUpsertWithoutRecipientsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateToOneWithWhereWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUpdateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutRecipientsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareCreateNestedOneWithoutAccessLogsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutAccessLogsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutAccessLogsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional() -}).strict(); - -export const EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateShareAccessActionSchema).optional() -}).strict(); - -export const EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema: z.ZodType = z.object({ - set: z.lazy(() => TemplateShareAccessStatusSchema).optional() -}).strict(); - -export const TemplateShareUpdateOneRequiredWithoutAccessLogsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutAccessLogsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutAccessLogsInputSchema).optional(), - upsert: z.lazy(() => TemplateShareUpsertWithoutAccessLogsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateToOneWithWhereWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUpdateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutAccessLogsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareCreateNestedOneWithoutImportsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutImportsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional() -}).strict(); - -export const OrganizationCreateNestedOneWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateShareImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateShareImportsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateNestedOneWithoutShareImportsInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutShareImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutShareImportsInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional() -}).strict(); - -export const TemplateShareUpdateOneRequiredWithoutImportsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplateShareCreateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplateShareCreateOrConnectWithoutImportsInputSchema).optional(), - upsert: z.lazy(() => TemplateShareUpsertWithoutImportsInputSchema).optional(), - connect: z.lazy(() => TemplateShareWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplateShareUpdateToOneWithWhereWithoutImportsInputSchema),z.lazy(() => TemplateShareUpdateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutImportsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUpdateOneRequiredWithoutTemplateShareImportsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateShareImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => OrganizationCreateOrConnectWithoutTemplateShareImportsInputSchema).optional(), - upsert: z.lazy(() => OrganizationUpsertWithoutTemplateShareImportsInputSchema).optional(), - connect: z.lazy(() => OrganizationWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => OrganizationUpdateToOneWithWhereWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUpdateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateShareImportsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageUpdateOneRequiredWithoutShareImportsNestedInputSchema: z.ZodType = z.object({ - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutShareImportsInputSchema) ]).optional(), - connectOrCreate: z.lazy(() => TemplatePackageCreateOrConnectWithoutShareImportsInputSchema).optional(), - upsert: z.lazy(() => TemplatePackageUpsertWithoutShareImportsInputSchema).optional(), - connect: z.lazy(() => TemplatePackageWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => TemplatePackageUpdateToOneWithWhereWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUpdateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutShareImportsInputSchema) ]).optional(), -}).strict(); - -export const NestedStringFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(), -}).strict(); - -export const NestedStringNullableFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedDateTimeFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeFilterSchema) ]).optional(), -}).strict(); - -export const NestedStringWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional(), - in: z.string().array().optional(), - notIn: z.string().array().optional(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedStringFilterSchema).optional(), - _max: z.lazy(() => NestedStringFilterSchema).optional() -}).strict(); - -export const NestedIntFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntFilterSchema) ]).optional(), -}).strict(); - -export const NestedStringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.string().optional().nullable(), - in: z.string().array().optional().nullable(), - notIn: z.string().array().optional().nullable(), - lt: z.string().optional(), - lte: z.string().optional(), - gt: z.string().optional(), - gte: z.string().optional(), - contains: z.string().optional(), - startsWith: z.string().optional(), - endsWith: z.string().optional(), - not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedStringNullableFilterSchema).optional(), - _max: z.lazy(() => NestedStringNullableFilterSchema).optional() -}).strict(); - -export const NestedIntNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedDateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional(), - in: z.coerce.date().array().optional(), - notIn: z.coerce.date().array().optional(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeFilterSchema).optional() -}).strict(); - -export const NestedEnumUserRoleFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional(), - in: z.lazy(() => UserRoleSchema).array().optional(), - notIn: z.lazy(() => UserRoleSchema).array().optional(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumUserRoleWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional(), - in: z.lazy(() => UserRoleSchema).array().optional(), - notIn: z.lazy(() => UserRoleSchema).array().optional(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumUserRoleFilterSchema).optional(), - _max: z.lazy(() => NestedEnumUserRoleFilterSchema).optional() -}).strict(); - -export const NestedBoolFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(), -}).strict(); - -export const NestedBoolWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.boolean().optional(), - not: z.union([ z.boolean(),z.lazy(() => NestedBoolWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedBoolFilterSchema).optional(), - _max: z.lazy(() => NestedBoolFilterSchema).optional() -}).strict(); - -export const NestedEnumImportModuleFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportModuleSchema).optional(), - in: z.lazy(() => ImportModuleSchema).array().optional(), - notIn: z.lazy(() => ImportModuleSchema).array().optional(), - not: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => NestedEnumImportModuleFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumImportEntityTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportEntityTypeSchema).optional(), - in: z.lazy(() => ImportEntityTypeSchema).array().optional(), - notIn: z.lazy(() => ImportEntityTypeSchema).array().optional(), - not: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => NestedEnumImportEntityTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumImportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportStatusSchema).optional(), - in: z.lazy(() => ImportStatusSchema).array().optional(), - notIn: z.lazy(() => ImportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => NestedEnumImportStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumDedupeModeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DedupeModeSchema).optional(), - in: z.lazy(() => DedupeModeSchema).array().optional(), - notIn: z.lazy(() => DedupeModeSchema).array().optional(), - not: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => NestedEnumDedupeModeFilterSchema) ]).optional(), -}).strict(); - -export const NestedDateTimeNullableFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedIntWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedIntFilterSchema).optional(), - _max: z.lazy(() => NestedIntFilterSchema).optional() -}).strict(); - -export const NestedFloatFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumImportModuleWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportModuleSchema).optional(), - in: z.lazy(() => ImportModuleSchema).array().optional(), - notIn: z.lazy(() => ImportModuleSchema).array().optional(), - not: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => NestedEnumImportModuleWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportModuleFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportModuleFilterSchema).optional() -}).strict(); - -export const NestedEnumImportEntityTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportEntityTypeSchema).optional(), - in: z.lazy(() => ImportEntityTypeSchema).array().optional(), - notIn: z.lazy(() => ImportEntityTypeSchema).array().optional(), - not: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => NestedEnumImportEntityTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportEntityTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportEntityTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumImportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ImportStatusSchema).optional(), - in: z.lazy(() => ImportStatusSchema).array().optional(), - notIn: z.lazy(() => ImportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => NestedEnumImportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumImportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumImportStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumDedupeModeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DedupeModeSchema).optional(), - in: z.lazy(() => DedupeModeSchema).array().optional(), - notIn: z.lazy(() => DedupeModeSchema).array().optional(), - not: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => NestedEnumDedupeModeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumDedupeModeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumDedupeModeFilterSchema).optional() -}).strict(); - -export const NestedJsonNullableFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional() -}).strict(); - -export const NestedIntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedIntNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _max: z.lazy(() => NestedIntNullableFilterSchema).optional() -}).strict(); - -export const NestedFloatNullableFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedDateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.coerce.date().optional().nullable(), - in: z.coerce.date().array().optional().nullable(), - notIn: z.coerce.date().array().optional().nullable(), - lt: z.coerce.date().optional(), - lte: z.coerce.date().optional(), - gt: z.coerce.date().optional(), - gte: z.coerce.date().optional(), - not: z.union([ z.coerce.date(),z.lazy(() => NestedDateTimeNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDateTimeNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDateTimeNullableFilterSchema).optional() -}).strict(); - -export const NestedJsonFilterSchema: z.ZodType = z.object({ - equals: InputJsonValueSchema.optional(), - path: z.string().array().optional(), - string_contains: z.string().optional(), - string_starts_with: z.string().optional(), - string_ends_with: z.string().optional(), - array_contains: InputJsonValueSchema.optional().nullable(), - array_starts_with: InputJsonValueSchema.optional().nullable(), - array_ends_with: InputJsonValueSchema.optional().nullable(), - lt: InputJsonValueSchema.optional(), - lte: InputJsonValueSchema.optional(), - gt: InputJsonValueSchema.optional(), - gte: InputJsonValueSchema.optional(), - not: InputJsonValueSchema.optional() -}).strict(); - -export const NestedEnumRowStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => RowStatusSchema).optional(), - in: z.lazy(() => RowStatusSchema).array().optional(), - notIn: z.lazy(() => RowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => NestedEnumRowStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumRowStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => RowStatusSchema).optional(), - in: z.lazy(() => RowStatusSchema).array().optional(), - notIn: z.lazy(() => RowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => NestedEnumRowStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumRowStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumRowStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumIssueSeverityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IssueSeveritySchema).optional(), - in: z.lazy(() => IssueSeveritySchema).array().optional(), - notIn: z.lazy(() => IssueSeveritySchema).array().optional(), - not: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => NestedEnumIssueSeverityFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumIssueSeverityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IssueSeveritySchema).optional(), - in: z.lazy(() => IssueSeveritySchema).array().optional(), - notIn: z.lazy(() => IssueSeveritySchema).array().optional(), - not: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => NestedEnumIssueSeverityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumIssueSeverityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumIssueSeverityFilterSchema).optional() -}).strict(); - -export const NestedEnumUserRoleNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional().nullable(), - in: z.lazy(() => UserRoleSchema).array().optional().nullable(), - notIn: z.lazy(() => UserRoleSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedEnumUserRoleNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => UserRoleSchema).optional().nullable(), - in: z.lazy(() => UserRoleSchema).array().optional().nullable(), - notIn: z.lazy(() => UserRoleSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NestedEnumUserRoleNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumUserRoleNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumUserRoleNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumCustomerTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CustomerTypeSchema).optional(), - in: z.lazy(() => CustomerTypeSchema).array().optional(), - notIn: z.lazy(() => CustomerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => NestedEnumCustomerTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumLeadStatusNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional().nullable(), - in: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedEnumLeadSourceNullableFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadSourceSchema).optional().nullable(), - in: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NestedEnumLeadSourceNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedEnumCustomerTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CustomerTypeSchema).optional(), - in: z.lazy(() => CustomerTypeSchema).array().optional(), - notIn: z.lazy(() => CustomerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => NestedEnumCustomerTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCustomerTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCustomerTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumLeadStatusNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional().nullable(), - in: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadStatusSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadStatusNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadStatusNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumLeadSourceNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadSourceSchema).optional().nullable(), - in: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - notIn: z.lazy(() => LeadSourceSchema).array().optional().nullable(), - not: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NestedEnumLeadSourceNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadSourceNullableFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadSourceNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumInteractionTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionTypeSchema).optional(), - in: z.lazy(() => InteractionTypeSchema).array().optional(), - notIn: z.lazy(() => InteractionTypeSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => NestedEnumInteractionTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumInteractionMediumFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionMediumSchema).optional(), - in: z.lazy(() => InteractionMediumSchema).array().optional(), - notIn: z.lazy(() => InteractionMediumSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => NestedEnumInteractionMediumFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumInteractionTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionTypeSchema).optional(), - in: z.lazy(() => InteractionTypeSchema).array().optional(), - notIn: z.lazy(() => InteractionTypeSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => NestedEnumInteractionTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInteractionTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInteractionTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumInteractionMediumWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InteractionMediumSchema).optional(), - in: z.lazy(() => InteractionMediumSchema).array().optional(), - notIn: z.lazy(() => InteractionMediumSchema).array().optional(), - not: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => NestedEnumInteractionMediumWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInteractionMediumFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInteractionMediumFilterSchema).optional() -}).strict(); - -export const NestedDecimalFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumLeadStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional(), - in: z.lazy(() => LeadStatusSchema).array().optional(), - notIn: z.lazy(() => LeadStatusSchema).array().optional(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedDecimalWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedDecimalFilterSchema).optional(), - _sum: z.lazy(() => NestedDecimalFilterSchema).optional(), - _min: z.lazy(() => NestedDecimalFilterSchema).optional(), - _max: z.lazy(() => NestedDecimalFilterSchema).optional() -}).strict(); - -export const NestedEnumLeadStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LeadStatusSchema).optional(), - in: z.lazy(() => LeadStatusSchema).array().optional(), - notIn: z.lazy(() => LeadStatusSchema).array().optional(), - not: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NestedEnumLeadStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLeadStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLeadStatusFilterSchema).optional() -}).strict(); - -export const NestedFloatNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional().nullable(), - in: z.number().array().optional().nullable(), - notIn: z.number().array().optional().nullable(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _min: z.lazy(() => NestedFloatNullableFilterSchema).optional(), - _max: z.lazy(() => NestedFloatNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumProjectStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ProjectStatusSchema).optional(), - in: z.lazy(() => ProjectStatusSchema).array().optional(), - notIn: z.lazy(() => ProjectStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => NestedEnumProjectStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedDecimalNullableFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalNullableFilterSchema) ]).optional().nullable(), -}).strict(); - -export const NestedEnumProjectStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ProjectStatusSchema).optional(), - in: z.lazy(() => ProjectStatusSchema).array().optional(), - notIn: z.lazy(() => ProjectStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => NestedEnumProjectStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumProjectStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumProjectStatusFilterSchema).optional() -}).strict(); - -export const NestedDecimalNullableWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - in: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - notIn: z.union([z.number().array(),z.string().array(),z.instanceof(Decimal).array(),z.instanceof(Prisma.Decimal).array(),DecimalJsLikeSchema.array(),]).refine((v) => Array.isArray(v) && (v as any[]).every((v) => isValidDecimalInput(v)), { message: 'Must be a Decimal' }).optional().nullable(), - lt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - lte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gt: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - gte: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - not: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NestedDecimalNullableWithAggregatesFilterSchema) ]).optional().nullable(), - _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), - _avg: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _sum: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _min: z.lazy(() => NestedDecimalNullableFilterSchema).optional(), - _max: z.lazy(() => NestedDecimalNullableFilterSchema).optional() -}).strict(); - -export const NestedEnumTaskStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TaskStatusSchema).optional(), - in: z.lazy(() => TaskStatusSchema).array().optional(), - notIn: z.lazy(() => TaskStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => NestedEnumTaskStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumPriorityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PrioritySchema).optional(), - in: z.lazy(() => PrioritySchema).array().optional(), - notIn: z.lazy(() => PrioritySchema).array().optional(), - not: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => NestedEnumPriorityFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTaskStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TaskStatusSchema).optional(), - in: z.lazy(() => TaskStatusSchema).array().optional(), - notIn: z.lazy(() => TaskStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => NestedEnumTaskStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTaskStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTaskStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumPriorityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PrioritySchema).optional(), - in: z.lazy(() => PrioritySchema).array().optional(), - notIn: z.lazy(() => PrioritySchema).array().optional(), - not: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => NestedEnumPriorityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPriorityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPriorityFilterSchema).optional() -}).strict(); - -export const NestedEnumInvoiceStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvoiceStatusSchema).optional(), - in: z.lazy(() => InvoiceStatusSchema).array().optional(), - notIn: z.lazy(() => InvoiceStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => NestedEnumInvoiceStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumInvoiceStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvoiceStatusSchema).optional(), - in: z.lazy(() => InvoiceStatusSchema).array().optional(), - notIn: z.lazy(() => InvoiceStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => NestedEnumInvoiceStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInvoiceStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInvoiceStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumPaymentMethodFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentMethodSchema).optional(), - in: z.lazy(() => PaymentMethodSchema).array().optional(), - notIn: z.lazy(() => PaymentMethodSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => NestedEnumPaymentMethodFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumPaymentStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentStatusSchema).optional(), - in: z.lazy(() => PaymentStatusSchema).array().optional(), - notIn: z.lazy(() => PaymentStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => NestedEnumPaymentStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumPaymentMethodWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentMethodSchema).optional(), - in: z.lazy(() => PaymentMethodSchema).array().optional(), - notIn: z.lazy(() => PaymentMethodSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => NestedEnumPaymentMethodWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPaymentMethodFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPaymentMethodFilterSchema).optional() -}).strict(); - -export const NestedEnumPaymentStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PaymentStatusSchema).optional(), - in: z.lazy(() => PaymentStatusSchema).array().optional(), - notIn: z.lazy(() => PaymentStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => NestedEnumPaymentStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPaymentStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPaymentStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumExpenseStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExpenseStatusSchema).optional(), - in: z.lazy(() => ExpenseStatusSchema).array().optional(), - notIn: z.lazy(() => ExpenseStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => NestedEnumExpenseStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumExpenseStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExpenseStatusSchema).optional(), - in: z.lazy(() => ExpenseStatusSchema).array().optional(), - notIn: z.lazy(() => ExpenseStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => NestedEnumExpenseStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumExpenseStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumExpenseStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumAttendeeStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => AttendeeStatusSchema).optional(), - in: z.lazy(() => AttendeeStatusSchema).array().optional(), - notIn: z.lazy(() => AttendeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => NestedEnumAttendeeStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumAttendeeStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => AttendeeStatusSchema).optional(), - in: z.lazy(() => AttendeeStatusSchema).array().optional(), - notIn: z.lazy(() => AttendeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => NestedEnumAttendeeStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumAttendeeStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumAttendeeStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumNotificationTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NotificationTypeSchema).optional(), - in: z.lazy(() => NotificationTypeSchema).array().optional(), - notIn: z.lazy(() => NotificationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => NestedEnumNotificationTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumNotificationTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NotificationTypeSchema).optional(), - in: z.lazy(() => NotificationTypeSchema).array().optional(), - notIn: z.lazy(() => NotificationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => NotificationTypeSchema),z.lazy(() => NestedEnumNotificationTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumNotificationTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumNotificationTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumInvitationStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvitationStatusSchema).optional(), - in: z.lazy(() => InvitationStatusSchema).array().optional(), - notIn: z.lazy(() => InvitationStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => NestedEnumInvitationStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumInvitationStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => InvitationStatusSchema).optional(), - in: z.lazy(() => InvitationStatusSchema).array().optional(), - notIn: z.lazy(() => InvitationStatusSchema).array().optional(), - not: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => NestedEnumInvitationStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumInvitationStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumInvitationStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumEmployeeStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => EmployeeStatusSchema).optional(), - in: z.lazy(() => EmployeeStatusSchema).array().optional(), - notIn: z.lazy(() => EmployeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => NestedEnumEmployeeStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumEmployeeStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => EmployeeStatusSchema).optional(), - in: z.lazy(() => EmployeeStatusSchema).array().optional(), - notIn: z.lazy(() => EmployeeStatusSchema).array().optional(), - not: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => NestedEnumEmployeeStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumEmployeeStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumEmployeeStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumPayrollStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PayrollStatusSchema).optional(), - in: z.lazy(() => PayrollStatusSchema).array().optional(), - notIn: z.lazy(() => PayrollStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => NestedEnumPayrollStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumPayrollStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => PayrollStatusSchema).optional(), - in: z.lazy(() => PayrollStatusSchema).array().optional(), - notIn: z.lazy(() => PayrollStatusSchema).array().optional(), - not: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => NestedEnumPayrollStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumPayrollStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumPayrollStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumTimeOffTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffTypeSchema).optional(), - in: z.lazy(() => TimeOffTypeSchema).array().optional(), - notIn: z.lazy(() => TimeOffTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => NestedEnumTimeOffTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTimeOffStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffStatusSchema).optional(), - in: z.lazy(() => TimeOffStatusSchema).array().optional(), - notIn: z.lazy(() => TimeOffStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => NestedEnumTimeOffStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTimeOffTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffTypeSchema).optional(), - in: z.lazy(() => TimeOffTypeSchema).array().optional(), - notIn: z.lazy(() => TimeOffTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => NestedEnumTimeOffTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTimeOffTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTimeOffTypeFilterSchema).optional() -}).strict(); - -export const NestedFloatWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.number().optional(), - in: z.number().array().optional(), - notIn: z.number().array().optional(), - lt: z.number().optional(), - lte: z.number().optional(), - gt: z.number().optional(), - gte: z.number().optional(), - not: z.union([ z.number(),z.lazy(() => NestedFloatWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _avg: z.lazy(() => NestedFloatFilterSchema).optional(), - _sum: z.lazy(() => NestedFloatFilterSchema).optional(), - _min: z.lazy(() => NestedFloatFilterSchema).optional(), - _max: z.lazy(() => NestedFloatFilterSchema).optional() -}).strict(); - -export const NestedEnumTimeOffStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TimeOffStatusSchema).optional(), - in: z.lazy(() => TimeOffStatusSchema).array().optional(), - notIn: z.lazy(() => TimeOffStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => NestedEnumTimeOffStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTimeOffStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTimeOffStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumReviewStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ReviewStatusSchema).optional(), - in: z.lazy(() => ReviewStatusSchema).array().optional(), - notIn: z.lazy(() => ReviewStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => NestedEnumReviewStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumReviewStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ReviewStatusSchema).optional(), - in: z.lazy(() => ReviewStatusSchema).array().optional(), - notIn: z.lazy(() => ReviewStatusSchema).array().optional(), - not: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => NestedEnumReviewStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumReviewStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumReviewStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumCampaignTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignTypeSchema).optional(), - in: z.lazy(() => CampaignTypeSchema).array().optional(), - notIn: z.lazy(() => CampaignTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => NestedEnumCampaignTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumCampaignStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignStatusSchema).optional(), - in: z.lazy(() => CampaignStatusSchema).array().optional(), - notIn: z.lazy(() => CampaignStatusSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => NestedEnumCampaignStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumCampaignTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignTypeSchema).optional(), - in: z.lazy(() => CampaignTypeSchema).array().optional(), - notIn: z.lazy(() => CampaignTypeSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => NestedEnumCampaignTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCampaignTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCampaignTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumCampaignStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => CampaignStatusSchema).optional(), - in: z.lazy(() => CampaignStatusSchema).array().optional(), - notIn: z.lazy(() => CampaignStatusSchema).array().optional(), - not: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => NestedEnumCampaignStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumCampaignStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumCampaignStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumSocialPlatformFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => SocialPlatformSchema).optional(), - in: z.lazy(() => SocialPlatformSchema).array().optional(), - notIn: z.lazy(() => SocialPlatformSchema).array().optional(), - not: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => NestedEnumSocialPlatformFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumSocialPlatformWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => SocialPlatformSchema).optional(), - in: z.lazy(() => SocialPlatformSchema).array().optional(), - notIn: z.lazy(() => SocialPlatformSchema).array().optional(), - not: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => NestedEnumSocialPlatformWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumSocialPlatformFilterSchema).optional(), - _max: z.lazy(() => NestedEnumSocialPlatformFilterSchema).optional() -}).strict(); - -export const NestedEnumFinancialReportTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportTypeSchema).optional(), - in: z.lazy(() => FinancialReportTypeSchema).array().optional(), - notIn: z.lazy(() => FinancialReportTypeSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => NestedEnumFinancialReportTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumFinancialReportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportStatusSchema).optional(), - in: z.lazy(() => FinancialReportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => NestedEnumFinancialReportStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumFinancialReportTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportTypeSchema).optional(), - in: z.lazy(() => FinancialReportTypeSchema).array().optional(), - notIn: z.lazy(() => FinancialReportTypeSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => NestedEnumFinancialReportTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumFinancialReportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportStatusSchema).optional(), - in: z.lazy(() => FinancialReportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => NestedEnumFinancialReportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumFinancialReportExportFormatFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportFormatSchema).optional(), - in: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumFinancialReportExportStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportStatusSchema).optional(), - in: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumFinancialReportExportFormatWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportFormatSchema).optional(), - in: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportFormatSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => NestedEnumFinancialReportExportFormatWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportExportFormatFilterSchema).optional() -}).strict(); - -export const NestedEnumFinancialReportExportStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportExportStatusSchema).optional(), - in: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - notIn: z.lazy(() => FinancialReportExportStatusSchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => NestedEnumFinancialReportExportStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportExportStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumFinancialReportScheduleFrequencyFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportScheduleFrequencySchema).optional(), - in: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - notIn: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumFinancialReportScheduleFrequencyWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => FinancialReportScheduleFrequencySchema).optional(), - in: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - notIn: z.lazy(() => FinancialReportScheduleFrequencySchema).array().optional(), - not: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => NestedEnumFinancialReportScheduleFrequencyWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema).optional(), - _max: z.lazy(() => NestedEnumFinancialReportScheduleFrequencyFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateVisibilityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateVisibilitySchema).optional(), - in: z.lazy(() => TemplateVisibilitySchema).array().optional(), - notIn: z.lazy(() => TemplateVisibilitySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => NestedEnumTemplateVisibilityFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateStatusSchema).optional(), - in: z.lazy(() => TemplateStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => NestedEnumTemplateStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateVisibilityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateVisibilitySchema).optional(), - in: z.lazy(() => TemplateVisibilitySchema).array().optional(), - notIn: z.lazy(() => TemplateVisibilitySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => NestedEnumTemplateVisibilityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateVisibilityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateVisibilityFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateStatusSchema).optional(), - in: z.lazy(() => TemplateStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => NestedEnumTemplateStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateInstallStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStatusSchema).optional(), - in: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateInstallStrategyFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStrategySchema).optional(), - in: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateInstallStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStatusSchema).optional(), - in: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => NestedEnumTemplateInstallStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateInstallStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateInstallStrategyWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateInstallStrategySchema).optional(), - in: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - notIn: z.lazy(() => TemplateInstallStrategySchema).array().optional(), - not: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => NestedEnumTemplateInstallStrategyWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateInstallStrategyFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateAssetTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateAssetTypeSchema).optional(), - in: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - notIn: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateItemStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateItemStatusSchema).optional(), - in: z.lazy(() => TemplateItemStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateItemStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => NestedEnumTemplateItemStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateAssetTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateAssetTypeSchema).optional(), - in: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - notIn: z.lazy(() => TemplateAssetTypeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => NestedEnumTemplateAssetTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateAssetTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateItemStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateItemStatusSchema).optional(), - in: z.lazy(() => TemplateItemStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateItemStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => NestedEnumTemplateItemStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateItemStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateItemStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumWorkflowStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowStatusSchema).optional(), - in: z.lazy(() => WorkflowStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => NestedEnumWorkflowStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumWorkflowStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowStatusSchema).optional(), - in: z.lazy(() => WorkflowStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => NestedEnumWorkflowStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumWorkflowTriggerTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowTriggerTypeSchema).optional(), - in: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumWorkflowTriggerTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowTriggerTypeSchema).optional(), - in: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowTriggerTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => NestedEnumWorkflowTriggerTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowTriggerTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumWorkflowNodeTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowNodeTypeSchema).optional(), - in: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumWorkflowNodeTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowNodeTypeSchema).optional(), - in: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - notIn: z.lazy(() => WorkflowNodeTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => NestedEnumWorkflowNodeTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowNodeTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumDependencyTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DependencyTypeSchema).optional(), - in: z.lazy(() => DependencyTypeSchema).array().optional(), - notIn: z.lazy(() => DependencyTypeSchema).array().optional(), - not: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => NestedEnumDependencyTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumDependencyTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => DependencyTypeSchema).optional(), - in: z.lazy(() => DependencyTypeSchema).array().optional(), - notIn: z.lazy(() => DependencyTypeSchema).array().optional(), - not: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => NestedEnumDependencyTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumDependencyTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumDependencyTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumActionTemplateCategoryFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ActionTemplateCategorySchema).optional(), - in: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - notIn: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - not: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumActionTemplateCategoryWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ActionTemplateCategorySchema).optional(), - in: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - notIn: z.lazy(() => ActionTemplateCategorySchema).array().optional(), - not: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => NestedEnumActionTemplateCategoryWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema).optional(), - _max: z.lazy(() => NestedEnumActionTemplateCategoryFilterSchema).optional() -}).strict(); - -export const NestedEnumVariableDataTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableDataTypeSchema).optional(), - in: z.lazy(() => VariableDataTypeSchema).array().optional(), - notIn: z.lazy(() => VariableDataTypeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => NestedEnumVariableDataTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumVariableScopeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableScopeSchema).optional(), - in: z.lazy(() => VariableScopeSchema).array().optional(), - notIn: z.lazy(() => VariableScopeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => NestedEnumVariableScopeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumVariableDataTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableDataTypeSchema).optional(), - in: z.lazy(() => VariableDataTypeSchema).array().optional(), - notIn: z.lazy(() => VariableDataTypeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => NestedEnumVariableDataTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumVariableDataTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumVariableDataTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumVariableScopeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => VariableScopeSchema).optional(), - in: z.lazy(() => VariableScopeSchema).array().optional(), - notIn: z.lazy(() => VariableScopeSchema).array().optional(), - not: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => NestedEnumVariableScopeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumVariableScopeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumVariableScopeFilterSchema).optional() -}).strict(); - -export const NestedEnumWorkflowExecutionStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - in: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumExecutionPriorityFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExecutionPrioritySchema).optional(), - in: z.lazy(() => ExecutionPrioritySchema).array().optional(), - notIn: z.lazy(() => ExecutionPrioritySchema).array().optional(), - not: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => NestedEnumExecutionPriorityFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumWorkflowExecutionStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - in: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => WorkflowExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => NestedEnumWorkflowExecutionStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWorkflowExecutionStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumExecutionPriorityWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => ExecutionPrioritySchema).optional(), - in: z.lazy(() => ExecutionPrioritySchema).array().optional(), - notIn: z.lazy(() => ExecutionPrioritySchema).array().optional(), - not: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => NestedEnumExecutionPriorityWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumExecutionPriorityFilterSchema).optional(), - _max: z.lazy(() => NestedEnumExecutionPriorityFilterSchema).optional() -}).strict(); - -export const NestedEnumNodeExecutionStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NodeExecutionStatusSchema).optional(), - in: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumNodeExecutionStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => NodeExecutionStatusSchema).optional(), - in: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - notIn: z.lazy(() => NodeExecutionStatusSchema).array().optional(), - not: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => NestedEnumNodeExecutionStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumNodeExecutionStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumLogLevelFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LogLevelSchema).optional(), - in: z.lazy(() => LogLevelSchema).array().optional(), - notIn: z.lazy(() => LogLevelSchema).array().optional(), - not: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => NestedEnumLogLevelFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumLogLevelWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => LogLevelSchema).optional(), - in: z.lazy(() => LogLevelSchema).array().optional(), - notIn: z.lazy(() => LogLevelSchema).array().optional(), - not: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => NestedEnumLogLevelWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumLogLevelFilterSchema).optional(), - _max: z.lazy(() => NestedEnumLogLevelFilterSchema).optional() -}).strict(); - -export const NestedEnumIntegrationTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IntegrationTypeSchema).optional(), - in: z.lazy(() => IntegrationTypeSchema).array().optional(), - notIn: z.lazy(() => IntegrationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => NestedEnumIntegrationTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumIntegrationTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => IntegrationTypeSchema).optional(), - in: z.lazy(() => IntegrationTypeSchema).array().optional(), - notIn: z.lazy(() => IntegrationTypeSchema).array().optional(), - not: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => NestedEnumIntegrationTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumIntegrationTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumIntegrationTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumWhatsAppMessageTypeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - in: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - notIn: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumWhatsAppMessageTypeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - in: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - notIn: z.lazy(() => WhatsAppMessageTypeSchema).array().optional(), - not: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => NestedEnumWhatsAppMessageTypeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumWhatsAppMessageTypeFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateShareModeFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareModeSchema).optional(), - in: z.lazy(() => TemplateShareModeSchema).array().optional(), - notIn: z.lazy(() => TemplateShareModeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => NestedEnumTemplateShareModeFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateShareStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareStatusSchema).optional(), - in: z.lazy(() => TemplateShareStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => NestedEnumTemplateShareStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateShareModeWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareModeSchema).optional(), - in: z.lazy(() => TemplateShareModeSchema).array().optional(), - notIn: z.lazy(() => TemplateShareModeSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => NestedEnumTemplateShareModeWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareModeFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareModeFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateShareStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareStatusSchema).optional(), - in: z.lazy(() => TemplateShareStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => NestedEnumTemplateShareStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateShareRecipientStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - in: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateShareRecipientStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - in: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareRecipientStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => NestedEnumTemplateShareRecipientStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareRecipientStatusFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateShareAccessActionFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessActionSchema).optional(), - in: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateShareAccessStatusFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessStatusSchema).optional(), - in: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema) ]).optional(), -}).strict(); - -export const NestedEnumTemplateShareAccessActionWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessActionSchema).optional(), - in: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessActionSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => NestedEnumTemplateShareAccessActionWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareAccessActionFilterSchema).optional() -}).strict(); - -export const NestedEnumTemplateShareAccessStatusWithAggregatesFilterSchema: z.ZodType = z.object({ - equals: z.lazy(() => TemplateShareAccessStatusSchema).optional(), - in: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - notIn: z.lazy(() => TemplateShareAccessStatusSchema).array().optional(), - not: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => NestedEnumTemplateShareAccessStatusWithAggregatesFilterSchema) ]).optional(), - _count: z.lazy(() => NestedIntFilterSchema).optional(), - _min: z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema).optional(), - _max: z.lazy(() => NestedEnumTemplateShareAccessStatusFilterSchema).optional() -}).strict(); - -export const RolePermissionCreateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - createdAt: z.coerce.date().optional() -}).strict(); - -export const RolePermissionUncheckedCreateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - createdAt: z.coerce.date().optional() -}).strict(); - -export const RolePermissionCreateOrConnectWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => RolePermissionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema) ]), -}).strict(); - -export const RolePermissionCreateManyPermissionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => RolePermissionCreateManyPermissionInputSchema),z.lazy(() => RolePermissionCreateManyPermissionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CustomRolePermissionCreateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - customRole: z.lazy(() => CustomRoleCreateNestedOneWithoutPermissionsInputSchema) -}).strict(); - -export const CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customRoleId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionCreateOrConnectWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema) ]), -}).strict(); - -export const CustomRolePermissionCreateManyPermissionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CustomRolePermissionCreateManyPermissionInputSchema),z.lazy(() => CustomRolePermissionCreateManyPermissionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const RolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => RolePermissionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => RolePermissionUpdateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedUpdateWithoutPermissionInputSchema) ]), - create: z.union([ z.lazy(() => RolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedCreateWithoutPermissionInputSchema) ]), -}).strict(); - -export const RolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => RolePermissionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => RolePermissionUpdateWithoutPermissionInputSchema),z.lazy(() => RolePermissionUncheckedUpdateWithoutPermissionInputSchema) ]), -}).strict(); - -export const RolePermissionUpdateManyWithWhereWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => RolePermissionScalarWhereInputSchema), - data: z.union([ z.lazy(() => RolePermissionUpdateManyMutationInputSchema),z.lazy(() => RolePermissionUncheckedUpdateManyWithoutPermissionInputSchema) ]), -}).strict(); - -export const RolePermissionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => RolePermissionScalarWhereInputSchema),z.lazy(() => RolePermissionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => RolePermissionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => RolePermissionScalarWhereInputSchema),z.lazy(() => RolePermissionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomRolePermissionUpsertWithWhereUniqueWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateWithoutPermissionInputSchema) ]), - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutPermissionInputSchema) ]), -}).strict(); - -export const CustomRolePermissionUpdateWithWhereUniqueWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CustomRolePermissionUpdateWithoutPermissionInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateWithoutPermissionInputSchema) ]), -}).strict(); - -export const CustomRolePermissionUpdateManyWithWhereWithoutPermissionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionScalarWhereInputSchema), - data: z.union([ z.lazy(() => CustomRolePermissionUpdateManyMutationInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutPermissionInputSchema) ]), -}).strict(); - -export const CustomRolePermissionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRolePermissionScalarWhereInputSchema),z.lazy(() => CustomRolePermissionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customRoleId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - permissionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PermissionCreateWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionUncheckedCreateWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionCreateOrConnectWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PermissionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => PermissionCreateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutRolePermissionsInputSchema) ]), -}).strict(); - -export const PermissionUpsertWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => PermissionUpdateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutRolePermissionsInputSchema) ]), - create: z.union([ z.lazy(() => PermissionCreateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutRolePermissionsInputSchema) ]), - where: z.lazy(() => PermissionWhereInputSchema).optional() -}).strict(); - -export const PermissionUpdateToOneWithWhereWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PermissionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => PermissionUpdateWithoutRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutRolePermissionsInputSchema) ]), -}).strict(); - -export const PermissionUpdateWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const PermissionUncheckedUpdateWithoutRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customRolePermissions: z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutCustomRolesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutCustomRolesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutCustomRolesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomRolesInputSchema) ]), -}).strict(); - -export const CustomRolePermissionCreateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdAt: z.coerce.date().optional(), - permission: z.lazy(() => PermissionCreateNestedOneWithoutCustomRolePermissionsInputSchema) -}).strict(); - -export const CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionCreateOrConnectWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const CustomRolePermissionCreateManyCustomRoleInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputSchema),z.lazy(() => CustomRolePermissionCreateManyCustomRoleInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const UserOrganizationCreateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - joinedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutUsersInputSchema) -}).strict(); - -export const UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.string(), - organizationId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationCreateOrConnectWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const UserOrganizationCreateManyCustomRoleInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => UserOrganizationCreateManyCustomRoleInputSchema),z.lazy(() => UserOrganizationCreateManyCustomRoleInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutCustomRolesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomRolesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomRolesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutCustomRolesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutCustomRolesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomRolesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutCustomRolesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutCustomRolesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const CustomRolePermissionUpsertWithWhereUniqueWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CustomRolePermissionUpdateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateWithoutCustomRoleInputSchema) ]), - create: z.union([ z.lazy(() => CustomRolePermissionCreateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedCreateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const CustomRolePermissionUpdateWithWhereUniqueWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CustomRolePermissionUpdateWithoutCustomRoleInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const CustomRolePermissionUpdateManyWithWhereWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRolePermissionScalarWhereInputSchema), - data: z.union([ z.lazy(() => CustomRolePermissionUpdateManyMutationInputSchema),z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const UserOrganizationUpsertWithWhereUniqueWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateWithoutCustomRoleInputSchema) ]), - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const UserOrganizationUpdateWithWhereUniqueWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => UserOrganizationUpdateWithoutCustomRoleInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const UserOrganizationUpdateManyWithWhereWithoutCustomRoleInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationScalarWhereInputSchema), - data: z.union([ z.lazy(() => UserOrganizationUpdateManyMutationInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutCustomRoleInputSchema) ]), -}).strict(); - -export const UserOrganizationScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => UserOrganizationScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => UserOrganizationScalarWhereInputSchema),z.lazy(() => UserOrganizationScalarWhereInputSchema).array() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleNullableFilterSchema),z.lazy(() => UserRoleSchema) ]).optional().nullable(), - customRoleId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - joinedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomRoleCreateWithoutPermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomRolesInputSchema), - userAssignments: z.lazy(() => UserOrganizationCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedCreateWithoutPermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleCreateOrConnectWithoutPermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutPermissionsInputSchema) ]), -}).strict(); - -export const PermissionCreateWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - rolePermissions: z.lazy(() => RolePermissionCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionUncheckedCreateWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - module: z.string(), - action: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - rolePermissions: z.lazy(() => RolePermissionUncheckedCreateNestedManyWithoutPermissionInputSchema).optional() -}).strict(); - -export const PermissionCreateOrConnectWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PermissionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => PermissionCreateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutCustomRolePermissionsInputSchema) ]), -}).strict(); - -export const CustomRoleUpsertWithoutPermissionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomRoleUpdateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutPermissionsInputSchema) ]), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutPermissionsInputSchema) ]), - where: z.lazy(() => CustomRoleWhereInputSchema).optional() -}).strict(); - -export const CustomRoleUpdateToOneWithWhereWithoutPermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomRoleUpdateWithoutPermissionsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutPermissionsInputSchema) ]), -}).strict(); - -export const CustomRoleUpdateWithoutPermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomRolesNestedInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedUpdateWithoutPermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const PermissionUpsertWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => PermissionUpdateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutCustomRolePermissionsInputSchema) ]), - create: z.union([ z.lazy(() => PermissionCreateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedCreateWithoutCustomRolePermissionsInputSchema) ]), - where: z.lazy(() => PermissionWhereInputSchema).optional() -}).strict(); - -export const PermissionUpdateToOneWithWhereWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PermissionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => PermissionUpdateWithoutCustomRolePermissionsInputSchema),z.lazy(() => PermissionUncheckedUpdateWithoutCustomRolePermissionsInputSchema) ]), -}).strict(); - -export const PermissionUpdateWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - rolePermissions: z.lazy(() => RolePermissionUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const PermissionUncheckedUpdateWithoutCustomRolePermissionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - rolePermissions: z.lazy(() => RolePermissionUncheckedUpdateManyWithoutPermissionNestedInputSchema).optional() -}).strict(); - -export const UserOrganizationCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - userId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - joinedAt: z.coerce.date().optional(), - customRole: z.lazy(() => CustomRoleCreateNestedOneWithoutUserAssignmentsInputSchema).optional() -}).strict(); - -export const UserOrganizationUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - userId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - customRoleId: z.string().optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const UserOrganizationCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => UserOrganizationCreateManyOrganizationInputSchema),z.lazy(() => UserOrganizationCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CustomerCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - interactions: z.lazy(() => CustomerInteractionCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomerCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CustomerCreateManyOrganizationInputSchema),z.lazy(() => CustomerCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ProjectCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ProjectCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ProjectCreateManyOrganizationInputSchema),z.lazy(() => ProjectCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TaskCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TaskCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TaskCreateManyOrganizationInputSchema),z.lazy(() => TaskCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const InvoiceCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInvoicesInputSchema), - items: z.lazy(() => InvoiceItemCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - items: z.lazy(() => InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvoiceCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => InvoiceCreateManyOrganizationInputSchema),z.lazy(() => InvoiceCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExpenseCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - category: z.lazy(() => ExpenseCategoryCreateNestedOneWithoutExpensesInputSchema).optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutExpensesInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tags: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseCreateManyOrganizationInputSchema),z.lazy(() => ExpenseCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExpenseCategoryCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutCategoryInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutCategoryInputSchema).optional() -}).strict(); - -export const ExpenseCategoryCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseCategoryCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseCategoryCreateManyOrganizationInputSchema),z.lazy(() => ExpenseCategoryCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExpenseTagCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseToTagCreateNestedManyWithoutTagInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional(), - expenses: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutTagInputSchema).optional() -}).strict(); - -export const ExpenseTagCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseTagCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseTagCreateManyOrganizationInputSchema),z.lazy(() => ExpenseTagCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const EmployeeCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payrolls: z.lazy(() => PayrollCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payrolls: z.lazy(() => PayrollUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const EmployeeCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => EmployeeCreateManyOrganizationInputSchema),z.lazy(() => EmployeeCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const MarketingCampaignCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - emailCampaigns: z.lazy(() => EmailCampaignCreateNestedManyWithoutCampaignInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedCreateNestedManyWithoutCampaignInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereUniqueInputSchema), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const MarketingCampaignCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => MarketingCampaignCreateManyOrganizationInputSchema),z.lazy(() => MarketingCampaignCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const InvitationCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvitationUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvitationCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvitationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvitationCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => InvitationCreateManyOrganizationInputSchema),z.lazy(() => InvitationCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CustomRoleCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - permissions: z.lazy(() => CustomRolePermissionCreateNestedManyWithoutCustomRoleInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomRoleCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CustomRoleCreateManyOrganizationInputSchema),z.lazy(() => CustomRoleCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const FinancialReportCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - reportData: z.lazy(() => FinancialReportDataCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const FinancialReportCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => FinancialReportCreateManyOrganizationInputSchema),z.lazy(() => FinancialReportCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const WorkflowCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowCreateManyOrganizationInputSchema),z.lazy(() => WorkflowCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ActionTemplateCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => ActionTemplateVersionCreateNestedManyWithoutActionTemplateInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => ActionTemplateVersionUncheckedCreateNestedManyWithoutActionTemplateInputSchema).optional() -}).strict(); - -export const ActionTemplateCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ActionTemplateCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ActionTemplateCreateManyOrganizationInputSchema),z.lazy(() => ActionTemplateCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const VariableDefinitionCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggerVars: z.lazy(() => TriggerVariableCreateNestedManyWithoutVariableInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutVariableInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const VariableDefinitionCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => VariableDefinitionCreateManyOrganizationInputSchema),z.lazy(() => VariableDefinitionCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const IntegrationConfigCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const IntegrationConfigCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => IntegrationConfigWhereUniqueInputSchema), - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const IntegrationConfigCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => IntegrationConfigCreateManyOrganizationInputSchema),z.lazy(() => IntegrationConfigCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplatePackageCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplatePackageCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplatePackageCreateManyOrganizationInputSchema),z.lazy(() => TemplatePackageCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateInstallationCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutInstallationsInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionCreateNestedOneWithoutInstallationsInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string().optional().nullable(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateInstallationCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateInstallationCreateManyOrganizationInputSchema),z.lazy(() => TemplateInstallationCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutSharesInputSchema), - recipients: z.lazy(() => TemplateShareRecipientCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareCreateManyOrganizationInputSchema),z.lazy(() => TemplateShareCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareImportCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string(), - share: z.lazy(() => TemplateShareCreateNestedOneWithoutImportsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutShareImportsInputSchema) -}).strict(); - -export const TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareImportCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareImportCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareImportCreateManyOrganizationInputSchema),z.lazy(() => TemplateShareImportCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUiConfigCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const OrganizationUiConfigCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const OrganizationUiConfigCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputSchema),z.lazy(() => OrganizationUiConfigCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportSessionCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportSessionsInputSchema), - rows: z.lazy(() => ImportRowCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutSessionInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateCreateNestedOneWithoutSessionsInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportSessionCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportSessionCreateManyOrganizationInputSchema),z.lazy(() => ImportSessionCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportTemplateCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportTemplatesInputSchema), - sessions: z.lazy(() => ImportSessionCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedCreateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdByUserId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - sessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateCreateOrConnectWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportTemplateCreateManyOrganizationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportTemplateCreateManyOrganizationInputSchema),z.lazy(() => ImportTemplateCreateManyOrganizationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const UserOrganizationUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => UserOrganizationUpdateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => UserOrganizationCreateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const UserOrganizationUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => UserOrganizationUpdateWithoutOrganizationInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const UserOrganizationUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserOrganizationScalarWhereInputSchema), - data: z.union([ z.lazy(() => UserOrganizationUpdateManyMutationInputSchema),z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomerUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CustomerUpdateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => CustomerCreateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomerUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CustomerUpdateWithoutOrganizationInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomerUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerScalarWhereInputSchema), - data: z.union([ z.lazy(() => CustomerUpdateManyMutationInputSchema),z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomerScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerScalarWhereInputSchema),z.lazy(() => CustomerScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerScalarWhereInputSchema),z.lazy(() => CustomerScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumCustomerTypeFilterSchema),z.lazy(() => CustomerTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusNullableFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional().nullable(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - company: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - source: z.union([ z.lazy(() => EnumLeadSourceNullableFilterSchema),z.lazy(() => LeadSourceSchema) ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ProjectUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ProjectUpdateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ProjectCreateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ProjectUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ProjectUpdateWithoutOrganizationInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ProjectUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectScalarWhereInputSchema), - data: z.union([ z.lazy(() => ProjectUpdateManyMutationInputSchema),z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ProjectScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectScalarWhereInputSchema),z.lazy(() => ProjectScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectScalarWhereInputSchema),z.lazy(() => ProjectScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumProjectStatusFilterSchema),z.lazy(() => ProjectStatusSchema) ]).optional(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TaskUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TaskUpdateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TaskUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TaskUpdateWithoutOrganizationInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TaskUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskScalarWhereInputSchema), - data: z.union([ z.lazy(() => TaskUpdateManyMutationInputSchema),z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TaskScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TaskScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TaskScalarWhereInputSchema),z.lazy(() => TaskScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - parentTaskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTaskStatusFilterSchema),z.lazy(() => TaskStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumPriorityFilterSchema),z.lazy(() => PrioritySchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - dueDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - assignedToId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - estimatedHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - actualHours: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - order: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - customerInteractionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const InvoiceUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - update: z.union([ z.lazy(() => InvoiceUpdateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => InvoiceCreateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvoiceUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - data: z.union([ z.lazy(() => InvoiceUpdateWithoutOrganizationInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvoiceUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceScalarWhereInputSchema), - data: z.union([ z.lazy(() => InvoiceUpdateManyMutationInputSchema),z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvoiceScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceScalarWhereInputSchema),z.lazy(() => InvoiceScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerEmail: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customerPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - invoiceNumber: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvoiceStatusFilterSchema),z.lazy(() => InvoiceStatusSchema) ]).optional(), - issueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - dueDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - paymentTerms: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - poNumber: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - shippingAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - totalAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - paidAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - internalNotes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - termsAndConditions: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - footer: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - logoUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - lastReminder: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateManyMutationInputSchema),z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseScalarWhereInputSchema),z.lazy(() => ExpenseScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - categoryId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - customCategory: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - date: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - receipt: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - vendor: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumExpenseStatusFilterSchema),z.lazy(() => ExpenseStatusSchema) ]).optional(), - reimbursable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursed: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - reimbursedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - submittedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - rejectionReason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseCategoryUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseCategoryUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseCategoryUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseCategoryUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseCategoryUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseCategoryUpdateManyMutationInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseCategoryScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseCategoryScalarWhereInputSchema),z.lazy(() => ExpenseCategoryScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseCategoryScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseCategoryScalarWhereInputSchema),z.lazy(() => ExpenseCategoryScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseTagUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseTagUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseTagUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseTagUpdateWithoutOrganizationInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseTagUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseTagUpdateManyMutationInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ExpenseTagScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseTagScalarWhereInputSchema),z.lazy(() => ExpenseTagScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseTagScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseTagScalarWhereInputSchema),z.lazy(() => ExpenseTagScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EmployeeUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - update: z.union([ z.lazy(() => EmployeeUpdateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => EmployeeCreateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const EmployeeUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - data: z.union([ z.lazy(() => EmployeeUpdateWithoutOrganizationInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const EmployeeUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeScalarWhereInputSchema), - data: z.union([ z.lazy(() => EmployeeUpdateManyMutationInputSchema),z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const EmployeeScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmployeeScalarWhereInputSchema),z.lazy(() => EmployeeScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmployeeScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmployeeScalarWhereInputSchema),z.lazy(() => EmployeeScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - firstName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - lastName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - phone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - department: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - hireDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - terminationDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumEmployeeStatusFilterSchema),z.lazy(() => EmployeeStatusSchema) ]).optional(), - managerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - address: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - city: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - country: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - postalCode: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - birthDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - taxId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactName: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emergencyContactPhone: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const MarketingCampaignUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereUniqueInputSchema), - update: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereUniqueInputSchema), - data: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutOrganizationInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignScalarWhereInputSchema), - data: z.union([ z.lazy(() => MarketingCampaignUpdateManyMutationInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const MarketingCampaignScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => MarketingCampaignScalarWhereInputSchema),z.lazy(() => MarketingCampaignScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => MarketingCampaignScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => MarketingCampaignScalarWhereInputSchema),z.lazy(() => MarketingCampaignScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumCampaignTypeFilterSchema),z.lazy(() => CampaignTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumCampaignStatusFilterSchema),z.lazy(() => CampaignStatusSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - budget: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetAudience: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvitationUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvitationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => InvitationUpdateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => InvitationCreateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvitationUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvitationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => InvitationUpdateWithoutOrganizationInputSchema),z.lazy(() => InvitationUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvitationUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvitationScalarWhereInputSchema), - data: z.union([ z.lazy(() => InvitationUpdateManyMutationInputSchema),z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const InvitationScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvitationScalarWhereInputSchema),z.lazy(() => InvitationScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvitationScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvitationScalarWhereInputSchema),z.lazy(() => InvitationScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => EnumUserRoleFilterSchema),z.lazy(() => UserRoleSchema) ]).optional(), - inviterId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - token: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumInvitationStatusFilterSchema),z.lazy(() => InvitationStatusSchema) ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - acceptedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomRoleUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CustomRoleUpdateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomRoleUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CustomRoleUpdateWithoutOrganizationInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomRoleUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleScalarWhereInputSchema), - data: z.union([ z.lazy(() => CustomRoleUpdateManyMutationInputSchema),z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const CustomRoleScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomRoleScalarWhereInputSchema),z.lazy(() => CustomRoleScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomRoleScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomRoleScalarWhereInputSchema),z.lazy(() => CustomRoleScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - color: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - update: z.union([ z.lazy(() => FinancialReportUpdateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const FinancialReportUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - data: z.union([ z.lazy(() => FinancialReportUpdateWithoutOrganizationInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const FinancialReportUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportScalarWhereInputSchema), - data: z.union([ z.lazy(() => FinancialReportUpdateManyMutationInputSchema),z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const FinancialReportScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportScalarWhereInputSchema),z.lazy(() => FinancialReportScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScalarWhereInputSchema),z.lazy(() => FinancialReportScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumFinancialReportTypeFilterSchema),z.lazy(() => FinancialReportTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - filters: z.lazy(() => JsonNullableFilterSchema).optional(), - dateRange: z.lazy(() => JsonFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumFinancialReportStatusFilterSchema),z.lazy(() => FinancialReportStatusSchema) ]).optional(), - generatedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - generatedBy: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isScheduled: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scheduleConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowUpdateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutOrganizationInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const WorkflowUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowUpdateManyMutationInputSchema),z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const WorkflowScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowScalarWhereInputSchema),z.lazy(() => WorkflowScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowScalarWhereInputSchema),z.lazy(() => WorkflowScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowStatusFilterSchema),z.lazy(() => WorkflowStatusSchema) ]).optional(), - isTemplate: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - canvasData: z.lazy(() => JsonNullableFilterSchema).optional(), - retryConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - timeoutConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastExecutedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - updatedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - archivedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ActionTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ActionTemplateUpdateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ActionTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ActionTemplateUpdateWithoutOrganizationInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ActionTemplateUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateScalarWhereInputSchema), - data: z.union([ z.lazy(() => ActionTemplateUpdateManyMutationInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ActionTemplateScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateScalarWhereInputSchema),z.lazy(() => ActionTemplateScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateScalarWhereInputSchema),z.lazy(() => ActionTemplateScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => EnumActionTemplateCategoryFilterSchema),z.lazy(() => ActionTemplateCategorySchema) ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - defaultConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - schema: z.lazy(() => JsonNullableFilterSchema).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isPublic: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - isLocked: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - requiredVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - optionalVariables: z.lazy(() => JsonNullableFilterSchema).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const VariableDefinitionUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const VariableDefinitionUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutOrganizationInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const VariableDefinitionUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionScalarWhereInputSchema), - data: z.union([ z.lazy(() => VariableDefinitionUpdateManyMutationInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const VariableDefinitionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => VariableDefinitionScalarWhereInputSchema),z.lazy(() => VariableDefinitionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => VariableDefinitionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => VariableDefinitionScalarWhereInputSchema),z.lazy(() => VariableDefinitionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - displayName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - validation: z.lazy(() => JsonNullableFilterSchema).optional(), - formatting: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isCustom: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - scope: z.union([ z.lazy(() => EnumVariableScopeFilterSchema),z.lazy(() => VariableScopeSchema) ]).optional(), - moduleScope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const IntegrationConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => IntegrationConfigWhereUniqueInputSchema), - update: z.union([ z.lazy(() => IntegrationConfigUpdateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => IntegrationConfigCreateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const IntegrationConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => IntegrationConfigWhereUniqueInputSchema), - data: z.union([ z.lazy(() => IntegrationConfigUpdateWithoutOrganizationInputSchema),z.lazy(() => IntegrationConfigUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const IntegrationConfigUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => IntegrationConfigScalarWhereInputSchema), - data: z.union([ z.lazy(() => IntegrationConfigUpdateManyMutationInputSchema),z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const IntegrationConfigScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => IntegrationConfigScalarWhereInputSchema),z.lazy(() => IntegrationConfigScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => IntegrationConfigScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => IntegrationConfigScalarWhereInputSchema),z.lazy(() => IntegrationConfigScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumIntegrationTypeFilterSchema),z.lazy(() => IntegrationTypeSchema) ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - credentials: z.lazy(() => JsonNullableFilterSchema).optional(), - endpoints: z.lazy(() => JsonNullableFilterSchema).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - isHealthy: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastHealthCheck: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - healthDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - requestCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - errorCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplatePackageUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplatePackageUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplatePackageUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplatePackageUpdateManyMutationInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplatePackageScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplatePackageScalarWhereInputSchema),z.lazy(() => TemplatePackageScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplatePackageScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplatePackageScalarWhereInputSchema),z.lazy(() => TemplatePackageScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - visibility: z.union([ z.lazy(() => EnumTemplateVisibilityFilterSchema),z.lazy(() => TemplateVisibilitySchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateStatusFilterSchema),z.lazy(() => TemplateStatusSchema) ]).optional(), - iconUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - tags: z.lazy(() => JsonNullableFilterSchema).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - assetsCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - sizeBytes: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateInstallationUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateManyMutationInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateInstallationScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallationScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallationScalarWhereInputSchema),z.lazy(() => TemplateInstallationScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - templateVersionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateInstallStatusFilterSchema),z.lazy(() => TemplateInstallStatusSchema) ]).optional(), - strategy: z.union([ z.lazy(() => EnumTemplateInstallStrategyFilterSchema),z.lazy(() => TemplateInstallStrategySchema) ]).optional(), - namePrefix: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - preflight: z.lazy(() => JsonNullableFilterSchema).optional(), - logs: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const TemplateShareUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareUpdateManyMutationInputSchema),z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareScalarWhereInputSchema),z.lazy(() => TemplateShareScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => EnumTemplateShareModeFilterSchema),z.lazy(() => TemplateShareModeSchema) ]).optional(), - tokenHash: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - expiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - maxUses: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - allowExternal: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateShareStatusFilterSchema),z.lazy(() => TemplateShareStatusSchema) ]).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastAccessedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - revokedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - snapshotData: z.lazy(() => JsonFilterSchema).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateShareImportUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutOrganizationInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateManyMutationInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const TemplateShareImportScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareImportScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareImportScalarWhereInputSchema),z.lazy(() => TemplateShareImportScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - importedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - originalPackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - originalOrgId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - snapshotVersion: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const OrganizationUiConfigUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema), - update: z.union([ z.lazy(() => OrganizationUiConfigUpdateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationUiConfigCreateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const OrganizationUiConfigUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationUiConfigWhereUniqueInputSchema), - data: z.union([ z.lazy(() => OrganizationUiConfigUpdateWithoutOrganizationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const OrganizationUiConfigUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationUiConfigScalarWhereInputSchema), - data: z.union([ z.lazy(() => OrganizationUiConfigUpdateManyMutationInputSchema),z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const OrganizationUiConfigScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => OrganizationUiConfigScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => OrganizationUiConfigScalarWhereInputSchema),z.lazy(() => OrganizationUiConfigScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - key: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - config: z.lazy(() => JsonFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportSessionUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportSessionUpdateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateWithoutOrganizationInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateManyMutationInputSchema),z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportSessionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportSessionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportSessionScalarWhereInputSchema),z.lazy(() => ImportSessionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - fileType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumImportStatusFilterSchema),z.lazy(() => ImportStatusSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => EnumDedupeModeFilterSchema),z.lazy(() => DedupeModeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonNullableFilterSchema).optional(), - summary: z.lazy(() => JsonNullableFilterSchema).optional(), - rowCount: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - processedCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failureCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - skippedCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - appliedTemplateId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), -}).strict(); - -export const ImportTemplateUpsertWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutOrganizationInputSchema) ]), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportTemplateUpdateWithWhereUniqueWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportTemplateUpdateWithoutOrganizationInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportTemplateUpdateManyWithWhereWithoutOrganizationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportTemplateUpdateManyMutationInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationInputSchema) ]), -}).strict(); - -export const ImportTemplateScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportTemplateScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportTemplateScalarWhereInputSchema),z.lazy(() => ImportTemplateScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - organizationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdByUserId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - module: z.union([ z.lazy(() => EnumImportModuleFilterSchema),z.lazy(() => ImportModuleSchema) ]).optional(), - entityType: z.union([ z.lazy(() => EnumImportEntityTypeFilterSchema),z.lazy(() => ImportEntityTypeSchema) ]).optional(), - mappingConfig: z.lazy(() => JsonFilterSchema).optional(), - columnSignature: z.lazy(() => JsonFilterSchema).optional(), - usageCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - lastUsedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutImportSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutImportSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutImportSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportSessionsInputSchema) ]), -}).strict(); - -export const UserCreateWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportSessionsInputSchema) ]), -}).strict(); - -export const ImportRowCreateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutRowInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedCreateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutRowInputSchema).optional() -}).strict(); - -export const ImportRowCreateOrConnectWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowCreateManySessionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportRowCreateManySessionInputSchema),z.lazy(() => ImportRowCreateManySessionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportRowIssueCreateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - row: z.lazy(() => ImportRowCreateNestedOneWithoutIssuesInputSchema) -}).strict(); - -export const ImportRowIssueUncheckedCreateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueCreateOrConnectWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowIssueCreateManySessionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportRowIssueCreateManySessionInputSchema),z.lazy(() => ImportRowIssueCreateManySessionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportTemplateCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportTemplatesInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportTemplatesInputSchema) -}).strict(); - -export const ImportTemplateUncheckedCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportTemplateCreateOrConnectWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutSessionsInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutImportSessionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportSessionsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportSessionsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutImportSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutImportSessionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportSessionsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutImportSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutImportSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const UserUpsertWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportSessionsInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportSessionsInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutCreatedImportSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportSessionsInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutCreatedImportSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const ImportRowUpsertWithWhereUniqueWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportRowUpdateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedUpdateWithoutSessionInputSchema) ]), - create: z.union([ z.lazy(() => ImportRowCreateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowUpdateWithWhereUniqueWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportRowUpdateWithoutSessionInputSchema),z.lazy(() => ImportRowUncheckedUpdateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowUpdateManyWithWhereWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportRowUpdateManyMutationInputSchema),z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowScalarWhereInputSchema),z.lazy(() => ImportRowScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowScalarWhereInputSchema),z.lazy(() => ImportRowScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowNumber: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - rawData: z.lazy(() => JsonFilterSchema).optional(), - mappedData: z.lazy(() => JsonNullableFilterSchema).optional(), - status: z.union([ z.lazy(() => EnumRowStatusFilterSchema),z.lazy(() => RowStatusSchema) ]).optional(), - dedupeHint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - score: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportRowIssueUpsertWithWhereUniqueWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateWithoutSessionInputSchema) ]), - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowIssueUpdateWithWhereUniqueWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportRowIssueUpdateWithoutSessionInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowIssueUpdateManyWithWhereWithoutSessionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportRowIssueUpdateManyMutationInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionInputSchema) ]), -}).strict(); - -export const ImportRowIssueScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ImportRowIssueScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ImportRowIssueScalarWhereInputSchema),z.lazy(() => ImportRowIssueScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sessionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - rowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - field: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - severity: z.union([ z.lazy(() => EnumIssueSeverityFilterSchema),z.lazy(() => IssueSeveritySchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - hint: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportTemplateUpsertWithoutSessionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ImportTemplateUpdateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutSessionsInputSchema) ]), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutSessionsInputSchema) ]), - where: z.lazy(() => ImportTemplateWhereInputSchema).optional() -}).strict(); - -export const ImportTemplateUpdateToOneWithWhereWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ImportTemplateUpdateWithoutSessionsInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutSessionsInputSchema) ]), -}).strict(); - -export const ImportTemplateUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportTemplatesNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportTemplatesNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportTemplatesInputSchema) ]), -}).strict(); - -export const UserCreateWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportTemplatesInputSchema) ]), -}).strict(); - -export const ImportSessionCreateWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportSessionsInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportSessionsInputSchema), - rows: z.lazy(() => ImportRowCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionCreateOrConnectWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema) ]), -}).strict(); - -export const ImportSessionCreateManyAppliedTemplateInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportSessionCreateManyAppliedTemplateInputSchema),z.lazy(() => ImportSessionCreateManyAppliedTemplateInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportTemplatesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutImportTemplatesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutImportTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutImportTemplatesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const UserUpsertWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportTemplatesInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedCreateWithoutCreatedImportTemplatesInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutCreatedImportTemplatesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutCreatedImportTemplatesInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutCreatedImportTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUpsertWithWhereUniqueWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportSessionUpdateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutAppliedTemplateInputSchema) ]), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutAppliedTemplateInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateWithWhereUniqueWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateWithoutAppliedTemplateInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutAppliedTemplateInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateManyWithWhereWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateManyMutationInputSchema),z.lazy(() => ImportSessionUncheckedUpdateManyWithoutAppliedTemplateInputSchema) ]), -}).strict(); - -export const ImportSessionCreateWithoutRowsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportSessionsInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportSessionsInputSchema), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutSessionInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateCreateNestedOneWithoutSessionsInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateWithoutRowsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionCreateOrConnectWithoutRowsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutRowsInputSchema) ]), -}).strict(); - -export const ImportRowIssueCreateWithoutRowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - session: z.lazy(() => ImportSessionCreateNestedOneWithoutIssuesInputSchema) -}).strict(); - -export const ImportRowIssueUncheckedCreateWithoutRowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueCreateOrConnectWithoutRowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema) ]), -}).strict(); - -export const ImportRowIssueCreateManyRowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportRowIssueCreateManyRowInputSchema),z.lazy(() => ImportRowIssueCreateManyRowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportSessionUpsertWithoutRowsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ImportSessionUpdateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutRowsInputSchema) ]), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutRowsInputSchema) ]), - where: z.lazy(() => ImportSessionWhereInputSchema).optional() -}).strict(); - -export const ImportSessionUpdateToOneWithWhereWithoutRowsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ImportSessionUpdateWithoutRowsInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutRowsInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateWithoutRowsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutSessionNestedInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateUpdateOneWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateWithoutRowsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportRowIssueUpsertWithWhereUniqueWithoutRowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportRowIssueUpdateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateWithoutRowInputSchema) ]), - create: z.union([ z.lazy(() => ImportRowIssueCreateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedCreateWithoutRowInputSchema) ]), -}).strict(); - -export const ImportRowIssueUpdateWithWhereUniqueWithoutRowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportRowIssueUpdateWithoutRowInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateWithoutRowInputSchema) ]), -}).strict(); - -export const ImportRowIssueUpdateManyWithWhereWithoutRowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowIssueScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportRowIssueUpdateManyMutationInputSchema),z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutRowInputSchema) ]), -}).strict(); - -export const ImportSessionCreateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportSessionsInputSchema), - createdBy: z.lazy(() => UserCreateNestedOneWithoutCreatedImportSessionsInputSchema), - rows: z.lazy(() => ImportRowCreateNestedManyWithoutSessionInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateCreateNestedOneWithoutSessionsInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionCreateOrConnectWithoutIssuesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutIssuesInputSchema) ]), -}).strict(); - -export const ImportRowCreateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - session: z.lazy(() => ImportSessionCreateNestedOneWithoutRowsInputSchema) -}).strict(); - -export const ImportRowUncheckedCreateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowCreateOrConnectWithoutIssuesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportRowCreateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutIssuesInputSchema) ]), -}).strict(); - -export const ImportSessionUpsertWithoutIssuesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ImportSessionUpdateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutIssuesInputSchema) ]), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutIssuesInputSchema) ]), - where: z.lazy(() => ImportSessionWhereInputSchema).optional() -}).strict(); - -export const ImportSessionUpdateToOneWithWhereWithoutIssuesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ImportSessionUpdateWithoutIssuesInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutIssuesInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema).optional(), - rows: z.lazy(() => ImportRowUpdateManyWithoutSessionNestedInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateUpdateOneWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportRowUpsertWithoutIssuesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ImportRowUpdateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedUpdateWithoutIssuesInputSchema) ]), - create: z.union([ z.lazy(() => ImportRowCreateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedCreateWithoutIssuesInputSchema) ]), - where: z.lazy(() => ImportRowWhereInputSchema).optional() -}).strict(); - -export const ImportRowUpdateToOneWithWhereWithoutIssuesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportRowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ImportRowUpdateWithoutIssuesInputSchema),z.lazy(() => ImportRowUncheckedUpdateWithoutIssuesInputSchema) ]), -}).strict(); - -export const ImportRowUpdateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - session: z.lazy(() => ImportSessionUpdateOneRequiredWithoutRowsNestedInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedUpdateWithoutIssuesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutUsersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUsersInputSchema) ]), -}).strict(); - -export const CustomRoleCreateWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomRolesInputSchema), - permissions: z.lazy(() => CustomRolePermissionCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedCreateWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedCreateNestedManyWithoutCustomRoleInputSchema).optional() -}).strict(); - -export const CustomRoleCreateOrConnectWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutUserAssignmentsInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutUsersInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUsersInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUsersInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutUsersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutUsersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUsersInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutUsersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUpsertWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomRoleUpdateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutUserAssignmentsInputSchema) ]), - create: z.union([ z.lazy(() => CustomRoleCreateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedCreateWithoutUserAssignmentsInputSchema) ]), - where: z.lazy(() => CustomRoleWhereInputSchema).optional() -}).strict(); - -export const CustomRoleUpdateToOneWithWhereWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomRoleWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomRoleUpdateWithoutUserAssignmentsInputSchema),z.lazy(() => CustomRoleUncheckedUpdateWithoutUserAssignmentsInputSchema) ]), -}).strict(); - -export const CustomRoleUpdateWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomRolesNestedInputSchema).optional(), - permissions: z.lazy(() => CustomRolePermissionUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedUpdateWithoutUserAssignmentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutCustomersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutCustomersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutCustomersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomersInputSchema) ]), -}).strict(); - -export const CustomerInteractionCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutCustomerInteractionInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutCustomerInteractionInputSchema).optional() -}).strict(); - -export const CustomerInteractionCreateOrConnectWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const CustomerInteractionCreateManyCustomerInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CustomerInteractionCreateManyCustomerInputSchema),z.lazy(() => CustomerInteractionCreateManyCustomerInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const DealCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const DealUncheckedCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const DealCreateOrConnectWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => DealWhereUniqueInputSchema), - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const DealCreateManyCustomerInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => DealCreateManyCustomerInputSchema),z.lazy(() => DealCreateManyCustomerInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const InvoiceCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutInvoicesInputSchema), - items: z.lazy(() => InvoiceItemCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedCreateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - items: z.lazy(() => InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceCreateOrConnectWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const InvoiceCreateManyCustomerInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => InvoiceCreateManyCustomerInputSchema),z.lazy(() => InvoiceCreateManyCustomerInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutCustomersInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomersInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCustomersInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutCustomersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutCustomersInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCustomersInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutCustomersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutCustomersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionUpsertWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CustomerInteractionUpdateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateWithoutCustomerInputSchema) ]), - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const CustomerInteractionUpdateWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CustomerInteractionUpdateWithoutCustomerInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateWithoutCustomerInputSchema) ]), -}).strict(); - -export const CustomerInteractionUpdateManyWithWhereWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionScalarWhereInputSchema), - data: z.union([ z.lazy(() => CustomerInteractionUpdateManyMutationInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateManyWithoutCustomerInputSchema) ]), -}).strict(); - -export const CustomerInteractionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CustomerInteractionScalarWhereInputSchema),z.lazy(() => CustomerInteractionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CustomerInteractionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CustomerInteractionScalarWhereInputSchema),z.lazy(() => CustomerInteractionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumInteractionTypeFilterSchema),z.lazy(() => InteractionTypeSchema) ]).optional(), - medium: z.union([ z.lazy(() => EnumInteractionMediumFilterSchema),z.lazy(() => InteractionMediumSchema) ]).optional(), - subject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - content: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const DealUpsertWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => DealWhereUniqueInputSchema), - update: z.union([ z.lazy(() => DealUpdateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedUpdateWithoutCustomerInputSchema) ]), - create: z.union([ z.lazy(() => DealCreateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const DealUpdateWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => DealWhereUniqueInputSchema), - data: z.union([ z.lazy(() => DealUpdateWithoutCustomerInputSchema),z.lazy(() => DealUncheckedUpdateWithoutCustomerInputSchema) ]), -}).strict(); - -export const DealUpdateManyWithWhereWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => DealScalarWhereInputSchema), - data: z.union([ z.lazy(() => DealUpdateManyMutationInputSchema),z.lazy(() => DealUncheckedUpdateManyWithoutCustomerInputSchema) ]), -}).strict(); - -export const DealScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => DealScalarWhereInputSchema),z.lazy(() => DealScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => DealScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => DealScalarWhereInputSchema),z.lazy(() => DealScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - customerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - title: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumLeadStatusFilterSchema),z.lazy(() => LeadStatusSchema) ]).optional(), - stage: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - probability: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - expectedCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - actualCloseDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvoiceUpsertWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - update: z.union([ z.lazy(() => InvoiceUpdateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutCustomerInputSchema) ]), - create: z.union([ z.lazy(() => InvoiceCreateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutCustomerInputSchema) ]), -}).strict(); - -export const InvoiceUpdateWithWhereUniqueWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - data: z.union([ z.lazy(() => InvoiceUpdateWithoutCustomerInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutCustomerInputSchema) ]), -}).strict(); - -export const InvoiceUpdateManyWithWhereWithoutCustomerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceScalarWhereInputSchema), - data: z.union([ z.lazy(() => InvoiceUpdateManyMutationInputSchema),z.lazy(() => InvoiceUncheckedUpdateManyWithoutCustomerInputSchema) ]), -}).strict(); - -export const CustomerCreateWithoutInteractionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomersInputSchema), - deals: z.lazy(() => DealCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUncheckedCreateWithoutInteractionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - deals: z.lazy(() => DealUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerCreateOrConnectWithoutInteractionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerCreateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInteractionsInputSchema) ]), -}).strict(); - -export const TaskCreateWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema) ]), -}).strict(); - -export const TaskCreateManyCustomerInteractionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TaskCreateManyCustomerInteractionInputSchema),z.lazy(() => TaskCreateManyCustomerInteractionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CustomerUpsertWithoutInteractionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomerUpdateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInteractionsInputSchema) ]), - create: z.union([ z.lazy(() => CustomerCreateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInteractionsInputSchema) ]), - where: z.lazy(() => CustomerWhereInputSchema).optional() -}).strict(); - -export const CustomerUpdateToOneWithWhereWithoutInteractionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomerUpdateWithoutInteractionsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInteractionsInputSchema) ]), -}).strict(); - -export const CustomerUpdateWithoutInteractionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomersNestedInputSchema).optional(), - deals: z.lazy(() => DealUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateWithoutInteractionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - deals: z.lazy(() => DealUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const TaskUpsertWithWhereUniqueWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TaskUpdateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutCustomerInteractionInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCustomerInteractionInputSchema) ]), -}).strict(); - -export const TaskUpdateWithWhereUniqueWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TaskUpdateWithoutCustomerInteractionInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutCustomerInteractionInputSchema) ]), -}).strict(); - -export const TaskUpdateManyWithWhereWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskScalarWhereInputSchema), - data: z.union([ z.lazy(() => TaskUpdateManyMutationInputSchema),z.lazy(() => TaskUncheckedUpdateManyWithoutCustomerInteractionInputSchema) ]), -}).strict(); - -export const CustomerCreateWithoutDealsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomersInputSchema), - interactions: z.lazy(() => CustomerInteractionCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUncheckedCreateWithoutDealsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerCreateOrConnectWithoutDealsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerCreateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutDealsInputSchema) ]), -}).strict(); - -export const CustomerUpsertWithoutDealsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomerUpdateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutDealsInputSchema) ]), - create: z.union([ z.lazy(() => CustomerCreateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutDealsInputSchema) ]), - where: z.lazy(() => CustomerWhereInputSchema).optional() -}).strict(); - -export const CustomerUpdateToOneWithWhereWithoutDealsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomerUpdateWithoutDealsInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutDealsInputSchema) ]), -}).strict(); - -export const CustomerUpdateWithoutDealsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomersNestedInputSchema).optional(), - interactions: z.lazy(() => CustomerInteractionUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateWithoutDealsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutProjectsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutProjectsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutProjectsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutProjectsInputSchema) ]), -}).strict(); - -export const TaskCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const TaskCreateManyProjectInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TaskCreateManyProjectInputSchema),z.lazy(() => TaskCreateManyProjectInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ProjectResourceCreateWithoutProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectResourceUncheckedCreateWithoutProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectResourceCreateOrConnectWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectResourceWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const ProjectResourceCreateManyProjectInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ProjectResourceCreateManyProjectInputSchema),z.lazy(() => ProjectResourceCreateManyProjectInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TimeEntryCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - task: z.lazy(() => TaskCreateNestedOneWithoutTimeEntriesInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeEntryCreateOrConnectWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const TimeEntryCreateManyProjectInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TimeEntryCreateManyProjectInputSchema),z.lazy(() => TimeEntryCreateManyProjectInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExpenseCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpensesInputSchema), - category: z.lazy(() => ExpenseCategoryCreateNestedOneWithoutExpensesInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedCreateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tags: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseCreateOrConnectWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const ExpenseCreateManyProjectInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseCreateManyProjectInputSchema),z.lazy(() => ExpenseCreateManyProjectInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutProjectsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutProjectsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutProjectsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutProjectsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutProjectsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutProjectsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutProjectsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutProjectsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TaskUpsertWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TaskUpdateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutProjectInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const TaskUpdateWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TaskUpdateWithoutProjectInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutProjectInputSchema) ]), -}).strict(); - -export const TaskUpdateManyWithWhereWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskScalarWhereInputSchema), - data: z.union([ z.lazy(() => TaskUpdateManyMutationInputSchema),z.lazy(() => TaskUncheckedUpdateManyWithoutProjectInputSchema) ]), -}).strict(); - -export const ProjectResourceUpsertWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectResourceWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ProjectResourceUpdateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedUpdateWithoutProjectInputSchema) ]), - create: z.union([ z.lazy(() => ProjectResourceCreateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const ProjectResourceUpdateWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectResourceWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ProjectResourceUpdateWithoutProjectInputSchema),z.lazy(() => ProjectResourceUncheckedUpdateWithoutProjectInputSchema) ]), -}).strict(); - -export const ProjectResourceUpdateManyWithWhereWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectResourceScalarWhereInputSchema), - data: z.union([ z.lazy(() => ProjectResourceUpdateManyMutationInputSchema),z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectInputSchema) ]), -}).strict(); - -export const ProjectResourceScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ProjectResourceScalarWhereInputSchema),z.lazy(() => ProjectResourceScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ProjectResourceScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ProjectResourceScalarWhereInputSchema),z.lazy(() => ProjectResourceScalarWhereInputSchema).array() ]).optional(), - projectId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assigneeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - role: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - allocation: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - startDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - endDate: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - hourlyRate: z.union([ z.lazy(() => DecimalNullableFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional().nullable(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TimeEntryUpsertWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TimeEntryUpdateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedUpdateWithoutProjectInputSchema) ]), - create: z.union([ z.lazy(() => TimeEntryCreateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const TimeEntryUpdateWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TimeEntryUpdateWithoutProjectInputSchema),z.lazy(() => TimeEntryUncheckedUpdateWithoutProjectInputSchema) ]), -}).strict(); - -export const TimeEntryUpdateManyWithWhereWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryScalarWhereInputSchema), - data: z.union([ z.lazy(() => TimeEntryUpdateManyMutationInputSchema),z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectInputSchema) ]), -}).strict(); - -export const TimeEntryScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeEntryScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeEntryScalarWhereInputSchema),z.lazy(() => TimeEntryScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - projectId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - taskId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - startTime: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endTime: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - billable: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiced: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ExpenseUpsertWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseUpdateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutProjectInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCreateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutProjectInputSchema) ]), -}).strict(); - -export const ExpenseUpdateWithWhereUniqueWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateWithoutProjectInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutProjectInputSchema) ]), -}).strict(); - -export const ExpenseUpdateManyWithWhereWithoutProjectInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateManyMutationInputSchema),z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectInputSchema) ]), -}).strict(); - -export const OrganizationCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTasksInputSchema) ]), -}).strict(); - -export const ProjectCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutProjectsInputSchema), - resources: z.lazy(() => ProjectResourceCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - resources: z.lazy(() => ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectCreateOrConnectWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectCreateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTasksInputSchema) ]), -}).strict(); - -export const TaskCreateWithoutSubtasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutSubtasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutSubtasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedCreateWithoutSubtasksInputSchema) ]), -}).strict(); - -export const TaskCreateWithoutParentTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutParentTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutParentTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema) ]), -}).strict(); - -export const TaskCreateManyParentTaskInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TaskCreateManyParentTaskInputSchema),z.lazy(() => TaskCreateManyParentTaskInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TimeEntryCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutTimeEntriesInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeEntryCreateOrConnectWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const TimeEntryCreateManyTaskInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TimeEntryCreateManyTaskInputSchema),z.lazy(() => TimeEntryCreateManyTaskInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CommentCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CommentUncheckedCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CommentCreateOrConnectWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CommentWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const CommentCreateManyTaskInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CommentCreateManyTaskInputSchema),z.lazy(() => CommentCreateManyTaskInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const AttachmentCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const AttachmentUncheckedCreateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const AttachmentCreateOrConnectWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AttachmentWhereUniqueInputSchema), - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const AttachmentCreateManyTaskInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => AttachmentCreateManyTaskInputSchema),z.lazy(() => AttachmentCreateManyTaskInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CustomerInteractionCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInteractionsInputSchema) -}).strict(); - -export const CustomerInteractionUncheckedCreateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomerInteractionCreateOrConnectWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutTasksInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutTasksInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTasksInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTasksInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutTasksInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTasksInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const ProjectUpsertWithoutTasksInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ProjectUpdateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTasksInputSchema) ]), - create: z.union([ z.lazy(() => ProjectCreateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTasksInputSchema) ]), - where: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const ProjectUpdateToOneWithWhereWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ProjectUpdateWithoutTasksInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTasksInputSchema) ]), -}).strict(); - -export const ProjectUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - resources: z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const TaskUpsertWithoutSubtasksInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TaskUpdateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutSubtasksInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedCreateWithoutSubtasksInputSchema) ]), - where: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const TaskUpdateToOneWithWhereWithoutSubtasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TaskUpdateWithoutSubtasksInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutSubtasksInputSchema) ]), -}).strict(); - -export const TaskUpdateWithoutSubtasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutSubtasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUpsertWithWhereUniqueWithoutParentTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TaskUpdateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutParentTaskInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedCreateWithoutParentTaskInputSchema) ]), -}).strict(); - -export const TaskUpdateWithWhereUniqueWithoutParentTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TaskUpdateWithoutParentTaskInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutParentTaskInputSchema) ]), -}).strict(); - -export const TaskUpdateManyWithWhereWithoutParentTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskScalarWhereInputSchema), - data: z.union([ z.lazy(() => TaskUpdateManyMutationInputSchema),z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskInputSchema) ]), -}).strict(); - -export const TimeEntryUpsertWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TimeEntryUpdateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedUpdateWithoutTaskInputSchema) ]), - create: z.union([ z.lazy(() => TimeEntryCreateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const TimeEntryUpdateWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TimeEntryUpdateWithoutTaskInputSchema),z.lazy(() => TimeEntryUncheckedUpdateWithoutTaskInputSchema) ]), -}).strict(); - -export const TimeEntryUpdateManyWithWhereWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeEntryScalarWhereInputSchema), - data: z.union([ z.lazy(() => TimeEntryUpdateManyMutationInputSchema),z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskInputSchema) ]), -}).strict(); - -export const CommentUpsertWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CommentWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CommentUpdateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedUpdateWithoutTaskInputSchema) ]), - create: z.union([ z.lazy(() => CommentCreateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const CommentUpdateWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CommentWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CommentUpdateWithoutTaskInputSchema),z.lazy(() => CommentUncheckedUpdateWithoutTaskInputSchema) ]), -}).strict(); - -export const CommentUpdateManyWithWhereWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CommentScalarWhereInputSchema), - data: z.union([ z.lazy(() => CommentUpdateManyMutationInputSchema),z.lazy(() => CommentUncheckedUpdateManyWithoutTaskInputSchema) ]), -}).strict(); - -export const CommentScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CommentScalarWhereInputSchema),z.lazy(() => CommentScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CommentScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CommentScalarWhereInputSchema),z.lazy(() => CommentScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - authorId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const AttachmentUpsertWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AttachmentWhereUniqueInputSchema), - update: z.union([ z.lazy(() => AttachmentUpdateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedUpdateWithoutTaskInputSchema) ]), - create: z.union([ z.lazy(() => AttachmentCreateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedCreateWithoutTaskInputSchema) ]), -}).strict(); - -export const AttachmentUpdateWithWhereUniqueWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AttachmentWhereUniqueInputSchema), - data: z.union([ z.lazy(() => AttachmentUpdateWithoutTaskInputSchema),z.lazy(() => AttachmentUncheckedUpdateWithoutTaskInputSchema) ]), -}).strict(); - -export const AttachmentUpdateManyWithWhereWithoutTaskInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AttachmentScalarWhereInputSchema), - data: z.union([ z.lazy(() => AttachmentUpdateManyMutationInputSchema),z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskInputSchema) ]), -}).strict(); - -export const AttachmentScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AttachmentScalarWhereInputSchema),z.lazy(() => AttachmentScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AttachmentScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AttachmentScalarWhereInputSchema),z.lazy(() => AttachmentScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - taskId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileSize: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - uploadedById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CustomerInteractionUpsertWithoutTasksInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomerInteractionUpdateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateWithoutTasksInputSchema) ]), - create: z.union([ z.lazy(() => CustomerInteractionCreateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedCreateWithoutTasksInputSchema) ]), - where: z.lazy(() => CustomerInteractionWhereInputSchema).optional() -}).strict(); - -export const CustomerInteractionUpdateToOneWithWhereWithoutTasksInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerInteractionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomerInteractionUpdateWithoutTasksInputSchema),z.lazy(() => CustomerInteractionUncheckedUpdateWithoutTasksInputSchema) ]), -}).strict(); - -export const CustomerInteractionUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInteractionsNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedUpdateWithoutTasksInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectCreateWithoutResourcesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutProjectsInputSchema), - tasks: z.lazy(() => TaskCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateWithoutResourcesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectCreateOrConnectWithoutResourcesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectCreateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutResourcesInputSchema) ]), -}).strict(); - -export const ProjectUpsertWithoutResourcesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ProjectUpdateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutResourcesInputSchema) ]), - create: z.union([ z.lazy(() => ProjectCreateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutResourcesInputSchema) ]), - where: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const ProjectUpdateToOneWithWhereWithoutResourcesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ProjectUpdateWithoutResourcesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutResourcesInputSchema) ]), -}).strict(); - -export const ProjectUpdateWithoutResourcesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateWithoutResourcesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectCreateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutProjectsInputSchema), - tasks: z.lazy(() => TaskCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectCreateOrConnectWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectCreateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTimeEntriesInputSchema) ]), -}).strict(); - -export const TaskCreateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedCreateWithoutTimeEntriesInputSchema) ]), -}).strict(); - -export const ProjectUpsertWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ProjectUpdateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTimeEntriesInputSchema) ]), - create: z.union([ z.lazy(() => ProjectCreateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutTimeEntriesInputSchema) ]), - where: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const ProjectUpdateToOneWithWhereWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ProjectUpdateWithoutTimeEntriesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutTimeEntriesInputSchema) ]), -}).strict(); - -export const ProjectUpdateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const TaskUpsertWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TaskUpdateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutTimeEntriesInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedCreateWithoutTimeEntriesInputSchema) ]), - where: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const TaskUpdateToOneWithWhereWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TaskUpdateWithoutTimeEntriesInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutTimeEntriesInputSchema) ]), -}).strict(); - -export const TaskUpdateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutTimeEntriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutInvoicesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvoicesInputSchema) ]), -}).strict(); - -export const CustomerCreateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCustomersInputSchema), - interactions: z.lazy(() => CustomerInteractionCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerUncheckedCreateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedCreateNestedManyWithoutCustomerInputSchema).optional(), - deals: z.lazy(() => DealUncheckedCreateNestedManyWithoutCustomerInputSchema).optional() -}).strict(); - -export const CustomerCreateOrConnectWithoutInvoicesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CustomerCreateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInvoicesInputSchema) ]), -}).strict(); - -export const InvoiceItemCreateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceItemUncheckedCreateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceItemCreateOrConnectWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceItemWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const InvoiceItemCreateManyInvoiceInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => InvoiceItemCreateManyInvoiceInputSchema),z.lazy(() => InvoiceItemCreateManyInvoiceInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const PaymentCreateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PaymentUncheckedCreateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PaymentCreateOrConnectWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PaymentWhereUniqueInputSchema), - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const PaymentCreateManyInvoiceInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => PaymentCreateManyInvoiceInputSchema),z.lazy(() => PaymentCreateManyInvoiceInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutInvoicesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvoicesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvoicesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutInvoicesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutInvoicesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvoicesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const CustomerUpsertWithoutInvoicesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CustomerUpdateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInvoicesInputSchema) ]), - create: z.union([ z.lazy(() => CustomerCreateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedCreateWithoutInvoicesInputSchema) ]), - where: z.lazy(() => CustomerWhereInputSchema).optional() -}).strict(); - -export const CustomerUpdateToOneWithWhereWithoutInvoicesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CustomerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CustomerUpdateWithoutInvoicesInputSchema),z.lazy(() => CustomerUncheckedUpdateWithoutInvoicesInputSchema) ]), -}).strict(); - -export const CustomerUpdateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCustomersNestedInputSchema).optional(), - interactions: z.lazy(() => CustomerInteractionUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateWithoutInvoicesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const InvoiceItemUpsertWithWhereUniqueWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceItemWhereUniqueInputSchema), - update: z.union([ z.lazy(() => InvoiceItemUpdateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedUpdateWithoutInvoiceInputSchema) ]), - create: z.union([ z.lazy(() => InvoiceItemCreateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedCreateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const InvoiceItemUpdateWithWhereUniqueWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceItemWhereUniqueInputSchema), - data: z.union([ z.lazy(() => InvoiceItemUpdateWithoutInvoiceInputSchema),z.lazy(() => InvoiceItemUncheckedUpdateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const InvoiceItemUpdateManyWithWhereWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceItemScalarWhereInputSchema), - data: z.union([ z.lazy(() => InvoiceItemUpdateManyMutationInputSchema),z.lazy(() => InvoiceItemUncheckedUpdateManyWithoutInvoiceInputSchema) ]), -}).strict(); - -export const InvoiceItemScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => InvoiceItemScalarWhereInputSchema),z.lazy(() => InvoiceItemScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => InvoiceItemScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => InvoiceItemScalarWhereInputSchema),z.lazy(() => InvoiceItemScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - productId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - description: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - quantity: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - unitPrice: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - taxRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - discountRate: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - subtotal: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - sortOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PaymentUpsertWithWhereUniqueWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PaymentWhereUniqueInputSchema), - update: z.union([ z.lazy(() => PaymentUpdateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedUpdateWithoutInvoiceInputSchema) ]), - create: z.union([ z.lazy(() => PaymentCreateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedCreateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const PaymentUpdateWithWhereUniqueWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PaymentWhereUniqueInputSchema), - data: z.union([ z.lazy(() => PaymentUpdateWithoutInvoiceInputSchema),z.lazy(() => PaymentUncheckedUpdateWithoutInvoiceInputSchema) ]), -}).strict(); - -export const PaymentUpdateManyWithWhereWithoutInvoiceInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PaymentScalarWhereInputSchema), - data: z.union([ z.lazy(() => PaymentUpdateManyMutationInputSchema),z.lazy(() => PaymentUncheckedUpdateManyWithoutInvoiceInputSchema) ]), -}).strict(); - -export const PaymentScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PaymentScalarWhereInputSchema),z.lazy(() => PaymentScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PaymentScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PaymentScalarWhereInputSchema),z.lazy(() => PaymentScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - invoiceId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - amount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - method: z.union([ z.lazy(() => EnumPaymentMethodFilterSchema),z.lazy(() => PaymentMethodSchema) ]).optional(), - reference: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - paymentDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - feeAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - status: z.union([ z.lazy(() => EnumPaymentStatusFilterSchema),z.lazy(() => PaymentStatusSchema) ]).optional(), - gatewayId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refundedAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const InvoiceCreateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutInvoicesInputSchema), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInvoicesInputSchema), - payments: z.lazy(() => PaymentCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedCreateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payments: z.lazy(() => PaymentUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceCreateOrConnectWithoutItemsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvoiceCreateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutItemsInputSchema) ]), -}).strict(); - -export const InvoiceUpsertWithoutItemsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => InvoiceUpdateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutItemsInputSchema) ]), - create: z.union([ z.lazy(() => InvoiceCreateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutItemsInputSchema) ]), - where: z.lazy(() => InvoiceWhereInputSchema).optional() -}).strict(); - -export const InvoiceUpdateToOneWithWhereWithoutItemsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereInputSchema).optional(), - data: z.union([ z.lazy(() => InvoiceUpdateWithoutItemsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutItemsInputSchema) ]), -}).strict(); - -export const InvoiceUpdateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payments: z.lazy(() => PaymentUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceCreateWithoutPaymentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutInvoicesInputSchema), - customer: z.lazy(() => CustomerCreateNestedOneWithoutInvoicesInputSchema), - items: z.lazy(() => InvoiceItemCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedCreateWithoutPaymentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - items: z.lazy(() => InvoiceItemUncheckedCreateNestedManyWithoutInvoiceInputSchema).optional() -}).strict(); - -export const InvoiceCreateOrConnectWithoutPaymentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereUniqueInputSchema), - create: z.union([ z.lazy(() => InvoiceCreateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutPaymentsInputSchema) ]), -}).strict(); - -export const InvoiceUpsertWithoutPaymentsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => InvoiceUpdateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutPaymentsInputSchema) ]), - create: z.union([ z.lazy(() => InvoiceCreateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedCreateWithoutPaymentsInputSchema) ]), - where: z.lazy(() => InvoiceWhereInputSchema).optional() -}).strict(); - -export const InvoiceUpdateToOneWithWhereWithoutPaymentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => InvoiceWhereInputSchema).optional(), - data: z.union([ z.lazy(() => InvoiceUpdateWithoutPaymentsInputSchema),z.lazy(() => InvoiceUncheckedUpdateWithoutPaymentsInputSchema) ]), -}).strict(); - -export const InvoiceUpdateWithoutPaymentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - items: z.lazy(() => InvoiceItemUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateWithoutPaymentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ExpenseCategoryCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpenseCategoriesInputSchema) -}).strict(); - -export const ExpenseCategoryUncheckedCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCategoryCreateOrConnectWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ProjectCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutProjectsInputSchema), - tasks: z.lazy(() => TaskCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectUncheckedCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedCreateNestedManyWithoutProjectInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutProjectInputSchema).optional() -}).strict(); - -export const ProjectCreateOrConnectWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ProjectCreateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ExpenseToTagCreateWithoutExpenseInputSchema: z.ZodType = z.object({ - tag: z.lazy(() => ExpenseTagCreateNestedOneWithoutExpensesInputSchema) -}).strict(); - -export const ExpenseToTagUncheckedCreateWithoutExpenseInputSchema: z.ZodType = z.object({ - tagId: z.string() -}).strict(); - -export const ExpenseToTagCreateOrConnectWithoutExpenseInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema) ]), -}).strict(); - -export const ExpenseToTagCreateManyExpenseInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseToTagCreateManyExpenseInputSchema),z.lazy(() => ExpenseToTagCreateManyExpenseInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutExpensesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpensesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpensesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutExpensesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpensesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUpsertWithoutExpensesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ExpenseCategoryUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateWithoutExpensesInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCategoryCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedCreateWithoutExpensesInputSchema) ]), - where: z.lazy(() => ExpenseCategoryWhereInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUpdateToOneWithWhereWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseCategoryWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ExpenseCategoryUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseCategoryUncheckedUpdateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ExpenseCategoryUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpenseCategoriesNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectUpsertWithoutExpensesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ProjectUpdateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutExpensesInputSchema) ]), - create: z.union([ z.lazy(() => ProjectCreateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedCreateWithoutExpensesInputSchema) ]), - where: z.lazy(() => ProjectWhereInputSchema).optional() -}).strict(); - -export const ProjectUpdateToOneWithWhereWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ProjectWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ProjectUpdateWithoutExpensesInputSchema),z.lazy(() => ProjectUncheckedUpdateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ProjectUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutProjectsNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ExpenseToTagUpsertWithWhereUniqueWithoutExpenseInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateWithoutExpenseInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutExpenseInputSchema) ]), -}).strict(); - -export const ExpenseToTagUpdateWithWhereUniqueWithoutExpenseInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseToTagUpdateWithoutExpenseInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateWithoutExpenseInputSchema) ]), -}).strict(); - -export const ExpenseToTagUpdateManyWithWhereWithoutExpenseInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseToTagUpdateManyMutationInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutExpenseInputSchema) ]), -}).strict(); - -export const ExpenseToTagScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExpenseToTagScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExpenseToTagScalarWhereInputSchema),z.lazy(() => ExpenseToTagScalarWhereInputSchema).array() ]).optional(), - expenseId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - tagId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseCategoriesInputSchema) ]), -}).strict(); - -export const ExpenseCreateWithoutCategoryInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpensesInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutExpensesInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedCreateWithoutCategoryInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - tags: z.lazy(() => ExpenseToTagUncheckedCreateNestedManyWithoutExpenseInputSchema).optional() -}).strict(); - -export const ExpenseCreateOrConnectWithoutCategoryInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema) ]), -}).strict(); - -export const ExpenseCreateManyCategoryInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseCreateManyCategoryInputSchema),z.lazy(() => ExpenseCreateManyCategoryInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseCategoriesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseCategoriesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutExpenseCategoriesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseCategoriesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutExpenseCategoriesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const ExpenseUpsertWithWhereUniqueWithoutCategoryInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseUpdateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutCategoryInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCreateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutCategoryInputSchema) ]), -}).strict(); - -export const ExpenseUpdateWithWhereUniqueWithoutCategoryInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateWithoutCategoryInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutCategoryInputSchema) ]), -}).strict(); - -export const ExpenseUpdateManyWithWhereWithoutCategoryInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseUpdateManyMutationInputSchema),z.lazy(() => ExpenseUncheckedUpdateManyWithoutCategoryInputSchema) ]), -}).strict(); - -export const OrganizationCreateWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseTagsInputSchema) ]), -}).strict(); - -export const ExpenseToTagCreateWithoutTagInputSchema: z.ZodType = z.object({ - expense: z.lazy(() => ExpenseCreateNestedOneWithoutTagsInputSchema) -}).strict(); - -export const ExpenseToTagUncheckedCreateWithoutTagInputSchema: z.ZodType = z.object({ - expenseId: z.string() -}).strict(); - -export const ExpenseToTagCreateOrConnectWithoutTagInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema) ]), -}).strict(); - -export const ExpenseToTagCreateManyTagInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExpenseToTagCreateManyTagInputSchema),z.lazy(() => ExpenseToTagCreateManyTagInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseTagsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutExpenseTagsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutExpenseTagsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutExpenseTagsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutExpenseTagsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const ExpenseToTagUpsertWithWhereUniqueWithoutTagInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExpenseToTagUpdateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateWithoutTagInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseToTagCreateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedCreateWithoutTagInputSchema) ]), -}).strict(); - -export const ExpenseToTagUpdateWithWhereUniqueWithoutTagInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExpenseToTagUpdateWithoutTagInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateWithoutTagInputSchema) ]), -}).strict(); - -export const ExpenseToTagUpdateManyWithWhereWithoutTagInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseToTagScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExpenseToTagUpdateManyMutationInputSchema),z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutTagInputSchema) ]), -}).strict(); - -export const ExpenseCreateWithoutTagsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpensesInputSchema), - category: z.lazy(() => ExpenseCategoryCreateNestedOneWithoutExpensesInputSchema).optional(), - project: z.lazy(() => ProjectCreateNestedOneWithoutExpensesInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedCreateWithoutTagsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCreateOrConnectWithoutTagsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseCreateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutTagsInputSchema) ]), -}).strict(); - -export const ExpenseTagCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutExpenseTagsInputSchema) -}).strict(); - -export const ExpenseTagUncheckedCreateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseTagCreateOrConnectWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ExpenseUpsertWithoutTagsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ExpenseUpdateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutTagsInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseCreateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedCreateWithoutTagsInputSchema) ]), - where: z.lazy(() => ExpenseWhereInputSchema).optional() -}).strict(); - -export const ExpenseUpdateToOneWithWhereWithoutTagsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ExpenseUpdateWithoutTagsInputSchema),z.lazy(() => ExpenseUncheckedUpdateWithoutTagsInputSchema) ]), -}).strict(); - -export const ExpenseUpdateWithoutTagsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpensesNestedInputSchema).optional(), - category: z.lazy(() => ExpenseCategoryUpdateOneWithoutExpensesNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutExpensesNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateWithoutTagsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseTagUpsertWithoutExpensesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ExpenseTagUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateWithoutExpensesInputSchema) ]), - create: z.union([ z.lazy(() => ExpenseTagCreateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedCreateWithoutExpensesInputSchema) ]), - where: z.lazy(() => ExpenseTagWhereInputSchema).optional() -}).strict(); - -export const ExpenseTagUpdateToOneWithWhereWithoutExpensesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExpenseTagWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ExpenseTagUpdateWithoutExpensesInputSchema),z.lazy(() => ExpenseTagUncheckedUpdateWithoutExpensesInputSchema) ]), -}).strict(); - -export const ExpenseTagUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpenseTagsNestedInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedUpdateWithoutExpensesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateWithoutCommentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutCommentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutCommentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCommentsInputSchema) ]), -}).strict(); - -export const TaskUpsertWithoutCommentsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TaskUpdateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutCommentsInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutCommentsInputSchema) ]), - where: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const TaskUpdateToOneWithWhereWithoutCommentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TaskUpdateWithoutCommentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutCommentsInputSchema) ]), -}).strict(); - -export const TaskUpdateWithoutCommentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutCommentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskCreateWithoutAttachmentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTasksInputSchema), - project: z.lazy(() => ProjectCreateNestedOneWithoutTasksInputSchema).optional(), - parentTask: z.lazy(() => TaskCreateNestedOneWithoutSubtasksInputSchema).optional(), - subtasks: z.lazy(() => TaskCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentCreateNestedManyWithoutTaskInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionCreateNestedOneWithoutTasksInputSchema).optional() -}).strict(); - -export const TaskUncheckedCreateWithoutAttachmentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutParentTaskInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedCreateNestedManyWithoutTaskInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedCreateNestedManyWithoutTaskInputSchema).optional() -}).strict(); - -export const TaskCreateOrConnectWithoutAttachmentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TaskCreateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutAttachmentsInputSchema) ]), -}).strict(); - -export const TaskUpsertWithoutAttachmentsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TaskUpdateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutAttachmentsInputSchema) ]), - create: z.union([ z.lazy(() => TaskCreateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedCreateWithoutAttachmentsInputSchema) ]), - where: z.lazy(() => TaskWhereInputSchema).optional() -}).strict(); - -export const TaskUpdateToOneWithWhereWithoutAttachmentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TaskWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TaskUpdateWithoutAttachmentsInputSchema),z.lazy(() => TaskUncheckedUpdateWithoutAttachmentsInputSchema) ]), -}).strict(); - -export const TaskUpdateWithoutAttachmentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutAttachmentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const CalendarEventAttendeeCreateWithoutEventInputSchema: z.ZodType = z.object({ - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema: z.ZodType = z.object({ - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventAttendeeCreateOrConnectWithoutEventInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema) ]), -}).strict(); - -export const CalendarEventAttendeeCreateManyEventInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => CalendarEventAttendeeCreateManyEventInputSchema),z.lazy(() => CalendarEventAttendeeCreateManyEventInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const CalendarEventAttendeeUpsertWithWhereUniqueWithoutEventInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema), - update: z.union([ z.lazy(() => CalendarEventAttendeeUpdateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedUpdateWithoutEventInputSchema) ]), - create: z.union([ z.lazy(() => CalendarEventAttendeeCreateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedCreateWithoutEventInputSchema) ]), -}).strict(); - -export const CalendarEventAttendeeUpdateWithWhereUniqueWithoutEventInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventAttendeeWhereUniqueInputSchema), - data: z.union([ z.lazy(() => CalendarEventAttendeeUpdateWithoutEventInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedUpdateWithoutEventInputSchema) ]), -}).strict(); - -export const CalendarEventAttendeeUpdateManyWithWhereWithoutEventInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema), - data: z.union([ z.lazy(() => CalendarEventAttendeeUpdateManyMutationInputSchema),z.lazy(() => CalendarEventAttendeeUncheckedUpdateManyWithoutEventInputSchema) ]), -}).strict(); - -export const CalendarEventAttendeeScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema),z.lazy(() => CalendarEventAttendeeScalarWhereInputSchema).array() ]).optional(), - eventId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumAttendeeStatusFilterSchema),z.lazy(() => AttendeeStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const CalendarEventCreateWithoutAttendeesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date(), - allDay: z.boolean().optional(), - location: z.string().optional().nullable(), - organizerId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventUncheckedCreateWithoutAttendeesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date(), - allDay: z.boolean().optional(), - location: z.string().optional().nullable(), - organizerId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventCreateOrConnectWithoutAttendeesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CalendarEventCreateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedCreateWithoutAttendeesInputSchema) ]), -}).strict(); - -export const CalendarEventUpsertWithoutAttendeesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CalendarEventUpdateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedUpdateWithoutAttendeesInputSchema) ]), - create: z.union([ z.lazy(() => CalendarEventCreateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedCreateWithoutAttendeesInputSchema) ]), - where: z.lazy(() => CalendarEventWhereInputSchema).optional() -}).strict(); - -export const CalendarEventUpdateToOneWithWhereWithoutAttendeesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarEventWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CalendarEventUpdateWithoutAttendeesInputSchema),z.lazy(() => CalendarEventUncheckedUpdateWithoutAttendeesInputSchema) ]), -}).strict(); - -export const CalendarEventUpdateWithoutAttendeesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventUncheckedUpdateWithoutAttendeesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - allDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organizerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutInvitationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutInvitationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutInvitationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvitationsInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutInvitationsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvitationsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutInvitationsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutInvitationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutInvitationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutInvitationsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutInvitationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutInvitationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutEmployeesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutEmployeesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutEmployeesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutEmployeesInputSchema) ]), -}).strict(); - -export const PayrollCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PayrollUncheckedCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PayrollCreateOrConnectWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PayrollWhereUniqueInputSchema), - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PayrollCreateManyEmployeeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => PayrollCreateManyEmployeeInputSchema),z.lazy(() => PayrollCreateManyEmployeeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TimeOffCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeOffUncheckedCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeOffCreateOrConnectWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeOffWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const TimeOffCreateManyEmployeeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TimeOffCreateManyEmployeeInputSchema),z.lazy(() => TimeOffCreateManyEmployeeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const PerformanceReviewCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PerformanceReviewCreateOrConnectWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PerformanceReviewWhereUniqueInputSchema), - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PerformanceReviewCreateManyEmployeeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => PerformanceReviewCreateManyEmployeeInputSchema),z.lazy(() => PerformanceReviewCreateManyEmployeeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutEmployeesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutEmployeesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutEmployeesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutEmployeesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutEmployeesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutEmployeesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutEmployeesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutEmployeesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const PayrollUpsertWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PayrollWhereUniqueInputSchema), - update: z.union([ z.lazy(() => PayrollUpdateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedUpdateWithoutEmployeeInputSchema) ]), - create: z.union([ z.lazy(() => PayrollCreateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PayrollUpdateWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PayrollWhereUniqueInputSchema), - data: z.union([ z.lazy(() => PayrollUpdateWithoutEmployeeInputSchema),z.lazy(() => PayrollUncheckedUpdateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PayrollUpdateManyWithWhereWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PayrollScalarWhereInputSchema), - data: z.union([ z.lazy(() => PayrollUpdateManyMutationInputSchema),z.lazy(() => PayrollUncheckedUpdateManyWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PayrollScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PayrollScalarWhereInputSchema),z.lazy(() => PayrollScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PayrollScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PayrollScalarWhereInputSchema),z.lazy(() => PayrollScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - payPeriodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payPeriodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - payDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - basicSalary: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - overtime: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - bonus: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - tax: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - deductions: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - netAmount: z.union([ z.lazy(() => DecimalFilterSchema),z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }) ]).optional(), - currency: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumPayrollStatusFilterSchema),z.lazy(() => PayrollStatusSchema) ]).optional(), - notes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TimeOffUpsertWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeOffWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TimeOffUpdateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedUpdateWithoutEmployeeInputSchema) ]), - create: z.union([ z.lazy(() => TimeOffCreateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const TimeOffUpdateWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeOffWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TimeOffUpdateWithoutEmployeeInputSchema),z.lazy(() => TimeOffUncheckedUpdateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const TimeOffUpdateManyWithWhereWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TimeOffScalarWhereInputSchema), - data: z.union([ z.lazy(() => TimeOffUpdateManyMutationInputSchema),z.lazy(() => TimeOffUncheckedUpdateManyWithoutEmployeeInputSchema) ]), -}).strict(); - -export const TimeOffScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TimeOffScalarWhereInputSchema),z.lazy(() => TimeOffScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TimeOffScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TimeOffScalarWhereInputSchema),z.lazy(() => TimeOffScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumTimeOffTypeFilterSchema),z.lazy(() => TimeOffTypeSchema) ]).optional(), - startDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - endDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - duration: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - reason: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTimeOffStatusFilterSchema),z.lazy(() => TimeOffStatusSchema) ]).optional(), - approvedById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - approvedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const PerformanceReviewUpsertWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PerformanceReviewWhereUniqueInputSchema), - update: z.union([ z.lazy(() => PerformanceReviewUpdateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedUpdateWithoutEmployeeInputSchema) ]), - create: z.union([ z.lazy(() => PerformanceReviewCreateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedCreateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PerformanceReviewUpdateWithWhereUniqueWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PerformanceReviewWhereUniqueInputSchema), - data: z.union([ z.lazy(() => PerformanceReviewUpdateWithoutEmployeeInputSchema),z.lazy(() => PerformanceReviewUncheckedUpdateWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PerformanceReviewUpdateManyWithWhereWithoutEmployeeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => PerformanceReviewScalarWhereInputSchema), - data: z.union([ z.lazy(() => PerformanceReviewUpdateManyMutationInputSchema),z.lazy(() => PerformanceReviewUncheckedUpdateManyWithoutEmployeeInputSchema) ]), -}).strict(); - -export const PerformanceReviewScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => PerformanceReviewScalarWhereInputSchema),z.lazy(() => PerformanceReviewScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => PerformanceReviewScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => PerformanceReviewScalarWhereInputSchema),z.lazy(() => PerformanceReviewScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - employeeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reviewPeriod: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - performanceScore: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - strengths: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - improvements: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - goals: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - comments: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - reviewDate: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - status: z.union([ z.lazy(() => EnumReviewStatusFilterSchema),z.lazy(() => ReviewStatusSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const EmployeeCreateWithoutPayrollsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutEmployeesInputSchema), - timeOff: z.lazy(() => TimeOffCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedCreateWithoutPayrollsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - timeOff: z.lazy(() => TimeOffUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeCreateOrConnectWithoutPayrollsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmployeeCreateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPayrollsInputSchema) ]), -}).strict(); - -export const EmployeeUpsertWithoutPayrollsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => EmployeeUpdateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPayrollsInputSchema) ]), - create: z.union([ z.lazy(() => EmployeeCreateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPayrollsInputSchema) ]), - where: z.lazy(() => EmployeeWhereInputSchema).optional() -}).strict(); - -export const EmployeeUpdateToOneWithWhereWithoutPayrollsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => EmployeeUpdateWithoutPayrollsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPayrollsInputSchema) ]), -}).strict(); - -export const EmployeeUpdateWithoutPayrollsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutEmployeesNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateWithoutPayrollsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - timeOff: z.lazy(() => TimeOffUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeCreateWithoutTimeOffInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutEmployeesInputSchema), - payrolls: z.lazy(() => PayrollCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedCreateWithoutTimeOffInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payrolls: z.lazy(() => PayrollUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeCreateOrConnectWithoutTimeOffInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmployeeCreateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutTimeOffInputSchema) ]), -}).strict(); - -export const EmployeeUpsertWithoutTimeOffInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => EmployeeUpdateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutTimeOffInputSchema) ]), - create: z.union([ z.lazy(() => EmployeeCreateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutTimeOffInputSchema) ]), - where: z.lazy(() => EmployeeWhereInputSchema).optional() -}).strict(); - -export const EmployeeUpdateToOneWithWhereWithoutTimeOffInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => EmployeeUpdateWithoutTimeOffInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutTimeOffInputSchema) ]), -}).strict(); - -export const EmployeeUpdateWithoutTimeOffInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutEmployeesNestedInputSchema).optional(), - payrolls: z.lazy(() => PayrollUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateWithoutTimeOffInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeCreateWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutEmployeesInputSchema), - payrolls: z.lazy(() => PayrollCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedCreateWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - payrolls: z.lazy(() => PayrollUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedCreateNestedManyWithoutEmployeeInputSchema).optional() -}).strict(); - -export const EmployeeCreateOrConnectWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmployeeCreateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPerformanceReviewsInputSchema) ]), -}).strict(); - -export const EmployeeUpsertWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => EmployeeUpdateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPerformanceReviewsInputSchema) ]), - create: z.union([ z.lazy(() => EmployeeCreateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedCreateWithoutPerformanceReviewsInputSchema) ]), - where: z.lazy(() => EmployeeWhereInputSchema).optional() -}).strict(); - -export const EmployeeUpdateToOneWithWhereWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmployeeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => EmployeeUpdateWithoutPerformanceReviewsInputSchema),z.lazy(() => EmployeeUncheckedUpdateWithoutPerformanceReviewsInputSchema) ]), -}).strict(); - -export const EmployeeUpdateWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutEmployeesNestedInputSchema).optional(), - payrolls: z.lazy(() => PayrollUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateWithoutPerformanceReviewsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutCampaignsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutCampaignsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutCampaignsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCampaignsInputSchema) ]), -}).strict(); - -export const EmailCampaignCreateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailCampaignUncheckedCreateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailCampaignCreateOrConnectWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailCampaignWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema) ]), -}).strict(); - -export const EmailCampaignCreateManyCampaignInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => EmailCampaignCreateManyCampaignInputSchema),z.lazy(() => EmailCampaignCreateManyCampaignInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const SocialMediaPostCreateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SocialMediaPostUncheckedCreateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SocialMediaPostCreateOrConnectWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SocialMediaPostWhereUniqueInputSchema), - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema) ]), -}).strict(); - -export const SocialMediaPostCreateManyCampaignInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => SocialMediaPostCreateManyCampaignInputSchema),z.lazy(() => SocialMediaPostCreateManyCampaignInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutCampaignsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCampaignsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutCampaignsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutCampaignsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutCampaignsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutCampaignsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutCampaignsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutCampaignsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const EmailCampaignUpsertWithWhereUniqueWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailCampaignWhereUniqueInputSchema), - update: z.union([ z.lazy(() => EmailCampaignUpdateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedUpdateWithoutCampaignInputSchema) ]), - create: z.union([ z.lazy(() => EmailCampaignCreateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedCreateWithoutCampaignInputSchema) ]), -}).strict(); - -export const EmailCampaignUpdateWithWhereUniqueWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailCampaignWhereUniqueInputSchema), - data: z.union([ z.lazy(() => EmailCampaignUpdateWithoutCampaignInputSchema),z.lazy(() => EmailCampaignUncheckedUpdateWithoutCampaignInputSchema) ]), -}).strict(); - -export const EmailCampaignUpdateManyWithWhereWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailCampaignScalarWhereInputSchema), - data: z.union([ z.lazy(() => EmailCampaignUpdateManyMutationInputSchema),z.lazy(() => EmailCampaignUncheckedUpdateManyWithoutCampaignInputSchema) ]), -}).strict(); - -export const EmailCampaignScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => EmailCampaignScalarWhereInputSchema),z.lazy(() => EmailCampaignScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => EmailCampaignScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => EmailCampaignScalarWhereInputSchema),z.lazy(() => EmailCampaignScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - subject: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sender: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - sentAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - opens: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - clicks: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - bounces: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const SocialMediaPostUpsertWithWhereUniqueWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SocialMediaPostWhereUniqueInputSchema), - update: z.union([ z.lazy(() => SocialMediaPostUpdateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedUpdateWithoutCampaignInputSchema) ]), - create: z.union([ z.lazy(() => SocialMediaPostCreateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedCreateWithoutCampaignInputSchema) ]), -}).strict(); - -export const SocialMediaPostUpdateWithWhereUniqueWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SocialMediaPostWhereUniqueInputSchema), - data: z.union([ z.lazy(() => SocialMediaPostUpdateWithoutCampaignInputSchema),z.lazy(() => SocialMediaPostUncheckedUpdateWithoutCampaignInputSchema) ]), -}).strict(); - -export const SocialMediaPostUpdateManyWithWhereWithoutCampaignInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SocialMediaPostScalarWhereInputSchema), - data: z.union([ z.lazy(() => SocialMediaPostUpdateManyMutationInputSchema),z.lazy(() => SocialMediaPostUncheckedUpdateManyWithoutCampaignInputSchema) ]), -}).strict(); - -export const SocialMediaPostScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SocialMediaPostScalarWhereInputSchema),z.lazy(() => SocialMediaPostScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SocialMediaPostScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SocialMediaPostScalarWhereInputSchema),z.lazy(() => SocialMediaPostScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - campaignId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - platform: z.union([ z.lazy(() => EnumSocialPlatformFilterSchema),z.lazy(() => SocialPlatformSchema) ]).optional(), - content: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mediaUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - scheduledAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - publishedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - likes: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - shares: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - comments: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const MarketingCampaignCreateWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCampaignsInputSchema), - socialPosts: z.lazy(() => SocialMediaPostCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedCreateWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignCreateOrConnectWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereUniqueInputSchema), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutEmailCampaignsInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpsertWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutEmailCampaignsInputSchema) ]), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutEmailCampaignsInputSchema) ]), - where: z.lazy(() => MarketingCampaignWhereInputSchema).optional() -}).strict(); - -export const MarketingCampaignUpdateToOneWithWhereWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereInputSchema).optional(), - data: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutEmailCampaignsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutEmailCampaignsInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpdateWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCampaignsNestedInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedUpdateWithoutEmailCampaignsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignCreateWithoutSocialPostsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutCampaignsInputSchema), - emailCampaigns: z.lazy(() => EmailCampaignCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedCreateWithoutSocialPostsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedCreateNestedManyWithoutCampaignInputSchema).optional() -}).strict(); - -export const MarketingCampaignCreateOrConnectWithoutSocialPostsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereUniqueInputSchema), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutSocialPostsInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpsertWithoutSocialPostsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutSocialPostsInputSchema) ]), - create: z.union([ z.lazy(() => MarketingCampaignCreateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedCreateWithoutSocialPostsInputSchema) ]), - where: z.lazy(() => MarketingCampaignWhereInputSchema).optional() -}).strict(); - -export const MarketingCampaignUpdateToOneWithWhereWithoutSocialPostsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => MarketingCampaignWhereInputSchema).optional(), - data: z.union([ z.lazy(() => MarketingCampaignUpdateWithoutSocialPostsInputSchema),z.lazy(() => MarketingCampaignUncheckedUpdateWithoutSocialPostsInputSchema) ]), -}).strict(); - -export const MarketingCampaignUpdateWithoutSocialPostsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutCampaignsNestedInputSchema).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedUpdateWithoutSocialPostsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const SessionCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable() -}).strict(); - -export const SessionUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable() -}).strict(); - -export const SessionCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionCreateManyUserInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => SessionCreateManyUserInputSchema),z.lazy(() => SessionCreateManyUserInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const AccountCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const AccountUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const AccountCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountCreateManyUserInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => AccountCreateManyUserInputSchema),z.lazy(() => AccountCreateManyUserInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportSessionCreateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportSessionsInputSchema), - rows: z.lazy(() => ImportRowCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueCreateNestedManyWithoutSessionInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateCreateNestedOneWithoutSessionsInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedCreateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedCreateNestedManyWithoutSessionInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedCreateNestedManyWithoutSessionInputSchema).optional() -}).strict(); - -export const ImportSessionCreateOrConnectWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportSessionCreateManyCreatedByInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportSessionCreateManyCreatedByInputSchema),z.lazy(() => ImportSessionCreateManyCreatedByInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ImportTemplateCreateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutImportTemplatesInputSchema), - sessions: z.lazy(() => ImportSessionCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedCreateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - sessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutAppliedTemplateInputSchema).optional() -}).strict(); - -export const ImportTemplateCreateOrConnectWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportTemplateCreateManyCreatedByInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ImportTemplateCreateManyCreatedByInputSchema),z.lazy(() => ImportTemplateCreateManyCreatedByInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const SessionUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => SessionUpdateWithoutUserInputSchema),z.lazy(() => SessionUncheckedUpdateWithoutUserInputSchema) ]), - create: z.union([ z.lazy(() => SessionCreateWithoutUserInputSchema),z.lazy(() => SessionUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => SessionUpdateWithoutUserInputSchema),z.lazy(() => SessionUncheckedUpdateWithoutUserInputSchema) ]), -}).strict(); - -export const SessionUpdateManyWithWhereWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => SessionUpdateManyMutationInputSchema),z.lazy(() => SessionUncheckedUpdateManyWithoutUserInputSchema) ]), -}).strict(); - -export const SessionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => SessionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - expiresAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - token: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), -}).strict(); - -export const AccountUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - update: z.union([ z.lazy(() => AccountUpdateWithoutUserInputSchema),z.lazy(() => AccountUncheckedUpdateWithoutUserInputSchema) ]), - create: z.union([ z.lazy(() => AccountCreateWithoutUserInputSchema),z.lazy(() => AccountUncheckedCreateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountWhereUniqueInputSchema), - data: z.union([ z.lazy(() => AccountUpdateWithoutUserInputSchema),z.lazy(() => AccountUncheckedUpdateWithoutUserInputSchema) ]), -}).strict(); - -export const AccountUpdateManyWithWhereWithoutUserInputSchema: z.ZodType = z.object({ - where: z.lazy(() => AccountScalarWhereInputSchema), - data: z.union([ z.lazy(() => AccountUpdateManyMutationInputSchema),z.lazy(() => AccountUncheckedUpdateManyWithoutUserInputSchema) ]), -}).strict(); - -export const AccountScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => AccountScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => AccountScalarWhereInputSchema),z.lazy(() => AccountScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - accountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - providerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - accessToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - refreshToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - idToken: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - password: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ImportSessionUpsertWithWhereUniqueWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportSessionUpdateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutCreatedByInputSchema) ]), - create: z.union([ z.lazy(() => ImportSessionCreateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedCreateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateWithWhereUniqueWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateWithoutCreatedByInputSchema),z.lazy(() => ImportSessionUncheckedUpdateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportSessionUpdateManyWithWhereWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportSessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportSessionUpdateManyMutationInputSchema),z.lazy(() => ImportSessionUncheckedUpdateManyWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportTemplateUpsertWithWhereUniqueWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ImportTemplateUpdateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutCreatedByInputSchema) ]), - create: z.union([ z.lazy(() => ImportTemplateCreateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedCreateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportTemplateUpdateWithWhereUniqueWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ImportTemplateUpdateWithoutCreatedByInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateWithoutCreatedByInputSchema) ]), -}).strict(); - -export const ImportTemplateUpdateManyWithWhereWithoutCreatedByInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ImportTemplateScalarWhereInputSchema), - data: z.union([ z.lazy(() => ImportTemplateUpdateManyMutationInputSchema),z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutCreatedByInputSchema) ]), -}).strict(); - -export const UserCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - accounts: z.lazy(() => AccountCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - accounts: z.lazy(() => AccountUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]), -}).strict(); - -export const UserUpsertWithoutSessionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutSessionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - accounts: z.lazy(() => AccountUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - accounts: z.lazy(() => AccountUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserCreateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserUncheckedCreateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.string(), - name: z.string(), - email: z.string(), - emailVerified: z.boolean(), - image: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - sessions: z.lazy(() => SessionUncheckedCreateNestedManyWithoutUserInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutCreatedByInputSchema).optional() -}).strict(); - -export const UserCreateOrConnectWithoutAccountsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereUniqueInputSchema), - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]), -}).strict(); - -export const UserUpsertWithoutAccountsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), - create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]), - where: z.lazy(() => UserWhereInputSchema).optional() -}).strict(); - -export const UserUpdateToOneWithWhereWithoutAccountsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => UserWhereInputSchema).optional(), - data: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), -}).strict(); - -export const UserUpdateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const UserUncheckedUpdateWithoutAccountsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - emailVerified: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - image: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => SessionUncheckedUpdateManyWithoutUserNestedInputSchema).optional(), - createdImportSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional(), - createdImportTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutCreatedByNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutFinancialReportsInputSchema) ]), -}).strict(); - -export const FinancialReportDataCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportDataUncheckedCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportDataCreateOrConnectWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportDataWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportDataCreateManyReportInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => FinancialReportDataCreateManyReportInputSchema),z.lazy(() => FinancialReportDataCreateManyReportInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const FinancialReportExportCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportExportUncheckedCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportExportCreateOrConnectWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportExportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportExportCreateManyReportInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => FinancialReportExportCreateManyReportInputSchema),z.lazy(() => FinancialReportExportCreateManyReportInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const FinancialReportScheduleCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportScheduleUncheckedCreateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportScheduleCreateOrConnectWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportScheduleCreateManyReportInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => FinancialReportScheduleCreateManyReportInputSchema),z.lazy(() => FinancialReportScheduleCreateManyReportInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutFinancialReportsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutFinancialReportsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutFinancialReportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutFinancialReportsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutFinancialReportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const FinancialReportDataUpsertWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportDataWhereUniqueInputSchema), - update: z.union([ z.lazy(() => FinancialReportDataUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedUpdateWithoutReportInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportDataCreateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportDataUpdateWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportDataWhereUniqueInputSchema), - data: z.union([ z.lazy(() => FinancialReportDataUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportDataUncheckedUpdateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportDataUpdateManyWithWhereWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportDataScalarWhereInputSchema), - data: z.union([ z.lazy(() => FinancialReportDataUpdateManyMutationInputSchema),z.lazy(() => FinancialReportDataUncheckedUpdateManyWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportDataScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportDataScalarWhereInputSchema),z.lazy(() => FinancialReportDataScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportDataScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportDataScalarWhereInputSchema),z.lazy(() => FinancialReportDataScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - data: z.lazy(() => JsonFilterSchema).optional(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportExportUpsertWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportExportWhereUniqueInputSchema), - update: z.union([ z.lazy(() => FinancialReportExportUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedUpdateWithoutReportInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportExportCreateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportExportUpdateWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportExportWhereUniqueInputSchema), - data: z.union([ z.lazy(() => FinancialReportExportUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportExportUncheckedUpdateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportExportUpdateManyWithWhereWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportExportScalarWhereInputSchema), - data: z.union([ z.lazy(() => FinancialReportExportUpdateManyMutationInputSchema),z.lazy(() => FinancialReportExportUncheckedUpdateManyWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportExportScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportExportScalarWhereInputSchema),z.lazy(() => FinancialReportExportScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportExportScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportExportScalarWhereInputSchema),z.lazy(() => FinancialReportExportScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - format: z.union([ z.lazy(() => EnumFinancialReportExportFormatFilterSchema),z.lazy(() => FinancialReportExportFormatSchema) ]).optional(), - fileName: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - fileUrl: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - fileSize: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumFinancialReportExportStatusFilterSchema),z.lazy(() => FinancialReportExportStatusSchema) ]).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportScheduleUpsertWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema), - update: z.union([ z.lazy(() => FinancialReportScheduleUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedUpdateWithoutReportInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportScheduleCreateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedCreateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportScheduleUpdateWithWhereUniqueWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportScheduleWhereUniqueInputSchema), - data: z.union([ z.lazy(() => FinancialReportScheduleUpdateWithoutReportInputSchema),z.lazy(() => FinancialReportScheduleUncheckedUpdateWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportScheduleUpdateManyWithWhereWithoutReportInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportScheduleScalarWhereInputSchema), - data: z.union([ z.lazy(() => FinancialReportScheduleUpdateManyMutationInputSchema),z.lazy(() => FinancialReportScheduleUncheckedUpdateManyWithoutReportInputSchema) ]), -}).strict(); - -export const FinancialReportScheduleScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => FinancialReportScheduleScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => FinancialReportScheduleScalarWhereInputSchema),z.lazy(() => FinancialReportScheduleScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - frequency: z.union([ z.lazy(() => EnumFinancialReportScheduleFrequencyFilterSchema),z.lazy(() => FinancialReportScheduleFrequencySchema) ]).optional(), - dayOfWeek: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - dayOfMonth: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - time: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - timezone: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastRunAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - nextRunAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - recipients: z.lazy(() => JsonFilterSchema).optional(), - emailSubject: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - emailBody: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const FinancialReportCreateWithoutReportDataInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutFinancialReportsInputSchema), - exports: z.lazy(() => FinancialReportExportCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedCreateWithoutReportDataInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - exports: z.lazy(() => FinancialReportExportUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportCreateOrConnectWithoutReportDataInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutReportDataInputSchema) ]), -}).strict(); - -export const FinancialReportUpsertWithoutReportDataInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => FinancialReportUpdateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutReportDataInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutReportDataInputSchema) ]), - where: z.lazy(() => FinancialReportWhereInputSchema).optional() -}).strict(); - -export const FinancialReportUpdateToOneWithWhereWithoutReportDataInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereInputSchema).optional(), - data: z.union([ z.lazy(() => FinancialReportUpdateWithoutReportDataInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutReportDataInputSchema) ]), -}).strict(); - -export const FinancialReportUpdateWithoutReportDataInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutFinancialReportsNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateWithoutReportDataInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportCreateWithoutExportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutFinancialReportsInputSchema), - reportData: z.lazy(() => FinancialReportDataCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedCreateWithoutExportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportCreateOrConnectWithoutExportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutExportsInputSchema) ]), -}).strict(); - -export const FinancialReportUpsertWithoutExportsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => FinancialReportUpdateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutExportsInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutExportsInputSchema) ]), - where: z.lazy(() => FinancialReportWhereInputSchema).optional() -}).strict(); - -export const FinancialReportUpdateToOneWithWhereWithoutExportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereInputSchema).optional(), - data: z.union([ z.lazy(() => FinancialReportUpdateWithoutExportsInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutExportsInputSchema) ]), -}).strict(); - -export const FinancialReportUpdateWithoutExportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutFinancialReportsNestedInputSchema).optional(), - reportData: z.lazy(() => FinancialReportDataUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateWithoutExportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportCreateWithoutSchedulesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutFinancialReportsInputSchema), - reportData: z.lazy(() => FinancialReportDataCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedCreateWithoutSchedulesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedCreateNestedManyWithoutReportInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedCreateNestedManyWithoutReportInputSchema).optional() -}).strict(); - -export const FinancialReportCreateOrConnectWithoutSchedulesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutSchedulesInputSchema) ]), -}).strict(); - -export const FinancialReportUpsertWithoutSchedulesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => FinancialReportUpdateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutSchedulesInputSchema) ]), - create: z.union([ z.lazy(() => FinancialReportCreateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedCreateWithoutSchedulesInputSchema) ]), - where: z.lazy(() => FinancialReportWhereInputSchema).optional() -}).strict(); - -export const FinancialReportUpdateToOneWithWhereWithoutSchedulesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => FinancialReportWhereInputSchema).optional(), - data: z.union([ z.lazy(() => FinancialReportUpdateWithoutSchedulesInputSchema),z.lazy(() => FinancialReportUncheckedUpdateWithoutSchedulesInputSchema) ]), -}).strict(); - -export const FinancialReportUpdateWithoutSchedulesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutFinancialReportsNestedInputSchema).optional(), - reportData: z.lazy(() => FinancialReportDataUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateWithoutSchedulesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplatePackagesInputSchema) ]), -}).strict(); - -export const TemplateVersionCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplateVersionInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplateVersionInputSchema).optional() -}).strict(); - -export const TemplateVersionCreateOrConnectWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateVersionCreateManyTemplatePackageInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateVersionCreateManyTemplatePackageInputSchema),z.lazy(() => TemplateVersionCreateManyTemplatePackageInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateInstallationCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateInstallationsInputSchema), - templateVersion: z.lazy(() => TemplateVersionCreateNestedOneWithoutInstallationsInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationCreateOrConnectWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateInstallationCreateManyTemplatePackageInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputSchema),z.lazy(() => TemplateInstallationCreateManyTemplatePackageInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateSharesInputSchema), - recipients: z.lazy(() => TemplateShareRecipientCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareCreateOrConnectWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareCreateManyTemplatePackageInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareCreateManyTemplatePackageInputSchema),z.lazy(() => TemplateShareCreateManyTemplatePackageInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareImportCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string(), - share: z.lazy(() => TemplateShareCreateNestedOneWithoutImportsInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateShareImportsInputSchema) -}).strict(); - -export const TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - organizationId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareImportCreateOrConnectWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareImportCreateManyTemplatePackageInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputSchema),z.lazy(() => TemplateShareImportCreateManyTemplatePackageInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplatePackagesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplatePackagesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplatePackagesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplatePackagesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutTemplatePackagesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUpsertWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateVersionUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateWithoutTemplatePackageInputSchema) ]), - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateVersionUpdateWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateVersionUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateVersionUpdateManyWithWhereWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateVersionUpdateManyMutationInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateVersionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateVersionScalarWhereInputSchema),z.lazy(() => TemplateVersionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateVersionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateVersionScalarWhereInputSchema),z.lazy(() => TemplateVersionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templatePackageId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - manifest: z.lazy(() => JsonFilterSchema).optional(), - changelog: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateInstallationUpsertWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutTemplatePackageInputSchema) ]), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateManyWithWhereWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateManyMutationInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareUpsertWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutTemplatePackageInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateManyWithWhereWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareUpdateManyMutationInputSchema),z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpsertWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutTemplatePackageInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateWithWhereUniqueWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutTemplatePackageInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateManyWithWhereWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateManyMutationInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageInputSchema) ]), -}).strict(); - -export const TemplatePackageCreateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateOrConnectWithoutVersionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutVersionsInputSchema) ]), -}).strict(); - -export const TemplateInstallationCreateWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateInstallationsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutInstallationsInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedCreateNestedManyWithoutInstallationInputSchema).optional() -}).strict(); - -export const TemplateInstallationCreateOrConnectWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema) ]), -}).strict(); - -export const TemplateInstallationCreateManyTemplateVersionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputSchema),z.lazy(() => TemplateInstallationCreateManyTemplateVersionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplatePackageUpsertWithoutVersionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplatePackageUpdateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutVersionsInputSchema) ]), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutVersionsInputSchema) ]), - where: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplatePackageUpdateToOneWithWhereWithoutVersionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplatePackageUpdateWithoutVersionsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutVersionsInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUpsertWithWhereUniqueWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutTemplateVersionInputSchema) ]), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutTemplateVersionInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateWithWhereUniqueWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutTemplateVersionInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutTemplateVersionInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateManyWithWhereWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateInstallationUpdateManyMutationInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplateVersionInputSchema) ]), -}).strict(); - -export const OrganizationCreateWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateInstallationsInputSchema) ]), -}).strict(); - -export const TemplatePackageCreateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema).optional(), - versions: z.lazy(() => TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateOrConnectWithoutInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutInstallationsInputSchema) ]), -}).strict(); - -export const TemplateVersionCreateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutVersionsInputSchema) -}).strict(); - -export const TemplateVersionUncheckedCreateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateVersionCreateOrConnectWithoutInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutInstallationsInputSchema) ]), -}).strict(); - -export const TemplateInstallItemCreateWithoutInstallationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallItemCreateOrConnectWithoutInstallationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallItemWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema) ]), -}).strict(); - -export const TemplateInstallItemCreateManyInstallationInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateInstallItemCreateManyInstallationInputSchema),z.lazy(() => TemplateInstallItemCreateManyInstallationInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateInstallationsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateInstallationsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateInstallationsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateInstallationsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutTemplateInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUpsertWithoutInstallationsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplatePackageUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutInstallationsInputSchema) ]), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutInstallationsInputSchema) ]), - where: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplatePackageUpdateToOneWithWhereWithoutInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplatePackageUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutInstallationsInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema).optional(), - versions: z.lazy(() => TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUpsertWithoutInstallationsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplateVersionUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateWithoutInstallationsInputSchema) ]), - create: z.union([ z.lazy(() => TemplateVersionCreateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedCreateWithoutInstallationsInputSchema) ]), - where: z.lazy(() => TemplateVersionWhereInputSchema).optional() -}).strict(); - -export const TemplateVersionUpdateToOneWithWhereWithoutInstallationsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateVersionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplateVersionUpdateWithoutInstallationsInputSchema),z.lazy(() => TemplateVersionUncheckedUpdateWithoutInstallationsInputSchema) ]), -}).strict(); - -export const TemplateVersionUpdateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutVersionsNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedUpdateWithoutInstallationsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemUpsertWithWhereUniqueWithoutInstallationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallItemWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateInstallItemUpdateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedUpdateWithoutInstallationInputSchema) ]), - create: z.union([ z.lazy(() => TemplateInstallItemCreateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedCreateWithoutInstallationInputSchema) ]), -}).strict(); - -export const TemplateInstallItemUpdateWithWhereUniqueWithoutInstallationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallItemWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateInstallItemUpdateWithoutInstallationInputSchema),z.lazy(() => TemplateInstallItemUncheckedUpdateWithoutInstallationInputSchema) ]), -}).strict(); - -export const TemplateInstallItemUpdateManyWithWhereWithoutInstallationInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallItemScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateInstallItemUpdateManyMutationInputSchema),z.lazy(() => TemplateInstallItemUncheckedUpdateManyWithoutInstallationInputSchema) ]), -}).strict(); - -export const TemplateInstallItemScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateInstallItemScalarWhereInputSchema),z.lazy(() => TemplateInstallItemScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateInstallItemScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateInstallItemScalarWhereInputSchema),z.lazy(() => TemplateInstallItemScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - installationId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - assetType: z.union([ z.lazy(() => EnumTemplateAssetTypeFilterSchema),z.lazy(() => TemplateAssetTypeSchema) ]).optional(), - sourceKey: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - createdModel: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - status: z.union([ z.lazy(() => EnumTemplateItemStatusFilterSchema),z.lazy(() => TemplateItemStatusSchema) ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateInstallationCreateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateInstallationsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutInstallationsInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionCreateNestedOneWithoutInstallationsInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedCreateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string().optional().nullable(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateInstallationCreateOrConnectWithoutItemsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutItemsInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpsertWithoutItemsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutItemsInputSchema) ]), - create: z.union([ z.lazy(() => TemplateInstallationCreateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedCreateWithoutItemsInputSchema) ]), - where: z.lazy(() => TemplateInstallationWhereInputSchema).optional() -}).strict(); - -export const TemplateInstallationUpdateToOneWithWhereWithoutItemsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateInstallationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplateInstallationUpdateWithoutItemsInputSchema),z.lazy(() => TemplateInstallationUncheckedUpdateWithoutItemsInputSchema) ]), -}).strict(); - -export const TemplateInstallationUpdateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateInstallationsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneWithoutInstallationsNestedInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionUpdateOneWithoutInstallationsNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateWithoutItemsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const OrganizationCreateWithoutWorkflowsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutWorkflowsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutWorkflowsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutWorkflowsInputSchema) ]), -}).strict(); - -export const WorkflowTriggerCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableCreateNestedManyWithoutTriggerInputSchema).optional(), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateOrConnectWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowTriggerCreateManyWorkflowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowTriggerCreateManyWorkflowInputSchema),z.lazy(() => WorkflowTriggerCreateManyWorkflowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowNodeCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowNodeCreateManyWorkflowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowNodeCreateManyWorkflowInputSchema),z.lazy(() => WorkflowNodeCreateManyWorkflowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowConnectionCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - sourceNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutSourceConnectionsInputSchema), - targetNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTargetConnectionsInputSchema) -}).strict(); - -export const WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sourceNodeId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateOrConnectWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowConnectionCreateManyWorkflowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowConnectionCreateManyWorkflowInputSchema),z.lazy(() => WorkflowConnectionCreateManyWorkflowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowExecutionCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateOrConnectWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowExecutionCreateManyWorkflowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowExecutionCreateManyWorkflowInputSchema),z.lazy(() => WorkflowExecutionCreateManyWorkflowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowAnalyticsCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowAnalyticsCreateOrConnectWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowAnalyticsCreateManyWorkflowInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsCreateManyWorkflowInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutWorkflowsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutWorkflowsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutWorkflowsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutWorkflowsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutWorkflowsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutWorkflowsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutWorkflowsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutWorkflowsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpsertWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutWorkflowInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpdateWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpdateManyWithWhereWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowTriggerUpdateManyMutationInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowTriggerScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowTriggerScalarWhereInputSchema),z.lazy(() => WorkflowTriggerScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowTriggerScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowTriggerScalarWhereInputSchema),z.lazy(() => WorkflowTriggerScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - type: z.union([ z.lazy(() => EnumWorkflowTriggerTypeFilterSchema),z.lazy(() => WorkflowTriggerTypeSchema) ]).optional(), - module: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - entityType: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - eventType: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - delay: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - lastTriggered: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - triggerCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowNodeUpsertWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutWorkflowInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateManyWithWhereWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowNodeUpdateManyMutationInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowNodeScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowNodeScalarWhereInputSchema),z.lazy(() => WorkflowNodeScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowNodeScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowNodeScalarWhereInputSchema),z.lazy(() => WorkflowNodeScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - type: z.union([ z.lazy(() => EnumWorkflowNodeTypeFilterSchema),z.lazy(() => WorkflowNodeTypeSchema) ]).optional(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - description: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - position: z.lazy(() => JsonFilterSchema).optional(), - config: z.lazy(() => JsonNullableFilterSchema).optional(), - template: z.lazy(() => JsonNullableFilterSchema).optional(), - executionOrder: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - isOptional: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - retryLimit: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - timeout: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowConnectionUpsertWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutWorkflowInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateManyWithWhereWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateManyMutationInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowConnectionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowConnectionScalarWhereInputSchema),z.lazy(() => WorkflowConnectionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - sourceNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - targetNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - label: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - conditions: z.lazy(() => JsonNullableFilterSchema).optional(), - edgeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - sourceHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - targetHandle: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - style: z.lazy(() => JsonNullableFilterSchema).optional(), - animated: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowExecutionUpsertWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutWorkflowInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateManyWithWhereWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateManyMutationInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowExecutionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowExecutionScalarWhereInputSchema),z.lazy(() => WorkflowExecutionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - executionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumWorkflowExecutionStatusFilterSchema),z.lazy(() => WorkflowExecutionStatusSchema) ]).optional(), - priority: z.union([ z.lazy(() => EnumExecutionPriorityFilterSchema),z.lazy(() => ExecutionPrioritySchema) ]).optional(), - triggerData: z.lazy(() => JsonNullableFilterSchema).optional(), - triggerContext: z.lazy(() => JsonNullableFilterSchema).optional(), - currentNodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - progress: z.union([ z.lazy(() => FloatFilterSchema),z.number() ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - failedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - result: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - retryDelay: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUpsertWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowAnalyticsUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedUpdateWithoutWorkflowInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowAnalyticsCreateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedCreateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowAnalyticsUpdateWithWhereUniqueWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowAnalyticsWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowAnalyticsUpdateWithoutWorkflowInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedUpdateWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowAnalyticsUpdateManyWithWhereWithoutWorkflowInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowAnalyticsUpdateManyMutationInputSchema),z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowInputSchema) ]), -}).strict(); - -export const WorkflowAnalyticsScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema),z.lazy(() => WorkflowAnalyticsScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - periodStart: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - periodEnd: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - granularity: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - totalExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - successfulExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - failedExecutions: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - averageDuration: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - minDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - maxDuration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - p95Duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - commonErrors: z.lazy(() => JsonNullableFilterSchema).optional(), - errorRate: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgCpuUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - avgMemoryUsage: z.union([ z.lazy(() => FloatNullableFilterSchema),z.number() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutUiConfigsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutUiConfigsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutUiConfigsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUiConfigsInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutUiConfigsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUiConfigsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutUiConfigsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutUiConfigsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutUiConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutUiConfigsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutUiConfigsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutUiConfigsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateWithoutTriggersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutTriggersInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutTriggersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutTriggersInputSchema) ]), -}).strict(); - -export const WorkflowExecutionCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutExecutionsInputSchema), - nodeExecutions: z.lazy(() => NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateOrConnectWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema) ]), -}).strict(); - -export const WorkflowExecutionCreateManyTriggerInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowExecutionCreateManyTriggerInputSchema),z.lazy(() => WorkflowExecutionCreateManyTriggerInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TriggerVariableCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - variable: z.lazy(() => VariableDefinitionCreateNestedOneWithoutTriggerVarsInputSchema) -}).strict(); - -export const TriggerVariableUncheckedCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - variableId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableCreateOrConnectWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema) ]), -}).strict(); - -export const TriggerVariableCreateManyTriggerInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TriggerVariableCreateManyTriggerInputSchema),z.lazy(() => TriggerVariableCreateManyTriggerInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowNodeCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTriggerInputSchema) ]), -}).strict(); - -export const WorkflowUpsertWithoutTriggersInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowUpdateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutTriggersInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutTriggersInputSchema) ]), - where: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const WorkflowUpdateToOneWithWhereWithoutTriggersInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutTriggersInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutTriggersInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithoutTriggersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutTriggersInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpsertWithWhereUniqueWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutTriggerInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutTriggerInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateWithWhereUniqueWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutTriggerInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutTriggerInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateManyWithWhereWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateManyMutationInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutTriggerInputSchema) ]), -}).strict(); - -export const TriggerVariableUpsertWithWhereUniqueWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateWithoutTriggerInputSchema) ]), - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutTriggerInputSchema) ]), -}).strict(); - -export const TriggerVariableUpdateWithWhereUniqueWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TriggerVariableUpdateWithoutTriggerInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateWithoutTriggerInputSchema) ]), -}).strict(); - -export const TriggerVariableUpdateManyWithWhereWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableScalarWhereInputSchema), - data: z.union([ z.lazy(() => TriggerVariableUpdateManyMutationInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutTriggerInputSchema) ]), -}).strict(); - -export const TriggerVariableScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TriggerVariableScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TriggerVariableScalarWhereInputSchema),z.lazy(() => TriggerVariableScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - triggerId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - mapping: z.lazy(() => JsonNullableFilterSchema).optional(), - isRequired: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - defaultValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowNodeUpsertWithoutTriggerInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTriggerInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTriggerInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutTriggerInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutTriggerInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTriggerInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateWithoutNodesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutNodesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutNodesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutNodesInputSchema) ]), -}).strict(); - -export const NodeExecutionCreateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflowExecution: z.lazy(() => WorkflowExecutionCreateNestedOneWithoutNodeExecutionsInputSchema) -}).strict(); - -export const NodeExecutionUncheckedCreateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionCreateOrConnectWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema) ]), -}).strict(); - -export const NodeExecutionCreateManyNodeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => NodeExecutionCreateManyNodeInputSchema),z.lazy(() => NodeExecutionCreateManyNodeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const NodeDependencyCreateWithoutDependentNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional(), - prerequisiteNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutDependentsInputSchema) -}).strict(); - -export const NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - prerequisiteNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyCreateOrConnectWithoutDependentNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyCreateManyDependentNodeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => NodeDependencyCreateManyDependentNodeInputSchema),z.lazy(() => NodeDependencyCreateManyDependentNodeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const NodeDependencyCreateWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional(), - dependentNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutDependenciesInputSchema) -}).strict(); - -export const NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependentNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyCreateOrConnectWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyCreateManyPrerequisiteNodeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyCreateManyPrerequisiteNodeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowConnectionCreateWithoutSourceNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutConnectionsInputSchema), - targetNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTargetConnectionsInputSchema) -}).strict(); - -export const WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateOrConnectWithoutSourceNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionCreateManySourceNodeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowConnectionCreateManySourceNodeInputSchema),z.lazy(() => WorkflowConnectionCreateManySourceNodeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowConnectionCreateWithoutTargetNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutConnectionsInputSchema), - sourceNode: z.lazy(() => WorkflowNodeCreateNestedOneWithoutSourceConnectionsInputSchema) -}).strict(); - -export const WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - sourceNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateOrConnectWithoutTargetNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionCreateManyTargetNodeInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputSchema),z.lazy(() => WorkflowConnectionCreateManyTargetNodeInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const EmailActionCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromName: z.string().optional().nullable(), - fromEmail: z.string().optional().nullable(), - replyTo: z.string().optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.string(), - htmlBody: z.string().optional().nullable(), - textBody: z.string().optional().nullable(), - templateId: z.string().optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailActionUncheckedCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromName: z.string().optional().nullable(), - fromEmail: z.string().optional().nullable(), - replyTo: z.string().optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.string(), - htmlBody: z.string().optional().nullable(), - textBody: z.string().optional().nullable(), - templateId: z.string().optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.boolean().optional(), - trackClicks: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailActionCreateOrConnectWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailActionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]), -}).strict(); - -export const SmsActionCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromNumber: z.string().optional().nullable(), - message: z.string(), - templateId: z.string().optional().nullable(), - maxLength: z.number().int().optional().nullable(), - unicode: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SmsActionUncheckedCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - fromNumber: z.string().optional().nullable(), - message: z.string(), - templateId: z.string().optional().nullable(), - maxLength: z.number().int().optional().nullable(), - unicode: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SmsActionCreateOrConnectWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SmsActionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]), -}).strict(); - -export const WhatsAppActionCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - businessAccountId: z.string().optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - messageType: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - textMessage: z.string().optional().nullable(), - templateName: z.string().optional().nullable(), - templateLanguage: z.string().optional().nullable(), - mediaUrl: z.string().optional().nullable(), - mediaType: z.string().optional().nullable(), - caption: z.string().optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WhatsAppActionUncheckedCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - businessAccountId: z.string().optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - messageType: z.lazy(() => WhatsAppMessageTypeSchema).optional(), - textMessage: z.string().optional().nullable(), - templateName: z.string().optional().nullable(), - templateLanguage: z.string().optional().nullable(), - mediaUrl: z.string().optional().nullable(), - mediaType: z.string().optional().nullable(), - caption: z.string().optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WhatsAppActionCreateOrConnectWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WhatsAppActionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]), -}).strict(); - -export const SlackActionCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - workspaceId: z.string().optional().nullable(), - channel: z.string().optional().nullable(), - userId: z.string().optional().nullable(), - message: z.string(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.boolean().optional(), - username: z.string().optional().nullable(), - iconEmoji: z.string().optional().nullable(), - iconUrl: z.string().optional().nullable(), - threadTs: z.string().optional().nullable(), - replyBroadcast: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SlackActionUncheckedCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - workspaceId: z.string().optional().nullable(), - channel: z.string().optional().nullable(), - userId: z.string().optional().nullable(), - message: z.string(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.boolean().optional(), - username: z.string().optional().nullable(), - iconEmoji: z.string().optional().nullable(), - iconUrl: z.string().optional().nullable(), - threadTs: z.string().optional().nullable(), - replyBroadcast: z.boolean().optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SlackActionCreateOrConnectWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SlackActionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]), -}).strict(); - -export const CalendarActionCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - calendarId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - location: z.string().optional().nullable(), - startTime: z.string(), - endTime: z.string(), - isAllDay: z.boolean().optional(), - timezone: z.string().optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.string().optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarActionUncheckedCreateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - integrationId: z.string().optional().nullable(), - calendarId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - location: z.string().optional().nullable(), - startTime: z.string(), - endTime: z.string(), - isAllDay: z.boolean().optional(), - timezone: z.string().optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.string().optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarActionCreateOrConnectWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarActionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]), -}).strict(); - -export const WorkflowTriggerCreateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutTriggersInputSchema), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutTriggerInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateOrConnectWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]), -}).strict(); - -export const WorkflowUpsertWithoutNodesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowUpdateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutNodesInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutNodesInputSchema) ]), - where: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const WorkflowUpdateToOneWithWhereWithoutNodesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutNodesInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutNodesInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithoutNodesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutNodesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const NodeExecutionUpsertWithWhereUniqueWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateWithoutNodeInputSchema) ]), - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutNodeInputSchema) ]), -}).strict(); - -export const NodeExecutionUpdateWithWhereUniqueWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => NodeExecutionUpdateWithoutNodeInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateWithoutNodeInputSchema) ]), -}).strict(); - -export const NodeExecutionUpdateManyWithWhereWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionScalarWhereInputSchema), - data: z.union([ z.lazy(() => NodeExecutionUpdateManyMutationInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeInputSchema) ]), -}).strict(); - -export const NodeExecutionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeExecutionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeExecutionScalarWhereInputSchema),z.lazy(() => NodeExecutionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - executionOrder: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - status: z.union([ z.lazy(() => EnumNodeExecutionStatusFilterSchema),z.lazy(() => NodeExecutionStatusSchema) ]).optional(), - startedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - completedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - duration: z.union([ z.lazy(() => IntNullableFilterSchema),z.number() ]).optional().nullable(), - input: z.lazy(() => JsonNullableFilterSchema).optional(), - output: z.lazy(() => JsonNullableFilterSchema).optional(), - transformedData: z.lazy(() => JsonNullableFilterSchema).optional(), - error: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorDetails: z.lazy(() => JsonNullableFilterSchema).optional(), - retryCount: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - maxRetries: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NodeDependencyUpsertWithWhereUniqueWithoutDependentNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateWithoutDependentNodeInputSchema) ]), - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutDependentNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyUpdateWithWhereUniqueWithoutDependentNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - data: z.union([ z.lazy(() => NodeDependencyUpdateWithoutDependentNodeInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateWithoutDependentNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyUpdateManyWithWhereWithoutDependentNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyScalarWhereInputSchema), - data: z.union([ z.lazy(() => NodeDependencyUpdateManyMutationInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => NodeDependencyScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => NodeDependencyScalarWhereInputSchema),z.lazy(() => NodeDependencyScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dependentNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - prerequisiteNodeId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - dependencyType: z.union([ z.lazy(() => EnumDependencyTypeFilterSchema),z.lazy(() => DependencyTypeSchema) ]).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const NodeDependencyUpsertWithWhereUniqueWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - update: z.union([ z.lazy(() => NodeDependencyUpdateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateWithoutPrerequisiteNodeInputSchema) ]), - create: z.union([ z.lazy(() => NodeDependencyCreateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedCreateWithoutPrerequisiteNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyUpdateWithWhereUniqueWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyWhereUniqueInputSchema), - data: z.union([ z.lazy(() => NodeDependencyUpdateWithoutPrerequisiteNodeInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateWithoutPrerequisiteNodeInputSchema) ]), -}).strict(); - -export const NodeDependencyUpdateManyWithWhereWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeDependencyScalarWhereInputSchema), - data: z.union([ z.lazy(() => NodeDependencyUpdateManyMutationInputSchema),z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpsertWithWhereUniqueWithoutSourceNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutSourceNodeInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutSourceNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateWithWhereUniqueWithoutSourceNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutSourceNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutSourceNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateManyWithWhereWithoutSourceNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateManyMutationInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpsertWithWhereUniqueWithoutTargetNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutTargetNodeInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowConnectionCreateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedCreateWithoutTargetNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateWithWhereUniqueWithoutTargetNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateWithoutTargetNodeInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateWithoutTargetNodeInputSchema) ]), -}).strict(); - -export const WorkflowConnectionUpdateManyWithWhereWithoutTargetNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowConnectionScalarWhereInputSchema), - data: z.union([ z.lazy(() => WorkflowConnectionUpdateManyMutationInputSchema),z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeInputSchema) ]), -}).strict(); - -export const EmailActionUpsertWithoutActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => EmailActionUpdateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedUpdateWithoutActionInputSchema) ]), - create: z.union([ z.lazy(() => EmailActionCreateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedCreateWithoutActionInputSchema) ]), - where: z.lazy(() => EmailActionWhereInputSchema).optional() -}).strict(); - -export const EmailActionUpdateToOneWithWhereWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => EmailActionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => EmailActionUpdateWithoutActionInputSchema),z.lazy(() => EmailActionUncheckedUpdateWithoutActionInputSchema) ]), -}).strict(); - -export const EmailActionUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailActionUncheckedUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyTo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - bccEmails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - htmlBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - textBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - trackOpens: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - trackClicks: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SmsActionUpsertWithoutActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => SmsActionUpdateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedUpdateWithoutActionInputSchema) ]), - create: z.union([ z.lazy(() => SmsActionCreateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedCreateWithoutActionInputSchema) ]), - where: z.lazy(() => SmsActionWhereInputSchema).optional() -}).strict(); - -export const SmsActionUpdateToOneWithWhereWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SmsActionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => SmsActionUpdateWithoutActionInputSchema),z.lazy(() => SmsActionUncheckedUpdateWithoutActionInputSchema) ]), -}).strict(); - -export const SmsActionUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SmsActionUncheckedUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fromNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxLength: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - unicode: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionUpsertWithoutActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WhatsAppActionUpdateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedUpdateWithoutActionInputSchema) ]), - create: z.union([ z.lazy(() => WhatsAppActionCreateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedCreateWithoutActionInputSchema) ]), - where: z.lazy(() => WhatsAppActionWhereInputSchema).optional() -}).strict(); - -export const WhatsAppActionUpdateToOneWithWhereWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WhatsAppActionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WhatsAppActionUpdateWithoutActionInputSchema),z.lazy(() => WhatsAppActionUncheckedUpdateWithoutActionInputSchema) ]), -}).strict(); - -export const WhatsAppActionUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WhatsAppActionUncheckedUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - businessAccountId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - toNumbers: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - messageType: z.union([ z.lazy(() => WhatsAppMessageTypeSchema),z.lazy(() => EnumWhatsAppMessageTypeFieldUpdateOperationsInputSchema) ]).optional(), - textMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateLanguage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - mediaType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - caption: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateParams: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SlackActionUpsertWithoutActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => SlackActionUpdateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedUpdateWithoutActionInputSchema) ]), - create: z.union([ z.lazy(() => SlackActionCreateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedCreateWithoutActionInputSchema) ]), - where: z.lazy(() => SlackActionWhereInputSchema).optional() -}).strict(); - -export const SlackActionUpdateToOneWithWhereWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => SlackActionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => SlackActionUpdateWithoutActionInputSchema),z.lazy(() => SlackActionUncheckedUpdateWithoutActionInputSchema) ]), -}).strict(); - -export const SlackActionUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SlackActionUncheckedUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - workspaceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - channel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - blocks: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - attachments: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - asUser: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - username: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconEmoji: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - threadTs: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - replyBroadcast: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionUpsertWithoutActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => CalendarActionUpdateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedUpdateWithoutActionInputSchema) ]), - create: z.union([ z.lazy(() => CalendarActionCreateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedCreateWithoutActionInputSchema) ]), - where: z.lazy(() => CalendarActionWhereInputSchema).optional() -}).strict(); - -export const CalendarActionUpdateToOneWithWhereWithoutActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => CalendarActionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => CalendarActionUpdateWithoutActionInputSchema),z.lazy(() => CalendarActionUncheckedUpdateWithoutActionInputSchema) ]), -}).strict(); - -export const CalendarActionUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarActionUncheckedUpdateWithoutActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - integrationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - calendarId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - location: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isAllDay: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - attendees: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - organizer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reminders: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - recurrence: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - variables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerUpsertWithoutNodeInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutNodeInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutNodeInputSchema) ]), - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpdateToOneWithWhereWithoutNodeInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutNodeInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutNodeInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpdateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutTriggersNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateWithoutConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeCreateWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSourceConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeCreateWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTargetConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowUpsertWithoutConnectionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowUpdateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutConnectionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutConnectionsInputSchema) ]), - where: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const WorkflowUpdateToOneWithWhereWithoutConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutConnectionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithoutConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpsertWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSourceConnectionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSourceConnectionsInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSourceConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSourceConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutSourceConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpsertWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTargetConnectionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutTargetConnectionsInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutTargetConnectionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutTargetConnectionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutTargetConnectionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutDependenciesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutDependenciesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutDependenciesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependenciesInputSchema) ]), -}).strict(); - -export const WorkflowNodeCreateWithoutDependentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutDependentsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutDependentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependentsInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutDependenciesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependenciesInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependenciesInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutDependenciesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutDependenciesInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependenciesInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutDependenciesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutDependenciesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpsertWithoutDependentsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependentsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutDependentsInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutDependentsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutDependentsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutDependentsInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutDependentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutDependentsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutActionTemplatesInputSchema) ]), -}).strict(); - -export const ActionTemplateVersionCreateWithoutActionTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateVersionCreateOrConnectWithoutActionTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema) ]), -}).strict(); - -export const ActionTemplateVersionCreateManyActionTemplateInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionCreateManyActionTemplateInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutActionTemplatesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutActionTemplatesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutActionTemplatesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutActionTemplatesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutActionTemplatesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateVersionUpsertWithWhereUniqueWithoutActionTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ActionTemplateVersionUpdateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedUpdateWithoutActionTemplateInputSchema) ]), - create: z.union([ z.lazy(() => ActionTemplateVersionCreateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedCreateWithoutActionTemplateInputSchema) ]), -}).strict(); - -export const ActionTemplateVersionUpdateWithWhereUniqueWithoutActionTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateVersionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ActionTemplateVersionUpdateWithoutActionTemplateInputSchema),z.lazy(() => ActionTemplateVersionUncheckedUpdateWithoutActionTemplateInputSchema) ]), -}).strict(); - -export const ActionTemplateVersionUpdateManyWithWhereWithoutActionTemplateInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateVersionScalarWhereInputSchema), - data: z.union([ z.lazy(() => ActionTemplateVersionUpdateManyMutationInputSchema),z.lazy(() => ActionTemplateVersionUncheckedUpdateManyWithoutActionTemplateInputSchema) ]), -}).strict(); - -export const ActionTemplateVersionScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ActionTemplateVersionScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ActionTemplateVersionScalarWhereInputSchema),z.lazy(() => ActionTemplateVersionScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - templateId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - version: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - template: z.lazy(() => JsonFilterSchema).optional(), - changes: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - isActive: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - createdById: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const ActionTemplateCreateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutActionTemplatesInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedCreateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateCreateOrConnectWithoutVersionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutVersionsInputSchema) ]), -}).strict(); - -export const ActionTemplateUpsertWithoutVersionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => ActionTemplateUpdateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateWithoutVersionsInputSchema) ]), - create: z.union([ z.lazy(() => ActionTemplateCreateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedCreateWithoutVersionsInputSchema) ]), - where: z.lazy(() => ActionTemplateWhereInputSchema).optional() -}).strict(); - -export const ActionTemplateUpdateToOneWithWhereWithoutVersionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ActionTemplateWhereInputSchema).optional(), - data: z.union([ z.lazy(() => ActionTemplateUpdateWithoutVersionsInputSchema),z.lazy(() => ActionTemplateUncheckedUpdateWithoutVersionsInputSchema) ]), -}).strict(); - -export const ActionTemplateUpdateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutActionTemplatesNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedUpdateWithoutVersionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationCreateWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutVariableDefinitionsInputSchema) ]), -}).strict(); - -export const TriggerVariableCreateWithoutVariableInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutVariablesInputSchema) -}).strict(); - -export const TriggerVariableUncheckedCreateWithoutVariableInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableCreateOrConnectWithoutVariableInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema) ]), -}).strict(); - -export const TriggerVariableCreateManyVariableInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TriggerVariableCreateManyVariableInputSchema),z.lazy(() => TriggerVariableCreateManyVariableInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExecutionVariableCreateWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflowExecution: z.lazy(() => WorkflowExecutionCreateNestedOneWithoutVariablesInputSchema) -}).strict(); - -export const ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableCreateOrConnectWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema) ]), -}).strict(); - -export const ExecutionVariableCreateManyVariableDefinitionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableCreateManyVariableDefinitionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const OrganizationUpsertWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutVariableDefinitionsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutVariableDefinitionsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutVariableDefinitionsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutVariableDefinitionsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutVariableDefinitionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TriggerVariableUpsertWithWhereUniqueWithoutVariableInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TriggerVariableUpdateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateWithoutVariableInputSchema) ]), - create: z.union([ z.lazy(() => TriggerVariableCreateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedCreateWithoutVariableInputSchema) ]), -}).strict(); - -export const TriggerVariableUpdateWithWhereUniqueWithoutVariableInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TriggerVariableUpdateWithoutVariableInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateWithoutVariableInputSchema) ]), -}).strict(); - -export const TriggerVariableUpdateManyWithWhereWithoutVariableInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TriggerVariableScalarWhereInputSchema), - data: z.union([ z.lazy(() => TriggerVariableUpdateManyMutationInputSchema),z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutVariableInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpsertWithWhereUniqueWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateWithoutVariableDefinitionInputSchema) ]), - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutVariableDefinitionInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpdateWithWhereUniqueWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExecutionVariableUpdateWithoutVariableDefinitionInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateWithoutVariableDefinitionInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpdateManyWithWhereWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExecutionVariableUpdateManyMutationInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionInputSchema) ]), -}).strict(); - -export const ExecutionVariableScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionVariableScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionVariableScalarWhereInputSchema),z.lazy(() => ExecutionVariableScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - variableDefinitionId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - name: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - value: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - resolvedValue: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - dataType: z.union([ z.lazy(() => EnumVariableDataTypeFilterSchema),z.lazy(() => VariableDataTypeSchema) ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowTriggerCreateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutTriggersInputSchema), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutTriggerInputSchema).optional(), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateOrConnectWithoutVariablesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutVariablesInputSchema) ]), -}).strict(); - -export const VariableDefinitionCreateWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutVariableDefinitionsInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedCreateWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutVariableDefinitionInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateOrConnectWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutTriggerVarsInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpsertWithoutVariablesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutVariablesInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutVariablesInputSchema) ]), - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpdateToOneWithWhereWithoutVariablesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutVariablesInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpdateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutTriggersNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutTriggerNestedInputSchema).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUpsertWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutTriggerVarsInputSchema) ]), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutTriggerVarsInputSchema) ]), - where: z.lazy(() => VariableDefinitionWhereInputSchema).optional() -}).strict(); - -export const VariableDefinitionUpdateToOneWithWhereWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutTriggerVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutTriggerVarsInputSchema) ]), -}).strict(); - -export const VariableDefinitionUpdateWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutVariableDefinitionsNestedInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedUpdateWithoutTriggerVarsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowTriggerCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutTriggersInputSchema), - variables: z.lazy(() => TriggerVariableCreateNestedManyWithoutTriggerInputSchema).optional(), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - variables: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutTriggerInputSchema).optional() -}).strict(); - -export const WorkflowTriggerCreateOrConnectWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const NodeExecutionCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - node: z.lazy(() => WorkflowNodeCreateNestedOneWithoutExecutionsInputSchema) -}).strict(); - -export const NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionCreateOrConnectWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const NodeExecutionCreateManyWorkflowExecutionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionCreateManyWorkflowExecutionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExecutionVariableCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - variableDefinition: z.lazy(() => VariableDefinitionCreateNestedOneWithoutExecutionVarsInputSchema).optional() -}).strict(); - -export const ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - variableDefinitionId: z.string().optional().nullable(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableCreateOrConnectWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionVariableCreateManyWorkflowExecutionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableCreateManyWorkflowExecutionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const ExecutionLogCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionLogCreateOrConnectWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionLogWhereUniqueInputSchema), - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionLogCreateManyWorkflowExecutionInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogCreateManyWorkflowExecutionInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const WorkflowUpsertWithoutExecutionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutExecutionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutExecutionsInputSchema) ]), - where: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const WorkflowUpdateToOneWithWhereWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpsertWithoutExecutionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutExecutionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowTriggerCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedCreateWithoutExecutionsInputSchema) ]), - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUpdateToOneWithWhereWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowTriggerWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowTriggerUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowTriggerUncheckedUpdateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowTriggerUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutTriggersNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUpdateManyWithoutTriggerNestedInputSchema).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const NodeExecutionUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - update: z.union([ z.lazy(() => NodeExecutionUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), - create: z.union([ z.lazy(() => NodeExecutionCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const NodeExecutionUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionWhereUniqueInputSchema), - data: z.union([ z.lazy(() => NodeExecutionUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const NodeExecutionUpdateManyWithWhereWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => NodeExecutionScalarWhereInputSchema), - data: z.union([ z.lazy(() => NodeExecutionUpdateManyMutationInputSchema),z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExecutionVariableUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), - create: z.union([ z.lazy(() => ExecutionVariableCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExecutionVariableUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionVariableUpdateManyWithWhereWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionVariableScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExecutionVariableUpdateManyMutationInputSchema),z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionLogUpsertWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionLogWhereUniqueInputSchema), - update: z.union([ z.lazy(() => ExecutionLogUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), - create: z.union([ z.lazy(() => ExecutionLogCreateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedCreateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionLogUpdateWithWhereUniqueWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionLogWhereUniqueInputSchema), - data: z.union([ z.lazy(() => ExecutionLogUpdateWithoutWorkflowExecutionInputSchema),z.lazy(() => ExecutionLogUncheckedUpdateWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionLogUpdateManyWithWhereWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => ExecutionLogScalarWhereInputSchema), - data: z.union([ z.lazy(() => ExecutionLogUpdateManyMutationInputSchema),z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionInputSchema) ]), -}).strict(); - -export const ExecutionLogScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => ExecutionLogScalarWhereInputSchema),z.lazy(() => ExecutionLogScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => ExecutionLogScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => ExecutionLogScalarWhereInputSchema),z.lazy(() => ExecutionLogScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - workflowExecutionId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - nodeId: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - level: z.union([ z.lazy(() => EnumLogLevelFilterSchema),z.lazy(() => LogLevelSchema) ]).optional(), - message: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - details: z.lazy(() => JsonNullableFilterSchema).optional(), - timestamp: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - source: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - category: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutExecutionsInputSchema), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - variables: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateOrConnectWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutNodeExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpsertWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutNodeExecutionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutNodeExecutionsInputSchema) ]), - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateToOneWithWhereWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutNodeExecutionsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutNodeExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateWithoutNodeExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpsertWithoutExecutionsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutExecutionsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutExecutionsInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutExecutionsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutExecutionsInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutExecutionsInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutExecutionsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutExecutionsInputSchema), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateOrConnectWithoutVariablesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutVariablesInputSchema) ]), -}).strict(); - -export const VariableDefinitionCreateWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutVariableDefinitionsInputSchema).optional(), - triggerVars: z.lazy(() => TriggerVariableCreateNestedManyWithoutVariableInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedCreateWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedCreateNestedManyWithoutVariableInputSchema).optional() -}).strict(); - -export const VariableDefinitionCreateOrConnectWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutExecutionVarsInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpsertWithoutVariablesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutVariablesInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutVariablesInputSchema) ]), - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateToOneWithWhereWithoutVariablesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutVariablesInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutVariablesInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateWithoutVariablesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUpsertWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutExecutionVarsInputSchema) ]), - create: z.union([ z.lazy(() => VariableDefinitionCreateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedCreateWithoutExecutionVarsInputSchema) ]), - where: z.lazy(() => VariableDefinitionWhereInputSchema).optional() -}).strict(); - -export const VariableDefinitionUpdateToOneWithWhereWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => VariableDefinitionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => VariableDefinitionUpdateWithoutExecutionVarsInputSchema),z.lazy(() => VariableDefinitionUncheckedUpdateWithoutExecutionVarsInputSchema) ]), -}).strict(); - -export const VariableDefinitionUpdateWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutVariableDefinitionsNestedInputSchema).optional(), - triggerVars: z.lazy(() => TriggerVariableUpdateManyWithoutVariableNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedUpdateWithoutExecutionVarsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutVariableNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateWithoutLogsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutExecutionsInputSchema), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutExecutionsInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedCreateWithoutLogsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedCreateNestedManyWithoutWorkflowExecutionInputSchema).optional() -}).strict(); - -export const WorkflowExecutionCreateOrConnectWithoutLogsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutLogsInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpsertWithoutLogsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutLogsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowExecutionCreateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedCreateWithoutLogsInputSchema) ]), - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUpdateToOneWithWhereWithoutLogsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowExecutionWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowExecutionUpdateWithoutLogsInputSchema),z.lazy(() => WorkflowExecutionUncheckedUpdateWithoutLogsInputSchema) ]), -}).strict(); - -export const WorkflowExecutionUpdateWithoutLogsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateWithoutLogsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const OrganizationCreateWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutIntegrationConfigsInputSchema) ]), -}).strict(); - -export const OrganizationUpsertWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutIntegrationConfigsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutIntegrationConfigsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutIntegrationConfigsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutIntegrationConfigsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutIntegrationConfigsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutEmailActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutEmailActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutEmailActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutEmailActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutEmailActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutEmailActionInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutEmailActionInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutEmailActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutEmailActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutEmailActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutEmailActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutEmailActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutSmsActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutSmsActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutSmsActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSmsActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutSmsActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSmsActionInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSmsActionInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutSmsActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSmsActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSmsActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutSmsActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutSmsActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWhatsAppActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutWhatsAppActionInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutWhatsAppActionInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutWhatsAppActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutWhatsAppActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutWhatsAppActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutSlackActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutSlackActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutSlackActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSlackActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutSlackActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSlackActionInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutSlackActionInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutSlackActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutSlackActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutSlackActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutSlackActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutSlackActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateWithoutCalendarActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - workflow: z.lazy(() => WorkflowCreateNestedOneWithoutNodesInputSchema), - executions: z.lazy(() => NodeExecutionCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedCreateWithoutCalendarActionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - executions: z.lazy(() => NodeExecutionUncheckedCreateNestedManyWithoutNodeInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutDependentNodeInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedCreateNestedManyWithoutPrerequisiteNodeInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutSourceNodeInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutTargetNodeInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedCreateNestedOneWithoutActionInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedCreateNestedOneWithoutNodeInputSchema).optional() -}).strict(); - -export const WorkflowNodeCreateOrConnectWithoutCalendarActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutCalendarActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpsertWithoutCalendarActionInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutCalendarActionInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowNodeCreateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedCreateWithoutCalendarActionInputSchema) ]), - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional() -}).strict(); - -export const WorkflowNodeUpdateToOneWithWhereWithoutCalendarActionInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowNodeWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowNodeUpdateWithoutCalendarActionInputSchema),z.lazy(() => WorkflowNodeUncheckedUpdateWithoutCalendarActionInputSchema) ]), -}).strict(); - -export const WorkflowNodeUpdateWithoutCalendarActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutNodesNestedInputSchema).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutCalendarActionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowCreateWithoutAnalyticsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutWorkflowsInputSchema), - triggers: z.lazy(() => WorkflowTriggerCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedCreateWithoutAnalyticsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedCreateNestedManyWithoutWorkflowInputSchema).optional() -}).strict(); - -export const WorkflowCreateOrConnectWithoutAnalyticsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereUniqueInputSchema), - create: z.union([ z.lazy(() => WorkflowCreateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutAnalyticsInputSchema) ]), -}).strict(); - -export const WorkflowUpsertWithoutAnalyticsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => WorkflowUpdateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutAnalyticsInputSchema) ]), - create: z.union([ z.lazy(() => WorkflowCreateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedCreateWithoutAnalyticsInputSchema) ]), - where: z.lazy(() => WorkflowWhereInputSchema).optional() -}).strict(); - -export const WorkflowUpdateToOneWithWhereWithoutAnalyticsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => WorkflowWhereInputSchema).optional(), - data: z.union([ z.lazy(() => WorkflowUpdateWithoutAnalyticsInputSchema),z.lazy(() => WorkflowUncheckedUpdateWithoutAnalyticsInputSchema) ]), -}).strict(); - -export const WorkflowUpdateWithoutAnalyticsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutWorkflowsNestedInputSchema).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutAnalyticsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateWithoutSharesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema).optional(), - versions: z.lazy(() => TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateWithoutSharesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateOrConnectWithoutSharesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutSharesInputSchema) ]), -}).strict(); - -export const OrganizationCreateWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateSharesInputSchema) ]), -}).strict(); - -export const TemplateShareRecipientCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareRecipientUncheckedCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareRecipientCreateOrConnectWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareRecipientCreateManyShareInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareRecipientCreateManyShareInputSchema),z.lazy(() => TemplateShareRecipientCreateManyShareInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareAccessLogCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareAccessLogCreateOrConnectWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareAccessLogCreateManyShareInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareAccessLogCreateManyShareInputSchema),z.lazy(() => TemplateShareAccessLogCreateManyShareInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplateShareImportCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateShareImportsInputSchema), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutShareImportsInputSchema) -}).strict(); - -export const TemplateShareImportUncheckedCreateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareImportCreateOrConnectWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareImportCreateManyShareInputEnvelopeSchema: z.ZodType = z.object({ - data: z.union([ z.lazy(() => TemplateShareImportCreateManyShareInputSchema),z.lazy(() => TemplateShareImportCreateManyShareInputSchema).array() ]), - skipDuplicates: z.boolean().optional() -}).strict(); - -export const TemplatePackageUpsertWithoutSharesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplatePackageUpdateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutSharesInputSchema) ]), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutSharesInputSchema) ]), - where: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplatePackageUpdateToOneWithWhereWithoutSharesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplatePackageUpdateWithoutSharesInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutSharesInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateWithoutSharesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema).optional(), - versions: z.lazy(() => TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateWithoutSharesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const OrganizationUpsertWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateSharesInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateSharesInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateSharesInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateSharesInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutTemplateSharesInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TemplateShareRecipientUpsertWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareRecipientUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedUpdateWithoutShareInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareRecipientCreateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareRecipientUpdateWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareRecipientWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareRecipientUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareRecipientUncheckedUpdateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareRecipientUpdateManyWithWhereWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareRecipientScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareRecipientUpdateManyMutationInputSchema),z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareRecipientScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareRecipientScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareRecipientScalarWhereInputSchema),z.lazy(() => TemplateShareRecipientScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - email: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareRecipientStatusFilterSchema),z.lazy(() => TemplateShareRecipientStatusSchema) ]).optional(), - invitedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), - viewedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), - importedAt: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), -}).strict(); - -export const TemplateShareAccessLogUpsertWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareAccessLogUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedUpdateWithoutShareInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareAccessLogCreateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareAccessLogUpdateWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareAccessLogWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareAccessLogUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedUpdateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareAccessLogUpdateManyWithWhereWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareAccessLogUpdateManyMutationInputSchema),z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareAccessLogScalarWhereInputSchema: z.ZodType = z.object({ - AND: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema).array() ]).optional(), - OR: z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema).array().optional(), - NOT: z.union([ z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema),z.lazy(() => TemplateShareAccessLogScalarWhereInputSchema).array() ]).optional(), - id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - shareId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), - action: z.union([ z.lazy(() => EnumTemplateShareAccessActionFilterSchema),z.lazy(() => TemplateShareAccessActionSchema) ]).optional(), - status: z.union([ z.lazy(() => EnumTemplateShareAccessStatusFilterSchema),z.lazy(() => TemplateShareAccessStatusSchema) ]).optional(), - recipientEmail: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - userAgent: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - ipAddress: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - errorMessage: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), - metadata: z.lazy(() => JsonNullableFilterSchema).optional(), - createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), -}).strict(); - -export const TemplateShareImportUpsertWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - update: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutShareInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareImportCreateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedCreateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateWithWhereUniqueWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportWhereUniqueInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateWithoutShareInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareImportUpdateManyWithWhereWithoutShareInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareImportScalarWhereInputSchema), - data: z.union([ z.lazy(() => TemplateShareImportUpdateManyMutationInputSchema),z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareInputSchema) ]), -}).strict(); - -export const TemplateShareCreateWithoutRecipientsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutSharesInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateSharesInputSchema), - accessLogs: z.lazy(() => TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateWithoutRecipientsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareCreateOrConnectWithoutRecipientsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutRecipientsInputSchema) ]), -}).strict(); - -export const TemplateShareUpsertWithoutRecipientsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplateShareUpdateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutRecipientsInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutRecipientsInputSchema) ]), - where: z.lazy(() => TemplateShareWhereInputSchema).optional() -}).strict(); - -export const TemplateShareUpdateToOneWithWhereWithoutRecipientsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplateShareUpdateWithoutRecipientsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutRecipientsInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateWithoutRecipientsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateWithoutRecipientsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareCreateWithoutAccessLogsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutSharesInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateSharesInputSchema), - recipients: z.lazy(() => TemplateShareRecipientCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateWithoutAccessLogsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareCreateOrConnectWithoutAccessLogsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutAccessLogsInputSchema) ]), -}).strict(); - -export const TemplateShareUpsertWithoutAccessLogsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplateShareUpdateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutAccessLogsInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutAccessLogsInputSchema) ]), - where: z.lazy(() => TemplateShareWhereInputSchema).optional() -}).strict(); - -export const TemplateShareUpdateToOneWithWhereWithoutAccessLogsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplateShareUpdateWithoutAccessLogsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutAccessLogsInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateWithoutAccessLogsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateWithoutAccessLogsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareCreateWithoutImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - templatePackage: z.lazy(() => TemplatePackageCreateNestedOneWithoutSharesInputSchema), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplateSharesInputSchema), - recipients: z.lazy(() => TemplateShareRecipientCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedCreateWithoutImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedCreateNestedManyWithoutShareInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedCreateNestedManyWithoutShareInputSchema).optional() -}).strict(); - -export const TemplateShareCreateOrConnectWithoutImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutImportsInputSchema) ]), -}).strict(); - -export const OrganizationCreateWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedCreateWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - logo: z.string().optional().nullable(), - website: z.string().optional().nullable(), - industry: z.string().optional().nullable(), - description: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - users: z.lazy(() => UserOrganizationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedCreateNestedManyWithoutOrganizationInputSchema).optional() -}).strict(); - -export const OrganizationCreateOrConnectWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereUniqueInputSchema), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateShareImportsInputSchema) ]), -}).strict(); - -export const TemplatePackageCreateWithoutShareImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - organization: z.lazy(() => OrganizationCreateNestedOneWithoutTemplatePackagesInputSchema).optional(), - versions: z.lazy(() => TemplateVersionCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedCreateWithoutShareImportsInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - versions: z.lazy(() => TemplateVersionUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedCreateNestedManyWithoutTemplatePackageInputSchema).optional() -}).strict(); - -export const TemplatePackageCreateOrConnectWithoutShareImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereUniqueInputSchema), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutShareImportsInputSchema) ]), -}).strict(); - -export const TemplateShareUpsertWithoutImportsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplateShareUpdateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutImportsInputSchema) ]), - create: z.union([ z.lazy(() => TemplateShareCreateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedCreateWithoutImportsInputSchema) ]), - where: z.lazy(() => TemplateShareWhereInputSchema).optional() -}).strict(); - -export const TemplateShareUpdateToOneWithWhereWithoutImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplateShareWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplateShareUpdateWithoutImportsInputSchema),z.lazy(() => TemplateShareUncheckedUpdateWithoutImportsInputSchema) ]), -}).strict(); - -export const TemplateShareUpdateWithoutImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateWithoutImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const OrganizationUpsertWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateShareImportsInputSchema) ]), - create: z.union([ z.lazy(() => OrganizationCreateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedCreateWithoutTemplateShareImportsInputSchema) ]), - where: z.lazy(() => OrganizationWhereInputSchema).optional() -}).strict(); - -export const OrganizationUpdateToOneWithWhereWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => OrganizationWhereInputSchema).optional(), - data: z.union([ z.lazy(() => OrganizationUpdateWithoutTemplateShareImportsInputSchema),z.lazy(() => OrganizationUncheckedUpdateWithoutTemplateShareImportsInputSchema) ]), -}).strict(); - -export const OrganizationUpdateWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const OrganizationUncheckedUpdateWithoutTemplateShareImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - logo: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - website: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - industry: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - users: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customers: z.lazy(() => CustomerUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - projects: z.lazy(() => ProjectUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseCategories: z.lazy(() => ExpenseCategoryUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - expenseTags: z.lazy(() => ExpenseTagUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - employees: z.lazy(() => EmployeeUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - campaigns: z.lazy(() => MarketingCampaignUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - invitations: z.lazy(() => InvitationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - customRoles: z.lazy(() => CustomRoleUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - financialReports: z.lazy(() => FinancialReportUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - workflows: z.lazy(() => WorkflowUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - actionTemplates: z.lazy(() => ActionTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - variableDefinitions: z.lazy(() => VariableDefinitionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - integrationConfigs: z.lazy(() => IntegrationConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templatePackages: z.lazy(() => TemplatePackageUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateInstallations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - templateShares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - uiConfigs: z.lazy(() => OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importSessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional(), - importTemplates: z.lazy(() => ImportTemplateUncheckedUpdateManyWithoutOrganizationNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUpsertWithoutShareImportsInputSchema: z.ZodType = z.object({ - update: z.union([ z.lazy(() => TemplatePackageUpdateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutShareImportsInputSchema) ]), - create: z.union([ z.lazy(() => TemplatePackageCreateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedCreateWithoutShareImportsInputSchema) ]), - where: z.lazy(() => TemplatePackageWhereInputSchema).optional() -}).strict(); - -export const TemplatePackageUpdateToOneWithWhereWithoutShareImportsInputSchema: z.ZodType = z.object({ - where: z.lazy(() => TemplatePackageWhereInputSchema).optional(), - data: z.union([ z.lazy(() => TemplatePackageUpdateWithoutShareImportsInputSchema),z.lazy(() => TemplatePackageUncheckedUpdateWithoutShareImportsInputSchema) ]), -}).strict(); - -export const TemplatePackageUpdateWithoutShareImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneWithoutTemplatePackagesNestedInputSchema).optional(), - versions: z.lazy(() => TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateWithoutShareImportsInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const RolePermissionCreateManyPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - role: z.lazy(() => UserRoleSchema), - createdAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionCreateManyPermissionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customRoleId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const RolePermissionUpdateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionUncheckedUpdateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const RolePermissionUncheckedUpdateManyWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionUpdateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customRole: z.lazy(() => CustomRoleUpdateOneRequiredWithoutPermissionsNestedInputSchema).optional() -}).strict(); - -export const CustomRolePermissionUncheckedUpdateWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customRoleId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedUpdateManyWithoutPermissionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customRoleId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionCreateManyCustomRoleInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - permissionId: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationCreateManyCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.string(), - organizationId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const CustomRolePermissionUpdateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permission: z.lazy(() => PermissionUpdateOneRequiredWithoutCustomRolePermissionsNestedInputSchema).optional() -}).strict(); - -export const CustomRolePermissionUncheckedUpdateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - permissionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationUpdateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutUsersNestedInputSchema).optional() -}).strict(); - -export const UserOrganizationUncheckedUpdateWithoutCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedUpdateManyWithoutCustomRoleInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationCreateManyOrganizationInputSchema: z.ZodType = z.object({ - userId: z.string(), - role: z.lazy(() => UserRoleSchema).optional().nullable(), - customRoleId: z.string().optional().nullable(), - joinedAt: z.coerce.date().optional() -}).strict(); - -export const CustomerCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => CustomerTypeSchema), - status: z.lazy(() => LeadStatusSchema).optional().nullable(), - firstName: z.string(), - lastName: z.string(), - email: z.string().optional().nullable(), - phone: z.string().optional().nullable(), - company: z.string().optional().nullable(), - position: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - source: z.lazy(() => LeadSourceSchema).optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ProjectCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => ProjectStatusSchema), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TaskCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable() -}).strict(); - -export const InvoiceCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - customerId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCategoryCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseTagCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - color: z.string().optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const EmployeeCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - firstName: z.string(), - lastName: z.string(), - email: z.string(), - phone: z.string().optional().nullable(), - position: z.string().optional().nullable(), - department: z.string().optional().nullable(), - hireDate: z.coerce.date().optional().nullable(), - terminationDate: z.coerce.date().optional().nullable(), - status: z.lazy(() => EmployeeStatusSchema).optional(), - managerId: z.string().optional().nullable(), - address: z.string().optional().nullable(), - city: z.string().optional().nullable(), - state: z.string().optional().nullable(), - country: z.string().optional().nullable(), - postalCode: z.string().optional().nullable(), - birthDate: z.coerce.date().optional().nullable(), - taxId: z.string().optional().nullable(), - emergencyContactName: z.string().optional().nullable(), - emergencyContactPhone: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const MarketingCampaignCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => CampaignTypeSchema), - status: z.lazy(() => CampaignStatusSchema), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - budget: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - targetAudience: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvitationCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - role: z.lazy(() => UserRoleSchema).optional(), - inviterId: z.string(), - token: z.string(), - status: z.lazy(() => InvitationStatusSchema).optional(), - expiresAt: z.coerce.date(), - acceptedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomRoleCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - color: z.string().optional(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => FinancialReportTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - status: z.lazy(() => FinancialReportStatusSchema).optional(), - generatedAt: z.coerce.date().optional().nullable(), - generatedBy: z.string().optional().nullable(), - isTemplate: z.boolean().optional(), - isScheduled: z.boolean().optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - version: z.number().int().optional(), - status: z.lazy(() => WorkflowStatusSchema).optional(), - isTemplate: z.boolean().optional(), - category: z.string().optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - lastExecutedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - updatedById: z.string().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - publishedById: z.string().optional().nullable(), - archivedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.lazy(() => ActionTemplateCategorySchema), - type: z.lazy(() => WorkflowNodeTypeSchema), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.string().optional(), - isPublic: z.boolean().optional(), - isActive: z.boolean().optional(), - usageCount: z.number().int().optional(), - isLocked: z.boolean().optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const VariableDefinitionCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - displayName: z.string(), - description: z.string().optional().nullable(), - category: z.string(), - dataType: z.lazy(() => VariableDataTypeSchema), - defaultValue: z.string().optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - isCustom: z.boolean().optional(), - scope: z.lazy(() => VariableScopeSchema).optional(), - moduleScope: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const IntegrationConfigCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - type: z.lazy(() => IntegrationTypeSchema), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.boolean().optional(), - isHealthy: z.boolean().optional(), - lastHealthCheck: z.coerce.date().optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.number().int().optional(), - errorCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplatePackageCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - description: z.string().optional().nullable(), - category: z.string().optional().nullable(), - version: z.string(), - visibility: z.lazy(() => TemplateVisibilitySchema).optional(), - status: z.lazy(() => TemplateStatusSchema).optional(), - iconUrl: z.string().optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - assetsCount: z.number().int().optional(), - sizeBytes: z.number().int().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallationCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string().optional().nullable(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - templatePackageId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareImportCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const OrganizationUiConfigCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - key: z.string(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportSessionCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable() -}).strict(); - -export const ImportTemplateCreateManyOrganizationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - createdByUserId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const UserOrganizationUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customRole: z.lazy(() => CustomRoleUpdateOneWithoutUserAssignmentsNestedInputSchema).optional() -}).strict(); - -export const UserOrganizationUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customRoleId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const UserOrganizationUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => NullableEnumUserRoleFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customRoleId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - joinedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - interactions: z.lazy(() => CustomerInteractionUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - deals: z.lazy(() => DealUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional(), - invoices: z.lazy(() => InvoiceUncheckedUpdateManyWithoutCustomerNestedInputSchema).optional() -}).strict(); - -export const CustomerUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => CustomerTypeSchema),z.lazy(() => EnumCustomerTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => NullableEnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional().nullable(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - company: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - source: z.union([ z.lazy(() => LeadSourceSchema),z.lazy(() => NullableEnumLeadSourceFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - resources: z.lazy(() => ProjectResourceUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutProjectNestedInputSchema).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutProjectNestedInputSchema).optional() -}).strict(); - -export const ProjectUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ProjectStatusSchema),z.lazy(() => EnumProjectStatusFieldUpdateOperationsInputSchema) ]).optional(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const InvoiceUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customer: z.lazy(() => CustomerUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - items: z.lazy(() => InvoiceItemUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - category: z.lazy(() => ExpenseCategoryUpdateOneWithoutExpensesNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutExpensesNestedInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tags: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCategoryUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseUpdateManyWithoutCategoryNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseUncheckedUpdateManyWithoutCategoryNestedInputSchema).optional() -}).strict(); - -export const ExpenseCategoryUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseTagUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseToTagUpdateManyWithoutTagNestedInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - expenses: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutTagNestedInputSchema).optional() -}).strict(); - -export const ExpenseTagUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmployeeUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payrolls: z.lazy(() => PayrollUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - timeOff: z.lazy(() => TimeOffUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional(), - performanceReviews: z.lazy(() => PerformanceReviewUncheckedUpdateManyWithoutEmployeeNestedInputSchema).optional() -}).strict(); - -export const EmployeeUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - firstName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - lastName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - phone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - department: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hireDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - terminationDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => EmployeeStatusSchema),z.lazy(() => EnumEmployeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - managerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - address: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - city: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - state: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - country: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - postalCode: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - birthDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - taxId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emergencyContactPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const MarketingCampaignUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUpdateManyWithoutCampaignNestedInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - emailCampaigns: z.lazy(() => EmailCampaignUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional(), - socialPosts: z.lazy(() => SocialMediaPostUncheckedUpdateManyWithoutCampaignNestedInputSchema).optional() -}).strict(); - -export const MarketingCampaignUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => CampaignTypeSchema),z.lazy(() => EnumCampaignTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => CampaignStatusSchema),z.lazy(() => EnumCampaignStatusFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - budget: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetAudience: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvitationUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.lazy(() => UserRoleSchema),z.lazy(() => EnumUserRoleFieldUpdateOperationsInputSchema) ]).optional(), - inviterId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvitationStatusSchema),z.lazy(() => EnumInvitationStatusFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - acceptedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomRoleUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionUpdateManyWithoutCustomRoleNestedInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - permissions: z.lazy(() => CustomRolePermissionUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional(), - userAssignments: z.lazy(() => UserOrganizationUncheckedUpdateManyWithoutCustomRoleNestedInputSchema).optional() -}).strict(); - -export const CustomRoleUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - color: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - reportData: z.lazy(() => FinancialReportDataUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - exports: z.lazy(() => FinancialReportExportUncheckedUpdateManyWithoutReportNestedInputSchema).optional(), - schedules: z.lazy(() => FinancialReportScheduleUncheckedUpdateManyWithoutReportNestedInputSchema).optional() -}).strict(); - -export const FinancialReportUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => FinancialReportTypeSchema),z.lazy(() => EnumFinancialReportTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - filters: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - dateRange: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => FinancialReportStatusSchema),z.lazy(() => EnumFinancialReportStatusFieldUpdateOperationsInputSchema) ]).optional(), - generatedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - generatedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isScheduled: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scheduleConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggers: z.lazy(() => WorkflowTriggerUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - nodes: z.lazy(() => WorkflowNodeUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - connections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional(), - analytics: z.lazy(() => WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowNestedInputSchema).optional() -}).strict(); - -export const WorkflowUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowStatusSchema),z.lazy(() => EnumWorkflowStatusFieldUpdateOperationsInputSchema) ]).optional(), - isTemplate: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - canvasData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timeoutConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastExecutedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - updatedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - archivedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => ActionTemplateVersionUpdateManyWithoutActionTemplateNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => ActionTemplateVersionUncheckedUpdateManyWithoutActionTemplateNestedInputSchema).optional() -}).strict(); - -export const ActionTemplateUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.lazy(() => ActionTemplateCategorySchema),z.lazy(() => EnumActionTemplateCategoryFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - defaultConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - schema: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isPublic: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - isLocked: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - requiredVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - optionalVariables: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const VariableDefinitionUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggerVars: z.lazy(() => TriggerVariableUpdateManyWithoutVariableNestedInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - triggerVars: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutVariableNestedInputSchema).optional(), - executionVars: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionNestedInputSchema).optional() -}).strict(); - -export const VariableDefinitionUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - displayName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - validation: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - formatting: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isCustom: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - scope: z.union([ z.lazy(() => VariableScopeSchema),z.lazy(() => EnumVariableScopeFieldUpdateOperationsInputSchema) ]).optional(), - moduleScope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const IntegrationConfigUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => IntegrationTypeSchema),z.lazy(() => EnumIntegrationTypeFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - credentials: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - endpoints: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - isHealthy: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastHealthCheck: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - healthDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - requestCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - errorCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplatePackageUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - versions: z.lazy(() => TemplateVersionUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shares: z.lazy(() => TemplateShareUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional(), - shareImports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageNestedInputSchema).optional() -}).strict(); - -export const TemplatePackageUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - visibility: z.union([ z.lazy(() => TemplateVisibilitySchema),z.lazy(() => EnumTemplateVisibilityFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateStatusSchema),z.lazy(() => EnumTemplateStatusFieldUpdateOperationsInputSchema) ]).optional(), - iconUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - tags: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - assetsCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - sizeBytes: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneWithoutInstallationsNestedInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionUpdateOneWithoutInstallationsNestedInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutSharesNestedInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - share: z.lazy(() => TemplateShareUpdateOneRequiredWithoutImportsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutShareImportsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareImportUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const OrganizationUiConfigUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - config: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportSessionUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema).optional(), - rows: z.lazy(() => ImportRowUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutSessionNestedInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateUpdateOneWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportTemplateUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportTemplatesNestedInputSchema).optional(), - sessions: z.lazy(() => ImportSessionUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateManyWithoutOrganizationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowCreateManySessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowNumber: z.number().int(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.lazy(() => RowStatusSchema).optional(), - dedupeHint: z.string().optional().nullable(), - score: z.number().int().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueCreateManySessionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - rowId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowUpdateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutRowNestedInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedUpdateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutRowNestedInputSchema).optional() -}).strict(); - -export const ImportRowUncheckedUpdateManyWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowNumber: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - rawData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - mappedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - status: z.union([ z.lazy(() => RowStatusSchema),z.lazy(() => EnumRowStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeHint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - score: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueUpdateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - row: z.lazy(() => ImportRowUpdateOneRequiredWithoutIssuesNestedInputSchema).optional() -}).strict(); - -export const ImportRowIssueUncheckedUpdateWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedUpdateManyWithoutSessionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - rowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportSessionCreateManyAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - createdByUserId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const ImportSessionUpdateWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema).optional(), - createdBy: z.lazy(() => UserUpdateOneRequiredWithoutCreatedImportSessionsNestedInputSchema).optional(), - rows: z.lazy(() => ImportRowUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutAppliedTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdByUserId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportRowIssueCreateManyRowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sessionId: z.string(), - field: z.string().optional().nullable(), - severity: z.lazy(() => IssueSeveritySchema), - message: z.string(), - hint: z.string().optional().nullable(), - value: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ImportRowIssueUpdateWithoutRowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - session: z.lazy(() => ImportSessionUpdateOneRequiredWithoutIssuesNestedInputSchema).optional() -}).strict(); - -export const ImportRowIssueUncheckedUpdateWithoutRowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportRowIssueUncheckedUpdateManyWithoutRowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sessionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - field: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - severity: z.union([ z.lazy(() => IssueSeveritySchema),z.lazy(() => EnumIssueSeverityFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - hint: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CustomerInteractionCreateManyCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => InteractionTypeSchema), - medium: z.lazy(() => InteractionMediumSchema), - subject: z.string().optional().nullable(), - content: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const DealCreateManyCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - title: z.string(), - value: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => LeadStatusSchema), - stage: z.number().int(), - probability: z.number().optional().nullable(), - expectedCloseDate: z.coerce.date().optional().nullable(), - actualCloseDate: z.coerce.date().optional().nullable(), - description: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceCreateManyCustomerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customerEmail: z.string(), - customerName: z.string().optional().nullable(), - customerAddress: z.string().optional().nullable(), - customerPhone: z.string().optional().nullable(), - invoiceNumber: z.string(), - status: z.lazy(() => InvoiceStatusSchema), - issueDate: z.coerce.date(), - dueDate: z.coerce.date(), - paymentTerms: z.string().optional(), - poNumber: z.string().optional().nullable(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - discountAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - shippingAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - totalAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - paidAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - currency: z.string().optional(), - notes: z.string().optional().nullable(), - internalNotes: z.string().optional().nullable(), - termsAndConditions: z.string().optional().nullable(), - footer: z.string().optional().nullable(), - logoUrl: z.string().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - viewedAt: z.coerce.date().optional().nullable(), - lastReminder: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CustomerInteractionUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUpdateManyWithoutCustomerInteractionNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tasks: z.lazy(() => TaskUncheckedUpdateManyWithoutCustomerInteractionNestedInputSchema).optional() -}).strict(); - -export const CustomerInteractionUncheckedUpdateManyWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => InteractionTypeSchema),z.lazy(() => EnumInteractionTypeFieldUpdateOperationsInputSchema) ]).optional(), - medium: z.union([ z.lazy(() => InteractionMediumSchema),z.lazy(() => EnumInteractionMediumFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - content: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealUncheckedUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const DealUncheckedUpdateManyWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => LeadStatusSchema),z.lazy(() => EnumLeadStatusFieldUpdateOperationsInputSchema) ]).optional(), - stage: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - probability: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expectedCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualCloseDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutInvoicesNestedInputSchema).optional(), - items: z.lazy(() => InvoiceItemUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - items: z.lazy(() => InvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional(), - payments: z.lazy(() => PaymentUncheckedUpdateManyWithoutInvoiceNestedInputSchema).optional() -}).strict(); - -export const InvoiceUncheckedUpdateManyWithoutCustomerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerEmail: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customerName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customerPhone: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - invoiceNumber: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => InvoiceStatusSchema),z.lazy(() => EnumInvoiceStatusFieldUpdateOperationsInputSchema) ]).optional(), - issueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - paymentTerms: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - poNumber: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - shippingAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - totalAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - paidAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - internalNotes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - termsAndConditions: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - footer: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - logoUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - lastReminder: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateManyCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TaskUpdateWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateManyWithoutCustomerInteractionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateManyProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - parentTaskId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable() -}).strict(); - -export const ProjectResourceCreateManyProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.string(), - role: z.string().optional().nullable(), - allocation: z.number().optional().nullable(), - startDate: z.coerce.date().optional().nullable(), - endDate: z.coerce.date().optional().nullable(), - hourlyRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional().nullable(), - currency: z.string().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeEntryCreateManyProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - taskId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseCreateManyProjectInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - categoryId: z.string().optional().nullable(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TaskUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - parentTask: z.lazy(() => TaskUpdateOneWithoutSubtasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateManyWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - parentTaskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ProjectResourceUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectResourceUncheckedUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ProjectResourceUncheckedUpdateManyWithoutProjectInputSchema: z.ZodType = z.object({ - assigneeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - role: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allocation: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - endDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - hourlyRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => NullableDecimalFieldUpdateOperationsInputSchema) ]).optional().nullable(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - task: z.lazy(() => TaskUpdateOneWithoutTimeEntriesNestedInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryUncheckedUpdateManyWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - taskId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpensesNestedInputSchema).optional(), - category: z.lazy(() => ExpenseCategoryUpdateOneWithoutExpensesNestedInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tags: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutProjectInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - categoryId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TaskCreateManyParentTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - projectId: z.string().optional().nullable(), - title: z.string(), - description: z.string().optional().nullable(), - status: z.lazy(() => TaskStatusSchema), - priority: z.lazy(() => PrioritySchema), - startDate: z.coerce.date().optional().nullable(), - dueDate: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - assignedToId: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - estimatedHours: z.number().optional().nullable(), - actualHours: z.number().optional().nullable(), - order: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - customerInteractionId: z.string().optional().nullable() -}).strict(); - -export const TimeEntryCreateManyTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - projectId: z.string().optional().nullable(), - userId: z.string(), - description: z.string().optional().nullable(), - startTime: z.coerce.date(), - endTime: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - billable: z.boolean().optional(), - invoiced: z.boolean().optional(), - invoiceId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CommentCreateManyTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - content: z.string(), - authorId: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const AttachmentCreateManyTaskInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - name: z.string(), - fileUrl: z.string(), - fileType: z.string(), - fileSize: z.number().int(), - uploadedById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TaskUpdateWithoutParentTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTasksNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTasksNestedInputSchema).optional(), - subtasks: z.lazy(() => TaskUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUpdateManyWithoutTaskNestedInputSchema).optional(), - customerInteraction: z.lazy(() => CustomerInteractionUpdateOneWithoutTasksNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateWithoutParentTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - subtasks: z.lazy(() => TaskUncheckedUpdateManyWithoutParentTaskNestedInputSchema).optional(), - timeEntries: z.lazy(() => TimeEntryUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - comments: z.lazy(() => CommentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional(), - attachments: z.lazy(() => AttachmentUncheckedUpdateManyWithoutTaskNestedInputSchema).optional() -}).strict(); - -export const TaskUncheckedUpdateManyWithoutParentTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - title: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TaskStatusSchema),z.lazy(() => EnumTaskStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => PrioritySchema),z.lazy(() => EnumPriorityFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dueDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - assignedToId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - estimatedHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - actualHours: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - order: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - customerInteractionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TimeEntryUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutTimeEntriesNestedInputSchema).optional() -}).strict(); - -export const TimeEntryUncheckedUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeEntryUncheckedUpdateManyWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - startTime: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endTime: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - billable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiced: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - invoiceId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentUncheckedUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CommentUncheckedUpdateManyWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - authorId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentUncheckedUpdateWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AttachmentUncheckedUpdateManyWithoutTaskInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - uploadedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemCreateManyInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - productId: z.string().optional().nullable(), - description: z.string(), - quantity: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - unitPrice: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - taxRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - discountRate: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - subtotal: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - sortOrder: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PaymentCreateManyInvoiceInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - method: z.lazy(() => PaymentMethodSchema), - reference: z.string().optional().nullable(), - paymentDate: z.coerce.date(), - notes: z.string().optional().nullable(), - feeAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - status: z.lazy(() => PaymentStatusSchema).optional(), - gatewayId: z.string().optional().nullable(), - refundedAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const InvoiceItemUpdateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemUncheckedUpdateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const InvoiceItemUncheckedUpdateManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - productId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - description: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - quantity: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - unitPrice: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - taxRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - discountRate: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - subtotal: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - sortOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentUpdateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentUncheckedUpdateWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PaymentUncheckedUpdateManyWithoutInvoiceInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - method: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - reference: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - feeAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PaymentStatusSchema),z.lazy(() => EnumPaymentStatusFieldUpdateOperationsInputSchema) ]).optional(), - gatewayId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refundedAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagCreateManyExpenseInputSchema: z.ZodType = z.object({ - tagId: z.string() -}).strict(); - -export const ExpenseToTagUpdateWithoutExpenseInputSchema: z.ZodType = z.object({ - tag: z.lazy(() => ExpenseTagUpdateOneRequiredWithoutExpensesNestedInputSchema).optional() -}).strict(); - -export const ExpenseToTagUncheckedUpdateWithoutExpenseInputSchema: z.ZodType = z.object({ - tagId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedUpdateManyWithoutExpenseInputSchema: z.ZodType = z.object({ - tagId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseCreateManyCategoryInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - customCategory: z.string().optional().nullable(), - amount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - date: z.coerce.date(), - description: z.string().optional().nullable(), - receipt: z.string().optional().nullable(), - vendor: z.string().optional().nullable(), - paymentMethod: z.lazy(() => PaymentMethodSchema).optional(), - projectId: z.string().optional().nullable(), - status: z.lazy(() => ExpenseStatusSchema).optional(), - reimbursable: z.boolean().optional(), - reimbursed: z.boolean().optional(), - reimbursedAt: z.coerce.date().optional().nullable(), - submittedAt: z.coerce.date().optional().nullable(), - createdById: z.string().optional().nullable(), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - rejectedAt: z.coerce.date().optional().nullable(), - rejectionReason: z.string().optional().nullable(), - notes: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExpenseUpdateWithoutCategoryInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutExpensesNestedInputSchema).optional(), - project: z.lazy(() => ProjectUpdateOneWithoutExpensesNestedInputSchema).optional(), - tags: z.lazy(() => ExpenseToTagUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateWithoutCategoryInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - tags: z.lazy(() => ExpenseToTagUncheckedUpdateManyWithoutExpenseNestedInputSchema).optional() -}).strict(); - -export const ExpenseUncheckedUpdateManyWithoutCategoryInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - customCategory: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - amount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - date: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - receipt: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - vendor: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - paymentMethod: z.union([ z.lazy(() => PaymentMethodSchema),z.lazy(() => EnumPaymentMethodFieldUpdateOperationsInputSchema) ]).optional(), - projectId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => ExpenseStatusSchema),z.lazy(() => EnumExpenseStatusFieldUpdateOperationsInputSchema) ]).optional(), - reimbursable: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursed: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - reimbursedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - submittedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rejectionReason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagCreateManyTagInputSchema: z.ZodType = z.object({ - expenseId: z.string() -}).strict(); - -export const ExpenseToTagUpdateWithoutTagInputSchema: z.ZodType = z.object({ - expense: z.lazy(() => ExpenseUpdateOneRequiredWithoutTagsNestedInputSchema).optional() -}).strict(); - -export const ExpenseToTagUncheckedUpdateWithoutTagInputSchema: z.ZodType = z.object({ - expenseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExpenseToTagUncheckedUpdateManyWithoutTagInputSchema: z.ZodType = z.object({ - expenseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeCreateManyEventInputSchema: z.ZodType = z.object({ - userId: z.string(), - status: z.lazy(() => AttendeeStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const CalendarEventAttendeeUpdateWithoutEventInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUncheckedUpdateWithoutEventInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const CalendarEventAttendeeUncheckedUpdateManyWithoutEventInputSchema: z.ZodType = z.object({ - userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => AttendeeStatusSchema),z.lazy(() => EnumAttendeeStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollCreateManyEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - payPeriodStart: z.coerce.date(), - payPeriodEnd: z.coerce.date(), - payDate: z.coerce.date(), - basicSalary: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - overtime: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - bonus: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - tax: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - deductions: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }).optional(), - netAmount: z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }), - currency: z.string().optional(), - status: z.lazy(() => PayrollStatusSchema), - notes: z.string().optional().nullable(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TimeOffCreateManyEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - type: z.lazy(() => TimeOffTypeSchema), - startDate: z.coerce.date(), - endDate: z.coerce.date(), - duration: z.number(), - reason: z.string().optional().nullable(), - status: z.lazy(() => TimeOffStatusSchema), - approvedById: z.string().optional().nullable(), - approvedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PerformanceReviewCreateManyEmployeeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - reviewerId: z.string(), - reviewPeriod: z.string(), - performanceScore: z.number().optional().nullable(), - strengths: z.string().optional().nullable(), - improvements: z.string().optional().nullable(), - goals: z.string().optional().nullable(), - comments: z.string().optional().nullable(), - reviewDate: z.coerce.date(), - status: z.lazy(() => ReviewStatusSchema), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const PayrollUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollUncheckedUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PayrollUncheckedUpdateManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payPeriodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - payDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - basicSalary: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - overtime: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - bonus: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - tax: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - deductions: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - netAmount: z.union([ z.union([z.number(),z.string(),z.instanceof(Decimal),z.instanceof(Prisma.Decimal),DecimalJsLikeSchema,]).refine((v) => isValidDecimalInput(v), { message: 'Must be a Decimal' }),z.lazy(() => DecimalFieldUpdateOperationsInputSchema) ]).optional(), - currency: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => PayrollStatusSchema),z.lazy(() => EnumPayrollStatusFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffUncheckedUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TimeOffUncheckedUpdateManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => TimeOffTypeSchema),z.lazy(() => EnumTimeOffTypeFieldUpdateOperationsInputSchema) ]).optional(), - startDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - endDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - duration: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - reason: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TimeOffStatusSchema),z.lazy(() => EnumTimeOffStatusFieldUpdateOperationsInputSchema) ]).optional(), - approvedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - approvedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewUncheckedUpdateWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const PerformanceReviewUncheckedUpdateManyWithoutEmployeeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - reviewPeriod: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - performanceScore: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - strengths: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - improvements: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - goals: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - comments: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - reviewDate: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ReviewStatusSchema),z.lazy(() => EnumReviewStatusFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignCreateManyCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - subject: z.string(), - content: z.string(), - sender: z.string(), - scheduledAt: z.coerce.date().optional().nullable(), - sentAt: z.coerce.date().optional().nullable(), - opens: z.number().int().optional(), - clicks: z.number().int().optional(), - bounces: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SocialMediaPostCreateManyCampaignInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - platform: z.lazy(() => SocialPlatformSchema), - content: z.string(), - mediaUrl: z.string().optional().nullable(), - scheduledAt: z.coerce.date().optional().nullable(), - publishedAt: z.coerce.date().optional().nullable(), - likes: z.number().int().optional(), - shares: z.number().int().optional(), - comments: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const EmailCampaignUpdateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignUncheckedUpdateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const EmailCampaignUncheckedUpdateManyWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - subject: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sender: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sentAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - opens: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - clicks: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - bounces: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostUpdateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostUncheckedUpdateWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SocialMediaPostUncheckedUpdateManyWithoutCampaignInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - platform: z.union([ z.lazy(() => SocialPlatformSchema),z.lazy(() => EnumSocialPlatformFieldUpdateOperationsInputSchema) ]).optional(), - content: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mediaUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scheduledAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - publishedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - likes: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - shares: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - comments: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const SessionCreateManyUserInputSchema: z.ZodType = z.object({ - id: z.string(), - expiresAt: z.coerce.date(), - token: z.string(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date(), - ipAddress: z.string().optional().nullable(), - userAgent: z.string().optional().nullable() -}).strict(); - -export const AccountCreateManyUserInputSchema: z.ZodType = z.object({ - id: z.string(), - accountId: z.string(), - providerId: z.string(), - accessToken: z.string().optional().nullable(), - refreshToken: z.string().optional().nullable(), - idToken: z.string().optional().nullable(), - accessTokenExpiresAt: z.coerce.date().optional().nullable(), - refreshTokenExpiresAt: z.coerce.date().optional().nullable(), - scope: z.string().optional().nullable(), - password: z.string().optional().nullable(), - createdAt: z.coerce.date(), - updatedAt: z.coerce.date() -}).strict(); - -export const ImportSessionCreateManyCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - fileName: z.string(), - fileSize: z.number().int(), - fileType: z.string().optional().nullable(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - status: z.lazy(() => ImportStatusSchema).optional(), - dedupeMode: z.lazy(() => DedupeModeSchema).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.number().int().optional().nullable(), - processedCount: z.number().int().optional(), - successCount: z.number().int().optional(), - failureCount: z.number().int().optional(), - skippedCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - appliedTemplateId: z.string().optional().nullable() -}).strict(); - -export const ImportTemplateCreateManyCreatedByInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string(), - module: z.lazy(() => ImportModuleSchema), - entityType: z.lazy(() => ImportEntityTypeSchema), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - usageCount: z.number().int().optional(), - lastUsedAt: z.coerce.date().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const SessionUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const SessionUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const SessionUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - token: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const AccountUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const AccountUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ - id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accountId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - providerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - accessToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - idToken: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - accessTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - refreshTokenExpiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - scope: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - password: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ImportSessionUpdateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportSessionsNestedInputSchema).optional(), - rows: z.lazy(() => ImportRowUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUpdateManyWithoutSessionNestedInputSchema).optional(), - appliedTemplate: z.lazy(() => ImportTemplateUpdateOneWithoutSessionsNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - rows: z.lazy(() => ImportRowUncheckedUpdateManyWithoutSessionNestedInputSchema).optional(), - issues: z.lazy(() => ImportRowIssueUncheckedUpdateManyWithoutSessionNestedInputSchema).optional() -}).strict(); - -export const ImportSessionUncheckedUpdateManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileSize: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - fileType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => ImportStatusSchema),z.lazy(() => EnumImportStatusFieldUpdateOperationsInputSchema) ]).optional(), - dedupeMode: z.union([ z.lazy(() => DedupeModeSchema),z.lazy(() => EnumDedupeModeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - summary: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - rowCount: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - processedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failureCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - skippedCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - appliedTemplateId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const ImportTemplateUpdateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutImportTemplatesNestedInputSchema).optional(), - sessions: z.lazy(() => ImportSessionUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sessions: z.lazy(() => ImportSessionUncheckedUpdateManyWithoutAppliedTemplateNestedInputSchema).optional() -}).strict(); - -export const ImportTemplateUncheckedUpdateManyWithoutCreatedByInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.lazy(() => ImportModuleSchema),z.lazy(() => EnumImportModuleFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.lazy(() => ImportEntityTypeSchema),z.lazy(() => EnumImportEntityTypeFieldUpdateOperationsInputSchema) ]).optional(), - mappingConfig: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - columnSignature: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastUsedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataCreateManyReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportExportCreateManyReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - format: z.lazy(() => FinancialReportExportFormatSchema), - fileName: z.string(), - fileUrl: z.string().optional().nullable(), - fileSize: z.number().int().optional().nullable(), - status: z.lazy(() => FinancialReportExportStatusSchema).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportScheduleCreateManyReportInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - frequency: z.lazy(() => FinancialReportScheduleFrequencySchema), - dayOfWeek: z.number().int().optional().nullable(), - dayOfMonth: z.number().int().optional().nullable(), - time: z.string(), - timezone: z.string().optional(), - isActive: z.boolean().optional(), - lastRunAt: z.coerce.date().optional().nullable(), - nextRunAt: z.coerce.date(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - emailSubject: z.string().optional().nullable(), - emailBody: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const FinancialReportDataUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataUncheckedUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportDataUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - data: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportUncheckedUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportExportUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - format: z.union([ z.lazy(() => FinancialReportExportFormatSchema),z.lazy(() => EnumFinancialReportExportFormatFieldUpdateOperationsInputSchema) ]).optional(), - fileName: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - fileUrl: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - fileSize: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => FinancialReportExportStatusSchema),z.lazy(() => EnumFinancialReportExportStatusFieldUpdateOperationsInputSchema) ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleUncheckedUpdateWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const FinancialReportScheduleUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - frequency: z.union([ z.lazy(() => FinancialReportScheduleFrequencySchema),z.lazy(() => EnumFinancialReportScheduleFrequencyFieldUpdateOperationsInputSchema) ]).optional(), - dayOfWeek: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dayOfMonth: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - time: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - timezone: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastRunAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nextRunAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - emailSubject: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - emailBody: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateVersionCreateManyTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changelog: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallationCreateManyTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templateVersionId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareCreateManyTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - name: z.string().optional().nullable(), - shareMode: z.lazy(() => TemplateShareModeSchema).optional(), - tokenHash: z.string().optional().nullable(), - expiresAt: z.coerce.date().optional().nullable(), - maxUses: z.number().int().optional().nullable(), - allowExternal: z.boolean().optional(), - notes: z.string().optional().nullable(), - status: z.lazy(() => TemplateShareStatusSchema).optional(), - usageCount: z.number().int().optional(), - lastAccessedAt: z.coerce.date().optional().nullable(), - revokedAt: z.coerce.date().optional().nullable(), - revokedById: z.string().optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - snapshotVersion: z.string(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareImportCreateManyTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - shareId: z.string(), - organizationId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateVersionUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationUpdateManyWithoutTemplateVersionNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - installations: z.lazy(() => TemplateInstallationUncheckedUpdateManyWithoutTemplateVersionNestedInputSchema).optional() -}).strict(); - -export const TemplateVersionUncheckedUpdateManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - manifest: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changelog: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateInstallationsNestedInputSchema).optional(), - templateVersion: z.lazy(() => TemplateVersionUpdateOneWithoutInstallationsNestedInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templateVersionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateSharesNestedInputSchema).optional(), - recipients: z.lazy(() => TemplateShareRecipientUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - recipients: z.lazy(() => TemplateShareRecipientUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - accessLogs: z.lazy(() => TemplateShareAccessLogUncheckedUpdateManyWithoutShareNestedInputSchema).optional(), - imports: z.lazy(() => TemplateShareImportUncheckedUpdateManyWithoutShareNestedInputSchema).optional() -}).strict(); - -export const TemplateShareUncheckedUpdateManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - shareMode: z.union([ z.lazy(() => TemplateShareModeSchema),z.lazy(() => EnumTemplateShareModeFieldUpdateOperationsInputSchema) ]).optional(), - tokenHash: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - expiresAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxUses: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - allowExternal: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - notes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateShareStatusSchema),z.lazy(() => EnumTemplateShareStatusFieldUpdateOperationsInputSchema) ]).optional(), - usageCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - lastAccessedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - revokedById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - snapshotData: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - share: z.lazy(() => TemplateShareUpdateOneRequiredWithoutImportsNestedInputSchema).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateShareImportsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareImportUncheckedUpdateWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutTemplatePackageInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - shareId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallationCreateManyTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string().optional().nullable(), - status: z.lazy(() => TemplateInstallStatusSchema).optional(), - strategy: z.lazy(() => TemplateInstallStrategySchema).optional(), - namePrefix: z.string().optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - createdById: z.string(), - createdAt: z.coerce.date().optional(), - completedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateInstallationUpdateWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateInstallationsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneWithoutInstallationsNestedInputSchema).optional(), - items: z.lazy(() => TemplateInstallItemUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - items: z.lazy(() => TemplateInstallItemUncheckedUpdateManyWithoutInstallationNestedInputSchema).optional() -}).strict(); - -export const TemplateInstallationUncheckedUpdateManyWithoutTemplateVersionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateInstallStatusSchema),z.lazy(() => EnumTemplateInstallStatusFieldUpdateOperationsInputSchema) ]).optional(), - strategy: z.union([ z.lazy(() => TemplateInstallStrategySchema),z.lazy(() => EnumTemplateInstallStrategyFieldUpdateOperationsInputSchema) ]).optional(), - namePrefix: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - preflight: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - logs: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateInstallItemCreateManyInstallationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - assetType: z.lazy(() => TemplateAssetTypeSchema), - sourceKey: z.string(), - createdModel: z.string().optional().nullable(), - createdId: z.string().optional().nullable(), - status: z.lazy(() => TemplateItemStatusSchema).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateInstallItemUpdateWithoutInstallationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemUncheckedUpdateWithoutInstallationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateInstallItemUncheckedUpdateManyWithoutInstallationInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - assetType: z.union([ z.lazy(() => TemplateAssetTypeSchema),z.lazy(() => EnumTemplateAssetTypeFieldUpdateOperationsInputSchema) ]).optional(), - sourceKey: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - createdModel: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - status: z.union([ z.lazy(() => TemplateItemStatusSchema),z.lazy(() => EnumTemplateItemStatusFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowTriggerCreateManyWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - name: z.string(), - description: z.string().optional().nullable(), - type: z.lazy(() => WorkflowTriggerTypeSchema), - module: z.string(), - entityType: z.string().optional().nullable(), - eventType: z.string(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.number().int().optional().nullable(), - isActive: z.boolean().optional(), - lastTriggered: z.coerce.date().optional().nullable(), - triggerCount: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowNodeCreateManyWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - type: z.lazy(() => WorkflowNodeTypeSchema), - name: z.string(), - description: z.string().optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.number().int().optional().nullable(), - isOptional: z.boolean().optional(), - retryLimit: z.number().int().optional(), - timeout: z.number().int().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateManyWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - sourceNodeId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowExecutionCreateManyWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string().optional().nullable(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowAnalyticsCreateManyWorkflowInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - periodStart: z.coerce.date(), - periodEnd: z.coerce.date(), - granularity: z.string().optional(), - totalExecutions: z.number().int().optional(), - successfulExecutions: z.number().int().optional(), - failedExecutions: z.number().int().optional(), - averageDuration: z.number().optional().nullable(), - minDuration: z.number().int().optional().nullable(), - maxDuration: z.number().int().optional().nullable(), - p95Duration: z.number().int().optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.number().optional().nullable(), - avgCpuUsage: z.number().optional().nullable(), - avgMemoryUsage: z.number().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowTriggerUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUpdateManyWithoutTriggerNestedInputSchema).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => WorkflowExecutionUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional(), - variables: z.lazy(() => TriggerVariableUncheckedUpdateManyWithoutTriggerNestedInputSchema).optional() -}).strict(); - -export const WorkflowTriggerUncheckedUpdateManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - type: z.union([ z.lazy(() => WorkflowTriggerTypeSchema),z.lazy(() => EnumWorkflowTriggerTypeFieldUpdateOperationsInputSchema) ]).optional(), - module: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - entityType: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - eventType: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - delay: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - lastTriggered: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - triggerCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowNodeUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - executions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutNodeNestedInputSchema).optional(), - dependencies: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutDependentNodeNestedInputSchema).optional(), - dependents: z.lazy(() => NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeNestedInputSchema).optional(), - sourceConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeNestedInputSchema).optional(), - targetConnections: z.lazy(() => WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeNestedInputSchema).optional(), - emailAction: z.lazy(() => EmailActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - smsAction: z.lazy(() => SmsActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - whatsAppAction: z.lazy(() => WhatsAppActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - slackAction: z.lazy(() => SlackActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - calendarAction: z.lazy(() => CalendarActionUncheckedUpdateOneWithoutActionNestedInputSchema).optional(), - trigger: z.lazy(() => WorkflowTriggerUncheckedUpdateOneWithoutNodeNestedInputSchema).optional() -}).strict(); - -export const WorkflowNodeUncheckedUpdateManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - type: z.union([ z.lazy(() => WorkflowNodeTypeSchema),z.lazy(() => EnumWorkflowNodeTypeFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - description: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - position: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - config: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - template: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isOptional: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - retryLimit: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - timeout: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - sourceNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutSourceConnectionsNestedInputSchema).optional(), - targetNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutTargetConnectionsNestedInputSchema).optional() -}).strict(); - -export const WorkflowConnectionUncheckedUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneWithoutExecutionsNestedInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUncheckedUpdateWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowAnalyticsUncheckedUpdateManyWithoutWorkflowInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - periodStart: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - periodEnd: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - granularity: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - totalExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - successfulExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - failedExecutions: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - averageDuration: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - minDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - maxDuration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - p95Duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - commonErrors: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - errorRate: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgCpuUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - avgMemoryUsage: z.union([ z.number(),z.lazy(() => NullableFloatFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowExecutionCreateManyTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - executionId: z.string(), - status: z.lazy(() => WorkflowExecutionStatusSchema).optional(), - priority: z.lazy(() => ExecutionPrioritySchema).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.string().optional().nullable(), - progress: z.number().optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - failedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - retryDelay: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableCreateManyTriggerInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - variableId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowExecutionUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - nodeExecutions: z.lazy(() => NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - variables: z.lazy(() => ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional(), - logs: z.lazy(() => ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionNestedInputSchema).optional() -}).strict(); - -export const WorkflowExecutionUncheckedUpdateManyWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => WorkflowExecutionStatusSchema),z.lazy(() => EnumWorkflowExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - priority: z.union([ z.lazy(() => ExecutionPrioritySchema),z.lazy(() => EnumExecutionPriorityFieldUpdateOperationsInputSchema) ]).optional(), - triggerData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - triggerContext: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - currentNodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - progress: z.union([ z.number(),z.lazy(() => FloatFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - failedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - result: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - retryDelay: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - variable: z.lazy(() => VariableDefinitionUpdateOneRequiredWithoutTriggerVarsNestedInputSchema).optional() -}).strict(); - -export const TriggerVariableUncheckedUpdateWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedUpdateManyWithoutTriggerInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionCreateManyNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyCreateManyDependentNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - prerequisiteNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeDependencyCreateManyPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - dependentNodeId: z.string(), - dependencyType: z.lazy(() => DependencyTypeSchema).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateManySourceNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - targetNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const WorkflowConnectionCreateManyTargetNodeInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowId: z.string(), - sourceNodeId: z.string(), - executionOrder: z.number().int().optional(), - label: z.string().optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.string().optional().nullable(), - sourceHandle: z.string().optional().nullable(), - targetHandle: z.string().optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.boolean().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionUpdateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionUpdateOneRequiredWithoutNodeExecutionsNestedInputSchema).optional() -}).strict(); - -export const NodeExecutionUncheckedUpdateWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedUpdateManyWithoutNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyUpdateWithoutDependentNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - prerequisiteNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutDependentsNestedInputSchema).optional() -}).strict(); - -export const NodeDependencyUncheckedUpdateWithoutDependentNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - prerequisiteNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedUpdateManyWithoutDependentNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - prerequisiteNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyUpdateWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - dependentNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutDependenciesNestedInputSchema).optional() -}).strict(); - -export const NodeDependencyUncheckedUpdateWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependentNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeDependencyUncheckedUpdateManyWithoutPrerequisiteNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependentNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - dependencyType: z.union([ z.lazy(() => DependencyTypeSchema),z.lazy(() => EnumDependencyTypeFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateWithoutSourceNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutConnectionsNestedInputSchema).optional(), - targetNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutTargetConnectionsNestedInputSchema).optional() -}).strict(); - -export const WorkflowConnectionUncheckedUpdateWithoutSourceNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutSourceNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - targetNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUpdateWithoutTargetNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflow: z.lazy(() => WorkflowUpdateOneRequiredWithoutConnectionsNestedInputSchema).optional(), - sourceNode: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutSourceConnectionsNestedInputSchema).optional() -}).strict(); - -export const WorkflowConnectionUncheckedUpdateWithoutTargetNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const WorkflowConnectionUncheckedUpdateManyWithoutTargetNodeInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - sourceNodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - label: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - conditions: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - edgeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - sourceHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - targetHandle: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - style: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - animated: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionCreateManyActionTemplateInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - version: z.string(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]), - changes: z.string().optional().nullable(), - isActive: z.boolean().optional(), - createdById: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const ActionTemplateVersionUpdateWithoutActionTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionUncheckedUpdateWithoutActionTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ActionTemplateVersionUncheckedUpdateManyWithoutActionTemplateInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - version: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - template: z.union([ z.lazy(() => JsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - changes: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - isActive: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - createdById: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableCreateManyVariableInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - triggerId: z.string(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.boolean().optional(), - defaultValue: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableCreateManyVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - workflowExecutionId: z.string(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const TriggerVariableUpdateWithoutVariableInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - trigger: z.lazy(() => WorkflowTriggerUpdateOneRequiredWithoutVariablesNestedInputSchema).optional() -}).strict(); - -export const TriggerVariableUncheckedUpdateWithoutVariableInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TriggerVariableUncheckedUpdateManyWithoutVariableInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - triggerId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - mapping: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - isRequired: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(), - defaultValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableUpdateWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecution: z.lazy(() => WorkflowExecutionUpdateOneRequiredWithoutVariablesNestedInputSchema).optional() -}).strict(); - -export const ExecutionVariableUncheckedUpdateWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedUpdateManyWithoutVariableDefinitionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - workflowExecutionId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionCreateManyWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string(), - executionOrder: z.number().int(), - status: z.lazy(() => NodeExecutionStatusSchema).optional(), - startedAt: z.coerce.date().optional().nullable(), - completedAt: z.coerce.date().optional().nullable(), - duration: z.number().int().optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.string().optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.number().int().optional(), - maxRetries: z.number().int().optional(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionVariableCreateManyWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - variableDefinitionId: z.string().optional().nullable(), - name: z.string(), - value: z.string().optional().nullable(), - resolvedValue: z.string().optional().nullable(), - dataType: z.lazy(() => VariableDataTypeSchema), - source: z.string().optional().nullable(), - nodeId: z.string().optional().nullable(), - createdAt: z.coerce.date().optional(), - updatedAt: z.coerce.date().optional() -}).strict(); - -export const ExecutionLogCreateManyWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - nodeId: z.string().optional().nullable(), - level: z.lazy(() => LogLevelSchema), - message: z.string(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.coerce.date().optional(), - source: z.string().optional().nullable(), - category: z.string().optional().nullable(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const NodeExecutionUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - node: z.lazy(() => WorkflowNodeUpdateOneRequiredWithoutExecutionsNestedInputSchema).optional() -}).strict(); - -export const NodeExecutionUncheckedUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const NodeExecutionUncheckedUpdateManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - executionOrder: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => NodeExecutionStatusSchema),z.lazy(() => EnumNodeExecutionStatusFieldUpdateOperationsInputSchema) ]).optional(), - startedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - completedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - duration: z.union([ z.number().int(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(), - input: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - output: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - transformedData: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - error: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorDetails: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - retryCount: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - maxRetries: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - variableDefinition: z.lazy(() => VariableDefinitionUpdateOneWithoutExecutionVarsNestedInputSchema).optional() -}).strict(); - -export const ExecutionVariableUncheckedUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableDefinitionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionVariableUncheckedUpdateManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - variableDefinitionId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - name: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - value: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - resolvedValue: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - dataType: z.union([ z.lazy(() => VariableDataTypeSchema),z.lazy(() => EnumVariableDataTypeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogUncheckedUpdateWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const ExecutionLogUncheckedUpdateManyWithoutWorkflowExecutionInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - nodeId: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - level: z.union([ z.lazy(() => LogLevelSchema),z.lazy(() => EnumLogLevelFieldUpdateOperationsInputSchema) ]).optional(), - message: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - details: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - timestamp: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - source: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - category: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareRecipientCreateManyShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - email: z.string(), - status: z.lazy(() => TemplateShareRecipientStatusSchema).optional(), - invitedAt: z.coerce.date().optional(), - viewedAt: z.coerce.date().optional().nullable(), - importedAt: z.coerce.date().optional().nullable() -}).strict(); - -export const TemplateShareAccessLogCreateManyShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - action: z.lazy(() => TemplateShareAccessActionSchema), - status: z.lazy(() => TemplateShareAccessStatusSchema), - recipientEmail: z.string().optional().nullable(), - userAgent: z.string().optional().nullable(), - ipAddress: z.string().optional().nullable(), - errorMessage: z.string().optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.coerce.date().optional() -}).strict(); - -export const TemplateShareImportCreateManyShareInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional(), - organizationId: z.string(), - templatePackageId: z.string(), - importedById: z.string(), - importedAt: z.coerce.date().optional(), - originalPackageId: z.string(), - originalOrgId: z.string(), - snapshotVersion: z.string() -}).strict(); - -export const TemplateShareRecipientUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareRecipientUncheckedUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareRecipientUncheckedUpdateManyWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - email: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareRecipientStatusSchema),z.lazy(() => EnumTemplateShareRecipientStatusFieldUpdateOperationsInputSchema) ]).optional(), - invitedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - viewedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(), -}).strict(); - -export const TemplateShareAccessLogUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUncheckedUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareAccessLogUncheckedUpdateManyWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - action: z.union([ z.lazy(() => TemplateShareAccessActionSchema),z.lazy(() => EnumTemplateShareAccessActionFieldUpdateOperationsInputSchema) ]).optional(), - status: z.union([ z.lazy(() => TemplateShareAccessStatusSchema),z.lazy(() => EnumTemplateShareAccessStatusFieldUpdateOperationsInputSchema) ]).optional(), - recipientEmail: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - userAgent: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - ipAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - errorMessage: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), - metadata: z.union([ z.lazy(() => NullableJsonNullValueInputSchema),InputJsonValueSchema ]).optional(), - createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organization: z.lazy(() => OrganizationUpdateOneRequiredWithoutTemplateShareImportsNestedInputSchema).optional(), - templatePackage: z.lazy(() => TemplatePackageUpdateOneRequiredWithoutShareImportsNestedInputSchema).optional() -}).strict(); - -export const TemplateShareImportUncheckedUpdateWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -export const TemplateShareImportUncheckedUpdateManyWithoutShareInputSchema: z.ZodType = z.object({ - id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - organizationId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - templatePackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedById: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - importedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), - originalPackageId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - originalOrgId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), - snapshotVersion: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), -}).strict(); - -///////////////////////////////////////// -// ARGS -///////////////////////////////////////// - -export const PermissionFindFirstArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereInputSchema.optional(), - orderBy: z.union([ PermissionOrderByWithRelationInputSchema.array(),PermissionOrderByWithRelationInputSchema ]).optional(), - cursor: PermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PermissionScalarFieldEnumSchema,PermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PermissionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereInputSchema.optional(), - orderBy: z.union([ PermissionOrderByWithRelationInputSchema.array(),PermissionOrderByWithRelationInputSchema ]).optional(), - cursor: PermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PermissionScalarFieldEnumSchema,PermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PermissionFindManyArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereInputSchema.optional(), - orderBy: z.union([ PermissionOrderByWithRelationInputSchema.array(),PermissionOrderByWithRelationInputSchema ]).optional(), - cursor: PermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PermissionScalarFieldEnumSchema,PermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PermissionAggregateArgsSchema: z.ZodType = z.object({ - where: PermissionWhereInputSchema.optional(), - orderBy: z.union([ PermissionOrderByWithRelationInputSchema.array(),PermissionOrderByWithRelationInputSchema ]).optional(), - cursor: PermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PermissionGroupByArgsSchema: z.ZodType = z.object({ - where: PermissionWhereInputSchema.optional(), - orderBy: z.union([ PermissionOrderByWithAggregationInputSchema.array(),PermissionOrderByWithAggregationInputSchema ]).optional(), - by: PermissionScalarFieldEnumSchema.array(), - having: PermissionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PermissionFindUniqueArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereUniqueInputSchema, -}).strict() ; - -export const PermissionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereUniqueInputSchema, -}).strict() ; - -export const RolePermissionFindFirstArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereInputSchema.optional(), - orderBy: z.union([ RolePermissionOrderByWithRelationInputSchema.array(),RolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: RolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ RolePermissionScalarFieldEnumSchema,RolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const RolePermissionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereInputSchema.optional(), - orderBy: z.union([ RolePermissionOrderByWithRelationInputSchema.array(),RolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: RolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ RolePermissionScalarFieldEnumSchema,RolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const RolePermissionFindManyArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereInputSchema.optional(), - orderBy: z.union([ RolePermissionOrderByWithRelationInputSchema.array(),RolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: RolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ RolePermissionScalarFieldEnumSchema,RolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const RolePermissionAggregateArgsSchema: z.ZodType = z.object({ - where: RolePermissionWhereInputSchema.optional(), - orderBy: z.union([ RolePermissionOrderByWithRelationInputSchema.array(),RolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: RolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const RolePermissionGroupByArgsSchema: z.ZodType = z.object({ - where: RolePermissionWhereInputSchema.optional(), - orderBy: z.union([ RolePermissionOrderByWithAggregationInputSchema.array(),RolePermissionOrderByWithAggregationInputSchema ]).optional(), - by: RolePermissionScalarFieldEnumSchema.array(), - having: RolePermissionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const RolePermissionFindUniqueArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const RolePermissionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const CustomRoleFindFirstArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereInputSchema.optional(), - orderBy: z.union([ CustomRoleOrderByWithRelationInputSchema.array(),CustomRoleOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRoleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRoleScalarFieldEnumSchema,CustomRoleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRoleFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereInputSchema.optional(), - orderBy: z.union([ CustomRoleOrderByWithRelationInputSchema.array(),CustomRoleOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRoleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRoleScalarFieldEnumSchema,CustomRoleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRoleFindManyArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereInputSchema.optional(), - orderBy: z.union([ CustomRoleOrderByWithRelationInputSchema.array(),CustomRoleOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRoleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRoleScalarFieldEnumSchema,CustomRoleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRoleAggregateArgsSchema: z.ZodType = z.object({ - where: CustomRoleWhereInputSchema.optional(), - orderBy: z.union([ CustomRoleOrderByWithRelationInputSchema.array(),CustomRoleOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRoleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomRoleGroupByArgsSchema: z.ZodType = z.object({ - where: CustomRoleWhereInputSchema.optional(), - orderBy: z.union([ CustomRoleOrderByWithAggregationInputSchema.array(),CustomRoleOrderByWithAggregationInputSchema ]).optional(), - by: CustomRoleScalarFieldEnumSchema.array(), - having: CustomRoleScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomRoleFindUniqueArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereUniqueInputSchema, -}).strict() ; - -export const CustomRoleFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereUniqueInputSchema, -}).strict() ; - -export const CustomRolePermissionFindFirstArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereInputSchema.optional(), - orderBy: z.union([ CustomRolePermissionOrderByWithRelationInputSchema.array(),CustomRolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRolePermissionScalarFieldEnumSchema,CustomRolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRolePermissionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereInputSchema.optional(), - orderBy: z.union([ CustomRolePermissionOrderByWithRelationInputSchema.array(),CustomRolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRolePermissionScalarFieldEnumSchema,CustomRolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRolePermissionFindManyArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereInputSchema.optional(), - orderBy: z.union([ CustomRolePermissionOrderByWithRelationInputSchema.array(),CustomRolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomRolePermissionScalarFieldEnumSchema,CustomRolePermissionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomRolePermissionAggregateArgsSchema: z.ZodType = z.object({ - where: CustomRolePermissionWhereInputSchema.optional(), - orderBy: z.union([ CustomRolePermissionOrderByWithRelationInputSchema.array(),CustomRolePermissionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomRolePermissionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomRolePermissionGroupByArgsSchema: z.ZodType = z.object({ - where: CustomRolePermissionWhereInputSchema.optional(), - orderBy: z.union([ CustomRolePermissionOrderByWithAggregationInputSchema.array(),CustomRolePermissionOrderByWithAggregationInputSchema ]).optional(), - by: CustomRolePermissionScalarFieldEnumSchema.array(), - having: CustomRolePermissionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomRolePermissionFindUniqueArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const CustomRolePermissionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationFindFirstArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereInputSchema.optional(), - orderBy: z.union([ OrganizationOrderByWithRelationInputSchema.array(),OrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationScalarFieldEnumSchema,OrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereInputSchema.optional(), - orderBy: z.union([ OrganizationOrderByWithRelationInputSchema.array(),OrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationScalarFieldEnumSchema,OrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationFindManyArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereInputSchema.optional(), - orderBy: z.union([ OrganizationOrderByWithRelationInputSchema.array(),OrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationScalarFieldEnumSchema,OrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationAggregateArgsSchema: z.ZodType = z.object({ - where: OrganizationWhereInputSchema.optional(), - orderBy: z.union([ OrganizationOrderByWithRelationInputSchema.array(),OrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const OrganizationGroupByArgsSchema: z.ZodType = z.object({ - where: OrganizationWhereInputSchema.optional(), - orderBy: z.union([ OrganizationOrderByWithAggregationInputSchema.array(),OrganizationOrderByWithAggregationInputSchema ]).optional(), - by: OrganizationScalarFieldEnumSchema.array(), - having: OrganizationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const OrganizationFindUniqueArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereUniqueInputSchema, -}).strict() ; - -export const ImportSessionFindFirstArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereInputSchema.optional(), - orderBy: z.union([ ImportSessionOrderByWithRelationInputSchema.array(),ImportSessionOrderByWithRelationInputSchema ]).optional(), - cursor: ImportSessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportSessionScalarFieldEnumSchema,ImportSessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportSessionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereInputSchema.optional(), - orderBy: z.union([ ImportSessionOrderByWithRelationInputSchema.array(),ImportSessionOrderByWithRelationInputSchema ]).optional(), - cursor: ImportSessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportSessionScalarFieldEnumSchema,ImportSessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportSessionFindManyArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereInputSchema.optional(), - orderBy: z.union([ ImportSessionOrderByWithRelationInputSchema.array(),ImportSessionOrderByWithRelationInputSchema ]).optional(), - cursor: ImportSessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportSessionScalarFieldEnumSchema,ImportSessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportSessionAggregateArgsSchema: z.ZodType = z.object({ - where: ImportSessionWhereInputSchema.optional(), - orderBy: z.union([ ImportSessionOrderByWithRelationInputSchema.array(),ImportSessionOrderByWithRelationInputSchema ]).optional(), - cursor: ImportSessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportSessionGroupByArgsSchema: z.ZodType = z.object({ - where: ImportSessionWhereInputSchema.optional(), - orderBy: z.union([ ImportSessionOrderByWithAggregationInputSchema.array(),ImportSessionOrderByWithAggregationInputSchema ]).optional(), - by: ImportSessionScalarFieldEnumSchema.array(), - having: ImportSessionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportSessionFindUniqueArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereUniqueInputSchema, -}).strict() ; - -export const ImportSessionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereUniqueInputSchema, -}).strict() ; - -export const ImportTemplateFindFirstArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereInputSchema.optional(), - orderBy: z.union([ ImportTemplateOrderByWithRelationInputSchema.array(),ImportTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ImportTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportTemplateScalarFieldEnumSchema,ImportTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportTemplateFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereInputSchema.optional(), - orderBy: z.union([ ImportTemplateOrderByWithRelationInputSchema.array(),ImportTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ImportTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportTemplateScalarFieldEnumSchema,ImportTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportTemplateFindManyArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereInputSchema.optional(), - orderBy: z.union([ ImportTemplateOrderByWithRelationInputSchema.array(),ImportTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ImportTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportTemplateScalarFieldEnumSchema,ImportTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportTemplateAggregateArgsSchema: z.ZodType = z.object({ - where: ImportTemplateWhereInputSchema.optional(), - orderBy: z.union([ ImportTemplateOrderByWithRelationInputSchema.array(),ImportTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ImportTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportTemplateGroupByArgsSchema: z.ZodType = z.object({ - where: ImportTemplateWhereInputSchema.optional(), - orderBy: z.union([ ImportTemplateOrderByWithAggregationInputSchema.array(),ImportTemplateOrderByWithAggregationInputSchema ]).optional(), - by: ImportTemplateScalarFieldEnumSchema.array(), - having: ImportTemplateScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportTemplateFindUniqueArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ImportTemplateFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowFindFirstArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereInputSchema.optional(), - orderBy: z.union([ ImportRowOrderByWithRelationInputSchema.array(),ImportRowOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowScalarFieldEnumSchema,ImportRowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereInputSchema.optional(), - orderBy: z.union([ ImportRowOrderByWithRelationInputSchema.array(),ImportRowOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowScalarFieldEnumSchema,ImportRowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowFindManyArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereInputSchema.optional(), - orderBy: z.union([ ImportRowOrderByWithRelationInputSchema.array(),ImportRowOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowScalarFieldEnumSchema,ImportRowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowAggregateArgsSchema: z.ZodType = z.object({ - where: ImportRowWhereInputSchema.optional(), - orderBy: z.union([ ImportRowOrderByWithRelationInputSchema.array(),ImportRowOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportRowGroupByArgsSchema: z.ZodType = z.object({ - where: ImportRowWhereInputSchema.optional(), - orderBy: z.union([ ImportRowOrderByWithAggregationInputSchema.array(),ImportRowOrderByWithAggregationInputSchema ]).optional(), - by: ImportRowScalarFieldEnumSchema.array(), - having: ImportRowScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportRowFindUniqueArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowIssueFindFirstArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereInputSchema.optional(), - orderBy: z.union([ ImportRowIssueOrderByWithRelationInputSchema.array(),ImportRowIssueOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowIssueWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowIssueScalarFieldEnumSchema,ImportRowIssueScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowIssueFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereInputSchema.optional(), - orderBy: z.union([ ImportRowIssueOrderByWithRelationInputSchema.array(),ImportRowIssueOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowIssueWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowIssueScalarFieldEnumSchema,ImportRowIssueScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowIssueFindManyArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereInputSchema.optional(), - orderBy: z.union([ ImportRowIssueOrderByWithRelationInputSchema.array(),ImportRowIssueOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowIssueWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ImportRowIssueScalarFieldEnumSchema,ImportRowIssueScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ImportRowIssueAggregateArgsSchema: z.ZodType = z.object({ - where: ImportRowIssueWhereInputSchema.optional(), - orderBy: z.union([ ImportRowIssueOrderByWithRelationInputSchema.array(),ImportRowIssueOrderByWithRelationInputSchema ]).optional(), - cursor: ImportRowIssueWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportRowIssueGroupByArgsSchema: z.ZodType = z.object({ - where: ImportRowIssueWhereInputSchema.optional(), - orderBy: z.union([ ImportRowIssueOrderByWithAggregationInputSchema.array(),ImportRowIssueOrderByWithAggregationInputSchema ]).optional(), - by: ImportRowIssueScalarFieldEnumSchema.array(), - having: ImportRowIssueScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ImportRowIssueFindUniqueArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowIssueFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereUniqueInputSchema, -}).strict() ; - -export const UserOrganizationFindFirstArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereInputSchema.optional(), - orderBy: z.union([ UserOrganizationOrderByWithRelationInputSchema.array(),UserOrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: UserOrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserOrganizationScalarFieldEnumSchema,UserOrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserOrganizationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereInputSchema.optional(), - orderBy: z.union([ UserOrganizationOrderByWithRelationInputSchema.array(),UserOrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: UserOrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserOrganizationScalarFieldEnumSchema,UserOrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserOrganizationFindManyArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereInputSchema.optional(), - orderBy: z.union([ UserOrganizationOrderByWithRelationInputSchema.array(),UserOrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: UserOrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserOrganizationScalarFieldEnumSchema,UserOrganizationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserOrganizationAggregateArgsSchema: z.ZodType = z.object({ - where: UserOrganizationWhereInputSchema.optional(), - orderBy: z.union([ UserOrganizationOrderByWithRelationInputSchema.array(),UserOrganizationOrderByWithRelationInputSchema ]).optional(), - cursor: UserOrganizationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const UserOrganizationGroupByArgsSchema: z.ZodType = z.object({ - where: UserOrganizationWhereInputSchema.optional(), - orderBy: z.union([ UserOrganizationOrderByWithAggregationInputSchema.array(),UserOrganizationOrderByWithAggregationInputSchema ]).optional(), - by: UserOrganizationScalarFieldEnumSchema.array(), - having: UserOrganizationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const UserOrganizationFindUniqueArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereUniqueInputSchema, -}).strict() ; - -export const UserOrganizationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereUniqueInputSchema, -}).strict() ; - -export const CustomerFindFirstArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereInputSchema.optional(), - orderBy: z.union([ CustomerOrderByWithRelationInputSchema.array(),CustomerOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerScalarFieldEnumSchema,CustomerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereInputSchema.optional(), - orderBy: z.union([ CustomerOrderByWithRelationInputSchema.array(),CustomerOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerScalarFieldEnumSchema,CustomerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerFindManyArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereInputSchema.optional(), - orderBy: z.union([ CustomerOrderByWithRelationInputSchema.array(),CustomerOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerScalarFieldEnumSchema,CustomerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerAggregateArgsSchema: z.ZodType = z.object({ - where: CustomerWhereInputSchema.optional(), - orderBy: z.union([ CustomerOrderByWithRelationInputSchema.array(),CustomerOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomerGroupByArgsSchema: z.ZodType = z.object({ - where: CustomerWhereInputSchema.optional(), - orderBy: z.union([ CustomerOrderByWithAggregationInputSchema.array(),CustomerOrderByWithAggregationInputSchema ]).optional(), - by: CustomerScalarFieldEnumSchema.array(), - having: CustomerScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomerFindUniqueArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereUniqueInputSchema, -}).strict() ; - -export const CustomerFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereUniqueInputSchema, -}).strict() ; - -export const CustomerInteractionFindFirstArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereInputSchema.optional(), - orderBy: z.union([ CustomerInteractionOrderByWithRelationInputSchema.array(),CustomerInteractionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerInteractionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerInteractionScalarFieldEnumSchema,CustomerInteractionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerInteractionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereInputSchema.optional(), - orderBy: z.union([ CustomerInteractionOrderByWithRelationInputSchema.array(),CustomerInteractionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerInteractionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerInteractionScalarFieldEnumSchema,CustomerInteractionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerInteractionFindManyArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereInputSchema.optional(), - orderBy: z.union([ CustomerInteractionOrderByWithRelationInputSchema.array(),CustomerInteractionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerInteractionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CustomerInteractionScalarFieldEnumSchema,CustomerInteractionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CustomerInteractionAggregateArgsSchema: z.ZodType = z.object({ - where: CustomerInteractionWhereInputSchema.optional(), - orderBy: z.union([ CustomerInteractionOrderByWithRelationInputSchema.array(),CustomerInteractionOrderByWithRelationInputSchema ]).optional(), - cursor: CustomerInteractionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomerInteractionGroupByArgsSchema: z.ZodType = z.object({ - where: CustomerInteractionWhereInputSchema.optional(), - orderBy: z.union([ CustomerInteractionOrderByWithAggregationInputSchema.array(),CustomerInteractionOrderByWithAggregationInputSchema ]).optional(), - by: CustomerInteractionScalarFieldEnumSchema.array(), - having: CustomerInteractionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CustomerInteractionFindUniqueArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereUniqueInputSchema, -}).strict() ; - -export const CustomerInteractionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereUniqueInputSchema, -}).strict() ; - -export const DealFindFirstArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereInputSchema.optional(), - orderBy: z.union([ DealOrderByWithRelationInputSchema.array(),DealOrderByWithRelationInputSchema ]).optional(), - cursor: DealWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ DealScalarFieldEnumSchema,DealScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const DealFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereInputSchema.optional(), - orderBy: z.union([ DealOrderByWithRelationInputSchema.array(),DealOrderByWithRelationInputSchema ]).optional(), - cursor: DealWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ DealScalarFieldEnumSchema,DealScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const DealFindManyArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereInputSchema.optional(), - orderBy: z.union([ DealOrderByWithRelationInputSchema.array(),DealOrderByWithRelationInputSchema ]).optional(), - cursor: DealWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ DealScalarFieldEnumSchema,DealScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const DealAggregateArgsSchema: z.ZodType = z.object({ - where: DealWhereInputSchema.optional(), - orderBy: z.union([ DealOrderByWithRelationInputSchema.array(),DealOrderByWithRelationInputSchema ]).optional(), - cursor: DealWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const DealGroupByArgsSchema: z.ZodType = z.object({ - where: DealWhereInputSchema.optional(), - orderBy: z.union([ DealOrderByWithAggregationInputSchema.array(),DealOrderByWithAggregationInputSchema ]).optional(), - by: DealScalarFieldEnumSchema.array(), - having: DealScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const DealFindUniqueArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereUniqueInputSchema, -}).strict() ; - -export const DealFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereUniqueInputSchema, -}).strict() ; - -export const ProjectFindFirstArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereInputSchema.optional(), - orderBy: z.union([ ProjectOrderByWithRelationInputSchema.array(),ProjectOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectScalarFieldEnumSchema,ProjectScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereInputSchema.optional(), - orderBy: z.union([ ProjectOrderByWithRelationInputSchema.array(),ProjectOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectScalarFieldEnumSchema,ProjectScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectFindManyArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereInputSchema.optional(), - orderBy: z.union([ ProjectOrderByWithRelationInputSchema.array(),ProjectOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectScalarFieldEnumSchema,ProjectScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectAggregateArgsSchema: z.ZodType = z.object({ - where: ProjectWhereInputSchema.optional(), - orderBy: z.union([ ProjectOrderByWithRelationInputSchema.array(),ProjectOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ProjectGroupByArgsSchema: z.ZodType = z.object({ - where: ProjectWhereInputSchema.optional(), - orderBy: z.union([ ProjectOrderByWithAggregationInputSchema.array(),ProjectOrderByWithAggregationInputSchema ]).optional(), - by: ProjectScalarFieldEnumSchema.array(), - having: ProjectScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ProjectFindUniqueArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereUniqueInputSchema, -}).strict() ; - -export const ProjectFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereUniqueInputSchema, -}).strict() ; - -export const TaskFindFirstArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereInputSchema.optional(), - orderBy: z.union([ TaskOrderByWithRelationInputSchema.array(),TaskOrderByWithRelationInputSchema ]).optional(), - cursor: TaskWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TaskScalarFieldEnumSchema,TaskScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TaskFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereInputSchema.optional(), - orderBy: z.union([ TaskOrderByWithRelationInputSchema.array(),TaskOrderByWithRelationInputSchema ]).optional(), - cursor: TaskWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TaskScalarFieldEnumSchema,TaskScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TaskFindManyArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereInputSchema.optional(), - orderBy: z.union([ TaskOrderByWithRelationInputSchema.array(),TaskOrderByWithRelationInputSchema ]).optional(), - cursor: TaskWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TaskScalarFieldEnumSchema,TaskScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TaskAggregateArgsSchema: z.ZodType = z.object({ - where: TaskWhereInputSchema.optional(), - orderBy: z.union([ TaskOrderByWithRelationInputSchema.array(),TaskOrderByWithRelationInputSchema ]).optional(), - cursor: TaskWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TaskGroupByArgsSchema: z.ZodType = z.object({ - where: TaskWhereInputSchema.optional(), - orderBy: z.union([ TaskOrderByWithAggregationInputSchema.array(),TaskOrderByWithAggregationInputSchema ]).optional(), - by: TaskScalarFieldEnumSchema.array(), - having: TaskScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TaskFindUniqueArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereUniqueInputSchema, -}).strict() ; - -export const TaskFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereUniqueInputSchema, -}).strict() ; - -export const ProjectResourceFindFirstArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereInputSchema.optional(), - orderBy: z.union([ ProjectResourceOrderByWithRelationInputSchema.array(),ProjectResourceOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectResourceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectResourceScalarFieldEnumSchema,ProjectResourceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectResourceFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereInputSchema.optional(), - orderBy: z.union([ ProjectResourceOrderByWithRelationInputSchema.array(),ProjectResourceOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectResourceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectResourceScalarFieldEnumSchema,ProjectResourceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectResourceFindManyArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereInputSchema.optional(), - orderBy: z.union([ ProjectResourceOrderByWithRelationInputSchema.array(),ProjectResourceOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectResourceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ProjectResourceScalarFieldEnumSchema,ProjectResourceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ProjectResourceAggregateArgsSchema: z.ZodType = z.object({ - where: ProjectResourceWhereInputSchema.optional(), - orderBy: z.union([ ProjectResourceOrderByWithRelationInputSchema.array(),ProjectResourceOrderByWithRelationInputSchema ]).optional(), - cursor: ProjectResourceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ProjectResourceGroupByArgsSchema: z.ZodType = z.object({ - where: ProjectResourceWhereInputSchema.optional(), - orderBy: z.union([ ProjectResourceOrderByWithAggregationInputSchema.array(),ProjectResourceOrderByWithAggregationInputSchema ]).optional(), - by: ProjectResourceScalarFieldEnumSchema.array(), - having: ProjectResourceScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ProjectResourceFindUniqueArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereUniqueInputSchema, -}).strict() ; - -export const ProjectResourceFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereUniqueInputSchema, -}).strict() ; - -export const TimeEntryFindFirstArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereInputSchema.optional(), - orderBy: z.union([ TimeEntryOrderByWithRelationInputSchema.array(),TimeEntryOrderByWithRelationInputSchema ]).optional(), - cursor: TimeEntryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeEntryScalarFieldEnumSchema,TimeEntryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeEntryFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereInputSchema.optional(), - orderBy: z.union([ TimeEntryOrderByWithRelationInputSchema.array(),TimeEntryOrderByWithRelationInputSchema ]).optional(), - cursor: TimeEntryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeEntryScalarFieldEnumSchema,TimeEntryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeEntryFindManyArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereInputSchema.optional(), - orderBy: z.union([ TimeEntryOrderByWithRelationInputSchema.array(),TimeEntryOrderByWithRelationInputSchema ]).optional(), - cursor: TimeEntryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeEntryScalarFieldEnumSchema,TimeEntryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeEntryAggregateArgsSchema: z.ZodType = z.object({ - where: TimeEntryWhereInputSchema.optional(), - orderBy: z.union([ TimeEntryOrderByWithRelationInputSchema.array(),TimeEntryOrderByWithRelationInputSchema ]).optional(), - cursor: TimeEntryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TimeEntryGroupByArgsSchema: z.ZodType = z.object({ - where: TimeEntryWhereInputSchema.optional(), - orderBy: z.union([ TimeEntryOrderByWithAggregationInputSchema.array(),TimeEntryOrderByWithAggregationInputSchema ]).optional(), - by: TimeEntryScalarFieldEnumSchema.array(), - having: TimeEntryScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TimeEntryFindUniqueArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereUniqueInputSchema, -}).strict() ; - -export const TimeEntryFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceFindFirstArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereInputSchema.optional(), - orderBy: z.union([ InvoiceOrderByWithRelationInputSchema.array(),InvoiceOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceScalarFieldEnumSchema,InvoiceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereInputSchema.optional(), - orderBy: z.union([ InvoiceOrderByWithRelationInputSchema.array(),InvoiceOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceScalarFieldEnumSchema,InvoiceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceFindManyArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereInputSchema.optional(), - orderBy: z.union([ InvoiceOrderByWithRelationInputSchema.array(),InvoiceOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceScalarFieldEnumSchema,InvoiceScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceAggregateArgsSchema: z.ZodType = z.object({ - where: InvoiceWhereInputSchema.optional(), - orderBy: z.union([ InvoiceOrderByWithRelationInputSchema.array(),InvoiceOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvoiceGroupByArgsSchema: z.ZodType = z.object({ - where: InvoiceWhereInputSchema.optional(), - orderBy: z.union([ InvoiceOrderByWithAggregationInputSchema.array(),InvoiceOrderByWithAggregationInputSchema ]).optional(), - by: InvoiceScalarFieldEnumSchema.array(), - having: InvoiceScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvoiceFindUniqueArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceItemFindFirstArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereInputSchema.optional(), - orderBy: z.union([ InvoiceItemOrderByWithRelationInputSchema.array(),InvoiceItemOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceItemScalarFieldEnumSchema,InvoiceItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceItemFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereInputSchema.optional(), - orderBy: z.union([ InvoiceItemOrderByWithRelationInputSchema.array(),InvoiceItemOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceItemScalarFieldEnumSchema,InvoiceItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceItemFindManyArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereInputSchema.optional(), - orderBy: z.union([ InvoiceItemOrderByWithRelationInputSchema.array(),InvoiceItemOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvoiceItemScalarFieldEnumSchema,InvoiceItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvoiceItemAggregateArgsSchema: z.ZodType = z.object({ - where: InvoiceItemWhereInputSchema.optional(), - orderBy: z.union([ InvoiceItemOrderByWithRelationInputSchema.array(),InvoiceItemOrderByWithRelationInputSchema ]).optional(), - cursor: InvoiceItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvoiceItemGroupByArgsSchema: z.ZodType = z.object({ - where: InvoiceItemWhereInputSchema.optional(), - orderBy: z.union([ InvoiceItemOrderByWithAggregationInputSchema.array(),InvoiceItemOrderByWithAggregationInputSchema ]).optional(), - by: InvoiceItemScalarFieldEnumSchema.array(), - having: InvoiceItemScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvoiceItemFindUniqueArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceItemFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereUniqueInputSchema, -}).strict() ; - -export const PaymentFindFirstArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereInputSchema.optional(), - orderBy: z.union([ PaymentOrderByWithRelationInputSchema.array(),PaymentOrderByWithRelationInputSchema ]).optional(), - cursor: PaymentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PaymentScalarFieldEnumSchema,PaymentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PaymentFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereInputSchema.optional(), - orderBy: z.union([ PaymentOrderByWithRelationInputSchema.array(),PaymentOrderByWithRelationInputSchema ]).optional(), - cursor: PaymentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PaymentScalarFieldEnumSchema,PaymentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PaymentFindManyArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereInputSchema.optional(), - orderBy: z.union([ PaymentOrderByWithRelationInputSchema.array(),PaymentOrderByWithRelationInputSchema ]).optional(), - cursor: PaymentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PaymentScalarFieldEnumSchema,PaymentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PaymentAggregateArgsSchema: z.ZodType = z.object({ - where: PaymentWhereInputSchema.optional(), - orderBy: z.union([ PaymentOrderByWithRelationInputSchema.array(),PaymentOrderByWithRelationInputSchema ]).optional(), - cursor: PaymentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PaymentGroupByArgsSchema: z.ZodType = z.object({ - where: PaymentWhereInputSchema.optional(), - orderBy: z.union([ PaymentOrderByWithAggregationInputSchema.array(),PaymentOrderByWithAggregationInputSchema ]).optional(), - by: PaymentScalarFieldEnumSchema.array(), - having: PaymentScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PaymentFindUniqueArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereUniqueInputSchema, -}).strict() ; - -export const PaymentFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseFindFirstArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereInputSchema.optional(), - orderBy: z.union([ ExpenseOrderByWithRelationInputSchema.array(),ExpenseOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseScalarFieldEnumSchema,ExpenseScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereInputSchema.optional(), - orderBy: z.union([ ExpenseOrderByWithRelationInputSchema.array(),ExpenseOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseScalarFieldEnumSchema,ExpenseScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseFindManyArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereInputSchema.optional(), - orderBy: z.union([ ExpenseOrderByWithRelationInputSchema.array(),ExpenseOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseScalarFieldEnumSchema,ExpenseScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseAggregateArgsSchema: z.ZodType = z.object({ - where: ExpenseWhereInputSchema.optional(), - orderBy: z.union([ ExpenseOrderByWithRelationInputSchema.array(),ExpenseOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseGroupByArgsSchema: z.ZodType = z.object({ - where: ExpenseWhereInputSchema.optional(), - orderBy: z.union([ ExpenseOrderByWithAggregationInputSchema.array(),ExpenseOrderByWithAggregationInputSchema ]).optional(), - by: ExpenseScalarFieldEnumSchema.array(), - having: ExpenseScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseCategoryFindFirstArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereInputSchema.optional(), - orderBy: z.union([ ExpenseCategoryOrderByWithRelationInputSchema.array(),ExpenseCategoryOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseCategoryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseCategoryScalarFieldEnumSchema,ExpenseCategoryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseCategoryFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereInputSchema.optional(), - orderBy: z.union([ ExpenseCategoryOrderByWithRelationInputSchema.array(),ExpenseCategoryOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseCategoryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseCategoryScalarFieldEnumSchema,ExpenseCategoryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseCategoryFindManyArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereInputSchema.optional(), - orderBy: z.union([ ExpenseCategoryOrderByWithRelationInputSchema.array(),ExpenseCategoryOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseCategoryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseCategoryScalarFieldEnumSchema,ExpenseCategoryScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseCategoryAggregateArgsSchema: z.ZodType = z.object({ - where: ExpenseCategoryWhereInputSchema.optional(), - orderBy: z.union([ ExpenseCategoryOrderByWithRelationInputSchema.array(),ExpenseCategoryOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseCategoryWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseCategoryGroupByArgsSchema: z.ZodType = z.object({ - where: ExpenseCategoryWhereInputSchema.optional(), - orderBy: z.union([ ExpenseCategoryOrderByWithAggregationInputSchema.array(),ExpenseCategoryOrderByWithAggregationInputSchema ]).optional(), - by: ExpenseCategoryScalarFieldEnumSchema.array(), - having: ExpenseCategoryScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseCategoryFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseCategoryFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseTagFindFirstArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseTagOrderByWithRelationInputSchema.array(),ExpenseTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseTagScalarFieldEnumSchema,ExpenseTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseTagFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseTagOrderByWithRelationInputSchema.array(),ExpenseTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseTagScalarFieldEnumSchema,ExpenseTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseTagFindManyArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseTagOrderByWithRelationInputSchema.array(),ExpenseTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseTagScalarFieldEnumSchema,ExpenseTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseTagAggregateArgsSchema: z.ZodType = z.object({ - where: ExpenseTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseTagOrderByWithRelationInputSchema.array(),ExpenseTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseTagGroupByArgsSchema: z.ZodType = z.object({ - where: ExpenseTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseTagOrderByWithAggregationInputSchema.array(),ExpenseTagOrderByWithAggregationInputSchema ]).optional(), - by: ExpenseTagScalarFieldEnumSchema.array(), - having: ExpenseTagScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseTagFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseTagFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseToTagFindFirstArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseToTagOrderByWithRelationInputSchema.array(),ExpenseToTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseToTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseToTagScalarFieldEnumSchema,ExpenseToTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseToTagFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseToTagOrderByWithRelationInputSchema.array(),ExpenseToTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseToTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseToTagScalarFieldEnumSchema,ExpenseToTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseToTagFindManyArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseToTagOrderByWithRelationInputSchema.array(),ExpenseToTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseToTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExpenseToTagScalarFieldEnumSchema,ExpenseToTagScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExpenseToTagAggregateArgsSchema: z.ZodType = z.object({ - where: ExpenseToTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseToTagOrderByWithRelationInputSchema.array(),ExpenseToTagOrderByWithRelationInputSchema ]).optional(), - cursor: ExpenseToTagWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseToTagGroupByArgsSchema: z.ZodType = z.object({ - where: ExpenseToTagWhereInputSchema.optional(), - orderBy: z.union([ ExpenseToTagOrderByWithAggregationInputSchema.array(),ExpenseToTagOrderByWithAggregationInputSchema ]).optional(), - by: ExpenseToTagScalarFieldEnumSchema.array(), - having: ExpenseToTagScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExpenseToTagFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseToTagFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereUniqueInputSchema, -}).strict() ; - -export const CommentFindFirstArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereInputSchema.optional(), - orderBy: z.union([ CommentOrderByWithRelationInputSchema.array(),CommentOrderByWithRelationInputSchema ]).optional(), - cursor: CommentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CommentScalarFieldEnumSchema,CommentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CommentFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereInputSchema.optional(), - orderBy: z.union([ CommentOrderByWithRelationInputSchema.array(),CommentOrderByWithRelationInputSchema ]).optional(), - cursor: CommentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CommentScalarFieldEnumSchema,CommentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CommentFindManyArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereInputSchema.optional(), - orderBy: z.union([ CommentOrderByWithRelationInputSchema.array(),CommentOrderByWithRelationInputSchema ]).optional(), - cursor: CommentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CommentScalarFieldEnumSchema,CommentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CommentAggregateArgsSchema: z.ZodType = z.object({ - where: CommentWhereInputSchema.optional(), - orderBy: z.union([ CommentOrderByWithRelationInputSchema.array(),CommentOrderByWithRelationInputSchema ]).optional(), - cursor: CommentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CommentGroupByArgsSchema: z.ZodType = z.object({ - where: CommentWhereInputSchema.optional(), - orderBy: z.union([ CommentOrderByWithAggregationInputSchema.array(),CommentOrderByWithAggregationInputSchema ]).optional(), - by: CommentScalarFieldEnumSchema.array(), - having: CommentScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CommentFindUniqueArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereUniqueInputSchema, -}).strict() ; - -export const CommentFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereUniqueInputSchema, -}).strict() ; - -export const AttachmentFindFirstArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereInputSchema.optional(), - orderBy: z.union([ AttachmentOrderByWithRelationInputSchema.array(),AttachmentOrderByWithRelationInputSchema ]).optional(), - cursor: AttachmentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AttachmentScalarFieldEnumSchema,AttachmentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AttachmentFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereInputSchema.optional(), - orderBy: z.union([ AttachmentOrderByWithRelationInputSchema.array(),AttachmentOrderByWithRelationInputSchema ]).optional(), - cursor: AttachmentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AttachmentScalarFieldEnumSchema,AttachmentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AttachmentFindManyArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereInputSchema.optional(), - orderBy: z.union([ AttachmentOrderByWithRelationInputSchema.array(),AttachmentOrderByWithRelationInputSchema ]).optional(), - cursor: AttachmentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AttachmentScalarFieldEnumSchema,AttachmentScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AttachmentAggregateArgsSchema: z.ZodType = z.object({ - where: AttachmentWhereInputSchema.optional(), - orderBy: z.union([ AttachmentOrderByWithRelationInputSchema.array(),AttachmentOrderByWithRelationInputSchema ]).optional(), - cursor: AttachmentWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const AttachmentGroupByArgsSchema: z.ZodType = z.object({ - where: AttachmentWhereInputSchema.optional(), - orderBy: z.union([ AttachmentOrderByWithAggregationInputSchema.array(),AttachmentOrderByWithAggregationInputSchema ]).optional(), - by: AttachmentScalarFieldEnumSchema.array(), - having: AttachmentScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const AttachmentFindUniqueArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereUniqueInputSchema, -}).strict() ; - -export const AttachmentFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventFindFirstArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventOrderByWithRelationInputSchema.array(),CalendarEventOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventScalarFieldEnumSchema,CalendarEventScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventOrderByWithRelationInputSchema.array(),CalendarEventOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventScalarFieldEnumSchema,CalendarEventScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventFindManyArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventOrderByWithRelationInputSchema.array(),CalendarEventOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventScalarFieldEnumSchema,CalendarEventScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventAggregateArgsSchema: z.ZodType = z.object({ - where: CalendarEventWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventOrderByWithRelationInputSchema.array(),CalendarEventOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarEventGroupByArgsSchema: z.ZodType = z.object({ - where: CalendarEventWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventOrderByWithAggregationInputSchema.array(),CalendarEventOrderByWithAggregationInputSchema ]).optional(), - by: CalendarEventScalarFieldEnumSchema.array(), - having: CalendarEventScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarEventFindUniqueArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventAttendeeFindFirstArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventAttendeeOrderByWithRelationInputSchema.array(),CalendarEventAttendeeOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventAttendeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventAttendeeScalarFieldEnumSchema,CalendarEventAttendeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventAttendeeFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventAttendeeOrderByWithRelationInputSchema.array(),CalendarEventAttendeeOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventAttendeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventAttendeeScalarFieldEnumSchema,CalendarEventAttendeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventAttendeeFindManyArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventAttendeeOrderByWithRelationInputSchema.array(),CalendarEventAttendeeOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventAttendeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarEventAttendeeScalarFieldEnumSchema,CalendarEventAttendeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarEventAttendeeAggregateArgsSchema: z.ZodType = z.object({ - where: CalendarEventAttendeeWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventAttendeeOrderByWithRelationInputSchema.array(),CalendarEventAttendeeOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarEventAttendeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarEventAttendeeGroupByArgsSchema: z.ZodType = z.object({ - where: CalendarEventAttendeeWhereInputSchema.optional(), - orderBy: z.union([ CalendarEventAttendeeOrderByWithAggregationInputSchema.array(),CalendarEventAttendeeOrderByWithAggregationInputSchema ]).optional(), - by: CalendarEventAttendeeScalarFieldEnumSchema.array(), - having: CalendarEventAttendeeScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarEventAttendeeFindUniqueArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventAttendeeFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereUniqueInputSchema, -}).strict() ; - -export const NotificationFindFirstArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereInputSchema.optional(), - orderBy: z.union([ NotificationOrderByWithRelationInputSchema.array(),NotificationOrderByWithRelationInputSchema ]).optional(), - cursor: NotificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NotificationScalarFieldEnumSchema,NotificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NotificationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereInputSchema.optional(), - orderBy: z.union([ NotificationOrderByWithRelationInputSchema.array(),NotificationOrderByWithRelationInputSchema ]).optional(), - cursor: NotificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NotificationScalarFieldEnumSchema,NotificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NotificationFindManyArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereInputSchema.optional(), - orderBy: z.union([ NotificationOrderByWithRelationInputSchema.array(),NotificationOrderByWithRelationInputSchema ]).optional(), - cursor: NotificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NotificationScalarFieldEnumSchema,NotificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NotificationAggregateArgsSchema: z.ZodType = z.object({ - where: NotificationWhereInputSchema.optional(), - orderBy: z.union([ NotificationOrderByWithRelationInputSchema.array(),NotificationOrderByWithRelationInputSchema ]).optional(), - cursor: NotificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NotificationGroupByArgsSchema: z.ZodType = z.object({ - where: NotificationWhereInputSchema.optional(), - orderBy: z.union([ NotificationOrderByWithAggregationInputSchema.array(),NotificationOrderByWithAggregationInputSchema ]).optional(), - by: NotificationScalarFieldEnumSchema.array(), - having: NotificationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NotificationFindUniqueArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereUniqueInputSchema, -}).strict() ; - -export const NotificationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereUniqueInputSchema, -}).strict() ; - -export const InvitationFindFirstArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereInputSchema.optional(), - orderBy: z.union([ InvitationOrderByWithRelationInputSchema.array(),InvitationOrderByWithRelationInputSchema ]).optional(), - cursor: InvitationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvitationScalarFieldEnumSchema,InvitationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvitationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereInputSchema.optional(), - orderBy: z.union([ InvitationOrderByWithRelationInputSchema.array(),InvitationOrderByWithRelationInputSchema ]).optional(), - cursor: InvitationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvitationScalarFieldEnumSchema,InvitationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvitationFindManyArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereInputSchema.optional(), - orderBy: z.union([ InvitationOrderByWithRelationInputSchema.array(),InvitationOrderByWithRelationInputSchema ]).optional(), - cursor: InvitationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ InvitationScalarFieldEnumSchema,InvitationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const InvitationAggregateArgsSchema: z.ZodType = z.object({ - where: InvitationWhereInputSchema.optional(), - orderBy: z.union([ InvitationOrderByWithRelationInputSchema.array(),InvitationOrderByWithRelationInputSchema ]).optional(), - cursor: InvitationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvitationGroupByArgsSchema: z.ZodType = z.object({ - where: InvitationWhereInputSchema.optional(), - orderBy: z.union([ InvitationOrderByWithAggregationInputSchema.array(),InvitationOrderByWithAggregationInputSchema ]).optional(), - by: InvitationScalarFieldEnumSchema.array(), - having: InvitationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const InvitationFindUniqueArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereUniqueInputSchema, -}).strict() ; - -export const InvitationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereUniqueInputSchema, -}).strict() ; - -export const EmployeeFindFirstArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereInputSchema.optional(), - orderBy: z.union([ EmployeeOrderByWithRelationInputSchema.array(),EmployeeOrderByWithRelationInputSchema ]).optional(), - cursor: EmployeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmployeeScalarFieldEnumSchema,EmployeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmployeeFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereInputSchema.optional(), - orderBy: z.union([ EmployeeOrderByWithRelationInputSchema.array(),EmployeeOrderByWithRelationInputSchema ]).optional(), - cursor: EmployeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmployeeScalarFieldEnumSchema,EmployeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmployeeFindManyArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereInputSchema.optional(), - orderBy: z.union([ EmployeeOrderByWithRelationInputSchema.array(),EmployeeOrderByWithRelationInputSchema ]).optional(), - cursor: EmployeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmployeeScalarFieldEnumSchema,EmployeeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmployeeAggregateArgsSchema: z.ZodType = z.object({ - where: EmployeeWhereInputSchema.optional(), - orderBy: z.union([ EmployeeOrderByWithRelationInputSchema.array(),EmployeeOrderByWithRelationInputSchema ]).optional(), - cursor: EmployeeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmployeeGroupByArgsSchema: z.ZodType = z.object({ - where: EmployeeWhereInputSchema.optional(), - orderBy: z.union([ EmployeeOrderByWithAggregationInputSchema.array(),EmployeeOrderByWithAggregationInputSchema ]).optional(), - by: EmployeeScalarFieldEnumSchema.array(), - having: EmployeeScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmployeeFindUniqueArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereUniqueInputSchema, -}).strict() ; - -export const EmployeeFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereUniqueInputSchema, -}).strict() ; - -export const PayrollFindFirstArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereInputSchema.optional(), - orderBy: z.union([ PayrollOrderByWithRelationInputSchema.array(),PayrollOrderByWithRelationInputSchema ]).optional(), - cursor: PayrollWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PayrollScalarFieldEnumSchema,PayrollScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PayrollFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereInputSchema.optional(), - orderBy: z.union([ PayrollOrderByWithRelationInputSchema.array(),PayrollOrderByWithRelationInputSchema ]).optional(), - cursor: PayrollWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PayrollScalarFieldEnumSchema,PayrollScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PayrollFindManyArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereInputSchema.optional(), - orderBy: z.union([ PayrollOrderByWithRelationInputSchema.array(),PayrollOrderByWithRelationInputSchema ]).optional(), - cursor: PayrollWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PayrollScalarFieldEnumSchema,PayrollScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PayrollAggregateArgsSchema: z.ZodType = z.object({ - where: PayrollWhereInputSchema.optional(), - orderBy: z.union([ PayrollOrderByWithRelationInputSchema.array(),PayrollOrderByWithRelationInputSchema ]).optional(), - cursor: PayrollWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PayrollGroupByArgsSchema: z.ZodType = z.object({ - where: PayrollWhereInputSchema.optional(), - orderBy: z.union([ PayrollOrderByWithAggregationInputSchema.array(),PayrollOrderByWithAggregationInputSchema ]).optional(), - by: PayrollScalarFieldEnumSchema.array(), - having: PayrollScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PayrollFindUniqueArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereUniqueInputSchema, -}).strict() ; - -export const PayrollFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereUniqueInputSchema, -}).strict() ; - -export const TimeOffFindFirstArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereInputSchema.optional(), - orderBy: z.union([ TimeOffOrderByWithRelationInputSchema.array(),TimeOffOrderByWithRelationInputSchema ]).optional(), - cursor: TimeOffWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeOffScalarFieldEnumSchema,TimeOffScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeOffFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereInputSchema.optional(), - orderBy: z.union([ TimeOffOrderByWithRelationInputSchema.array(),TimeOffOrderByWithRelationInputSchema ]).optional(), - cursor: TimeOffWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeOffScalarFieldEnumSchema,TimeOffScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeOffFindManyArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereInputSchema.optional(), - orderBy: z.union([ TimeOffOrderByWithRelationInputSchema.array(),TimeOffOrderByWithRelationInputSchema ]).optional(), - cursor: TimeOffWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TimeOffScalarFieldEnumSchema,TimeOffScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TimeOffAggregateArgsSchema: z.ZodType = z.object({ - where: TimeOffWhereInputSchema.optional(), - orderBy: z.union([ TimeOffOrderByWithRelationInputSchema.array(),TimeOffOrderByWithRelationInputSchema ]).optional(), - cursor: TimeOffWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TimeOffGroupByArgsSchema: z.ZodType = z.object({ - where: TimeOffWhereInputSchema.optional(), - orderBy: z.union([ TimeOffOrderByWithAggregationInputSchema.array(),TimeOffOrderByWithAggregationInputSchema ]).optional(), - by: TimeOffScalarFieldEnumSchema.array(), - having: TimeOffScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TimeOffFindUniqueArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereUniqueInputSchema, -}).strict() ; - -export const TimeOffFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereUniqueInputSchema, -}).strict() ; - -export const PerformanceReviewFindFirstArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereInputSchema.optional(), - orderBy: z.union([ PerformanceReviewOrderByWithRelationInputSchema.array(),PerformanceReviewOrderByWithRelationInputSchema ]).optional(), - cursor: PerformanceReviewWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PerformanceReviewScalarFieldEnumSchema,PerformanceReviewScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PerformanceReviewFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereInputSchema.optional(), - orderBy: z.union([ PerformanceReviewOrderByWithRelationInputSchema.array(),PerformanceReviewOrderByWithRelationInputSchema ]).optional(), - cursor: PerformanceReviewWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PerformanceReviewScalarFieldEnumSchema,PerformanceReviewScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PerformanceReviewFindManyArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereInputSchema.optional(), - orderBy: z.union([ PerformanceReviewOrderByWithRelationInputSchema.array(),PerformanceReviewOrderByWithRelationInputSchema ]).optional(), - cursor: PerformanceReviewWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ PerformanceReviewScalarFieldEnumSchema,PerformanceReviewScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const PerformanceReviewAggregateArgsSchema: z.ZodType = z.object({ - where: PerformanceReviewWhereInputSchema.optional(), - orderBy: z.union([ PerformanceReviewOrderByWithRelationInputSchema.array(),PerformanceReviewOrderByWithRelationInputSchema ]).optional(), - cursor: PerformanceReviewWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PerformanceReviewGroupByArgsSchema: z.ZodType = z.object({ - where: PerformanceReviewWhereInputSchema.optional(), - orderBy: z.union([ PerformanceReviewOrderByWithAggregationInputSchema.array(),PerformanceReviewOrderByWithAggregationInputSchema ]).optional(), - by: PerformanceReviewScalarFieldEnumSchema.array(), - having: PerformanceReviewScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const PerformanceReviewFindUniqueArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereUniqueInputSchema, -}).strict() ; - -export const PerformanceReviewFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereUniqueInputSchema, -}).strict() ; - -export const MarketingCampaignFindFirstArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereInputSchema.optional(), - orderBy: z.union([ MarketingCampaignOrderByWithRelationInputSchema.array(),MarketingCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: MarketingCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MarketingCampaignScalarFieldEnumSchema,MarketingCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const MarketingCampaignFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereInputSchema.optional(), - orderBy: z.union([ MarketingCampaignOrderByWithRelationInputSchema.array(),MarketingCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: MarketingCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MarketingCampaignScalarFieldEnumSchema,MarketingCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const MarketingCampaignFindManyArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereInputSchema.optional(), - orderBy: z.union([ MarketingCampaignOrderByWithRelationInputSchema.array(),MarketingCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: MarketingCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ MarketingCampaignScalarFieldEnumSchema,MarketingCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const MarketingCampaignAggregateArgsSchema: z.ZodType = z.object({ - where: MarketingCampaignWhereInputSchema.optional(), - orderBy: z.union([ MarketingCampaignOrderByWithRelationInputSchema.array(),MarketingCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: MarketingCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const MarketingCampaignGroupByArgsSchema: z.ZodType = z.object({ - where: MarketingCampaignWhereInputSchema.optional(), - orderBy: z.union([ MarketingCampaignOrderByWithAggregationInputSchema.array(),MarketingCampaignOrderByWithAggregationInputSchema ]).optional(), - by: MarketingCampaignScalarFieldEnumSchema.array(), - having: MarketingCampaignScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const MarketingCampaignFindUniqueArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereUniqueInputSchema, -}).strict() ; - -export const MarketingCampaignFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereUniqueInputSchema, -}).strict() ; - -export const EmailCampaignFindFirstArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereInputSchema.optional(), - orderBy: z.union([ EmailCampaignOrderByWithRelationInputSchema.array(),EmailCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: EmailCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailCampaignScalarFieldEnumSchema,EmailCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailCampaignFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereInputSchema.optional(), - orderBy: z.union([ EmailCampaignOrderByWithRelationInputSchema.array(),EmailCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: EmailCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailCampaignScalarFieldEnumSchema,EmailCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailCampaignFindManyArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereInputSchema.optional(), - orderBy: z.union([ EmailCampaignOrderByWithRelationInputSchema.array(),EmailCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: EmailCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailCampaignScalarFieldEnumSchema,EmailCampaignScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailCampaignAggregateArgsSchema: z.ZodType = z.object({ - where: EmailCampaignWhereInputSchema.optional(), - orderBy: z.union([ EmailCampaignOrderByWithRelationInputSchema.array(),EmailCampaignOrderByWithRelationInputSchema ]).optional(), - cursor: EmailCampaignWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmailCampaignGroupByArgsSchema: z.ZodType = z.object({ - where: EmailCampaignWhereInputSchema.optional(), - orderBy: z.union([ EmailCampaignOrderByWithAggregationInputSchema.array(),EmailCampaignOrderByWithAggregationInputSchema ]).optional(), - by: EmailCampaignScalarFieldEnumSchema.array(), - having: EmailCampaignScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmailCampaignFindUniqueArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereUniqueInputSchema, -}).strict() ; - -export const EmailCampaignFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereUniqueInputSchema, -}).strict() ; - -export const SocialMediaPostFindFirstArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereInputSchema.optional(), - orderBy: z.union([ SocialMediaPostOrderByWithRelationInputSchema.array(),SocialMediaPostOrderByWithRelationInputSchema ]).optional(), - cursor: SocialMediaPostWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SocialMediaPostScalarFieldEnumSchema,SocialMediaPostScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SocialMediaPostFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereInputSchema.optional(), - orderBy: z.union([ SocialMediaPostOrderByWithRelationInputSchema.array(),SocialMediaPostOrderByWithRelationInputSchema ]).optional(), - cursor: SocialMediaPostWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SocialMediaPostScalarFieldEnumSchema,SocialMediaPostScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SocialMediaPostFindManyArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereInputSchema.optional(), - orderBy: z.union([ SocialMediaPostOrderByWithRelationInputSchema.array(),SocialMediaPostOrderByWithRelationInputSchema ]).optional(), - cursor: SocialMediaPostWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SocialMediaPostScalarFieldEnumSchema,SocialMediaPostScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SocialMediaPostAggregateArgsSchema: z.ZodType = z.object({ - where: SocialMediaPostWhereInputSchema.optional(), - orderBy: z.union([ SocialMediaPostOrderByWithRelationInputSchema.array(),SocialMediaPostOrderByWithRelationInputSchema ]).optional(), - cursor: SocialMediaPostWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SocialMediaPostGroupByArgsSchema: z.ZodType = z.object({ - where: SocialMediaPostWhereInputSchema.optional(), - orderBy: z.union([ SocialMediaPostOrderByWithAggregationInputSchema.array(),SocialMediaPostOrderByWithAggregationInputSchema ]).optional(), - by: SocialMediaPostScalarFieldEnumSchema.array(), - having: SocialMediaPostScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SocialMediaPostFindUniqueArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereUniqueInputSchema, -}).strict() ; - -export const SocialMediaPostFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereUniqueInputSchema, -}).strict() ; - -export const UserFindFirstArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserFindManyArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ UserScalarFieldEnumSchema,UserScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const UserAggregateArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithRelationInputSchema.array(),UserOrderByWithRelationInputSchema ]).optional(), - cursor: UserWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const UserGroupByArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), - orderBy: z.union([ UserOrderByWithAggregationInputSchema.array(),UserOrderByWithAggregationInputSchema ]).optional(), - by: UserScalarFieldEnumSchema.array(), - having: UserScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const UserFindUniqueArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() ; - -export const UserFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() ; - -export const SessionFindFirstArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SessionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SessionFindManyArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SessionScalarFieldEnumSchema,SessionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SessionAggregateArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithRelationInputSchema.array(),SessionOrderByWithRelationInputSchema ]).optional(), - cursor: SessionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SessionGroupByArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), - orderBy: z.union([ SessionOrderByWithAggregationInputSchema.array(),SessionOrderByWithAggregationInputSchema ]).optional(), - by: SessionScalarFieldEnumSchema.array(), - having: SessionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SessionFindUniqueArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() ; - -export const SessionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() ; - -export const AccountFindFirstArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AccountFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AccountFindManyArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ AccountScalarFieldEnumSchema,AccountScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const AccountAggregateArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithRelationInputSchema.array(),AccountOrderByWithRelationInputSchema ]).optional(), - cursor: AccountWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const AccountGroupByArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), - orderBy: z.union([ AccountOrderByWithAggregationInputSchema.array(),AccountOrderByWithAggregationInputSchema ]).optional(), - by: AccountScalarFieldEnumSchema.array(), - having: AccountScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const AccountFindUniqueArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() ; - -export const AccountFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() ; - -export const VerificationFindFirstArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereInputSchema.optional(), - orderBy: z.union([ VerificationOrderByWithRelationInputSchema.array(),VerificationOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationScalarFieldEnumSchema,VerificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VerificationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereInputSchema.optional(), - orderBy: z.union([ VerificationOrderByWithRelationInputSchema.array(),VerificationOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationScalarFieldEnumSchema,VerificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VerificationFindManyArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereInputSchema.optional(), - orderBy: z.union([ VerificationOrderByWithRelationInputSchema.array(),VerificationOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VerificationScalarFieldEnumSchema,VerificationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VerificationAggregateArgsSchema: z.ZodType = z.object({ - where: VerificationWhereInputSchema.optional(), - orderBy: z.union([ VerificationOrderByWithRelationInputSchema.array(),VerificationOrderByWithRelationInputSchema ]).optional(), - cursor: VerificationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const VerificationGroupByArgsSchema: z.ZodType = z.object({ - where: VerificationWhereInputSchema.optional(), - orderBy: z.union([ VerificationOrderByWithAggregationInputSchema.array(),VerificationOrderByWithAggregationInputSchema ]).optional(), - by: VerificationScalarFieldEnumSchema.array(), - having: VerificationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const VerificationFindUniqueArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereUniqueInputSchema, -}).strict() ; - -export const VerificationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportFindFirstArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportOrderByWithRelationInputSchema.array(),FinancialReportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScalarFieldEnumSchema,FinancialReportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportOrderByWithRelationInputSchema.array(),FinancialReportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScalarFieldEnumSchema,FinancialReportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportFindManyArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportOrderByWithRelationInputSchema.array(),FinancialReportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScalarFieldEnumSchema,FinancialReportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportAggregateArgsSchema: z.ZodType = z.object({ - where: FinancialReportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportOrderByWithRelationInputSchema.array(),FinancialReportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportGroupByArgsSchema: z.ZodType = z.object({ - where: FinancialReportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportOrderByWithAggregationInputSchema.array(),FinancialReportOrderByWithAggregationInputSchema ]).optional(), - by: FinancialReportScalarFieldEnumSchema.array(), - having: FinancialReportScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportFindUniqueArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportDataFindFirstArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportDataOrderByWithRelationInputSchema.array(),FinancialReportDataOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportDataWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportDataScalarFieldEnumSchema,FinancialReportDataScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportDataFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportDataOrderByWithRelationInputSchema.array(),FinancialReportDataOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportDataWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportDataScalarFieldEnumSchema,FinancialReportDataScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportDataFindManyArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportDataOrderByWithRelationInputSchema.array(),FinancialReportDataOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportDataWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportDataScalarFieldEnumSchema,FinancialReportDataScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportDataAggregateArgsSchema: z.ZodType = z.object({ - where: FinancialReportDataWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportDataOrderByWithRelationInputSchema.array(),FinancialReportDataOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportDataWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportDataGroupByArgsSchema: z.ZodType = z.object({ - where: FinancialReportDataWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportDataOrderByWithAggregationInputSchema.array(),FinancialReportDataOrderByWithAggregationInputSchema ]).optional(), - by: FinancialReportDataScalarFieldEnumSchema.array(), - having: FinancialReportDataScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportDataFindUniqueArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportDataFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportExportFindFirstArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportExportOrderByWithRelationInputSchema.array(),FinancialReportExportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportExportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportExportScalarFieldEnumSchema,FinancialReportExportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportExportFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportExportOrderByWithRelationInputSchema.array(),FinancialReportExportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportExportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportExportScalarFieldEnumSchema,FinancialReportExportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportExportFindManyArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportExportOrderByWithRelationInputSchema.array(),FinancialReportExportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportExportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportExportScalarFieldEnumSchema,FinancialReportExportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportExportAggregateArgsSchema: z.ZodType = z.object({ - where: FinancialReportExportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportExportOrderByWithRelationInputSchema.array(),FinancialReportExportOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportExportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportExportGroupByArgsSchema: z.ZodType = z.object({ - where: FinancialReportExportWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportExportOrderByWithAggregationInputSchema.array(),FinancialReportExportOrderByWithAggregationInputSchema ]).optional(), - by: FinancialReportExportScalarFieldEnumSchema.array(), - having: FinancialReportExportScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportExportFindUniqueArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportExportFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportScheduleFindFirstArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportScheduleOrderByWithRelationInputSchema.array(),FinancialReportScheduleOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportScheduleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScheduleScalarFieldEnumSchema,FinancialReportScheduleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportScheduleFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportScheduleOrderByWithRelationInputSchema.array(),FinancialReportScheduleOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportScheduleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScheduleScalarFieldEnumSchema,FinancialReportScheduleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportScheduleFindManyArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportScheduleOrderByWithRelationInputSchema.array(),FinancialReportScheduleOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportScheduleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ FinancialReportScheduleScalarFieldEnumSchema,FinancialReportScheduleScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const FinancialReportScheduleAggregateArgsSchema: z.ZodType = z.object({ - where: FinancialReportScheduleWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportScheduleOrderByWithRelationInputSchema.array(),FinancialReportScheduleOrderByWithRelationInputSchema ]).optional(), - cursor: FinancialReportScheduleWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportScheduleGroupByArgsSchema: z.ZodType = z.object({ - where: FinancialReportScheduleWhereInputSchema.optional(), - orderBy: z.union([ FinancialReportScheduleOrderByWithAggregationInputSchema.array(),FinancialReportScheduleOrderByWithAggregationInputSchema ]).optional(), - by: FinancialReportScheduleScalarFieldEnumSchema.array(), - having: FinancialReportScheduleScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const FinancialReportScheduleFindUniqueArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportScheduleFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereUniqueInputSchema, -}).strict() ; - -export const TemplatePackageFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereInputSchema.optional(), - orderBy: z.union([ TemplatePackageOrderByWithRelationInputSchema.array(),TemplatePackageOrderByWithRelationInputSchema ]).optional(), - cursor: TemplatePackageWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplatePackageScalarFieldEnumSchema,TemplatePackageScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplatePackageFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereInputSchema.optional(), - orderBy: z.union([ TemplatePackageOrderByWithRelationInputSchema.array(),TemplatePackageOrderByWithRelationInputSchema ]).optional(), - cursor: TemplatePackageWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplatePackageScalarFieldEnumSchema,TemplatePackageScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplatePackageFindManyArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereInputSchema.optional(), - orderBy: z.union([ TemplatePackageOrderByWithRelationInputSchema.array(),TemplatePackageOrderByWithRelationInputSchema ]).optional(), - cursor: TemplatePackageWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplatePackageScalarFieldEnumSchema,TemplatePackageScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplatePackageAggregateArgsSchema: z.ZodType = z.object({ - where: TemplatePackageWhereInputSchema.optional(), - orderBy: z.union([ TemplatePackageOrderByWithRelationInputSchema.array(),TemplatePackageOrderByWithRelationInputSchema ]).optional(), - cursor: TemplatePackageWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplatePackageGroupByArgsSchema: z.ZodType = z.object({ - where: TemplatePackageWhereInputSchema.optional(), - orderBy: z.union([ TemplatePackageOrderByWithAggregationInputSchema.array(),TemplatePackageOrderByWithAggregationInputSchema ]).optional(), - by: TemplatePackageScalarFieldEnumSchema.array(), - having: TemplatePackageScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplatePackageFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereUniqueInputSchema, -}).strict() ; - -export const TemplatePackageFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereUniqueInputSchema, -}).strict() ; - -export const TemplateVersionFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ TemplateVersionOrderByWithRelationInputSchema.array(),TemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateVersionScalarFieldEnumSchema,TemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateVersionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ TemplateVersionOrderByWithRelationInputSchema.array(),TemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateVersionScalarFieldEnumSchema,TemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateVersionFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ TemplateVersionOrderByWithRelationInputSchema.array(),TemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateVersionScalarFieldEnumSchema,TemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateVersionAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ TemplateVersionOrderByWithRelationInputSchema.array(),TemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateVersionGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ TemplateVersionOrderByWithAggregationInputSchema.array(),TemplateVersionOrderByWithAggregationInputSchema ]).optional(), - by: TemplateVersionScalarFieldEnumSchema.array(), - having: TemplateVersionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateVersionFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const TemplateVersionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallationFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallationOrderByWithRelationInputSchema.array(),TemplateInstallationOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallationScalarFieldEnumSchema,TemplateInstallationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallationFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallationOrderByWithRelationInputSchema.array(),TemplateInstallationOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallationScalarFieldEnumSchema,TemplateInstallationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallationFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallationOrderByWithRelationInputSchema.array(),TemplateInstallationOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallationScalarFieldEnumSchema,TemplateInstallationScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallationAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateInstallationWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallationOrderByWithRelationInputSchema.array(),TemplateInstallationOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallationWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateInstallationGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateInstallationWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallationOrderByWithAggregationInputSchema.array(),TemplateInstallationOrderByWithAggregationInputSchema ]).optional(), - by: TemplateInstallationScalarFieldEnumSchema.array(), - having: TemplateInstallationScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateInstallationFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallationFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallItemFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallItemOrderByWithRelationInputSchema.array(),TemplateInstallItemOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallItemScalarFieldEnumSchema,TemplateInstallItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallItemFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallItemOrderByWithRelationInputSchema.array(),TemplateInstallItemOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallItemScalarFieldEnumSchema,TemplateInstallItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallItemFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallItemOrderByWithRelationInputSchema.array(),TemplateInstallItemOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateInstallItemScalarFieldEnumSchema,TemplateInstallItemScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateInstallItemAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateInstallItemWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallItemOrderByWithRelationInputSchema.array(),TemplateInstallItemOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateInstallItemWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateInstallItemGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateInstallItemWhereInputSchema.optional(), - orderBy: z.union([ TemplateInstallItemOrderByWithAggregationInputSchema.array(),TemplateInstallItemOrderByWithAggregationInputSchema ]).optional(), - by: TemplateInstallItemScalarFieldEnumSchema.array(), - having: TemplateInstallItemScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateInstallItemFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallItemFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereInputSchema.optional(), - orderBy: z.union([ WorkflowOrderByWithRelationInputSchema.array(),WorkflowOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowScalarFieldEnumSchema,WorkflowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereInputSchema.optional(), - orderBy: z.union([ WorkflowOrderByWithRelationInputSchema.array(),WorkflowOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowScalarFieldEnumSchema,WorkflowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereInputSchema.optional(), - orderBy: z.union([ WorkflowOrderByWithRelationInputSchema.array(),WorkflowOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowScalarFieldEnumSchema,WorkflowScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowWhereInputSchema.optional(), - orderBy: z.union([ WorkflowOrderByWithRelationInputSchema.array(),WorkflowOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowWhereInputSchema.optional(), - orderBy: z.union([ WorkflowOrderByWithAggregationInputSchema.array(),WorkflowOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowScalarFieldEnumSchema.array(), - having: WorkflowScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUiConfigFindFirstArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereInputSchema.optional(), - orderBy: z.union([ OrganizationUiConfigOrderByWithRelationInputSchema.array(),OrganizationUiConfigOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationUiConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationUiConfigScalarFieldEnumSchema,OrganizationUiConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationUiConfigFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereInputSchema.optional(), - orderBy: z.union([ OrganizationUiConfigOrderByWithRelationInputSchema.array(),OrganizationUiConfigOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationUiConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationUiConfigScalarFieldEnumSchema,OrganizationUiConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationUiConfigFindManyArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereInputSchema.optional(), - orderBy: z.union([ OrganizationUiConfigOrderByWithRelationInputSchema.array(),OrganizationUiConfigOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationUiConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ OrganizationUiConfigScalarFieldEnumSchema,OrganizationUiConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const OrganizationUiConfigAggregateArgsSchema: z.ZodType = z.object({ - where: OrganizationUiConfigWhereInputSchema.optional(), - orderBy: z.union([ OrganizationUiConfigOrderByWithRelationInputSchema.array(),OrganizationUiConfigOrderByWithRelationInputSchema ]).optional(), - cursor: OrganizationUiConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const OrganizationUiConfigGroupByArgsSchema: z.ZodType = z.object({ - where: OrganizationUiConfigWhereInputSchema.optional(), - orderBy: z.union([ OrganizationUiConfigOrderByWithAggregationInputSchema.array(),OrganizationUiConfigOrderByWithAggregationInputSchema ]).optional(), - by: OrganizationUiConfigScalarFieldEnumSchema.array(), - having: OrganizationUiConfigScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const OrganizationUiConfigFindUniqueArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUiConfigFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowTriggerFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereInputSchema.optional(), - orderBy: z.union([ WorkflowTriggerOrderByWithRelationInputSchema.array(),WorkflowTriggerOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowTriggerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowTriggerScalarFieldEnumSchema,WorkflowTriggerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowTriggerFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereInputSchema.optional(), - orderBy: z.union([ WorkflowTriggerOrderByWithRelationInputSchema.array(),WorkflowTriggerOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowTriggerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowTriggerScalarFieldEnumSchema,WorkflowTriggerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowTriggerFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereInputSchema.optional(), - orderBy: z.union([ WorkflowTriggerOrderByWithRelationInputSchema.array(),WorkflowTriggerOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowTriggerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowTriggerScalarFieldEnumSchema,WorkflowTriggerScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowTriggerAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowTriggerWhereInputSchema.optional(), - orderBy: z.union([ WorkflowTriggerOrderByWithRelationInputSchema.array(),WorkflowTriggerOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowTriggerWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowTriggerGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowTriggerWhereInputSchema.optional(), - orderBy: z.union([ WorkflowTriggerOrderByWithAggregationInputSchema.array(),WorkflowTriggerOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowTriggerScalarFieldEnumSchema.array(), - having: WorkflowTriggerScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowTriggerFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowTriggerFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowNodeFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereInputSchema.optional(), - orderBy: z.union([ WorkflowNodeOrderByWithRelationInputSchema.array(),WorkflowNodeOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowNodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowNodeScalarFieldEnumSchema,WorkflowNodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowNodeFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereInputSchema.optional(), - orderBy: z.union([ WorkflowNodeOrderByWithRelationInputSchema.array(),WorkflowNodeOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowNodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowNodeScalarFieldEnumSchema,WorkflowNodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowNodeFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereInputSchema.optional(), - orderBy: z.union([ WorkflowNodeOrderByWithRelationInputSchema.array(),WorkflowNodeOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowNodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowNodeScalarFieldEnumSchema,WorkflowNodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowNodeAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowNodeWhereInputSchema.optional(), - orderBy: z.union([ WorkflowNodeOrderByWithRelationInputSchema.array(),WorkflowNodeOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowNodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowNodeGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowNodeWhereInputSchema.optional(), - orderBy: z.union([ WorkflowNodeOrderByWithAggregationInputSchema.array(),WorkflowNodeOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowNodeScalarFieldEnumSchema.array(), - having: WorkflowNodeScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowNodeFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowNodeFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowConnectionFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowConnectionOrderByWithRelationInputSchema.array(),WorkflowConnectionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowConnectionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowConnectionScalarFieldEnumSchema,WorkflowConnectionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowConnectionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowConnectionOrderByWithRelationInputSchema.array(),WorkflowConnectionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowConnectionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowConnectionScalarFieldEnumSchema,WorkflowConnectionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowConnectionFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowConnectionOrderByWithRelationInputSchema.array(),WorkflowConnectionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowConnectionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowConnectionScalarFieldEnumSchema,WorkflowConnectionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowConnectionAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowConnectionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowConnectionOrderByWithRelationInputSchema.array(),WorkflowConnectionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowConnectionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowConnectionGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowConnectionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowConnectionOrderByWithAggregationInputSchema.array(),WorkflowConnectionOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowConnectionScalarFieldEnumSchema.array(), - having: WorkflowConnectionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowConnectionFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowConnectionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereUniqueInputSchema, -}).strict() ; - -export const NodeDependencyFindFirstArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereInputSchema.optional(), - orderBy: z.union([ NodeDependencyOrderByWithRelationInputSchema.array(),NodeDependencyOrderByWithRelationInputSchema ]).optional(), - cursor: NodeDependencyWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeDependencyScalarFieldEnumSchema,NodeDependencyScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeDependencyFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereInputSchema.optional(), - orderBy: z.union([ NodeDependencyOrderByWithRelationInputSchema.array(),NodeDependencyOrderByWithRelationInputSchema ]).optional(), - cursor: NodeDependencyWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeDependencyScalarFieldEnumSchema,NodeDependencyScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeDependencyFindManyArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereInputSchema.optional(), - orderBy: z.union([ NodeDependencyOrderByWithRelationInputSchema.array(),NodeDependencyOrderByWithRelationInputSchema ]).optional(), - cursor: NodeDependencyWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeDependencyScalarFieldEnumSchema,NodeDependencyScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeDependencyAggregateArgsSchema: z.ZodType = z.object({ - where: NodeDependencyWhereInputSchema.optional(), - orderBy: z.union([ NodeDependencyOrderByWithRelationInputSchema.array(),NodeDependencyOrderByWithRelationInputSchema ]).optional(), - cursor: NodeDependencyWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NodeDependencyGroupByArgsSchema: z.ZodType = z.object({ - where: NodeDependencyWhereInputSchema.optional(), - orderBy: z.union([ NodeDependencyOrderByWithAggregationInputSchema.array(),NodeDependencyOrderByWithAggregationInputSchema ]).optional(), - by: NodeDependencyScalarFieldEnumSchema.array(), - having: NodeDependencyScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NodeDependencyFindUniqueArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereUniqueInputSchema, -}).strict() ; - -export const NodeDependencyFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateFindFirstArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateOrderByWithRelationInputSchema.array(),ActionTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateScalarFieldEnumSchema,ActionTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateOrderByWithRelationInputSchema.array(),ActionTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateScalarFieldEnumSchema,ActionTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateFindManyArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateOrderByWithRelationInputSchema.array(),ActionTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateScalarFieldEnumSchema,ActionTemplateScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateAggregateArgsSchema: z.ZodType = z.object({ - where: ActionTemplateWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateOrderByWithRelationInputSchema.array(),ActionTemplateOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ActionTemplateGroupByArgsSchema: z.ZodType = z.object({ - where: ActionTemplateWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateOrderByWithAggregationInputSchema.array(),ActionTemplateOrderByWithAggregationInputSchema ]).optional(), - by: ActionTemplateScalarFieldEnumSchema.array(), - having: ActionTemplateScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ActionTemplateFindUniqueArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateVersionFindFirstArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateVersionOrderByWithRelationInputSchema.array(),ActionTemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateVersionScalarFieldEnumSchema,ActionTemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateVersionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateVersionOrderByWithRelationInputSchema.array(),ActionTemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateVersionScalarFieldEnumSchema,ActionTemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateVersionFindManyArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateVersionOrderByWithRelationInputSchema.array(),ActionTemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ActionTemplateVersionScalarFieldEnumSchema,ActionTemplateVersionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ActionTemplateVersionAggregateArgsSchema: z.ZodType = z.object({ - where: ActionTemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateVersionOrderByWithRelationInputSchema.array(),ActionTemplateVersionOrderByWithRelationInputSchema ]).optional(), - cursor: ActionTemplateVersionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ActionTemplateVersionGroupByArgsSchema: z.ZodType = z.object({ - where: ActionTemplateVersionWhereInputSchema.optional(), - orderBy: z.union([ ActionTemplateVersionOrderByWithAggregationInputSchema.array(),ActionTemplateVersionOrderByWithAggregationInputSchema ]).optional(), - by: ActionTemplateVersionScalarFieldEnumSchema.array(), - having: ActionTemplateVersionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ActionTemplateVersionFindUniqueArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateVersionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const VariableDefinitionFindFirstArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereInputSchema.optional(), - orderBy: z.union([ VariableDefinitionOrderByWithRelationInputSchema.array(),VariableDefinitionOrderByWithRelationInputSchema ]).optional(), - cursor: VariableDefinitionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VariableDefinitionScalarFieldEnumSchema,VariableDefinitionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VariableDefinitionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereInputSchema.optional(), - orderBy: z.union([ VariableDefinitionOrderByWithRelationInputSchema.array(),VariableDefinitionOrderByWithRelationInputSchema ]).optional(), - cursor: VariableDefinitionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VariableDefinitionScalarFieldEnumSchema,VariableDefinitionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VariableDefinitionFindManyArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereInputSchema.optional(), - orderBy: z.union([ VariableDefinitionOrderByWithRelationInputSchema.array(),VariableDefinitionOrderByWithRelationInputSchema ]).optional(), - cursor: VariableDefinitionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ VariableDefinitionScalarFieldEnumSchema,VariableDefinitionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const VariableDefinitionAggregateArgsSchema: z.ZodType = z.object({ - where: VariableDefinitionWhereInputSchema.optional(), - orderBy: z.union([ VariableDefinitionOrderByWithRelationInputSchema.array(),VariableDefinitionOrderByWithRelationInputSchema ]).optional(), - cursor: VariableDefinitionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const VariableDefinitionGroupByArgsSchema: z.ZodType = z.object({ - where: VariableDefinitionWhereInputSchema.optional(), - orderBy: z.union([ VariableDefinitionOrderByWithAggregationInputSchema.array(),VariableDefinitionOrderByWithAggregationInputSchema ]).optional(), - by: VariableDefinitionScalarFieldEnumSchema.array(), - having: VariableDefinitionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const VariableDefinitionFindUniqueArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereUniqueInputSchema, -}).strict() ; - -export const VariableDefinitionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereUniqueInputSchema, -}).strict() ; - -export const TriggerVariableFindFirstArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereInputSchema.optional(), - orderBy: z.union([ TriggerVariableOrderByWithRelationInputSchema.array(),TriggerVariableOrderByWithRelationInputSchema ]).optional(), - cursor: TriggerVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TriggerVariableScalarFieldEnumSchema,TriggerVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TriggerVariableFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereInputSchema.optional(), - orderBy: z.union([ TriggerVariableOrderByWithRelationInputSchema.array(),TriggerVariableOrderByWithRelationInputSchema ]).optional(), - cursor: TriggerVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TriggerVariableScalarFieldEnumSchema,TriggerVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TriggerVariableFindManyArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereInputSchema.optional(), - orderBy: z.union([ TriggerVariableOrderByWithRelationInputSchema.array(),TriggerVariableOrderByWithRelationInputSchema ]).optional(), - cursor: TriggerVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TriggerVariableScalarFieldEnumSchema,TriggerVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TriggerVariableAggregateArgsSchema: z.ZodType = z.object({ - where: TriggerVariableWhereInputSchema.optional(), - orderBy: z.union([ TriggerVariableOrderByWithRelationInputSchema.array(),TriggerVariableOrderByWithRelationInputSchema ]).optional(), - cursor: TriggerVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TriggerVariableGroupByArgsSchema: z.ZodType = z.object({ - where: TriggerVariableWhereInputSchema.optional(), - orderBy: z.union([ TriggerVariableOrderByWithAggregationInputSchema.array(),TriggerVariableOrderByWithAggregationInputSchema ]).optional(), - by: TriggerVariableScalarFieldEnumSchema.array(), - having: TriggerVariableScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TriggerVariableFindUniqueArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereUniqueInputSchema, -}).strict() ; - -export const TriggerVariableFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowExecutionFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowExecutionOrderByWithRelationInputSchema.array(),WorkflowExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowExecutionScalarFieldEnumSchema,WorkflowExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowExecutionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowExecutionOrderByWithRelationInputSchema.array(),WorkflowExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowExecutionScalarFieldEnumSchema,WorkflowExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowExecutionFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowExecutionOrderByWithRelationInputSchema.array(),WorkflowExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowExecutionScalarFieldEnumSchema,WorkflowExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowExecutionAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowExecutionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowExecutionOrderByWithRelationInputSchema.array(),WorkflowExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowExecutionGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowExecutionWhereInputSchema.optional(), - orderBy: z.union([ WorkflowExecutionOrderByWithAggregationInputSchema.array(),WorkflowExecutionOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowExecutionScalarFieldEnumSchema.array(), - having: WorkflowExecutionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowExecutionFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowExecutionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereUniqueInputSchema, -}).strict() ; - -export const NodeExecutionFindFirstArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereInputSchema.optional(), - orderBy: z.union([ NodeExecutionOrderByWithRelationInputSchema.array(),NodeExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: NodeExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeExecutionScalarFieldEnumSchema,NodeExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeExecutionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereInputSchema.optional(), - orderBy: z.union([ NodeExecutionOrderByWithRelationInputSchema.array(),NodeExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: NodeExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeExecutionScalarFieldEnumSchema,NodeExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeExecutionFindManyArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereInputSchema.optional(), - orderBy: z.union([ NodeExecutionOrderByWithRelationInputSchema.array(),NodeExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: NodeExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ NodeExecutionScalarFieldEnumSchema,NodeExecutionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const NodeExecutionAggregateArgsSchema: z.ZodType = z.object({ - where: NodeExecutionWhereInputSchema.optional(), - orderBy: z.union([ NodeExecutionOrderByWithRelationInputSchema.array(),NodeExecutionOrderByWithRelationInputSchema ]).optional(), - cursor: NodeExecutionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NodeExecutionGroupByArgsSchema: z.ZodType = z.object({ - where: NodeExecutionWhereInputSchema.optional(), - orderBy: z.union([ NodeExecutionOrderByWithAggregationInputSchema.array(),NodeExecutionOrderByWithAggregationInputSchema ]).optional(), - by: NodeExecutionScalarFieldEnumSchema.array(), - having: NodeExecutionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const NodeExecutionFindUniqueArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereUniqueInputSchema, -}).strict() ; - -export const NodeExecutionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionVariableFindFirstArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereInputSchema.optional(), - orderBy: z.union([ ExecutionVariableOrderByWithRelationInputSchema.array(),ExecutionVariableOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionVariableScalarFieldEnumSchema,ExecutionVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionVariableFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereInputSchema.optional(), - orderBy: z.union([ ExecutionVariableOrderByWithRelationInputSchema.array(),ExecutionVariableOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionVariableScalarFieldEnumSchema,ExecutionVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionVariableFindManyArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereInputSchema.optional(), - orderBy: z.union([ ExecutionVariableOrderByWithRelationInputSchema.array(),ExecutionVariableOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionVariableScalarFieldEnumSchema,ExecutionVariableScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionVariableAggregateArgsSchema: z.ZodType = z.object({ - where: ExecutionVariableWhereInputSchema.optional(), - orderBy: z.union([ ExecutionVariableOrderByWithRelationInputSchema.array(),ExecutionVariableOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionVariableWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExecutionVariableGroupByArgsSchema: z.ZodType = z.object({ - where: ExecutionVariableWhereInputSchema.optional(), - orderBy: z.union([ ExecutionVariableOrderByWithAggregationInputSchema.array(),ExecutionVariableOrderByWithAggregationInputSchema ]).optional(), - by: ExecutionVariableScalarFieldEnumSchema.array(), - having: ExecutionVariableScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExecutionVariableFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionVariableFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionLogFindFirstArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereInputSchema.optional(), - orderBy: z.union([ ExecutionLogOrderByWithRelationInputSchema.array(),ExecutionLogOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionLogScalarFieldEnumSchema,ExecutionLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionLogFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereInputSchema.optional(), - orderBy: z.union([ ExecutionLogOrderByWithRelationInputSchema.array(),ExecutionLogOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionLogScalarFieldEnumSchema,ExecutionLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionLogFindManyArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereInputSchema.optional(), - orderBy: z.union([ ExecutionLogOrderByWithRelationInputSchema.array(),ExecutionLogOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ ExecutionLogScalarFieldEnumSchema,ExecutionLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const ExecutionLogAggregateArgsSchema: z.ZodType = z.object({ - where: ExecutionLogWhereInputSchema.optional(), - orderBy: z.union([ ExecutionLogOrderByWithRelationInputSchema.array(),ExecutionLogOrderByWithRelationInputSchema ]).optional(), - cursor: ExecutionLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExecutionLogGroupByArgsSchema: z.ZodType = z.object({ - where: ExecutionLogWhereInputSchema.optional(), - orderBy: z.union([ ExecutionLogOrderByWithAggregationInputSchema.array(),ExecutionLogOrderByWithAggregationInputSchema ]).optional(), - by: ExecutionLogScalarFieldEnumSchema.array(), - having: ExecutionLogScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const ExecutionLogFindUniqueArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionLogFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereUniqueInputSchema, -}).strict() ; - -export const IntegrationConfigFindFirstArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereInputSchema.optional(), - orderBy: z.union([ IntegrationConfigOrderByWithRelationInputSchema.array(),IntegrationConfigOrderByWithRelationInputSchema ]).optional(), - cursor: IntegrationConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ IntegrationConfigScalarFieldEnumSchema,IntegrationConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const IntegrationConfigFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereInputSchema.optional(), - orderBy: z.union([ IntegrationConfigOrderByWithRelationInputSchema.array(),IntegrationConfigOrderByWithRelationInputSchema ]).optional(), - cursor: IntegrationConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ IntegrationConfigScalarFieldEnumSchema,IntegrationConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const IntegrationConfigFindManyArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereInputSchema.optional(), - orderBy: z.union([ IntegrationConfigOrderByWithRelationInputSchema.array(),IntegrationConfigOrderByWithRelationInputSchema ]).optional(), - cursor: IntegrationConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ IntegrationConfigScalarFieldEnumSchema,IntegrationConfigScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const IntegrationConfigAggregateArgsSchema: z.ZodType = z.object({ - where: IntegrationConfigWhereInputSchema.optional(), - orderBy: z.union([ IntegrationConfigOrderByWithRelationInputSchema.array(),IntegrationConfigOrderByWithRelationInputSchema ]).optional(), - cursor: IntegrationConfigWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const IntegrationConfigGroupByArgsSchema: z.ZodType = z.object({ - where: IntegrationConfigWhereInputSchema.optional(), - orderBy: z.union([ IntegrationConfigOrderByWithAggregationInputSchema.array(),IntegrationConfigOrderByWithAggregationInputSchema ]).optional(), - by: IntegrationConfigScalarFieldEnumSchema.array(), - having: IntegrationConfigScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const IntegrationConfigFindUniqueArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereUniqueInputSchema, -}).strict() ; - -export const IntegrationConfigFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereUniqueInputSchema, -}).strict() ; - -export const EmailActionFindFirstArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereInputSchema.optional(), - orderBy: z.union([ EmailActionOrderByWithRelationInputSchema.array(),EmailActionOrderByWithRelationInputSchema ]).optional(), - cursor: EmailActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailActionScalarFieldEnumSchema,EmailActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailActionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereInputSchema.optional(), - orderBy: z.union([ EmailActionOrderByWithRelationInputSchema.array(),EmailActionOrderByWithRelationInputSchema ]).optional(), - cursor: EmailActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailActionScalarFieldEnumSchema,EmailActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailActionFindManyArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereInputSchema.optional(), - orderBy: z.union([ EmailActionOrderByWithRelationInputSchema.array(),EmailActionOrderByWithRelationInputSchema ]).optional(), - cursor: EmailActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EmailActionScalarFieldEnumSchema,EmailActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EmailActionAggregateArgsSchema: z.ZodType = z.object({ - where: EmailActionWhereInputSchema.optional(), - orderBy: z.union([ EmailActionOrderByWithRelationInputSchema.array(),EmailActionOrderByWithRelationInputSchema ]).optional(), - cursor: EmailActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmailActionGroupByArgsSchema: z.ZodType = z.object({ - where: EmailActionWhereInputSchema.optional(), - orderBy: z.union([ EmailActionOrderByWithAggregationInputSchema.array(),EmailActionOrderByWithAggregationInputSchema ]).optional(), - by: EmailActionScalarFieldEnumSchema.array(), - having: EmailActionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EmailActionFindUniqueArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereUniqueInputSchema, -}).strict() ; - -export const EmailActionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereUniqueInputSchema, -}).strict() ; - -export const SmsActionFindFirstArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereInputSchema.optional(), - orderBy: z.union([ SmsActionOrderByWithRelationInputSchema.array(),SmsActionOrderByWithRelationInputSchema ]).optional(), - cursor: SmsActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SmsActionScalarFieldEnumSchema,SmsActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SmsActionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereInputSchema.optional(), - orderBy: z.union([ SmsActionOrderByWithRelationInputSchema.array(),SmsActionOrderByWithRelationInputSchema ]).optional(), - cursor: SmsActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SmsActionScalarFieldEnumSchema,SmsActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SmsActionFindManyArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereInputSchema.optional(), - orderBy: z.union([ SmsActionOrderByWithRelationInputSchema.array(),SmsActionOrderByWithRelationInputSchema ]).optional(), - cursor: SmsActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SmsActionScalarFieldEnumSchema,SmsActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SmsActionAggregateArgsSchema: z.ZodType = z.object({ - where: SmsActionWhereInputSchema.optional(), - orderBy: z.union([ SmsActionOrderByWithRelationInputSchema.array(),SmsActionOrderByWithRelationInputSchema ]).optional(), - cursor: SmsActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SmsActionGroupByArgsSchema: z.ZodType = z.object({ - where: SmsActionWhereInputSchema.optional(), - orderBy: z.union([ SmsActionOrderByWithAggregationInputSchema.array(),SmsActionOrderByWithAggregationInputSchema ]).optional(), - by: SmsActionScalarFieldEnumSchema.array(), - having: SmsActionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SmsActionFindUniqueArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereUniqueInputSchema, -}).strict() ; - -export const SmsActionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereUniqueInputSchema, -}).strict() ; - -export const WhatsAppActionFindFirstArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereInputSchema.optional(), - orderBy: z.union([ WhatsAppActionOrderByWithRelationInputSchema.array(),WhatsAppActionOrderByWithRelationInputSchema ]).optional(), - cursor: WhatsAppActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WhatsAppActionScalarFieldEnumSchema,WhatsAppActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WhatsAppActionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereInputSchema.optional(), - orderBy: z.union([ WhatsAppActionOrderByWithRelationInputSchema.array(),WhatsAppActionOrderByWithRelationInputSchema ]).optional(), - cursor: WhatsAppActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WhatsAppActionScalarFieldEnumSchema,WhatsAppActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WhatsAppActionFindManyArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereInputSchema.optional(), - orderBy: z.union([ WhatsAppActionOrderByWithRelationInputSchema.array(),WhatsAppActionOrderByWithRelationInputSchema ]).optional(), - cursor: WhatsAppActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WhatsAppActionScalarFieldEnumSchema,WhatsAppActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WhatsAppActionAggregateArgsSchema: z.ZodType = z.object({ - where: WhatsAppActionWhereInputSchema.optional(), - orderBy: z.union([ WhatsAppActionOrderByWithRelationInputSchema.array(),WhatsAppActionOrderByWithRelationInputSchema ]).optional(), - cursor: WhatsAppActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WhatsAppActionGroupByArgsSchema: z.ZodType = z.object({ - where: WhatsAppActionWhereInputSchema.optional(), - orderBy: z.union([ WhatsAppActionOrderByWithAggregationInputSchema.array(),WhatsAppActionOrderByWithAggregationInputSchema ]).optional(), - by: WhatsAppActionScalarFieldEnumSchema.array(), - having: WhatsAppActionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WhatsAppActionFindUniqueArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereUniqueInputSchema, -}).strict() ; - -export const WhatsAppActionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereUniqueInputSchema, -}).strict() ; - -export const SlackActionFindFirstArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereInputSchema.optional(), - orderBy: z.union([ SlackActionOrderByWithRelationInputSchema.array(),SlackActionOrderByWithRelationInputSchema ]).optional(), - cursor: SlackActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SlackActionScalarFieldEnumSchema,SlackActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SlackActionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereInputSchema.optional(), - orderBy: z.union([ SlackActionOrderByWithRelationInputSchema.array(),SlackActionOrderByWithRelationInputSchema ]).optional(), - cursor: SlackActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SlackActionScalarFieldEnumSchema,SlackActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SlackActionFindManyArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereInputSchema.optional(), - orderBy: z.union([ SlackActionOrderByWithRelationInputSchema.array(),SlackActionOrderByWithRelationInputSchema ]).optional(), - cursor: SlackActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ SlackActionScalarFieldEnumSchema,SlackActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const SlackActionAggregateArgsSchema: z.ZodType = z.object({ - where: SlackActionWhereInputSchema.optional(), - orderBy: z.union([ SlackActionOrderByWithRelationInputSchema.array(),SlackActionOrderByWithRelationInputSchema ]).optional(), - cursor: SlackActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SlackActionGroupByArgsSchema: z.ZodType = z.object({ - where: SlackActionWhereInputSchema.optional(), - orderBy: z.union([ SlackActionOrderByWithAggregationInputSchema.array(),SlackActionOrderByWithAggregationInputSchema ]).optional(), - by: SlackActionScalarFieldEnumSchema.array(), - having: SlackActionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const SlackActionFindUniqueArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereUniqueInputSchema, -}).strict() ; - -export const SlackActionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereUniqueInputSchema, -}).strict() ; - -export const CalendarActionFindFirstArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereInputSchema.optional(), - orderBy: z.union([ CalendarActionOrderByWithRelationInputSchema.array(),CalendarActionOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarActionScalarFieldEnumSchema,CalendarActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarActionFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereInputSchema.optional(), - orderBy: z.union([ CalendarActionOrderByWithRelationInputSchema.array(),CalendarActionOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarActionScalarFieldEnumSchema,CalendarActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarActionFindManyArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereInputSchema.optional(), - orderBy: z.union([ CalendarActionOrderByWithRelationInputSchema.array(),CalendarActionOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ CalendarActionScalarFieldEnumSchema,CalendarActionScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const CalendarActionAggregateArgsSchema: z.ZodType = z.object({ - where: CalendarActionWhereInputSchema.optional(), - orderBy: z.union([ CalendarActionOrderByWithRelationInputSchema.array(),CalendarActionOrderByWithRelationInputSchema ]).optional(), - cursor: CalendarActionWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarActionGroupByArgsSchema: z.ZodType = z.object({ - where: CalendarActionWhereInputSchema.optional(), - orderBy: z.union([ CalendarActionOrderByWithAggregationInputSchema.array(),CalendarActionOrderByWithAggregationInputSchema ]).optional(), - by: CalendarActionScalarFieldEnumSchema.array(), - having: CalendarActionScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const CalendarActionFindUniqueArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereUniqueInputSchema, -}).strict() ; - -export const CalendarActionFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowAnalyticsFindFirstArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereInputSchema.optional(), - orderBy: z.union([ WorkflowAnalyticsOrderByWithRelationInputSchema.array(),WorkflowAnalyticsOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowAnalyticsWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowAnalyticsScalarFieldEnumSchema,WorkflowAnalyticsScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowAnalyticsFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereInputSchema.optional(), - orderBy: z.union([ WorkflowAnalyticsOrderByWithRelationInputSchema.array(),WorkflowAnalyticsOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowAnalyticsWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowAnalyticsScalarFieldEnumSchema,WorkflowAnalyticsScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowAnalyticsFindManyArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereInputSchema.optional(), - orderBy: z.union([ WorkflowAnalyticsOrderByWithRelationInputSchema.array(),WorkflowAnalyticsOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowAnalyticsWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ WorkflowAnalyticsScalarFieldEnumSchema,WorkflowAnalyticsScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const WorkflowAnalyticsAggregateArgsSchema: z.ZodType = z.object({ - where: WorkflowAnalyticsWhereInputSchema.optional(), - orderBy: z.union([ WorkflowAnalyticsOrderByWithRelationInputSchema.array(),WorkflowAnalyticsOrderByWithRelationInputSchema ]).optional(), - cursor: WorkflowAnalyticsWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowAnalyticsGroupByArgsSchema: z.ZodType = z.object({ - where: WorkflowAnalyticsWhereInputSchema.optional(), - orderBy: z.union([ WorkflowAnalyticsOrderByWithAggregationInputSchema.array(),WorkflowAnalyticsOrderByWithAggregationInputSchema ]).optional(), - by: WorkflowAnalyticsScalarFieldEnumSchema.array(), - having: WorkflowAnalyticsScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const WorkflowAnalyticsFindUniqueArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowAnalyticsFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareOrderByWithRelationInputSchema.array(),TemplateShareOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareScalarFieldEnumSchema,TemplateShareScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareOrderByWithRelationInputSchema.array(),TemplateShareOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareScalarFieldEnumSchema,TemplateShareScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareOrderByWithRelationInputSchema.array(),TemplateShareOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareScalarFieldEnumSchema,TemplateShareScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateShareWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareOrderByWithRelationInputSchema.array(),TemplateShareOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateShareWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareOrderByWithAggregationInputSchema.array(),TemplateShareOrderByWithAggregationInputSchema ]).optional(), - by: TemplateShareScalarFieldEnumSchema.array(), - having: TemplateShareScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareRecipientFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareRecipientOrderByWithRelationInputSchema.array(),TemplateShareRecipientOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareRecipientWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareRecipientScalarFieldEnumSchema,TemplateShareRecipientScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareRecipientFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareRecipientOrderByWithRelationInputSchema.array(),TemplateShareRecipientOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareRecipientWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareRecipientScalarFieldEnumSchema,TemplateShareRecipientScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareRecipientFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareRecipientOrderByWithRelationInputSchema.array(),TemplateShareRecipientOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareRecipientWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareRecipientScalarFieldEnumSchema,TemplateShareRecipientScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareRecipientAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateShareRecipientWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareRecipientOrderByWithRelationInputSchema.array(),TemplateShareRecipientOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareRecipientWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareRecipientGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateShareRecipientWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareRecipientOrderByWithAggregationInputSchema.array(),TemplateShareRecipientOrderByWithAggregationInputSchema ]).optional(), - by: TemplateShareRecipientScalarFieldEnumSchema.array(), - having: TemplateShareRecipientScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareRecipientFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareRecipientFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareAccessLogFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareAccessLogOrderByWithRelationInputSchema.array(),TemplateShareAccessLogOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareAccessLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareAccessLogScalarFieldEnumSchema,TemplateShareAccessLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareAccessLogFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareAccessLogOrderByWithRelationInputSchema.array(),TemplateShareAccessLogOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareAccessLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareAccessLogScalarFieldEnumSchema,TemplateShareAccessLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareAccessLogFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareAccessLogOrderByWithRelationInputSchema.array(),TemplateShareAccessLogOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareAccessLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareAccessLogScalarFieldEnumSchema,TemplateShareAccessLogScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareAccessLogAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateShareAccessLogWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareAccessLogOrderByWithRelationInputSchema.array(),TemplateShareAccessLogOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareAccessLogWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareAccessLogGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateShareAccessLogWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareAccessLogOrderByWithAggregationInputSchema.array(),TemplateShareAccessLogOrderByWithAggregationInputSchema ]).optional(), - by: TemplateShareAccessLogScalarFieldEnumSchema.array(), - having: TemplateShareAccessLogScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareAccessLogFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareAccessLogFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareImportFindFirstArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareImportOrderByWithRelationInputSchema.array(),TemplateShareImportOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareImportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareImportScalarFieldEnumSchema,TemplateShareImportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareImportFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareImportOrderByWithRelationInputSchema.array(),TemplateShareImportOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareImportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareImportScalarFieldEnumSchema,TemplateShareImportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareImportFindManyArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareImportOrderByWithRelationInputSchema.array(),TemplateShareImportOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareImportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ TemplateShareImportScalarFieldEnumSchema,TemplateShareImportScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const TemplateShareImportAggregateArgsSchema: z.ZodType = z.object({ - where: TemplateShareImportWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareImportOrderByWithRelationInputSchema.array(),TemplateShareImportOrderByWithRelationInputSchema ]).optional(), - cursor: TemplateShareImportWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareImportGroupByArgsSchema: z.ZodType = z.object({ - where: TemplateShareImportWhereInputSchema.optional(), - orderBy: z.union([ TemplateShareImportOrderByWithAggregationInputSchema.array(),TemplateShareImportOrderByWithAggregationInputSchema ]).optional(), - by: TemplateShareImportScalarFieldEnumSchema.array(), - having: TemplateShareImportScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const TemplateShareImportFindUniqueArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareImportFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereUniqueInputSchema, -}).strict() ; - -export const EarlyAccessCodeFindFirstArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereInputSchema.optional(), - orderBy: z.union([ EarlyAccessCodeOrderByWithRelationInputSchema.array(),EarlyAccessCodeOrderByWithRelationInputSchema ]).optional(), - cursor: EarlyAccessCodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EarlyAccessCodeScalarFieldEnumSchema,EarlyAccessCodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EarlyAccessCodeFindFirstOrThrowArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereInputSchema.optional(), - orderBy: z.union([ EarlyAccessCodeOrderByWithRelationInputSchema.array(),EarlyAccessCodeOrderByWithRelationInputSchema ]).optional(), - cursor: EarlyAccessCodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EarlyAccessCodeScalarFieldEnumSchema,EarlyAccessCodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EarlyAccessCodeFindManyArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereInputSchema.optional(), - orderBy: z.union([ EarlyAccessCodeOrderByWithRelationInputSchema.array(),EarlyAccessCodeOrderByWithRelationInputSchema ]).optional(), - cursor: EarlyAccessCodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), - distinct: z.union([ EarlyAccessCodeScalarFieldEnumSchema,EarlyAccessCodeScalarFieldEnumSchema.array() ]).optional(), -}).strict() ; - -export const EarlyAccessCodeAggregateArgsSchema: z.ZodType = z.object({ - where: EarlyAccessCodeWhereInputSchema.optional(), - orderBy: z.union([ EarlyAccessCodeOrderByWithRelationInputSchema.array(),EarlyAccessCodeOrderByWithRelationInputSchema ]).optional(), - cursor: EarlyAccessCodeWhereUniqueInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EarlyAccessCodeGroupByArgsSchema: z.ZodType = z.object({ - where: EarlyAccessCodeWhereInputSchema.optional(), - orderBy: z.union([ EarlyAccessCodeOrderByWithAggregationInputSchema.array(),EarlyAccessCodeOrderByWithAggregationInputSchema ]).optional(), - by: EarlyAccessCodeScalarFieldEnumSchema.array(), - having: EarlyAccessCodeScalarWhereWithAggregatesInputSchema.optional(), - take: z.number().optional(), - skip: z.number().optional(), -}).strict() ; - -export const EarlyAccessCodeFindUniqueArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereUniqueInputSchema, -}).strict() ; - -export const EarlyAccessCodeFindUniqueOrThrowArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereUniqueInputSchema, -}).strict() ; - -export const PermissionCreateArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - data: z.union([ PermissionCreateInputSchema,PermissionUncheckedCreateInputSchema ]), -}).strict() ; - -export const PermissionUpsertArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereUniqueInputSchema, - create: z.union([ PermissionCreateInputSchema,PermissionUncheckedCreateInputSchema ]), - update: z.union([ PermissionUpdateInputSchema,PermissionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const PermissionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PermissionCreateManyInputSchema,PermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PermissionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ PermissionCreateManyInputSchema,PermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PermissionDeleteArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - where: PermissionWhereUniqueInputSchema, -}).strict() ; - -export const PermissionUpdateArgsSchema: z.ZodType = z.object({ - select: PermissionSelectSchema.optional(), - include: PermissionIncludeSchema.optional(), - data: z.union([ PermissionUpdateInputSchema,PermissionUncheckedUpdateInputSchema ]), - where: PermissionWhereUniqueInputSchema, -}).strict() ; - -export const PermissionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PermissionUpdateManyMutationInputSchema,PermissionUncheckedUpdateManyInputSchema ]), - where: PermissionWhereInputSchema.optional(), -}).strict() ; - -export const PermissionDeleteManyArgsSchema: z.ZodType = z.object({ - where: PermissionWhereInputSchema.optional(), -}).strict() ; - -export const RolePermissionCreateArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - data: z.union([ RolePermissionCreateInputSchema,RolePermissionUncheckedCreateInputSchema ]), -}).strict() ; - -export const RolePermissionUpsertArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereUniqueInputSchema, - create: z.union([ RolePermissionCreateInputSchema,RolePermissionUncheckedCreateInputSchema ]), - update: z.union([ RolePermissionUpdateInputSchema,RolePermissionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const RolePermissionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ RolePermissionCreateManyInputSchema,RolePermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const RolePermissionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ RolePermissionCreateManyInputSchema,RolePermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const RolePermissionDeleteArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - where: RolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const RolePermissionUpdateArgsSchema: z.ZodType = z.object({ - select: RolePermissionSelectSchema.optional(), - include: RolePermissionIncludeSchema.optional(), - data: z.union([ RolePermissionUpdateInputSchema,RolePermissionUncheckedUpdateInputSchema ]), - where: RolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const RolePermissionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ RolePermissionUpdateManyMutationInputSchema,RolePermissionUncheckedUpdateManyInputSchema ]), - where: RolePermissionWhereInputSchema.optional(), -}).strict() ; - -export const RolePermissionDeleteManyArgsSchema: z.ZodType = z.object({ - where: RolePermissionWhereInputSchema.optional(), -}).strict() ; - -export const CustomRoleCreateArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - data: z.union([ CustomRoleCreateInputSchema,CustomRoleUncheckedCreateInputSchema ]), -}).strict() ; - -export const CustomRoleUpsertArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereUniqueInputSchema, - create: z.union([ CustomRoleCreateInputSchema,CustomRoleUncheckedCreateInputSchema ]), - update: z.union([ CustomRoleUpdateInputSchema,CustomRoleUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CustomRoleCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRoleCreateManyInputSchema,CustomRoleCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomRoleCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRoleCreateManyInputSchema,CustomRoleCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomRoleDeleteArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - where: CustomRoleWhereUniqueInputSchema, -}).strict() ; - -export const CustomRoleUpdateArgsSchema: z.ZodType = z.object({ - select: CustomRoleSelectSchema.optional(), - include: CustomRoleIncludeSchema.optional(), - data: z.union([ CustomRoleUpdateInputSchema,CustomRoleUncheckedUpdateInputSchema ]), - where: CustomRoleWhereUniqueInputSchema, -}).strict() ; - -export const CustomRoleUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRoleUpdateManyMutationInputSchema,CustomRoleUncheckedUpdateManyInputSchema ]), - where: CustomRoleWhereInputSchema.optional(), -}).strict() ; - -export const CustomRoleDeleteManyArgsSchema: z.ZodType = z.object({ - where: CustomRoleWhereInputSchema.optional(), -}).strict() ; - -export const CustomRolePermissionCreateArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - data: z.union([ CustomRolePermissionCreateInputSchema,CustomRolePermissionUncheckedCreateInputSchema ]), -}).strict() ; - -export const CustomRolePermissionUpsertArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereUniqueInputSchema, - create: z.union([ CustomRolePermissionCreateInputSchema,CustomRolePermissionUncheckedCreateInputSchema ]), - update: z.union([ CustomRolePermissionUpdateInputSchema,CustomRolePermissionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CustomRolePermissionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRolePermissionCreateManyInputSchema,CustomRolePermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomRolePermissionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRolePermissionCreateManyInputSchema,CustomRolePermissionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomRolePermissionDeleteArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - where: CustomRolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const CustomRolePermissionUpdateArgsSchema: z.ZodType = z.object({ - select: CustomRolePermissionSelectSchema.optional(), - include: CustomRolePermissionIncludeSchema.optional(), - data: z.union([ CustomRolePermissionUpdateInputSchema,CustomRolePermissionUncheckedUpdateInputSchema ]), - where: CustomRolePermissionWhereUniqueInputSchema, -}).strict() ; - -export const CustomRolePermissionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomRolePermissionUpdateManyMutationInputSchema,CustomRolePermissionUncheckedUpdateManyInputSchema ]), - where: CustomRolePermissionWhereInputSchema.optional(), -}).strict() ; - -export const CustomRolePermissionDeleteManyArgsSchema: z.ZodType = z.object({ - where: CustomRolePermissionWhereInputSchema.optional(), -}).strict() ; - -export const OrganizationCreateArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - data: z.union([ OrganizationCreateInputSchema,OrganizationUncheckedCreateInputSchema ]), -}).strict() ; - -export const OrganizationUpsertArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereUniqueInputSchema, - create: z.union([ OrganizationCreateInputSchema,OrganizationUncheckedCreateInputSchema ]), - update: z.union([ OrganizationUpdateInputSchema,OrganizationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const OrganizationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationCreateManyInputSchema,OrganizationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const OrganizationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationCreateManyInputSchema,OrganizationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const OrganizationDeleteArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - where: OrganizationWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUpdateArgsSchema: z.ZodType = z.object({ - select: OrganizationSelectSchema.optional(), - include: OrganizationIncludeSchema.optional(), - data: z.union([ OrganizationUpdateInputSchema,OrganizationUncheckedUpdateInputSchema ]), - where: OrganizationWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationUpdateManyMutationInputSchema,OrganizationUncheckedUpdateManyInputSchema ]), - where: OrganizationWhereInputSchema.optional(), -}).strict() ; - -export const OrganizationDeleteManyArgsSchema: z.ZodType = z.object({ - where: OrganizationWhereInputSchema.optional(), -}).strict() ; - -export const ImportSessionCreateArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - data: z.union([ ImportSessionCreateInputSchema,ImportSessionUncheckedCreateInputSchema ]), -}).strict() ; - -export const ImportSessionUpsertArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereUniqueInputSchema, - create: z.union([ ImportSessionCreateInputSchema,ImportSessionUncheckedCreateInputSchema ]), - update: z.union([ ImportSessionUpdateInputSchema,ImportSessionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ImportSessionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportSessionCreateManyInputSchema,ImportSessionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportSessionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportSessionCreateManyInputSchema,ImportSessionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportSessionDeleteArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - where: ImportSessionWhereUniqueInputSchema, -}).strict() ; - -export const ImportSessionUpdateArgsSchema: z.ZodType = z.object({ - select: ImportSessionSelectSchema.optional(), - include: ImportSessionIncludeSchema.optional(), - data: z.union([ ImportSessionUpdateInputSchema,ImportSessionUncheckedUpdateInputSchema ]), - where: ImportSessionWhereUniqueInputSchema, -}).strict() ; - -export const ImportSessionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportSessionUpdateManyMutationInputSchema,ImportSessionUncheckedUpdateManyInputSchema ]), - where: ImportSessionWhereInputSchema.optional(), -}).strict() ; - -export const ImportSessionDeleteManyArgsSchema: z.ZodType = z.object({ - where: ImportSessionWhereInputSchema.optional(), -}).strict() ; - -export const ImportTemplateCreateArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - data: z.union([ ImportTemplateCreateInputSchema,ImportTemplateUncheckedCreateInputSchema ]), -}).strict() ; - -export const ImportTemplateUpsertArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereUniqueInputSchema, - create: z.union([ ImportTemplateCreateInputSchema,ImportTemplateUncheckedCreateInputSchema ]), - update: z.union([ ImportTemplateUpdateInputSchema,ImportTemplateUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ImportTemplateCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportTemplateCreateManyInputSchema,ImportTemplateCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportTemplateCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportTemplateCreateManyInputSchema,ImportTemplateCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportTemplateDeleteArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - where: ImportTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ImportTemplateUpdateArgsSchema: z.ZodType = z.object({ - select: ImportTemplateSelectSchema.optional(), - include: ImportTemplateIncludeSchema.optional(), - data: z.union([ ImportTemplateUpdateInputSchema,ImportTemplateUncheckedUpdateInputSchema ]), - where: ImportTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ImportTemplateUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportTemplateUpdateManyMutationInputSchema,ImportTemplateUncheckedUpdateManyInputSchema ]), - where: ImportTemplateWhereInputSchema.optional(), -}).strict() ; - -export const ImportTemplateDeleteManyArgsSchema: z.ZodType = z.object({ - where: ImportTemplateWhereInputSchema.optional(), -}).strict() ; - -export const ImportRowCreateArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - data: z.union([ ImportRowCreateInputSchema,ImportRowUncheckedCreateInputSchema ]), -}).strict() ; - -export const ImportRowUpsertArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereUniqueInputSchema, - create: z.union([ ImportRowCreateInputSchema,ImportRowUncheckedCreateInputSchema ]), - update: z.union([ ImportRowUpdateInputSchema,ImportRowUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ImportRowCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowCreateManyInputSchema,ImportRowCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportRowCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowCreateManyInputSchema,ImportRowCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportRowDeleteArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - where: ImportRowWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowUpdateArgsSchema: z.ZodType = z.object({ - select: ImportRowSelectSchema.optional(), - include: ImportRowIncludeSchema.optional(), - data: z.union([ ImportRowUpdateInputSchema,ImportRowUncheckedUpdateInputSchema ]), - where: ImportRowWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowUpdateManyMutationInputSchema,ImportRowUncheckedUpdateManyInputSchema ]), - where: ImportRowWhereInputSchema.optional(), -}).strict() ; - -export const ImportRowDeleteManyArgsSchema: z.ZodType = z.object({ - where: ImportRowWhereInputSchema.optional(), -}).strict() ; - -export const ImportRowIssueCreateArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - data: z.union([ ImportRowIssueCreateInputSchema,ImportRowIssueUncheckedCreateInputSchema ]), -}).strict() ; - -export const ImportRowIssueUpsertArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereUniqueInputSchema, - create: z.union([ ImportRowIssueCreateInputSchema,ImportRowIssueUncheckedCreateInputSchema ]), - update: z.union([ ImportRowIssueUpdateInputSchema,ImportRowIssueUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ImportRowIssueCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowIssueCreateManyInputSchema,ImportRowIssueCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportRowIssueCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowIssueCreateManyInputSchema,ImportRowIssueCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ImportRowIssueDeleteArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - where: ImportRowIssueWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowIssueUpdateArgsSchema: z.ZodType = z.object({ - select: ImportRowIssueSelectSchema.optional(), - include: ImportRowIssueIncludeSchema.optional(), - data: z.union([ ImportRowIssueUpdateInputSchema,ImportRowIssueUncheckedUpdateInputSchema ]), - where: ImportRowIssueWhereUniqueInputSchema, -}).strict() ; - -export const ImportRowIssueUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ImportRowIssueUpdateManyMutationInputSchema,ImportRowIssueUncheckedUpdateManyInputSchema ]), - where: ImportRowIssueWhereInputSchema.optional(), -}).strict() ; - -export const ImportRowIssueDeleteManyArgsSchema: z.ZodType = z.object({ - where: ImportRowIssueWhereInputSchema.optional(), -}).strict() ; - -export const UserOrganizationCreateArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - data: z.union([ UserOrganizationCreateInputSchema,UserOrganizationUncheckedCreateInputSchema ]), -}).strict() ; - -export const UserOrganizationUpsertArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereUniqueInputSchema, - create: z.union([ UserOrganizationCreateInputSchema,UserOrganizationUncheckedCreateInputSchema ]), - update: z.union([ UserOrganizationUpdateInputSchema,UserOrganizationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const UserOrganizationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserOrganizationCreateManyInputSchema,UserOrganizationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const UserOrganizationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ UserOrganizationCreateManyInputSchema,UserOrganizationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const UserOrganizationDeleteArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - where: UserOrganizationWhereUniqueInputSchema, -}).strict() ; - -export const UserOrganizationUpdateArgsSchema: z.ZodType = z.object({ - select: UserOrganizationSelectSchema.optional(), - include: UserOrganizationIncludeSchema.optional(), - data: z.union([ UserOrganizationUpdateInputSchema,UserOrganizationUncheckedUpdateInputSchema ]), - where: UserOrganizationWhereUniqueInputSchema, -}).strict() ; - -export const UserOrganizationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserOrganizationUpdateManyMutationInputSchema,UserOrganizationUncheckedUpdateManyInputSchema ]), - where: UserOrganizationWhereInputSchema.optional(), -}).strict() ; - -export const UserOrganizationDeleteManyArgsSchema: z.ZodType = z.object({ - where: UserOrganizationWhereInputSchema.optional(), -}).strict() ; - -export const CustomerCreateArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - data: z.union([ CustomerCreateInputSchema,CustomerUncheckedCreateInputSchema ]), -}).strict() ; - -export const CustomerUpsertArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereUniqueInputSchema, - create: z.union([ CustomerCreateInputSchema,CustomerUncheckedCreateInputSchema ]), - update: z.union([ CustomerUpdateInputSchema,CustomerUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CustomerCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerCreateManyInputSchema,CustomerCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomerCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerCreateManyInputSchema,CustomerCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomerDeleteArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - where: CustomerWhereUniqueInputSchema, -}).strict() ; - -export const CustomerUpdateArgsSchema: z.ZodType = z.object({ - select: CustomerSelectSchema.optional(), - include: CustomerIncludeSchema.optional(), - data: z.union([ CustomerUpdateInputSchema,CustomerUncheckedUpdateInputSchema ]), - where: CustomerWhereUniqueInputSchema, -}).strict() ; - -export const CustomerUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerUpdateManyMutationInputSchema,CustomerUncheckedUpdateManyInputSchema ]), - where: CustomerWhereInputSchema.optional(), -}).strict() ; - -export const CustomerDeleteManyArgsSchema: z.ZodType = z.object({ - where: CustomerWhereInputSchema.optional(), -}).strict() ; - -export const CustomerInteractionCreateArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - data: z.union([ CustomerInteractionCreateInputSchema,CustomerInteractionUncheckedCreateInputSchema ]), -}).strict() ; - -export const CustomerInteractionUpsertArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereUniqueInputSchema, - create: z.union([ CustomerInteractionCreateInputSchema,CustomerInteractionUncheckedCreateInputSchema ]), - update: z.union([ CustomerInteractionUpdateInputSchema,CustomerInteractionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CustomerInteractionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerInteractionCreateManyInputSchema,CustomerInteractionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomerInteractionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerInteractionCreateManyInputSchema,CustomerInteractionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CustomerInteractionDeleteArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - where: CustomerInteractionWhereUniqueInputSchema, -}).strict() ; - -export const CustomerInteractionUpdateArgsSchema: z.ZodType = z.object({ - select: CustomerInteractionSelectSchema.optional(), - include: CustomerInteractionIncludeSchema.optional(), - data: z.union([ CustomerInteractionUpdateInputSchema,CustomerInteractionUncheckedUpdateInputSchema ]), - where: CustomerInteractionWhereUniqueInputSchema, -}).strict() ; - -export const CustomerInteractionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CustomerInteractionUpdateManyMutationInputSchema,CustomerInteractionUncheckedUpdateManyInputSchema ]), - where: CustomerInteractionWhereInputSchema.optional(), -}).strict() ; - -export const CustomerInteractionDeleteManyArgsSchema: z.ZodType = z.object({ - where: CustomerInteractionWhereInputSchema.optional(), -}).strict() ; - -export const DealCreateArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - data: z.union([ DealCreateInputSchema,DealUncheckedCreateInputSchema ]), -}).strict() ; - -export const DealUpsertArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereUniqueInputSchema, - create: z.union([ DealCreateInputSchema,DealUncheckedCreateInputSchema ]), - update: z.union([ DealUpdateInputSchema,DealUncheckedUpdateInputSchema ]), -}).strict() ; - -export const DealCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ DealCreateManyInputSchema,DealCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const DealCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ DealCreateManyInputSchema,DealCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const DealDeleteArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - where: DealWhereUniqueInputSchema, -}).strict() ; - -export const DealUpdateArgsSchema: z.ZodType = z.object({ - select: DealSelectSchema.optional(), - include: DealIncludeSchema.optional(), - data: z.union([ DealUpdateInputSchema,DealUncheckedUpdateInputSchema ]), - where: DealWhereUniqueInputSchema, -}).strict() ; - -export const DealUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ DealUpdateManyMutationInputSchema,DealUncheckedUpdateManyInputSchema ]), - where: DealWhereInputSchema.optional(), -}).strict() ; - -export const DealDeleteManyArgsSchema: z.ZodType = z.object({ - where: DealWhereInputSchema.optional(), -}).strict() ; - -export const ProjectCreateArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - data: z.union([ ProjectCreateInputSchema,ProjectUncheckedCreateInputSchema ]), -}).strict() ; - -export const ProjectUpsertArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereUniqueInputSchema, - create: z.union([ ProjectCreateInputSchema,ProjectUncheckedCreateInputSchema ]), - update: z.union([ ProjectUpdateInputSchema,ProjectUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ProjectCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectCreateManyInputSchema,ProjectCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ProjectCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectCreateManyInputSchema,ProjectCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ProjectDeleteArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - where: ProjectWhereUniqueInputSchema, -}).strict() ; - -export const ProjectUpdateArgsSchema: z.ZodType = z.object({ - select: ProjectSelectSchema.optional(), - include: ProjectIncludeSchema.optional(), - data: z.union([ ProjectUpdateInputSchema,ProjectUncheckedUpdateInputSchema ]), - where: ProjectWhereUniqueInputSchema, -}).strict() ; - -export const ProjectUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectUpdateManyMutationInputSchema,ProjectUncheckedUpdateManyInputSchema ]), - where: ProjectWhereInputSchema.optional(), -}).strict() ; - -export const ProjectDeleteManyArgsSchema: z.ZodType = z.object({ - where: ProjectWhereInputSchema.optional(), -}).strict() ; - -export const TaskCreateArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - data: z.union([ TaskCreateInputSchema,TaskUncheckedCreateInputSchema ]), -}).strict() ; - -export const TaskUpsertArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereUniqueInputSchema, - create: z.union([ TaskCreateInputSchema,TaskUncheckedCreateInputSchema ]), - update: z.union([ TaskUpdateInputSchema,TaskUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TaskCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TaskCreateManyInputSchema,TaskCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TaskCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TaskCreateManyInputSchema,TaskCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TaskDeleteArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - where: TaskWhereUniqueInputSchema, -}).strict() ; - -export const TaskUpdateArgsSchema: z.ZodType = z.object({ - select: TaskSelectSchema.optional(), - include: TaskIncludeSchema.optional(), - data: z.union([ TaskUpdateInputSchema,TaskUncheckedUpdateInputSchema ]), - where: TaskWhereUniqueInputSchema, -}).strict() ; - -export const TaskUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TaskUpdateManyMutationInputSchema,TaskUncheckedUpdateManyInputSchema ]), - where: TaskWhereInputSchema.optional(), -}).strict() ; - -export const TaskDeleteManyArgsSchema: z.ZodType = z.object({ - where: TaskWhereInputSchema.optional(), -}).strict() ; - -export const ProjectResourceCreateArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - data: z.union([ ProjectResourceCreateInputSchema,ProjectResourceUncheckedCreateInputSchema ]), -}).strict() ; - -export const ProjectResourceUpsertArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereUniqueInputSchema, - create: z.union([ ProjectResourceCreateInputSchema,ProjectResourceUncheckedCreateInputSchema ]), - update: z.union([ ProjectResourceUpdateInputSchema,ProjectResourceUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ProjectResourceCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectResourceCreateManyInputSchema,ProjectResourceCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ProjectResourceCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectResourceCreateManyInputSchema,ProjectResourceCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ProjectResourceDeleteArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - where: ProjectResourceWhereUniqueInputSchema, -}).strict() ; - -export const ProjectResourceUpdateArgsSchema: z.ZodType = z.object({ - select: ProjectResourceSelectSchema.optional(), - include: ProjectResourceIncludeSchema.optional(), - data: z.union([ ProjectResourceUpdateInputSchema,ProjectResourceUncheckedUpdateInputSchema ]), - where: ProjectResourceWhereUniqueInputSchema, -}).strict() ; - -export const ProjectResourceUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ProjectResourceUpdateManyMutationInputSchema,ProjectResourceUncheckedUpdateManyInputSchema ]), - where: ProjectResourceWhereInputSchema.optional(), -}).strict() ; - -export const ProjectResourceDeleteManyArgsSchema: z.ZodType = z.object({ - where: ProjectResourceWhereInputSchema.optional(), -}).strict() ; - -export const TimeEntryCreateArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - data: z.union([ TimeEntryCreateInputSchema,TimeEntryUncheckedCreateInputSchema ]), -}).strict() ; - -export const TimeEntryUpsertArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereUniqueInputSchema, - create: z.union([ TimeEntryCreateInputSchema,TimeEntryUncheckedCreateInputSchema ]), - update: z.union([ TimeEntryUpdateInputSchema,TimeEntryUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TimeEntryCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeEntryCreateManyInputSchema,TimeEntryCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TimeEntryCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeEntryCreateManyInputSchema,TimeEntryCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TimeEntryDeleteArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - where: TimeEntryWhereUniqueInputSchema, -}).strict() ; - -export const TimeEntryUpdateArgsSchema: z.ZodType = z.object({ - select: TimeEntrySelectSchema.optional(), - include: TimeEntryIncludeSchema.optional(), - data: z.union([ TimeEntryUpdateInputSchema,TimeEntryUncheckedUpdateInputSchema ]), - where: TimeEntryWhereUniqueInputSchema, -}).strict() ; - -export const TimeEntryUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeEntryUpdateManyMutationInputSchema,TimeEntryUncheckedUpdateManyInputSchema ]), - where: TimeEntryWhereInputSchema.optional(), -}).strict() ; - -export const TimeEntryDeleteManyArgsSchema: z.ZodType = z.object({ - where: TimeEntryWhereInputSchema.optional(), -}).strict() ; - -export const InvoiceCreateArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - data: z.union([ InvoiceCreateInputSchema,InvoiceUncheckedCreateInputSchema ]), -}).strict() ; - -export const InvoiceUpsertArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereUniqueInputSchema, - create: z.union([ InvoiceCreateInputSchema,InvoiceUncheckedCreateInputSchema ]), - update: z.union([ InvoiceUpdateInputSchema,InvoiceUncheckedUpdateInputSchema ]), -}).strict() ; - -export const InvoiceCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceCreateManyInputSchema,InvoiceCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvoiceCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceCreateManyInputSchema,InvoiceCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvoiceDeleteArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - where: InvoiceWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceUpdateArgsSchema: z.ZodType = z.object({ - select: InvoiceSelectSchema.optional(), - include: InvoiceIncludeSchema.optional(), - data: z.union([ InvoiceUpdateInputSchema,InvoiceUncheckedUpdateInputSchema ]), - where: InvoiceWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceUpdateManyMutationInputSchema,InvoiceUncheckedUpdateManyInputSchema ]), - where: InvoiceWhereInputSchema.optional(), -}).strict() ; - -export const InvoiceDeleteManyArgsSchema: z.ZodType = z.object({ - where: InvoiceWhereInputSchema.optional(), -}).strict() ; - -export const InvoiceItemCreateArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - data: z.union([ InvoiceItemCreateInputSchema,InvoiceItemUncheckedCreateInputSchema ]), -}).strict() ; - -export const InvoiceItemUpsertArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereUniqueInputSchema, - create: z.union([ InvoiceItemCreateInputSchema,InvoiceItemUncheckedCreateInputSchema ]), - update: z.union([ InvoiceItemUpdateInputSchema,InvoiceItemUncheckedUpdateInputSchema ]), -}).strict() ; - -export const InvoiceItemCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceItemCreateManyInputSchema,InvoiceItemCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvoiceItemCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceItemCreateManyInputSchema,InvoiceItemCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvoiceItemDeleteArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - where: InvoiceItemWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceItemUpdateArgsSchema: z.ZodType = z.object({ - select: InvoiceItemSelectSchema.optional(), - include: InvoiceItemIncludeSchema.optional(), - data: z.union([ InvoiceItemUpdateInputSchema,InvoiceItemUncheckedUpdateInputSchema ]), - where: InvoiceItemWhereUniqueInputSchema, -}).strict() ; - -export const InvoiceItemUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvoiceItemUpdateManyMutationInputSchema,InvoiceItemUncheckedUpdateManyInputSchema ]), - where: InvoiceItemWhereInputSchema.optional(), -}).strict() ; - -export const InvoiceItemDeleteManyArgsSchema: z.ZodType = z.object({ - where: InvoiceItemWhereInputSchema.optional(), -}).strict() ; - -export const PaymentCreateArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - data: z.union([ PaymentCreateInputSchema,PaymentUncheckedCreateInputSchema ]), -}).strict() ; - -export const PaymentUpsertArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereUniqueInputSchema, - create: z.union([ PaymentCreateInputSchema,PaymentUncheckedCreateInputSchema ]), - update: z.union([ PaymentUpdateInputSchema,PaymentUncheckedUpdateInputSchema ]), -}).strict() ; - -export const PaymentCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PaymentCreateManyInputSchema,PaymentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PaymentCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ PaymentCreateManyInputSchema,PaymentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PaymentDeleteArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - where: PaymentWhereUniqueInputSchema, -}).strict() ; - -export const PaymentUpdateArgsSchema: z.ZodType = z.object({ - select: PaymentSelectSchema.optional(), - include: PaymentIncludeSchema.optional(), - data: z.union([ PaymentUpdateInputSchema,PaymentUncheckedUpdateInputSchema ]), - where: PaymentWhereUniqueInputSchema, -}).strict() ; - -export const PaymentUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PaymentUpdateManyMutationInputSchema,PaymentUncheckedUpdateManyInputSchema ]), - where: PaymentWhereInputSchema.optional(), -}).strict() ; - -export const PaymentDeleteManyArgsSchema: z.ZodType = z.object({ - where: PaymentWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseCreateArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - data: z.union([ ExpenseCreateInputSchema,ExpenseUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExpenseUpsertArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereUniqueInputSchema, - create: z.union([ ExpenseCreateInputSchema,ExpenseUncheckedCreateInputSchema ]), - update: z.union([ ExpenseUpdateInputSchema,ExpenseUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExpenseCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseCreateManyInputSchema,ExpenseCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseCreateManyInputSchema,ExpenseCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseDeleteArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - where: ExpenseWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseUpdateArgsSchema: z.ZodType = z.object({ - select: ExpenseSelectSchema.optional(), - include: ExpenseIncludeSchema.optional(), - data: z.union([ ExpenseUpdateInputSchema,ExpenseUncheckedUpdateInputSchema ]), - where: ExpenseWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseUpdateManyMutationInputSchema,ExpenseUncheckedUpdateManyInputSchema ]), - where: ExpenseWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExpenseWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseCategoryCreateArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - data: z.union([ ExpenseCategoryCreateInputSchema,ExpenseCategoryUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExpenseCategoryUpsertArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereUniqueInputSchema, - create: z.union([ ExpenseCategoryCreateInputSchema,ExpenseCategoryUncheckedCreateInputSchema ]), - update: z.union([ ExpenseCategoryUpdateInputSchema,ExpenseCategoryUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExpenseCategoryCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseCategoryCreateManyInputSchema,ExpenseCategoryCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseCategoryCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseCategoryCreateManyInputSchema,ExpenseCategoryCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseCategoryDeleteArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - where: ExpenseCategoryWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseCategoryUpdateArgsSchema: z.ZodType = z.object({ - select: ExpenseCategorySelectSchema.optional(), - include: ExpenseCategoryIncludeSchema.optional(), - data: z.union([ ExpenseCategoryUpdateInputSchema,ExpenseCategoryUncheckedUpdateInputSchema ]), - where: ExpenseCategoryWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseCategoryUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseCategoryUpdateManyMutationInputSchema,ExpenseCategoryUncheckedUpdateManyInputSchema ]), - where: ExpenseCategoryWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseCategoryDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExpenseCategoryWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseTagCreateArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - data: z.union([ ExpenseTagCreateInputSchema,ExpenseTagUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExpenseTagUpsertArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereUniqueInputSchema, - create: z.union([ ExpenseTagCreateInputSchema,ExpenseTagUncheckedCreateInputSchema ]), - update: z.union([ ExpenseTagUpdateInputSchema,ExpenseTagUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExpenseTagCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseTagCreateManyInputSchema,ExpenseTagCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseTagCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseTagCreateManyInputSchema,ExpenseTagCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseTagDeleteArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - where: ExpenseTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseTagUpdateArgsSchema: z.ZodType = z.object({ - select: ExpenseTagSelectSchema.optional(), - include: ExpenseTagIncludeSchema.optional(), - data: z.union([ ExpenseTagUpdateInputSchema,ExpenseTagUncheckedUpdateInputSchema ]), - where: ExpenseTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseTagUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseTagUpdateManyMutationInputSchema,ExpenseTagUncheckedUpdateManyInputSchema ]), - where: ExpenseTagWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseTagDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExpenseTagWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseToTagCreateArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - data: z.union([ ExpenseToTagCreateInputSchema,ExpenseToTagUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExpenseToTagUpsertArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereUniqueInputSchema, - create: z.union([ ExpenseToTagCreateInputSchema,ExpenseToTagUncheckedCreateInputSchema ]), - update: z.union([ ExpenseToTagUpdateInputSchema,ExpenseToTagUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExpenseToTagCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseToTagCreateManyInputSchema,ExpenseToTagCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseToTagCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseToTagCreateManyInputSchema,ExpenseToTagCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExpenseToTagDeleteArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - where: ExpenseToTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseToTagUpdateArgsSchema: z.ZodType = z.object({ - select: ExpenseToTagSelectSchema.optional(), - include: ExpenseToTagIncludeSchema.optional(), - data: z.union([ ExpenseToTagUpdateInputSchema,ExpenseToTagUncheckedUpdateInputSchema ]), - where: ExpenseToTagWhereUniqueInputSchema, -}).strict() ; - -export const ExpenseToTagUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExpenseToTagUpdateManyMutationInputSchema,ExpenseToTagUncheckedUpdateManyInputSchema ]), - where: ExpenseToTagWhereInputSchema.optional(), -}).strict() ; - -export const ExpenseToTagDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExpenseToTagWhereInputSchema.optional(), -}).strict() ; - -export const CommentCreateArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - data: z.union([ CommentCreateInputSchema,CommentUncheckedCreateInputSchema ]), -}).strict() ; - -export const CommentUpsertArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereUniqueInputSchema, - create: z.union([ CommentCreateInputSchema,CommentUncheckedCreateInputSchema ]), - update: z.union([ CommentUpdateInputSchema,CommentUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CommentCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CommentCreateManyInputSchema,CommentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CommentCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CommentCreateManyInputSchema,CommentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CommentDeleteArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - where: CommentWhereUniqueInputSchema, -}).strict() ; - -export const CommentUpdateArgsSchema: z.ZodType = z.object({ - select: CommentSelectSchema.optional(), - include: CommentIncludeSchema.optional(), - data: z.union([ CommentUpdateInputSchema,CommentUncheckedUpdateInputSchema ]), - where: CommentWhereUniqueInputSchema, -}).strict() ; - -export const CommentUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CommentUpdateManyMutationInputSchema,CommentUncheckedUpdateManyInputSchema ]), - where: CommentWhereInputSchema.optional(), -}).strict() ; - -export const CommentDeleteManyArgsSchema: z.ZodType = z.object({ - where: CommentWhereInputSchema.optional(), -}).strict() ; - -export const AttachmentCreateArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - data: z.union([ AttachmentCreateInputSchema,AttachmentUncheckedCreateInputSchema ]), -}).strict() ; - -export const AttachmentUpsertArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereUniqueInputSchema, - create: z.union([ AttachmentCreateInputSchema,AttachmentUncheckedCreateInputSchema ]), - update: z.union([ AttachmentUpdateInputSchema,AttachmentUncheckedUpdateInputSchema ]), -}).strict() ; - -export const AttachmentCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AttachmentCreateManyInputSchema,AttachmentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const AttachmentCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ AttachmentCreateManyInputSchema,AttachmentCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const AttachmentDeleteArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - where: AttachmentWhereUniqueInputSchema, -}).strict() ; - -export const AttachmentUpdateArgsSchema: z.ZodType = z.object({ - select: AttachmentSelectSchema.optional(), - include: AttachmentIncludeSchema.optional(), - data: z.union([ AttachmentUpdateInputSchema,AttachmentUncheckedUpdateInputSchema ]), - where: AttachmentWhereUniqueInputSchema, -}).strict() ; - -export const AttachmentUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AttachmentUpdateManyMutationInputSchema,AttachmentUncheckedUpdateManyInputSchema ]), - where: AttachmentWhereInputSchema.optional(), -}).strict() ; - -export const AttachmentDeleteManyArgsSchema: z.ZodType = z.object({ - where: AttachmentWhereInputSchema.optional(), -}).strict() ; - -export const CalendarEventCreateArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - data: z.union([ CalendarEventCreateInputSchema,CalendarEventUncheckedCreateInputSchema ]), -}).strict() ; - -export const CalendarEventUpsertArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereUniqueInputSchema, - create: z.union([ CalendarEventCreateInputSchema,CalendarEventUncheckedCreateInputSchema ]), - update: z.union([ CalendarEventUpdateInputSchema,CalendarEventUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CalendarEventCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventCreateManyInputSchema,CalendarEventCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarEventCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventCreateManyInputSchema,CalendarEventCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarEventDeleteArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - where: CalendarEventWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventUpdateArgsSchema: z.ZodType = z.object({ - select: CalendarEventSelectSchema.optional(), - include: CalendarEventIncludeSchema.optional(), - data: z.union([ CalendarEventUpdateInputSchema,CalendarEventUncheckedUpdateInputSchema ]), - where: CalendarEventWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventUpdateManyMutationInputSchema,CalendarEventUncheckedUpdateManyInputSchema ]), - where: CalendarEventWhereInputSchema.optional(), -}).strict() ; - -export const CalendarEventDeleteManyArgsSchema: z.ZodType = z.object({ - where: CalendarEventWhereInputSchema.optional(), -}).strict() ; - -export const CalendarEventAttendeeCreateArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - data: z.union([ CalendarEventAttendeeCreateInputSchema,CalendarEventAttendeeUncheckedCreateInputSchema ]), -}).strict() ; - -export const CalendarEventAttendeeUpsertArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereUniqueInputSchema, - create: z.union([ CalendarEventAttendeeCreateInputSchema,CalendarEventAttendeeUncheckedCreateInputSchema ]), - update: z.union([ CalendarEventAttendeeUpdateInputSchema,CalendarEventAttendeeUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CalendarEventAttendeeCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventAttendeeCreateManyInputSchema,CalendarEventAttendeeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarEventAttendeeCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventAttendeeCreateManyInputSchema,CalendarEventAttendeeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarEventAttendeeDeleteArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - where: CalendarEventAttendeeWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventAttendeeUpdateArgsSchema: z.ZodType = z.object({ - select: CalendarEventAttendeeSelectSchema.optional(), - include: CalendarEventAttendeeIncludeSchema.optional(), - data: z.union([ CalendarEventAttendeeUpdateInputSchema,CalendarEventAttendeeUncheckedUpdateInputSchema ]), - where: CalendarEventAttendeeWhereUniqueInputSchema, -}).strict() ; - -export const CalendarEventAttendeeUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarEventAttendeeUpdateManyMutationInputSchema,CalendarEventAttendeeUncheckedUpdateManyInputSchema ]), - where: CalendarEventAttendeeWhereInputSchema.optional(), -}).strict() ; - -export const CalendarEventAttendeeDeleteManyArgsSchema: z.ZodType = z.object({ - where: CalendarEventAttendeeWhereInputSchema.optional(), -}).strict() ; - -export const NotificationCreateArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - data: z.union([ NotificationCreateInputSchema,NotificationUncheckedCreateInputSchema ]), -}).strict() ; - -export const NotificationUpsertArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereUniqueInputSchema, - create: z.union([ NotificationCreateInputSchema,NotificationUncheckedCreateInputSchema ]), - update: z.union([ NotificationUpdateInputSchema,NotificationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const NotificationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NotificationCreateManyInputSchema,NotificationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NotificationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ NotificationCreateManyInputSchema,NotificationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NotificationDeleteArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - where: NotificationWhereUniqueInputSchema, -}).strict() ; - -export const NotificationUpdateArgsSchema: z.ZodType = z.object({ - select: NotificationSelectSchema.optional(), - data: z.union([ NotificationUpdateInputSchema,NotificationUncheckedUpdateInputSchema ]), - where: NotificationWhereUniqueInputSchema, -}).strict() ; - -export const NotificationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NotificationUpdateManyMutationInputSchema,NotificationUncheckedUpdateManyInputSchema ]), - where: NotificationWhereInputSchema.optional(), -}).strict() ; - -export const NotificationDeleteManyArgsSchema: z.ZodType = z.object({ - where: NotificationWhereInputSchema.optional(), -}).strict() ; - -export const InvitationCreateArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - data: z.union([ InvitationCreateInputSchema,InvitationUncheckedCreateInputSchema ]), -}).strict() ; - -export const InvitationUpsertArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereUniqueInputSchema, - create: z.union([ InvitationCreateInputSchema,InvitationUncheckedCreateInputSchema ]), - update: z.union([ InvitationUpdateInputSchema,InvitationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const InvitationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvitationCreateManyInputSchema,InvitationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvitationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ InvitationCreateManyInputSchema,InvitationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const InvitationDeleteArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - where: InvitationWhereUniqueInputSchema, -}).strict() ; - -export const InvitationUpdateArgsSchema: z.ZodType = z.object({ - select: InvitationSelectSchema.optional(), - include: InvitationIncludeSchema.optional(), - data: z.union([ InvitationUpdateInputSchema,InvitationUncheckedUpdateInputSchema ]), - where: InvitationWhereUniqueInputSchema, -}).strict() ; - -export const InvitationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ InvitationUpdateManyMutationInputSchema,InvitationUncheckedUpdateManyInputSchema ]), - where: InvitationWhereInputSchema.optional(), -}).strict() ; - -export const InvitationDeleteManyArgsSchema: z.ZodType = z.object({ - where: InvitationWhereInputSchema.optional(), -}).strict() ; - -export const EmployeeCreateArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - data: z.union([ EmployeeCreateInputSchema,EmployeeUncheckedCreateInputSchema ]), -}).strict() ; - -export const EmployeeUpsertArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereUniqueInputSchema, - create: z.union([ EmployeeCreateInputSchema,EmployeeUncheckedCreateInputSchema ]), - update: z.union([ EmployeeUpdateInputSchema,EmployeeUncheckedUpdateInputSchema ]), -}).strict() ; - -export const EmployeeCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmployeeCreateManyInputSchema,EmployeeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmployeeCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ EmployeeCreateManyInputSchema,EmployeeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmployeeDeleteArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - where: EmployeeWhereUniqueInputSchema, -}).strict() ; - -export const EmployeeUpdateArgsSchema: z.ZodType = z.object({ - select: EmployeeSelectSchema.optional(), - include: EmployeeIncludeSchema.optional(), - data: z.union([ EmployeeUpdateInputSchema,EmployeeUncheckedUpdateInputSchema ]), - where: EmployeeWhereUniqueInputSchema, -}).strict() ; - -export const EmployeeUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmployeeUpdateManyMutationInputSchema,EmployeeUncheckedUpdateManyInputSchema ]), - where: EmployeeWhereInputSchema.optional(), -}).strict() ; - -export const EmployeeDeleteManyArgsSchema: z.ZodType = z.object({ - where: EmployeeWhereInputSchema.optional(), -}).strict() ; - -export const PayrollCreateArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - data: z.union([ PayrollCreateInputSchema,PayrollUncheckedCreateInputSchema ]), -}).strict() ; - -export const PayrollUpsertArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereUniqueInputSchema, - create: z.union([ PayrollCreateInputSchema,PayrollUncheckedCreateInputSchema ]), - update: z.union([ PayrollUpdateInputSchema,PayrollUncheckedUpdateInputSchema ]), -}).strict() ; - -export const PayrollCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PayrollCreateManyInputSchema,PayrollCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PayrollCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ PayrollCreateManyInputSchema,PayrollCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PayrollDeleteArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - where: PayrollWhereUniqueInputSchema, -}).strict() ; - -export const PayrollUpdateArgsSchema: z.ZodType = z.object({ - select: PayrollSelectSchema.optional(), - include: PayrollIncludeSchema.optional(), - data: z.union([ PayrollUpdateInputSchema,PayrollUncheckedUpdateInputSchema ]), - where: PayrollWhereUniqueInputSchema, -}).strict() ; - -export const PayrollUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PayrollUpdateManyMutationInputSchema,PayrollUncheckedUpdateManyInputSchema ]), - where: PayrollWhereInputSchema.optional(), -}).strict() ; - -export const PayrollDeleteManyArgsSchema: z.ZodType = z.object({ - where: PayrollWhereInputSchema.optional(), -}).strict() ; - -export const TimeOffCreateArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - data: z.union([ TimeOffCreateInputSchema,TimeOffUncheckedCreateInputSchema ]), -}).strict() ; - -export const TimeOffUpsertArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereUniqueInputSchema, - create: z.union([ TimeOffCreateInputSchema,TimeOffUncheckedCreateInputSchema ]), - update: z.union([ TimeOffUpdateInputSchema,TimeOffUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TimeOffCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeOffCreateManyInputSchema,TimeOffCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TimeOffCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeOffCreateManyInputSchema,TimeOffCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TimeOffDeleteArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - where: TimeOffWhereUniqueInputSchema, -}).strict() ; - -export const TimeOffUpdateArgsSchema: z.ZodType = z.object({ - select: TimeOffSelectSchema.optional(), - include: TimeOffIncludeSchema.optional(), - data: z.union([ TimeOffUpdateInputSchema,TimeOffUncheckedUpdateInputSchema ]), - where: TimeOffWhereUniqueInputSchema, -}).strict() ; - -export const TimeOffUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TimeOffUpdateManyMutationInputSchema,TimeOffUncheckedUpdateManyInputSchema ]), - where: TimeOffWhereInputSchema.optional(), -}).strict() ; - -export const TimeOffDeleteManyArgsSchema: z.ZodType = z.object({ - where: TimeOffWhereInputSchema.optional(), -}).strict() ; - -export const PerformanceReviewCreateArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - data: z.union([ PerformanceReviewCreateInputSchema,PerformanceReviewUncheckedCreateInputSchema ]), -}).strict() ; - -export const PerformanceReviewUpsertArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereUniqueInputSchema, - create: z.union([ PerformanceReviewCreateInputSchema,PerformanceReviewUncheckedCreateInputSchema ]), - update: z.union([ PerformanceReviewUpdateInputSchema,PerformanceReviewUncheckedUpdateInputSchema ]), -}).strict() ; - -export const PerformanceReviewCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PerformanceReviewCreateManyInputSchema,PerformanceReviewCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PerformanceReviewCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ PerformanceReviewCreateManyInputSchema,PerformanceReviewCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const PerformanceReviewDeleteArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - where: PerformanceReviewWhereUniqueInputSchema, -}).strict() ; - -export const PerformanceReviewUpdateArgsSchema: z.ZodType = z.object({ - select: PerformanceReviewSelectSchema.optional(), - include: PerformanceReviewIncludeSchema.optional(), - data: z.union([ PerformanceReviewUpdateInputSchema,PerformanceReviewUncheckedUpdateInputSchema ]), - where: PerformanceReviewWhereUniqueInputSchema, -}).strict() ; - -export const PerformanceReviewUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ PerformanceReviewUpdateManyMutationInputSchema,PerformanceReviewUncheckedUpdateManyInputSchema ]), - where: PerformanceReviewWhereInputSchema.optional(), -}).strict() ; - -export const PerformanceReviewDeleteManyArgsSchema: z.ZodType = z.object({ - where: PerformanceReviewWhereInputSchema.optional(), -}).strict() ; - -export const MarketingCampaignCreateArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - data: z.union([ MarketingCampaignCreateInputSchema,MarketingCampaignUncheckedCreateInputSchema ]), -}).strict() ; - -export const MarketingCampaignUpsertArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereUniqueInputSchema, - create: z.union([ MarketingCampaignCreateInputSchema,MarketingCampaignUncheckedCreateInputSchema ]), - update: z.union([ MarketingCampaignUpdateInputSchema,MarketingCampaignUncheckedUpdateInputSchema ]), -}).strict() ; - -export const MarketingCampaignCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ MarketingCampaignCreateManyInputSchema,MarketingCampaignCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const MarketingCampaignCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ MarketingCampaignCreateManyInputSchema,MarketingCampaignCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const MarketingCampaignDeleteArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - where: MarketingCampaignWhereUniqueInputSchema, -}).strict() ; - -export const MarketingCampaignUpdateArgsSchema: z.ZodType = z.object({ - select: MarketingCampaignSelectSchema.optional(), - include: MarketingCampaignIncludeSchema.optional(), - data: z.union([ MarketingCampaignUpdateInputSchema,MarketingCampaignUncheckedUpdateInputSchema ]), - where: MarketingCampaignWhereUniqueInputSchema, -}).strict() ; - -export const MarketingCampaignUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ MarketingCampaignUpdateManyMutationInputSchema,MarketingCampaignUncheckedUpdateManyInputSchema ]), - where: MarketingCampaignWhereInputSchema.optional(), -}).strict() ; - -export const MarketingCampaignDeleteManyArgsSchema: z.ZodType = z.object({ - where: MarketingCampaignWhereInputSchema.optional(), -}).strict() ; - -export const EmailCampaignCreateArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - data: z.union([ EmailCampaignCreateInputSchema,EmailCampaignUncheckedCreateInputSchema ]), -}).strict() ; - -export const EmailCampaignUpsertArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereUniqueInputSchema, - create: z.union([ EmailCampaignCreateInputSchema,EmailCampaignUncheckedCreateInputSchema ]), - update: z.union([ EmailCampaignUpdateInputSchema,EmailCampaignUncheckedUpdateInputSchema ]), -}).strict() ; - -export const EmailCampaignCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailCampaignCreateManyInputSchema,EmailCampaignCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmailCampaignCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailCampaignCreateManyInputSchema,EmailCampaignCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmailCampaignDeleteArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - where: EmailCampaignWhereUniqueInputSchema, -}).strict() ; - -export const EmailCampaignUpdateArgsSchema: z.ZodType = z.object({ - select: EmailCampaignSelectSchema.optional(), - include: EmailCampaignIncludeSchema.optional(), - data: z.union([ EmailCampaignUpdateInputSchema,EmailCampaignUncheckedUpdateInputSchema ]), - where: EmailCampaignWhereUniqueInputSchema, -}).strict() ; - -export const EmailCampaignUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailCampaignUpdateManyMutationInputSchema,EmailCampaignUncheckedUpdateManyInputSchema ]), - where: EmailCampaignWhereInputSchema.optional(), -}).strict() ; - -export const EmailCampaignDeleteManyArgsSchema: z.ZodType = z.object({ - where: EmailCampaignWhereInputSchema.optional(), -}).strict() ; - -export const SocialMediaPostCreateArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - data: z.union([ SocialMediaPostCreateInputSchema,SocialMediaPostUncheckedCreateInputSchema ]), -}).strict() ; - -export const SocialMediaPostUpsertArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereUniqueInputSchema, - create: z.union([ SocialMediaPostCreateInputSchema,SocialMediaPostUncheckedCreateInputSchema ]), - update: z.union([ SocialMediaPostUpdateInputSchema,SocialMediaPostUncheckedUpdateInputSchema ]), -}).strict() ; - -export const SocialMediaPostCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SocialMediaPostCreateManyInputSchema,SocialMediaPostCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SocialMediaPostCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ SocialMediaPostCreateManyInputSchema,SocialMediaPostCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SocialMediaPostDeleteArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - where: SocialMediaPostWhereUniqueInputSchema, -}).strict() ; - -export const SocialMediaPostUpdateArgsSchema: z.ZodType = z.object({ - select: SocialMediaPostSelectSchema.optional(), - include: SocialMediaPostIncludeSchema.optional(), - data: z.union([ SocialMediaPostUpdateInputSchema,SocialMediaPostUncheckedUpdateInputSchema ]), - where: SocialMediaPostWhereUniqueInputSchema, -}).strict() ; - -export const SocialMediaPostUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SocialMediaPostUpdateManyMutationInputSchema,SocialMediaPostUncheckedUpdateManyInputSchema ]), - where: SocialMediaPostWhereInputSchema.optional(), -}).strict() ; - -export const SocialMediaPostDeleteManyArgsSchema: z.ZodType = z.object({ - where: SocialMediaPostWhereInputSchema.optional(), -}).strict() ; - -export const UserCreateArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - data: z.union([ UserCreateInputSchema,UserUncheckedCreateInputSchema ]), -}).strict() ; - -export const UserUpsertArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, - create: z.union([ UserCreateInputSchema,UserUncheckedCreateInputSchema ]), - update: z.union([ UserUpdateInputSchema,UserUncheckedUpdateInputSchema ]), -}).strict() ; - -export const UserCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserCreateManyInputSchema,UserCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const UserCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ UserCreateManyInputSchema,UserCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const UserDeleteArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - where: UserWhereUniqueInputSchema, -}).strict() ; - -export const UserUpdateArgsSchema: z.ZodType = z.object({ - select: UserSelectSchema.optional(), - include: UserIncludeSchema.optional(), - data: z.union([ UserUpdateInputSchema,UserUncheckedUpdateInputSchema ]), - where: UserWhereUniqueInputSchema, -}).strict() ; - -export const UserUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ UserUpdateManyMutationInputSchema,UserUncheckedUpdateManyInputSchema ]), - where: UserWhereInputSchema.optional(), -}).strict() ; - -export const UserDeleteManyArgsSchema: z.ZodType = z.object({ - where: UserWhereInputSchema.optional(), -}).strict() ; - -export const SessionCreateArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - data: z.union([ SessionCreateInputSchema,SessionUncheckedCreateInputSchema ]), -}).strict() ; - -export const SessionUpsertArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, - create: z.union([ SessionCreateInputSchema,SessionUncheckedCreateInputSchema ]), - update: z.union([ SessionUpdateInputSchema,SessionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const SessionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SessionCreateManyInputSchema,SessionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SessionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ SessionCreateManyInputSchema,SessionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SessionDeleteArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - where: SessionWhereUniqueInputSchema, -}).strict() ; - -export const SessionUpdateArgsSchema: z.ZodType = z.object({ - select: SessionSelectSchema.optional(), - include: SessionIncludeSchema.optional(), - data: z.union([ SessionUpdateInputSchema,SessionUncheckedUpdateInputSchema ]), - where: SessionWhereUniqueInputSchema, -}).strict() ; - -export const SessionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SessionUpdateManyMutationInputSchema,SessionUncheckedUpdateManyInputSchema ]), - where: SessionWhereInputSchema.optional(), -}).strict() ; - -export const SessionDeleteManyArgsSchema: z.ZodType = z.object({ - where: SessionWhereInputSchema.optional(), -}).strict() ; - -export const AccountCreateArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - data: z.union([ AccountCreateInputSchema,AccountUncheckedCreateInputSchema ]), -}).strict() ; - -export const AccountUpsertArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, - create: z.union([ AccountCreateInputSchema,AccountUncheckedCreateInputSchema ]), - update: z.union([ AccountUpdateInputSchema,AccountUncheckedUpdateInputSchema ]), -}).strict() ; - -export const AccountCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AccountCreateManyInputSchema,AccountCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const AccountCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ AccountCreateManyInputSchema,AccountCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const AccountDeleteArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - where: AccountWhereUniqueInputSchema, -}).strict() ; - -export const AccountUpdateArgsSchema: z.ZodType = z.object({ - select: AccountSelectSchema.optional(), - include: AccountIncludeSchema.optional(), - data: z.union([ AccountUpdateInputSchema,AccountUncheckedUpdateInputSchema ]), - where: AccountWhereUniqueInputSchema, -}).strict() ; - -export const AccountUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ AccountUpdateManyMutationInputSchema,AccountUncheckedUpdateManyInputSchema ]), - where: AccountWhereInputSchema.optional(), -}).strict() ; - -export const AccountDeleteManyArgsSchema: z.ZodType = z.object({ - where: AccountWhereInputSchema.optional(), -}).strict() ; - -export const VerificationCreateArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - data: z.union([ VerificationCreateInputSchema,VerificationUncheckedCreateInputSchema ]), -}).strict() ; - -export const VerificationUpsertArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereUniqueInputSchema, - create: z.union([ VerificationCreateInputSchema,VerificationUncheckedCreateInputSchema ]), - update: z.union([ VerificationUpdateInputSchema,VerificationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const VerificationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VerificationCreateManyInputSchema,VerificationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const VerificationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ VerificationCreateManyInputSchema,VerificationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const VerificationDeleteArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - where: VerificationWhereUniqueInputSchema, -}).strict() ; - -export const VerificationUpdateArgsSchema: z.ZodType = z.object({ - select: VerificationSelectSchema.optional(), - data: z.union([ VerificationUpdateInputSchema,VerificationUncheckedUpdateInputSchema ]), - where: VerificationWhereUniqueInputSchema, -}).strict() ; - -export const VerificationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VerificationUpdateManyMutationInputSchema,VerificationUncheckedUpdateManyInputSchema ]), - where: VerificationWhereInputSchema.optional(), -}).strict() ; - -export const VerificationDeleteManyArgsSchema: z.ZodType = z.object({ - where: VerificationWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportCreateArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - data: z.union([ FinancialReportCreateInputSchema,FinancialReportUncheckedCreateInputSchema ]), -}).strict() ; - -export const FinancialReportUpsertArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereUniqueInputSchema, - create: z.union([ FinancialReportCreateInputSchema,FinancialReportUncheckedCreateInputSchema ]), - update: z.union([ FinancialReportUpdateInputSchema,FinancialReportUncheckedUpdateInputSchema ]), -}).strict() ; - -export const FinancialReportCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportCreateManyInputSchema,FinancialReportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportCreateManyInputSchema,FinancialReportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportDeleteArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - where: FinancialReportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportUpdateArgsSchema: z.ZodType = z.object({ - select: FinancialReportSelectSchema.optional(), - include: FinancialReportIncludeSchema.optional(), - data: z.union([ FinancialReportUpdateInputSchema,FinancialReportUncheckedUpdateInputSchema ]), - where: FinancialReportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportUpdateManyMutationInputSchema,FinancialReportUncheckedUpdateManyInputSchema ]), - where: FinancialReportWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportDeleteManyArgsSchema: z.ZodType = z.object({ - where: FinancialReportWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportDataCreateArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - data: z.union([ FinancialReportDataCreateInputSchema,FinancialReportDataUncheckedCreateInputSchema ]), -}).strict() ; - -export const FinancialReportDataUpsertArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereUniqueInputSchema, - create: z.union([ FinancialReportDataCreateInputSchema,FinancialReportDataUncheckedCreateInputSchema ]), - update: z.union([ FinancialReportDataUpdateInputSchema,FinancialReportDataUncheckedUpdateInputSchema ]), -}).strict() ; - -export const FinancialReportDataCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportDataCreateManyInputSchema,FinancialReportDataCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportDataCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportDataCreateManyInputSchema,FinancialReportDataCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportDataDeleteArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - where: FinancialReportDataWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportDataUpdateArgsSchema: z.ZodType = z.object({ - select: FinancialReportDataSelectSchema.optional(), - include: FinancialReportDataIncludeSchema.optional(), - data: z.union([ FinancialReportDataUpdateInputSchema,FinancialReportDataUncheckedUpdateInputSchema ]), - where: FinancialReportDataWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportDataUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportDataUpdateManyMutationInputSchema,FinancialReportDataUncheckedUpdateManyInputSchema ]), - where: FinancialReportDataWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportDataDeleteManyArgsSchema: z.ZodType = z.object({ - where: FinancialReportDataWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportExportCreateArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - data: z.union([ FinancialReportExportCreateInputSchema,FinancialReportExportUncheckedCreateInputSchema ]), -}).strict() ; - -export const FinancialReportExportUpsertArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereUniqueInputSchema, - create: z.union([ FinancialReportExportCreateInputSchema,FinancialReportExportUncheckedCreateInputSchema ]), - update: z.union([ FinancialReportExportUpdateInputSchema,FinancialReportExportUncheckedUpdateInputSchema ]), -}).strict() ; - -export const FinancialReportExportCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportExportCreateManyInputSchema,FinancialReportExportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportExportCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportExportCreateManyInputSchema,FinancialReportExportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportExportDeleteArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - where: FinancialReportExportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportExportUpdateArgsSchema: z.ZodType = z.object({ - select: FinancialReportExportSelectSchema.optional(), - include: FinancialReportExportIncludeSchema.optional(), - data: z.union([ FinancialReportExportUpdateInputSchema,FinancialReportExportUncheckedUpdateInputSchema ]), - where: FinancialReportExportWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportExportUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportExportUpdateManyMutationInputSchema,FinancialReportExportUncheckedUpdateManyInputSchema ]), - where: FinancialReportExportWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportExportDeleteManyArgsSchema: z.ZodType = z.object({ - where: FinancialReportExportWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportScheduleCreateArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - data: z.union([ FinancialReportScheduleCreateInputSchema,FinancialReportScheduleUncheckedCreateInputSchema ]), -}).strict() ; - -export const FinancialReportScheduleUpsertArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereUniqueInputSchema, - create: z.union([ FinancialReportScheduleCreateInputSchema,FinancialReportScheduleUncheckedCreateInputSchema ]), - update: z.union([ FinancialReportScheduleUpdateInputSchema,FinancialReportScheduleUncheckedUpdateInputSchema ]), -}).strict() ; - -export const FinancialReportScheduleCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportScheduleCreateManyInputSchema,FinancialReportScheduleCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportScheduleCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportScheduleCreateManyInputSchema,FinancialReportScheduleCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const FinancialReportScheduleDeleteArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - where: FinancialReportScheduleWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportScheduleUpdateArgsSchema: z.ZodType = z.object({ - select: FinancialReportScheduleSelectSchema.optional(), - include: FinancialReportScheduleIncludeSchema.optional(), - data: z.union([ FinancialReportScheduleUpdateInputSchema,FinancialReportScheduleUncheckedUpdateInputSchema ]), - where: FinancialReportScheduleWhereUniqueInputSchema, -}).strict() ; - -export const FinancialReportScheduleUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ FinancialReportScheduleUpdateManyMutationInputSchema,FinancialReportScheduleUncheckedUpdateManyInputSchema ]), - where: FinancialReportScheduleWhereInputSchema.optional(), -}).strict() ; - -export const FinancialReportScheduleDeleteManyArgsSchema: z.ZodType = z.object({ - where: FinancialReportScheduleWhereInputSchema.optional(), -}).strict() ; - -export const TemplatePackageCreateArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - data: z.union([ TemplatePackageCreateInputSchema,TemplatePackageUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplatePackageUpsertArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereUniqueInputSchema, - create: z.union([ TemplatePackageCreateInputSchema,TemplatePackageUncheckedCreateInputSchema ]), - update: z.union([ TemplatePackageUpdateInputSchema,TemplatePackageUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplatePackageCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplatePackageCreateManyInputSchema,TemplatePackageCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplatePackageCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplatePackageCreateManyInputSchema,TemplatePackageCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplatePackageDeleteArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - where: TemplatePackageWhereUniqueInputSchema, -}).strict() ; - -export const TemplatePackageUpdateArgsSchema: z.ZodType = z.object({ - select: TemplatePackageSelectSchema.optional(), - include: TemplatePackageIncludeSchema.optional(), - data: z.union([ TemplatePackageUpdateInputSchema,TemplatePackageUncheckedUpdateInputSchema ]), - where: TemplatePackageWhereUniqueInputSchema, -}).strict() ; - -export const TemplatePackageUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplatePackageUpdateManyMutationInputSchema,TemplatePackageUncheckedUpdateManyInputSchema ]), - where: TemplatePackageWhereInputSchema.optional(), -}).strict() ; - -export const TemplatePackageDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplatePackageWhereInputSchema.optional(), -}).strict() ; - -export const TemplateVersionCreateArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - data: z.union([ TemplateVersionCreateInputSchema,TemplateVersionUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateVersionUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereUniqueInputSchema, - create: z.union([ TemplateVersionCreateInputSchema,TemplateVersionUncheckedCreateInputSchema ]), - update: z.union([ TemplateVersionUpdateInputSchema,TemplateVersionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateVersionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateVersionCreateManyInputSchema,TemplateVersionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateVersionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateVersionCreateManyInputSchema,TemplateVersionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateVersionDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - where: TemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const TemplateVersionUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateVersionSelectSchema.optional(), - include: TemplateVersionIncludeSchema.optional(), - data: z.union([ TemplateVersionUpdateInputSchema,TemplateVersionUncheckedUpdateInputSchema ]), - where: TemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const TemplateVersionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateVersionUpdateManyMutationInputSchema,TemplateVersionUncheckedUpdateManyInputSchema ]), - where: TemplateVersionWhereInputSchema.optional(), -}).strict() ; - -export const TemplateVersionDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateVersionWhereInputSchema.optional(), -}).strict() ; - -export const TemplateInstallationCreateArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - data: z.union([ TemplateInstallationCreateInputSchema,TemplateInstallationUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateInstallationUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereUniqueInputSchema, - create: z.union([ TemplateInstallationCreateInputSchema,TemplateInstallationUncheckedCreateInputSchema ]), - update: z.union([ TemplateInstallationUpdateInputSchema,TemplateInstallationUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateInstallationCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallationCreateManyInputSchema,TemplateInstallationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateInstallationCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallationCreateManyInputSchema,TemplateInstallationCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateInstallationDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - where: TemplateInstallationWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallationUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateInstallationSelectSchema.optional(), - include: TemplateInstallationIncludeSchema.optional(), - data: z.union([ TemplateInstallationUpdateInputSchema,TemplateInstallationUncheckedUpdateInputSchema ]), - where: TemplateInstallationWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallationUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallationUpdateManyMutationInputSchema,TemplateInstallationUncheckedUpdateManyInputSchema ]), - where: TemplateInstallationWhereInputSchema.optional(), -}).strict() ; - -export const TemplateInstallationDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateInstallationWhereInputSchema.optional(), -}).strict() ; - -export const TemplateInstallItemCreateArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - data: z.union([ TemplateInstallItemCreateInputSchema,TemplateInstallItemUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateInstallItemUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereUniqueInputSchema, - create: z.union([ TemplateInstallItemCreateInputSchema,TemplateInstallItemUncheckedCreateInputSchema ]), - update: z.union([ TemplateInstallItemUpdateInputSchema,TemplateInstallItemUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateInstallItemCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallItemCreateManyInputSchema,TemplateInstallItemCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateInstallItemCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallItemCreateManyInputSchema,TemplateInstallItemCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateInstallItemDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - where: TemplateInstallItemWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallItemUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateInstallItemSelectSchema.optional(), - include: TemplateInstallItemIncludeSchema.optional(), - data: z.union([ TemplateInstallItemUpdateInputSchema,TemplateInstallItemUncheckedUpdateInputSchema ]), - where: TemplateInstallItemWhereUniqueInputSchema, -}).strict() ; - -export const TemplateInstallItemUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateInstallItemUpdateManyMutationInputSchema,TemplateInstallItemUncheckedUpdateManyInputSchema ]), - where: TemplateInstallItemWhereInputSchema.optional(), -}).strict() ; - -export const TemplateInstallItemDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateInstallItemWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - data: z.union([ WorkflowCreateInputSchema,WorkflowUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereUniqueInputSchema, - create: z.union([ WorkflowCreateInputSchema,WorkflowUncheckedCreateInputSchema ]), - update: z.union([ WorkflowUpdateInputSchema,WorkflowUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowCreateManyInputSchema,WorkflowCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowCreateManyInputSchema,WorkflowCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - where: WorkflowWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowSelectSchema.optional(), - include: WorkflowIncludeSchema.optional(), - data: z.union([ WorkflowUpdateInputSchema,WorkflowUncheckedUpdateInputSchema ]), - where: WorkflowWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowUpdateManyMutationInputSchema,WorkflowUncheckedUpdateManyInputSchema ]), - where: WorkflowWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowWhereInputSchema.optional(), -}).strict() ; - -export const OrganizationUiConfigCreateArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - data: z.union([ OrganizationUiConfigCreateInputSchema,OrganizationUiConfigUncheckedCreateInputSchema ]), -}).strict() ; - -export const OrganizationUiConfigUpsertArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereUniqueInputSchema, - create: z.union([ OrganizationUiConfigCreateInputSchema,OrganizationUiConfigUncheckedCreateInputSchema ]), - update: z.union([ OrganizationUiConfigUpdateInputSchema,OrganizationUiConfigUncheckedUpdateInputSchema ]), -}).strict() ; - -export const OrganizationUiConfigCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationUiConfigCreateManyInputSchema,OrganizationUiConfigCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const OrganizationUiConfigCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationUiConfigCreateManyInputSchema,OrganizationUiConfigCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const OrganizationUiConfigDeleteArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - where: OrganizationUiConfigWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUiConfigUpdateArgsSchema: z.ZodType = z.object({ - select: OrganizationUiConfigSelectSchema.optional(), - include: OrganizationUiConfigIncludeSchema.optional(), - data: z.union([ OrganizationUiConfigUpdateInputSchema,OrganizationUiConfigUncheckedUpdateInputSchema ]), - where: OrganizationUiConfigWhereUniqueInputSchema, -}).strict() ; - -export const OrganizationUiConfigUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ OrganizationUiConfigUpdateManyMutationInputSchema,OrganizationUiConfigUncheckedUpdateManyInputSchema ]), - where: OrganizationUiConfigWhereInputSchema.optional(), -}).strict() ; - -export const OrganizationUiConfigDeleteManyArgsSchema: z.ZodType = z.object({ - where: OrganizationUiConfigWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowTriggerCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - data: z.union([ WorkflowTriggerCreateInputSchema,WorkflowTriggerUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowTriggerUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereUniqueInputSchema, - create: z.union([ WorkflowTriggerCreateInputSchema,WorkflowTriggerUncheckedCreateInputSchema ]), - update: z.union([ WorkflowTriggerUpdateInputSchema,WorkflowTriggerUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowTriggerCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowTriggerCreateManyInputSchema,WorkflowTriggerCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowTriggerCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowTriggerCreateManyInputSchema,WorkflowTriggerCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowTriggerDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - where: WorkflowTriggerWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowTriggerUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowTriggerSelectSchema.optional(), - include: WorkflowTriggerIncludeSchema.optional(), - data: z.union([ WorkflowTriggerUpdateInputSchema,WorkflowTriggerUncheckedUpdateInputSchema ]), - where: WorkflowTriggerWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowTriggerUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowTriggerUpdateManyMutationInputSchema,WorkflowTriggerUncheckedUpdateManyInputSchema ]), - where: WorkflowTriggerWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowTriggerDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowTriggerWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowNodeCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - data: z.union([ WorkflowNodeCreateInputSchema,WorkflowNodeUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowNodeUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereUniqueInputSchema, - create: z.union([ WorkflowNodeCreateInputSchema,WorkflowNodeUncheckedCreateInputSchema ]), - update: z.union([ WorkflowNodeUpdateInputSchema,WorkflowNodeUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowNodeCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowNodeCreateManyInputSchema,WorkflowNodeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowNodeCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowNodeCreateManyInputSchema,WorkflowNodeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowNodeDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - where: WorkflowNodeWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowNodeUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowNodeSelectSchema.optional(), - include: WorkflowNodeIncludeSchema.optional(), - data: z.union([ WorkflowNodeUpdateInputSchema,WorkflowNodeUncheckedUpdateInputSchema ]), - where: WorkflowNodeWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowNodeUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowNodeUpdateManyMutationInputSchema,WorkflowNodeUncheckedUpdateManyInputSchema ]), - where: WorkflowNodeWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowNodeDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowNodeWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowConnectionCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - data: z.union([ WorkflowConnectionCreateInputSchema,WorkflowConnectionUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowConnectionUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereUniqueInputSchema, - create: z.union([ WorkflowConnectionCreateInputSchema,WorkflowConnectionUncheckedCreateInputSchema ]), - update: z.union([ WorkflowConnectionUpdateInputSchema,WorkflowConnectionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowConnectionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowConnectionCreateManyInputSchema,WorkflowConnectionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowConnectionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowConnectionCreateManyInputSchema,WorkflowConnectionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowConnectionDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - where: WorkflowConnectionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowConnectionUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowConnectionSelectSchema.optional(), - include: WorkflowConnectionIncludeSchema.optional(), - data: z.union([ WorkflowConnectionUpdateInputSchema,WorkflowConnectionUncheckedUpdateInputSchema ]), - where: WorkflowConnectionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowConnectionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowConnectionUpdateManyMutationInputSchema,WorkflowConnectionUncheckedUpdateManyInputSchema ]), - where: WorkflowConnectionWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowConnectionDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowConnectionWhereInputSchema.optional(), -}).strict() ; - -export const NodeDependencyCreateArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - data: z.union([ NodeDependencyCreateInputSchema,NodeDependencyUncheckedCreateInputSchema ]), -}).strict() ; - -export const NodeDependencyUpsertArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereUniqueInputSchema, - create: z.union([ NodeDependencyCreateInputSchema,NodeDependencyUncheckedCreateInputSchema ]), - update: z.union([ NodeDependencyUpdateInputSchema,NodeDependencyUncheckedUpdateInputSchema ]), -}).strict() ; - -export const NodeDependencyCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeDependencyCreateManyInputSchema,NodeDependencyCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NodeDependencyCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeDependencyCreateManyInputSchema,NodeDependencyCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NodeDependencyDeleteArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - where: NodeDependencyWhereUniqueInputSchema, -}).strict() ; - -export const NodeDependencyUpdateArgsSchema: z.ZodType = z.object({ - select: NodeDependencySelectSchema.optional(), - include: NodeDependencyIncludeSchema.optional(), - data: z.union([ NodeDependencyUpdateInputSchema,NodeDependencyUncheckedUpdateInputSchema ]), - where: NodeDependencyWhereUniqueInputSchema, -}).strict() ; - -export const NodeDependencyUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeDependencyUpdateManyMutationInputSchema,NodeDependencyUncheckedUpdateManyInputSchema ]), - where: NodeDependencyWhereInputSchema.optional(), -}).strict() ; - -export const NodeDependencyDeleteManyArgsSchema: z.ZodType = z.object({ - where: NodeDependencyWhereInputSchema.optional(), -}).strict() ; - -export const ActionTemplateCreateArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - data: z.union([ ActionTemplateCreateInputSchema,ActionTemplateUncheckedCreateInputSchema ]), -}).strict() ; - -export const ActionTemplateUpsertArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereUniqueInputSchema, - create: z.union([ ActionTemplateCreateInputSchema,ActionTemplateUncheckedCreateInputSchema ]), - update: z.union([ ActionTemplateUpdateInputSchema,ActionTemplateUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ActionTemplateCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateCreateManyInputSchema,ActionTemplateCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ActionTemplateCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateCreateManyInputSchema,ActionTemplateCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ActionTemplateDeleteArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - where: ActionTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateUpdateArgsSchema: z.ZodType = z.object({ - select: ActionTemplateSelectSchema.optional(), - include: ActionTemplateIncludeSchema.optional(), - data: z.union([ ActionTemplateUpdateInputSchema,ActionTemplateUncheckedUpdateInputSchema ]), - where: ActionTemplateWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateUpdateManyMutationInputSchema,ActionTemplateUncheckedUpdateManyInputSchema ]), - where: ActionTemplateWhereInputSchema.optional(), -}).strict() ; - -export const ActionTemplateDeleteManyArgsSchema: z.ZodType = z.object({ - where: ActionTemplateWhereInputSchema.optional(), -}).strict() ; - -export const ActionTemplateVersionCreateArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - data: z.union([ ActionTemplateVersionCreateInputSchema,ActionTemplateVersionUncheckedCreateInputSchema ]), -}).strict() ; - -export const ActionTemplateVersionUpsertArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereUniqueInputSchema, - create: z.union([ ActionTemplateVersionCreateInputSchema,ActionTemplateVersionUncheckedCreateInputSchema ]), - update: z.union([ ActionTemplateVersionUpdateInputSchema,ActionTemplateVersionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ActionTemplateVersionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateVersionCreateManyInputSchema,ActionTemplateVersionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ActionTemplateVersionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateVersionCreateManyInputSchema,ActionTemplateVersionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ActionTemplateVersionDeleteArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - where: ActionTemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateVersionUpdateArgsSchema: z.ZodType = z.object({ - select: ActionTemplateVersionSelectSchema.optional(), - include: ActionTemplateVersionIncludeSchema.optional(), - data: z.union([ ActionTemplateVersionUpdateInputSchema,ActionTemplateVersionUncheckedUpdateInputSchema ]), - where: ActionTemplateVersionWhereUniqueInputSchema, -}).strict() ; - -export const ActionTemplateVersionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ActionTemplateVersionUpdateManyMutationInputSchema,ActionTemplateVersionUncheckedUpdateManyInputSchema ]), - where: ActionTemplateVersionWhereInputSchema.optional(), -}).strict() ; - -export const ActionTemplateVersionDeleteManyArgsSchema: z.ZodType = z.object({ - where: ActionTemplateVersionWhereInputSchema.optional(), -}).strict() ; - -export const VariableDefinitionCreateArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - data: z.union([ VariableDefinitionCreateInputSchema,VariableDefinitionUncheckedCreateInputSchema ]), -}).strict() ; - -export const VariableDefinitionUpsertArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereUniqueInputSchema, - create: z.union([ VariableDefinitionCreateInputSchema,VariableDefinitionUncheckedCreateInputSchema ]), - update: z.union([ VariableDefinitionUpdateInputSchema,VariableDefinitionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const VariableDefinitionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VariableDefinitionCreateManyInputSchema,VariableDefinitionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const VariableDefinitionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ VariableDefinitionCreateManyInputSchema,VariableDefinitionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const VariableDefinitionDeleteArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - where: VariableDefinitionWhereUniqueInputSchema, -}).strict() ; - -export const VariableDefinitionUpdateArgsSchema: z.ZodType = z.object({ - select: VariableDefinitionSelectSchema.optional(), - include: VariableDefinitionIncludeSchema.optional(), - data: z.union([ VariableDefinitionUpdateInputSchema,VariableDefinitionUncheckedUpdateInputSchema ]), - where: VariableDefinitionWhereUniqueInputSchema, -}).strict() ; - -export const VariableDefinitionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ VariableDefinitionUpdateManyMutationInputSchema,VariableDefinitionUncheckedUpdateManyInputSchema ]), - where: VariableDefinitionWhereInputSchema.optional(), -}).strict() ; - -export const VariableDefinitionDeleteManyArgsSchema: z.ZodType = z.object({ - where: VariableDefinitionWhereInputSchema.optional(), -}).strict() ; - -export const TriggerVariableCreateArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - data: z.union([ TriggerVariableCreateInputSchema,TriggerVariableUncheckedCreateInputSchema ]), -}).strict() ; - -export const TriggerVariableUpsertArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereUniqueInputSchema, - create: z.union([ TriggerVariableCreateInputSchema,TriggerVariableUncheckedCreateInputSchema ]), - update: z.union([ TriggerVariableUpdateInputSchema,TriggerVariableUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TriggerVariableCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TriggerVariableCreateManyInputSchema,TriggerVariableCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TriggerVariableCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TriggerVariableCreateManyInputSchema,TriggerVariableCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TriggerVariableDeleteArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - where: TriggerVariableWhereUniqueInputSchema, -}).strict() ; - -export const TriggerVariableUpdateArgsSchema: z.ZodType = z.object({ - select: TriggerVariableSelectSchema.optional(), - include: TriggerVariableIncludeSchema.optional(), - data: z.union([ TriggerVariableUpdateInputSchema,TriggerVariableUncheckedUpdateInputSchema ]), - where: TriggerVariableWhereUniqueInputSchema, -}).strict() ; - -export const TriggerVariableUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TriggerVariableUpdateManyMutationInputSchema,TriggerVariableUncheckedUpdateManyInputSchema ]), - where: TriggerVariableWhereInputSchema.optional(), -}).strict() ; - -export const TriggerVariableDeleteManyArgsSchema: z.ZodType = z.object({ - where: TriggerVariableWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowExecutionCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - data: z.union([ WorkflowExecutionCreateInputSchema,WorkflowExecutionUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowExecutionUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereUniqueInputSchema, - create: z.union([ WorkflowExecutionCreateInputSchema,WorkflowExecutionUncheckedCreateInputSchema ]), - update: z.union([ WorkflowExecutionUpdateInputSchema,WorkflowExecutionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowExecutionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowExecutionCreateManyInputSchema,WorkflowExecutionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowExecutionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowExecutionCreateManyInputSchema,WorkflowExecutionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowExecutionDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - where: WorkflowExecutionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowExecutionUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowExecutionSelectSchema.optional(), - include: WorkflowExecutionIncludeSchema.optional(), - data: z.union([ WorkflowExecutionUpdateInputSchema,WorkflowExecutionUncheckedUpdateInputSchema ]), - where: WorkflowExecutionWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowExecutionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowExecutionUpdateManyMutationInputSchema,WorkflowExecutionUncheckedUpdateManyInputSchema ]), - where: WorkflowExecutionWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowExecutionDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowExecutionWhereInputSchema.optional(), -}).strict() ; - -export const NodeExecutionCreateArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - data: z.union([ NodeExecutionCreateInputSchema,NodeExecutionUncheckedCreateInputSchema ]), -}).strict() ; - -export const NodeExecutionUpsertArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereUniqueInputSchema, - create: z.union([ NodeExecutionCreateInputSchema,NodeExecutionUncheckedCreateInputSchema ]), - update: z.union([ NodeExecutionUpdateInputSchema,NodeExecutionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const NodeExecutionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeExecutionCreateManyInputSchema,NodeExecutionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NodeExecutionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeExecutionCreateManyInputSchema,NodeExecutionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const NodeExecutionDeleteArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - where: NodeExecutionWhereUniqueInputSchema, -}).strict() ; - -export const NodeExecutionUpdateArgsSchema: z.ZodType = z.object({ - select: NodeExecutionSelectSchema.optional(), - include: NodeExecutionIncludeSchema.optional(), - data: z.union([ NodeExecutionUpdateInputSchema,NodeExecutionUncheckedUpdateInputSchema ]), - where: NodeExecutionWhereUniqueInputSchema, -}).strict() ; - -export const NodeExecutionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ NodeExecutionUpdateManyMutationInputSchema,NodeExecutionUncheckedUpdateManyInputSchema ]), - where: NodeExecutionWhereInputSchema.optional(), -}).strict() ; - -export const NodeExecutionDeleteManyArgsSchema: z.ZodType = z.object({ - where: NodeExecutionWhereInputSchema.optional(), -}).strict() ; - -export const ExecutionVariableCreateArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - data: z.union([ ExecutionVariableCreateInputSchema,ExecutionVariableUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExecutionVariableUpsertArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereUniqueInputSchema, - create: z.union([ ExecutionVariableCreateInputSchema,ExecutionVariableUncheckedCreateInputSchema ]), - update: z.union([ ExecutionVariableUpdateInputSchema,ExecutionVariableUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExecutionVariableCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionVariableCreateManyInputSchema,ExecutionVariableCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExecutionVariableCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionVariableCreateManyInputSchema,ExecutionVariableCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExecutionVariableDeleteArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - where: ExecutionVariableWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionVariableUpdateArgsSchema: z.ZodType = z.object({ - select: ExecutionVariableSelectSchema.optional(), - include: ExecutionVariableIncludeSchema.optional(), - data: z.union([ ExecutionVariableUpdateInputSchema,ExecutionVariableUncheckedUpdateInputSchema ]), - where: ExecutionVariableWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionVariableUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionVariableUpdateManyMutationInputSchema,ExecutionVariableUncheckedUpdateManyInputSchema ]), - where: ExecutionVariableWhereInputSchema.optional(), -}).strict() ; - -export const ExecutionVariableDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExecutionVariableWhereInputSchema.optional(), -}).strict() ; - -export const ExecutionLogCreateArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - data: z.union([ ExecutionLogCreateInputSchema,ExecutionLogUncheckedCreateInputSchema ]), -}).strict() ; - -export const ExecutionLogUpsertArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereUniqueInputSchema, - create: z.union([ ExecutionLogCreateInputSchema,ExecutionLogUncheckedCreateInputSchema ]), - update: z.union([ ExecutionLogUpdateInputSchema,ExecutionLogUncheckedUpdateInputSchema ]), -}).strict() ; - -export const ExecutionLogCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionLogCreateManyInputSchema,ExecutionLogCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExecutionLogCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionLogCreateManyInputSchema,ExecutionLogCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const ExecutionLogDeleteArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - where: ExecutionLogWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionLogUpdateArgsSchema: z.ZodType = z.object({ - select: ExecutionLogSelectSchema.optional(), - include: ExecutionLogIncludeSchema.optional(), - data: z.union([ ExecutionLogUpdateInputSchema,ExecutionLogUncheckedUpdateInputSchema ]), - where: ExecutionLogWhereUniqueInputSchema, -}).strict() ; - -export const ExecutionLogUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ ExecutionLogUpdateManyMutationInputSchema,ExecutionLogUncheckedUpdateManyInputSchema ]), - where: ExecutionLogWhereInputSchema.optional(), -}).strict() ; - -export const ExecutionLogDeleteManyArgsSchema: z.ZodType = z.object({ - where: ExecutionLogWhereInputSchema.optional(), -}).strict() ; - -export const IntegrationConfigCreateArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - data: z.union([ IntegrationConfigCreateInputSchema,IntegrationConfigUncheckedCreateInputSchema ]), -}).strict() ; - -export const IntegrationConfigUpsertArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereUniqueInputSchema, - create: z.union([ IntegrationConfigCreateInputSchema,IntegrationConfigUncheckedCreateInputSchema ]), - update: z.union([ IntegrationConfigUpdateInputSchema,IntegrationConfigUncheckedUpdateInputSchema ]), -}).strict() ; - -export const IntegrationConfigCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ IntegrationConfigCreateManyInputSchema,IntegrationConfigCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const IntegrationConfigCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ IntegrationConfigCreateManyInputSchema,IntegrationConfigCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const IntegrationConfigDeleteArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - where: IntegrationConfigWhereUniqueInputSchema, -}).strict() ; - -export const IntegrationConfigUpdateArgsSchema: z.ZodType = z.object({ - select: IntegrationConfigSelectSchema.optional(), - include: IntegrationConfigIncludeSchema.optional(), - data: z.union([ IntegrationConfigUpdateInputSchema,IntegrationConfigUncheckedUpdateInputSchema ]), - where: IntegrationConfigWhereUniqueInputSchema, -}).strict() ; - -export const IntegrationConfigUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ IntegrationConfigUpdateManyMutationInputSchema,IntegrationConfigUncheckedUpdateManyInputSchema ]), - where: IntegrationConfigWhereInputSchema.optional(), -}).strict() ; - -export const IntegrationConfigDeleteManyArgsSchema: z.ZodType = z.object({ - where: IntegrationConfigWhereInputSchema.optional(), -}).strict() ; - -export const EmailActionCreateArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - data: z.union([ EmailActionCreateInputSchema,EmailActionUncheckedCreateInputSchema ]), -}).strict() ; - -export const EmailActionUpsertArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereUniqueInputSchema, - create: z.union([ EmailActionCreateInputSchema,EmailActionUncheckedCreateInputSchema ]), - update: z.union([ EmailActionUpdateInputSchema,EmailActionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const EmailActionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailActionCreateManyInputSchema,EmailActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmailActionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailActionCreateManyInputSchema,EmailActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EmailActionDeleteArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - where: EmailActionWhereUniqueInputSchema, -}).strict() ; - -export const EmailActionUpdateArgsSchema: z.ZodType = z.object({ - select: EmailActionSelectSchema.optional(), - include: EmailActionIncludeSchema.optional(), - data: z.union([ EmailActionUpdateInputSchema,EmailActionUncheckedUpdateInputSchema ]), - where: EmailActionWhereUniqueInputSchema, -}).strict() ; - -export const EmailActionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EmailActionUpdateManyMutationInputSchema,EmailActionUncheckedUpdateManyInputSchema ]), - where: EmailActionWhereInputSchema.optional(), -}).strict() ; - -export const EmailActionDeleteManyArgsSchema: z.ZodType = z.object({ - where: EmailActionWhereInputSchema.optional(), -}).strict() ; - -export const SmsActionCreateArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - data: z.union([ SmsActionCreateInputSchema,SmsActionUncheckedCreateInputSchema ]), -}).strict() ; - -export const SmsActionUpsertArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereUniqueInputSchema, - create: z.union([ SmsActionCreateInputSchema,SmsActionUncheckedCreateInputSchema ]), - update: z.union([ SmsActionUpdateInputSchema,SmsActionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const SmsActionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SmsActionCreateManyInputSchema,SmsActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SmsActionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ SmsActionCreateManyInputSchema,SmsActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SmsActionDeleteArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - where: SmsActionWhereUniqueInputSchema, -}).strict() ; - -export const SmsActionUpdateArgsSchema: z.ZodType = z.object({ - select: SmsActionSelectSchema.optional(), - include: SmsActionIncludeSchema.optional(), - data: z.union([ SmsActionUpdateInputSchema,SmsActionUncheckedUpdateInputSchema ]), - where: SmsActionWhereUniqueInputSchema, -}).strict() ; - -export const SmsActionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SmsActionUpdateManyMutationInputSchema,SmsActionUncheckedUpdateManyInputSchema ]), - where: SmsActionWhereInputSchema.optional(), -}).strict() ; - -export const SmsActionDeleteManyArgsSchema: z.ZodType = z.object({ - where: SmsActionWhereInputSchema.optional(), -}).strict() ; - -export const WhatsAppActionCreateArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - data: z.union([ WhatsAppActionCreateInputSchema,WhatsAppActionUncheckedCreateInputSchema ]), -}).strict() ; - -export const WhatsAppActionUpsertArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereUniqueInputSchema, - create: z.union([ WhatsAppActionCreateInputSchema,WhatsAppActionUncheckedCreateInputSchema ]), - update: z.union([ WhatsAppActionUpdateInputSchema,WhatsAppActionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WhatsAppActionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WhatsAppActionCreateManyInputSchema,WhatsAppActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WhatsAppActionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WhatsAppActionCreateManyInputSchema,WhatsAppActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WhatsAppActionDeleteArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - where: WhatsAppActionWhereUniqueInputSchema, -}).strict() ; - -export const WhatsAppActionUpdateArgsSchema: z.ZodType = z.object({ - select: WhatsAppActionSelectSchema.optional(), - include: WhatsAppActionIncludeSchema.optional(), - data: z.union([ WhatsAppActionUpdateInputSchema,WhatsAppActionUncheckedUpdateInputSchema ]), - where: WhatsAppActionWhereUniqueInputSchema, -}).strict() ; - -export const WhatsAppActionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WhatsAppActionUpdateManyMutationInputSchema,WhatsAppActionUncheckedUpdateManyInputSchema ]), - where: WhatsAppActionWhereInputSchema.optional(), -}).strict() ; - -export const WhatsAppActionDeleteManyArgsSchema: z.ZodType = z.object({ - where: WhatsAppActionWhereInputSchema.optional(), -}).strict() ; - -export const SlackActionCreateArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - data: z.union([ SlackActionCreateInputSchema,SlackActionUncheckedCreateInputSchema ]), -}).strict() ; - -export const SlackActionUpsertArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereUniqueInputSchema, - create: z.union([ SlackActionCreateInputSchema,SlackActionUncheckedCreateInputSchema ]), - update: z.union([ SlackActionUpdateInputSchema,SlackActionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const SlackActionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SlackActionCreateManyInputSchema,SlackActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SlackActionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ SlackActionCreateManyInputSchema,SlackActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const SlackActionDeleteArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - where: SlackActionWhereUniqueInputSchema, -}).strict() ; - -export const SlackActionUpdateArgsSchema: z.ZodType = z.object({ - select: SlackActionSelectSchema.optional(), - include: SlackActionIncludeSchema.optional(), - data: z.union([ SlackActionUpdateInputSchema,SlackActionUncheckedUpdateInputSchema ]), - where: SlackActionWhereUniqueInputSchema, -}).strict() ; - -export const SlackActionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ SlackActionUpdateManyMutationInputSchema,SlackActionUncheckedUpdateManyInputSchema ]), - where: SlackActionWhereInputSchema.optional(), -}).strict() ; - -export const SlackActionDeleteManyArgsSchema: z.ZodType = z.object({ - where: SlackActionWhereInputSchema.optional(), -}).strict() ; - -export const CalendarActionCreateArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - data: z.union([ CalendarActionCreateInputSchema,CalendarActionUncheckedCreateInputSchema ]), -}).strict() ; - -export const CalendarActionUpsertArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereUniqueInputSchema, - create: z.union([ CalendarActionCreateInputSchema,CalendarActionUncheckedCreateInputSchema ]), - update: z.union([ CalendarActionUpdateInputSchema,CalendarActionUncheckedUpdateInputSchema ]), -}).strict() ; - -export const CalendarActionCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarActionCreateManyInputSchema,CalendarActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarActionCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarActionCreateManyInputSchema,CalendarActionCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const CalendarActionDeleteArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - where: CalendarActionWhereUniqueInputSchema, -}).strict() ; - -export const CalendarActionUpdateArgsSchema: z.ZodType = z.object({ - select: CalendarActionSelectSchema.optional(), - include: CalendarActionIncludeSchema.optional(), - data: z.union([ CalendarActionUpdateInputSchema,CalendarActionUncheckedUpdateInputSchema ]), - where: CalendarActionWhereUniqueInputSchema, -}).strict() ; - -export const CalendarActionUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ CalendarActionUpdateManyMutationInputSchema,CalendarActionUncheckedUpdateManyInputSchema ]), - where: CalendarActionWhereInputSchema.optional(), -}).strict() ; - -export const CalendarActionDeleteManyArgsSchema: z.ZodType = z.object({ - where: CalendarActionWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowAnalyticsCreateArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - data: z.union([ WorkflowAnalyticsCreateInputSchema,WorkflowAnalyticsUncheckedCreateInputSchema ]), -}).strict() ; - -export const WorkflowAnalyticsUpsertArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereUniqueInputSchema, - create: z.union([ WorkflowAnalyticsCreateInputSchema,WorkflowAnalyticsUncheckedCreateInputSchema ]), - update: z.union([ WorkflowAnalyticsUpdateInputSchema,WorkflowAnalyticsUncheckedUpdateInputSchema ]), -}).strict() ; - -export const WorkflowAnalyticsCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowAnalyticsCreateManyInputSchema,WorkflowAnalyticsCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowAnalyticsCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowAnalyticsCreateManyInputSchema,WorkflowAnalyticsCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const WorkflowAnalyticsDeleteArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - where: WorkflowAnalyticsWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowAnalyticsUpdateArgsSchema: z.ZodType = z.object({ - select: WorkflowAnalyticsSelectSchema.optional(), - include: WorkflowAnalyticsIncludeSchema.optional(), - data: z.union([ WorkflowAnalyticsUpdateInputSchema,WorkflowAnalyticsUncheckedUpdateInputSchema ]), - where: WorkflowAnalyticsWhereUniqueInputSchema, -}).strict() ; - -export const WorkflowAnalyticsUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ WorkflowAnalyticsUpdateManyMutationInputSchema,WorkflowAnalyticsUncheckedUpdateManyInputSchema ]), - where: WorkflowAnalyticsWhereInputSchema.optional(), -}).strict() ; - -export const WorkflowAnalyticsDeleteManyArgsSchema: z.ZodType = z.object({ - where: WorkflowAnalyticsWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareCreateArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - data: z.union([ TemplateShareCreateInputSchema,TemplateShareUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateShareUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereUniqueInputSchema, - create: z.union([ TemplateShareCreateInputSchema,TemplateShareUncheckedCreateInputSchema ]), - update: z.union([ TemplateShareUpdateInputSchema,TemplateShareUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateShareCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareCreateManyInputSchema,TemplateShareCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareCreateManyInputSchema,TemplateShareCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - where: TemplateShareWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateShareSelectSchema.optional(), - include: TemplateShareIncludeSchema.optional(), - data: z.union([ TemplateShareUpdateInputSchema,TemplateShareUncheckedUpdateInputSchema ]), - where: TemplateShareWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareUpdateManyMutationInputSchema,TemplateShareUncheckedUpdateManyInputSchema ]), - where: TemplateShareWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateShareWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareRecipientCreateArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - data: z.union([ TemplateShareRecipientCreateInputSchema,TemplateShareRecipientUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateShareRecipientUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereUniqueInputSchema, - create: z.union([ TemplateShareRecipientCreateInputSchema,TemplateShareRecipientUncheckedCreateInputSchema ]), - update: z.union([ TemplateShareRecipientUpdateInputSchema,TemplateShareRecipientUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateShareRecipientCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareRecipientCreateManyInputSchema,TemplateShareRecipientCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareRecipientCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareRecipientCreateManyInputSchema,TemplateShareRecipientCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareRecipientDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - where: TemplateShareRecipientWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareRecipientUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateShareRecipientSelectSchema.optional(), - include: TemplateShareRecipientIncludeSchema.optional(), - data: z.union([ TemplateShareRecipientUpdateInputSchema,TemplateShareRecipientUncheckedUpdateInputSchema ]), - where: TemplateShareRecipientWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareRecipientUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareRecipientUpdateManyMutationInputSchema,TemplateShareRecipientUncheckedUpdateManyInputSchema ]), - where: TemplateShareRecipientWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareRecipientDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateShareRecipientWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareAccessLogCreateArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - data: z.union([ TemplateShareAccessLogCreateInputSchema,TemplateShareAccessLogUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateShareAccessLogUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereUniqueInputSchema, - create: z.union([ TemplateShareAccessLogCreateInputSchema,TemplateShareAccessLogUncheckedCreateInputSchema ]), - update: z.union([ TemplateShareAccessLogUpdateInputSchema,TemplateShareAccessLogUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateShareAccessLogCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareAccessLogCreateManyInputSchema,TemplateShareAccessLogCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareAccessLogCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareAccessLogCreateManyInputSchema,TemplateShareAccessLogCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareAccessLogDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - where: TemplateShareAccessLogWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareAccessLogUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateShareAccessLogSelectSchema.optional(), - include: TemplateShareAccessLogIncludeSchema.optional(), - data: z.union([ TemplateShareAccessLogUpdateInputSchema,TemplateShareAccessLogUncheckedUpdateInputSchema ]), - where: TemplateShareAccessLogWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareAccessLogUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareAccessLogUpdateManyMutationInputSchema,TemplateShareAccessLogUncheckedUpdateManyInputSchema ]), - where: TemplateShareAccessLogWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareAccessLogDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateShareAccessLogWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareImportCreateArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - data: z.union([ TemplateShareImportCreateInputSchema,TemplateShareImportUncheckedCreateInputSchema ]), -}).strict() ; - -export const TemplateShareImportUpsertArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereUniqueInputSchema, - create: z.union([ TemplateShareImportCreateInputSchema,TemplateShareImportUncheckedCreateInputSchema ]), - update: z.union([ TemplateShareImportUpdateInputSchema,TemplateShareImportUncheckedUpdateInputSchema ]), -}).strict() ; - -export const TemplateShareImportCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareImportCreateManyInputSchema,TemplateShareImportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareImportCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareImportCreateManyInputSchema,TemplateShareImportCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const TemplateShareImportDeleteArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - where: TemplateShareImportWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareImportUpdateArgsSchema: z.ZodType = z.object({ - select: TemplateShareImportSelectSchema.optional(), - include: TemplateShareImportIncludeSchema.optional(), - data: z.union([ TemplateShareImportUpdateInputSchema,TemplateShareImportUncheckedUpdateInputSchema ]), - where: TemplateShareImportWhereUniqueInputSchema, -}).strict() ; - -export const TemplateShareImportUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ TemplateShareImportUpdateManyMutationInputSchema,TemplateShareImportUncheckedUpdateManyInputSchema ]), - where: TemplateShareImportWhereInputSchema.optional(), -}).strict() ; - -export const TemplateShareImportDeleteManyArgsSchema: z.ZodType = z.object({ - where: TemplateShareImportWhereInputSchema.optional(), -}).strict() ; - -export const EarlyAccessCodeCreateArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - data: z.union([ EarlyAccessCodeCreateInputSchema,EarlyAccessCodeUncheckedCreateInputSchema ]), -}).strict() ; - -export const EarlyAccessCodeUpsertArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereUniqueInputSchema, - create: z.union([ EarlyAccessCodeCreateInputSchema,EarlyAccessCodeUncheckedCreateInputSchema ]), - update: z.union([ EarlyAccessCodeUpdateInputSchema,EarlyAccessCodeUncheckedUpdateInputSchema ]), -}).strict() ; - -export const EarlyAccessCodeCreateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EarlyAccessCodeCreateManyInputSchema,EarlyAccessCodeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EarlyAccessCodeCreateManyAndReturnArgsSchema: z.ZodType = z.object({ - data: z.union([ EarlyAccessCodeCreateManyInputSchema,EarlyAccessCodeCreateManyInputSchema.array() ]), - skipDuplicates: z.boolean().optional(), -}).strict() ; - -export const EarlyAccessCodeDeleteArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - where: EarlyAccessCodeWhereUniqueInputSchema, -}).strict() ; - -export const EarlyAccessCodeUpdateArgsSchema: z.ZodType = z.object({ - select: EarlyAccessCodeSelectSchema.optional(), - data: z.union([ EarlyAccessCodeUpdateInputSchema,EarlyAccessCodeUncheckedUpdateInputSchema ]), - where: EarlyAccessCodeWhereUniqueInputSchema, -}).strict() ; - -export const EarlyAccessCodeUpdateManyArgsSchema: z.ZodType = z.object({ - data: z.union([ EarlyAccessCodeUpdateManyMutationInputSchema,EarlyAccessCodeUncheckedUpdateManyInputSchema ]), - where: EarlyAccessCodeWhereInputSchema.optional(), -}).strict() ; - -export const EarlyAccessCodeDeleteManyArgsSchema: z.ZodType = z.object({ - where: EarlyAccessCodeWhereInputSchema.optional(), -}).strict() ; \ No newline at end of file diff --git a/prisma/migrations/20251018102846_/migration.sql b/prisma/migrations/20251018102846_/migration.sql new file mode 100644 index 0000000..31b737e --- /dev/null +++ b/prisma/migrations/20251018102846_/migration.sql @@ -0,0 +1,30 @@ +-- CreateTable +CREATE TABLE "PrebuiltWorkflowConfig" ( + "id" TEXT NOT NULL, + "organizationId" TEXT NOT NULL, + "workflowKey" TEXT NOT NULL, + "enabled" BOOLEAN NOT NULL DEFAULT false, + "emailSubject" TEXT NOT NULL, + "emailBody" TEXT NOT NULL, + "templateVersion" INTEGER NOT NULL DEFAULT 1, + "updatedByUserId" TEXT NOT NULL, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "PrebuiltWorkflowConfig_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE INDEX "PrebuiltWorkflowConfig_organizationId_idx" ON "PrebuiltWorkflowConfig"("organizationId"); + +-- CreateIndex +CREATE INDEX "PrebuiltWorkflowConfig_workflowKey_idx" ON "PrebuiltWorkflowConfig"("workflowKey"); + +-- CreateIndex +CREATE UNIQUE INDEX "PrebuiltWorkflowConfig_organizationId_workflowKey_key" ON "PrebuiltWorkflowConfig"("organizationId", "workflowKey"); + +-- AddForeignKey +ALTER TABLE "PrebuiltWorkflowConfig" ADD CONSTRAINT "PrebuiltWorkflowConfig_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "PrebuiltWorkflowConfig" ADD CONSTRAINT "PrebuiltWorkflowConfig_updatedByUserId_fkey" FOREIGN KEY ("updatedByUserId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/prisma/migrations/20251018105029_/migration.sql b/prisma/migrations/20251018105029_/migration.sql new file mode 100644 index 0000000..8657b91 --- /dev/null +++ b/prisma/migrations/20251018105029_/migration.sql @@ -0,0 +1,32 @@ +-- CreateTable +CREATE TABLE "PrebuiltWorkflowRun" ( + "id" TEXT NOT NULL, + "organizationId" TEXT NOT NULL, + "workflowKey" TEXT NOT NULL, + "status" "WorkflowExecutionStatus" NOT NULL DEFAULT 'RUNNING', + "triggerModule" TEXT NOT NULL, + "triggerEntity" TEXT NOT NULL, + "triggerEvent" TEXT NOT NULL, + "triggeredAt" TIMESTAMP(3) NOT NULL, + "startedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "completedAt" TIMESTAMP(3), + "durationMs" INTEGER, + "emailRecipient" TEXT, + "emailSubject" TEXT, + "context" JSONB, + "result" JSONB, + "error" TEXT, + "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updatedAt" TIMESTAMP(3) NOT NULL, + + CONSTRAINT "PrebuiltWorkflowRun_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE INDEX "PrebuiltWorkflowRun_organizationId_workflowKey_createdAt_idx" ON "PrebuiltWorkflowRun"("organizationId", "workflowKey", "createdAt"); + +-- CreateIndex +CREATE INDEX "PrebuiltWorkflowRun_organizationId_idx" ON "PrebuiltWorkflowRun"("organizationId"); + +-- AddForeignKey +ALTER TABLE "PrebuiltWorkflowRun" ADD CONSTRAINT "PrebuiltWorkflowRun_organizationId_fkey" FOREIGN KEY ("organizationId") REFERENCES "Organization"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/prisma/migrations/20251018163029_/migration.sql b/prisma/migrations/20251018163029_/migration.sql new file mode 100644 index 0000000..dc58b68 --- /dev/null +++ b/prisma/migrations/20251018163029_/migration.sql @@ -0,0 +1,14 @@ +-- AlterTable +ALTER TABLE "PrebuiltWorkflowConfig" ADD COLUMN "messageTemplateId" TEXT; + +-- AlterTable +ALTER TABLE "Project" ADD COLUMN "customerId" TEXT; + +-- CreateIndex +CREATE INDEX "PrebuiltWorkflowConfig_messageTemplateId_idx" ON "PrebuiltWorkflowConfig"("messageTemplateId"); + +-- CreateIndex +CREATE INDEX "Project_customerId_idx" ON "Project"("customerId"); + +-- AddForeignKey +ALTER TABLE "Project" ADD CONSTRAINT "Project_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "Customer"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 29addab..4be1f7e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -8,6 +8,20 @@ generator client { generator zod { provider = "zod-prisma-types" output = "./generated/zod" + writeBarrelFiles = true // default is true + createInputTypes = false // default is true + createModelTypes = true // default is true + addInputTypeValidation = false // default is true + addIncludeType = false // default is true + addSelectType = false // default is true + validateWhereUniqueInput = false // default is true + createOptionalDefaultValuesTypes = false // default is false + createRelationValuesTypes = false // default is false + createPartialTypes = false // default is false + useDefaultValidators = true // default is true + coerceDate = true // default is true + writeNullishInModelTypes = false // default is false + useTypeAssertions = false // default is false } datasource db { @@ -115,6 +129,8 @@ model Organization { customRoles CustomRole[] financialReports FinancialReport[] workflows Workflow[] + prebuiltWorkflowConfigs PrebuiltWorkflowConfig[] + prebuiltWorkflowRuns PrebuiltWorkflowRun[] actionTemplates ActionTemplate[] variableDefinitions VariableDefinition[] integrationConfigs IntegrationConfig[] @@ -340,6 +356,7 @@ model Customer { interactions CustomerInteraction[] deals Deal[] invoices Invoice[] + projects Project[] @@index([organizationId]) @@index([email]) @@ -450,11 +467,13 @@ model Project { budget Decimal? @db.Decimal(10, 2) currency String @default("USD") createdById String? + customerId String? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt // Relations organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) + customer Customer? @relation(fields: [customerId], references: [id], onDelete: SetNull) tasks Task[] resources ProjectResource[] timeEntries TimeEntry[] @@ -462,6 +481,7 @@ model Project { @@index([organizationId]) @@index([createdById]) + @@index([customerId]) @@index([status]) } @@ -1185,6 +1205,7 @@ model User { accounts Account[] createdImportSessions ImportSession[] @relation("CreatedImportSessions") createdImportTemplates ImportTemplate[] @relation("CreatedImportTemplates") + updatedPrebuiltWorkflowConfigs PrebuiltWorkflowConfig[] @relation("PrebuiltWorkflowConfigUpdatedBy") @@unique([email]) @@map("user") @@ -1567,6 +1588,54 @@ model Workflow { @@index([createdById]) } +model PrebuiltWorkflowConfig { + id String @id @default(cuid()) + organizationId String + workflowKey String + enabled Boolean @default(false) + emailSubject String + emailBody String + templateVersion Int @default(1) + updatedByUserId String + messageTemplateId String? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) + updatedBy User @relation("PrebuiltWorkflowConfigUpdatedBy", fields: [updatedByUserId], references: [id], onDelete: Cascade) + + @@unique([organizationId, workflowKey]) + @@index([organizationId]) + @@index([workflowKey]) + @@index([messageTemplateId]) +} + +model PrebuiltWorkflowRun { + id String @id @default(cuid()) + organizationId String + workflowKey String + status WorkflowExecutionStatus @default(RUNNING) + triggerModule String + triggerEntity String + triggerEvent String + triggeredAt DateTime + startedAt DateTime @default(now()) + completedAt DateTime? + durationMs Int? + emailRecipient String? + emailSubject String? + context Json? + result Json? + error String? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) + + @@index([organizationId, workflowKey, createdAt]) + @@index([organizationId]) +} + // ============================== // UI Configuration Store // ============================== diff --git a/src/app/(dashboard)/[orgId]/workflows/[workflowId]/page.tsx b/src/app/(dashboard)/[orgId]/workflows/[workflowId]/page.tsx index 328392f..9871dd1 100644 --- a/src/app/(dashboard)/[orgId]/workflows/[workflowId]/page.tsx +++ b/src/app/(dashboard)/[orgId]/workflows/[workflowId]/page.tsx @@ -1,70 +1,24 @@ import { redirect } from "next/navigation"; -import { auth } from "~/lib/auth"; import { headers } from "next/headers"; +import { auth } from "~/lib/auth"; import { db } from "~/server/db"; -import { WorkflowDesigner } from "~/components/workflow/workflow-designer"; -import { Skeleton } from "~/components/ui/skeleton"; -import { Suspense } from "react"; -import Link from "next/link"; - -function WorkflowDesignerSkeleton() { - return ( -
-
-
- - -
- -
-
-
-
- -
- - -
-
-
-
- - - -
-
-
-
- - -
- -
-
-
-
-
-
- ); -} -export default async function WorkflowDesignerPage({ +export default async function DeprecatedWorkflowDesignerPage({ params, }: { - params: Promise<{ orgId: string; workflowId: string }>; + params: { orgId: string; workflowId: string }; }) { - const { orgId, workflowId } = await params; + const { orgId } = params; - // Get user session + const requestHeaders = await headers(); const session = await auth.api.getSession({ - headers: await headers(), + headers: requestHeaders, }); if (!session?.user?.id) { redirect("/sign-in"); } - // Check if organization exists and user has access const organization = await db.organization.findFirst({ where: { id: orgId, @@ -74,35 +28,12 @@ export default async function WorkflowDesignerPage({ }, }, }, + select: { id: true }, }); if (!organization) { redirect("/"); } - return ( -
-
-
-

- Workflow Designer -

-

- Design and configure your automated workflows -

-
- - Back to Workflows - -
-
- }> - - -
-
- ); + redirect(`/${orgId}/workflows`); } diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsx index 12ddbdf..2746897 100644 --- a/src/components/app-sidebar.tsx +++ b/src/components/app-sidebar.tsx @@ -135,6 +135,7 @@ export function AppSidebar({ ...props }: React.ComponentProps) { title: "Workflows", url: "/[orgId]/workflows", icon: GitBranch, + badge: "Beta", items: [], }); diff --git a/src/components/nav-main.tsx b/src/components/nav-main.tsx index 26851ff..68877ed 100644 --- a/src/components/nav-main.tsx +++ b/src/components/nav-main.tsx @@ -2,6 +2,7 @@ import { ChevronRight, type LucideIcon } from "lucide-react"; import { usePathname } from "next/navigation"; import Link from "next/link"; +import { Badge } from "~/components/ui/badge"; import { Collapsible, CollapsibleContent, @@ -23,6 +24,7 @@ interface NavItem { url: string; icon?: LucideIcon; isActive?: boolean; + badge?: string; action?: { icon: LucideIcon; onClick: () => void; @@ -73,6 +75,14 @@ export function NavMain({ items }: { items: NavItem[] }) { {item.icon && } {item.title} + {item.badge && ( + + {item.badge} + + )} {item.action && ( @@ -111,6 +121,14 @@ export function NavMain({ items }: { items: NavItem[] }) { > {item.icon && } {item.title} + {item.badge && ( + + {item.badge} + + )} diff --git a/src/components/projects/project-create-dialog.tsx b/src/components/projects/project-create-dialog.tsx index ee8cadb..63282b4 100644 --- a/src/components/projects/project-create-dialog.tsx +++ b/src/components/projects/project-create-dialog.tsx @@ -55,6 +55,7 @@ const createProjectSchema = z.object({ .optional() .or(z.string().transform(val => (val ? parseFloat(val) : undefined))), currency: z.string().default("USD"), + customerId: z.string().cuid().optional(), }); type CreateProjectForm = z.infer; @@ -82,6 +83,7 @@ export function ProjectCreateDialog({ description: "", status: "PLANNED", currency: "USD", + customerId: undefined, }, }); @@ -101,6 +103,19 @@ export function ProjectCreateDialog({ }, }); + const { data: contactsData, isLoading: isLoadingContacts } = + api.contactsCrm.getContactsByOrganization.useQuery( + { organizationId }, + { + enabled: open, + } + ); + + const customerOptions = (contactsData ?? []).filter( + contact => + (contact.type as string | undefined)?.toUpperCase() === "CUSTOMER" + ); + const onSubmit = (data: CreateProjectForm) => { setIsSubmitting(true); @@ -113,6 +128,7 @@ export function ProjectCreateDialog({ status: data.status, budget: data.budget, currency: data.currency, + customerId: data.customerId, createdById: organizationId, // You might want to pass the actual user ID }); }; @@ -164,6 +180,50 @@ export function ProjectCreateDialog({ )} /> + {/* Customer */} + ( + + Customer + + + + )} + /> + {/* Status */} (val ? parseFloat(val) : undefined))), currency: z.string().optional().default("USD"), + customerId: z.string().cuid().nullable().optional(), }); type UpdateProjectForm = z.infer; @@ -68,6 +69,14 @@ interface Project { endDate: Date | null; budget: number | null; currency: string | null; + customerId?: string | null; + customer?: { + id: string; + firstName: string | null; + lastName: string | null; + company: string | null; + email: string | null; + } | null; createdAt: Date; _count: { tasks: number; @@ -107,6 +116,7 @@ export function ProjectEditDialog({ currency: project.currency ?? "USD", startDate: project.startDate ?? undefined, endDate: project.endDate ?? undefined, + customerId: project.customer?.id ?? project.customerId ?? undefined, }, }); @@ -125,6 +135,7 @@ export function ProjectEditDialog({ currency: project.currency ?? "USD", startDate: project.startDate ?? undefined, endDate: project.endDate ?? undefined, + customerId: project.customer?.id ?? project.customerId ?? undefined, }); }, [project, form]); @@ -157,9 +168,23 @@ export function ProjectEditDialog({ status: data.status, budget: data.budget, currency: data.currency, + customerId: data.customerId ?? undefined, }); }; + const { data: contactsData, isLoading: isLoadingContacts } = + api.contactsCrm.getContactsByOrganization.useQuery( + { organizationId }, + { + enabled: open, + } + ); + + const customerOptions = (contactsData ?? []).filter( + contact => + (contact.type as string | undefined)?.toUpperCase() === "CUSTOMER" + ); + return ( @@ -207,6 +232,50 @@ export function ProjectEditDialog({ )} /> + {/* Customer */} + ( + + Customer + + + + )} + /> + {/* Status */} ) { + return ( + + + + ); +} + +export { Switch }; diff --git a/src/components/workflow/workflow-list-page.tsx b/src/components/workflow/workflow-list-page.tsx index 15990dc..f2e836a 100644 --- a/src/components/workflow/workflow-list-page.tsx +++ b/src/components/workflow/workflow-list-page.tsx @@ -1,10 +1,27 @@ "use client"; -import React, { useState } from "react"; +import { useState } from "react"; import Link from "next/link"; -import { useRouter } from "next/navigation"; -import { api } from "~/trpc/react"; +import type { LucideIcon } from "lucide-react"; +import { + Sparkles, + Handshake, + ClipboardList, + Receipt, + RefreshCw, + BarChart3, + AlertTriangle, + Loader2, + Mail, + Settings2, + Zap, + CheckCircle2, + XCircle, + Info, + ArrowRight, +} from "lucide-react"; import { toast } from "sonner"; +import { api, type RouterOutputs } from "~/trpc/react"; import { Card, CardContent, @@ -12,20 +29,9 @@ import { CardHeader, CardTitle, } from "~/components/ui/card"; -import { Button } from "~/components/ui/button"; import { Badge } from "~/components/ui/badge"; +import { Button } from "~/components/ui/button"; import { Skeleton } from "~/components/ui/skeleton"; -import { - Plus, - Play, - Pause, - Edit, - Trash2, - GitBranch, - MoreVertical, - Loader2, - AlertTriangle, -} from "lucide-react"; import { Dialog, DialogContent, @@ -33,213 +39,142 @@ import { DialogFooter, DialogHeader, DialogTitle, - DialogTrigger, } from "~/components/ui/dialog"; -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, -} from "~/components/ui/alert-dialog"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger, -} from "~/components/ui/dropdown-menu"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "~/components/ui/select"; -import { Input } from "~/components/ui/input"; -import { Textarea } from "~/components/ui/textarea"; +import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"; +import { Separator } from "~/components/ui/separator"; +import { Switch } from "~/components/ui/switch"; import { Label } from "~/components/ui/label"; import { ClientPermissionGuard } from "~/components/shared/client-permission-guard"; import { PERMISSIONS } from "~/lib/rbac"; -import type { RouterOutputs } from "~/trpc/react"; -type WorkflowType = - RouterOutputs["workflows"]["workflow"]["getWorkflows"]["workflows"][0]; +type WorkflowSummary = + RouterOutputs["workflows"]["prebuilt"]["list"]["workflows"][number]; +const ICON_MAP: Record = { + Sparkles, + Handshake, + ClipboardList, + Receipt, + RefreshCw, + BarChart3, +}; + +function getIconComponent(icon: string): LucideIcon { + return ICON_MAP[icon] ?? Sparkles; +} interface WorkflowListPageProps { organizationId: string; } export function WorkflowListPage({ organizationId }: WorkflowListPageProps) { - const router = useRouter(); const utils = api.useUtils(); + const [selectedKey, setSelectedKey] = useState( + null + ); + const [isDialogOpen, setIsDialogOpen] = useState(false); + const [pendingToggleKey, setPendingToggleKey] = useState(null); - // tRPC queries and mutations const { data: workflowsData, isLoading: isLoadingWorkflows, error: workflowsError, - } = api.workflows.workflow.getWorkflows.useQuery( + } = api.workflows.prebuilt.list.useQuery( + { organizationId }, + { enabled: organizationId.length > 0 } + ); + + const detailQuery = api.workflows.prebuilt.detail.useQuery( { organizationId, - limit: 50, - offset: 0, + workflowKey: selectedKey ?? "lead-to-client", }, { - enabled: !!organizationId, + enabled: isDialogOpen && selectedKey !== null, } ); - const createWorkflowMutation = - api.workflows.workflow.createWorkflow.useMutation({ - onSuccess: data => { - toast.success("Workflow created successfully"); - // Navigate to the workflow designer - router.push(`/${organizationId}/workflows/${data.id}`); - setIsCreateDialogOpen(false); - setNewWorkflow({ name: "", description: "", category: "" }); - void utils.workflows.workflow.getWorkflows.invalidate(); - }, - onError: err => { - toast.error("Failed to create workflow", { - description: err.message, - }); - }, - }); - - const updateWorkflowMutation = - api.workflows.workflow.updateWorkflow.useMutation({ - onSuccess: () => { - toast.success("Workflow updated successfully"); - void utils.workflows.workflow.getWorkflows.invalidate(); - }, - onError: err => { - toast.error("Failed to update workflow", { - description: err.message, - }); - }, - }); - - const deleteWorkflowMutation = - api.workflows.workflow.deleteWorkflow.useMutation({ - onSuccess: () => { - toast.success("Workflow deleted successfully"); - setIsDeleteDialogOpen(false); - setSelectedWorkflow(null); - void utils.workflows.workflow.getWorkflows.invalidate(); - }, - onError: err => { - toast.error("Failed to delete workflow", { - description: err.message, + const toggleWorkflowMutation = api.workflows.prebuilt.toggle.useMutation({ + onMutate: variables => { + setPendingToggleKey(variables.workflowKey); + }, + onSuccess: (result, variables) => { + toast.success(result.enabled ? "Workflow enabled" : "Workflow disabled"); + void utils.workflows.prebuilt.list.invalidate({ organizationId }); + if (variables.workflowKey === selectedKey) { + void utils.workflows.prebuilt.detail.invalidate({ + organizationId, + workflowKey: variables.workflowKey, }); - }, - }); - - // Component state - const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false); - const [isEditDialogOpen, setIsEditDialogOpen] = useState(false); - const [isDeleteDialogOpen, setIsDeleteDialogOpen] = useState(false); - const [selectedWorkflow, setSelectedWorkflow] = useState( - null - ); - const [newWorkflow, setNewWorkflow] = useState({ - name: "", - description: "", - category: "", - }); - const [editWorkflow, setEditWorkflow] = useState({ - name: "", - description: "", - category: "", + } + }, + onError: error => { + toast.error("Unable to update workflow", { + description: error.message, + }); + }, + onSettled: () => { + setPendingToggleKey(null); + }, }); const workflows = workflowsData?.workflows ?? []; + const detailData = detailQuery.data; - const handleCreateWorkflow = () => { - if (!newWorkflow.name.trim()) return; - - createWorkflowMutation.mutate({ - organizationId, - name: newWorkflow.name, - description: newWorkflow.description || undefined, - category: newWorkflow.category || undefined, - }); - }; - - const handleEditWorkflow = (workflow: WorkflowType) => { - setSelectedWorkflow(workflow); - setEditWorkflow({ - name: workflow.name, - description: workflow.description ?? "", - category: workflow.category ?? "", - }); - setIsEditDialogOpen(true); - }; - - const handleUpdateWorkflow = () => { - if (!selectedWorkflow || !editWorkflow.name.trim()) return; + const handleToggle = (workflow: WorkflowSummary) => { + if (!workflow.canToggle) { + toast.error("You do not have permission to update this workflow"); + return; + } - updateWorkflowMutation.mutate({ - id: selectedWorkflow.id, + toggleWorkflowMutation.mutate({ organizationId, - name: editWorkflow.name, - description: editWorkflow.description || undefined, - category: editWorkflow.category || undefined, + workflowKey: workflow.key, + enabled: !workflow.enabled, }); - - setIsEditDialogOpen(false); - setSelectedWorkflow(null); - setEditWorkflow({ name: "", description: "", category: "" }); - }; - - const handleDeleteWorkflow = (workflow: WorkflowType) => { - setSelectedWorkflow(workflow); - setIsDeleteDialogOpen(true); }; - const confirmDeleteWorkflow = () => { - if (!selectedWorkflow) return; - - deleteWorkflowMutation.mutate({ - id: selectedWorkflow.id, - organizationId, - }); + const handleOpenDetail = (workflow: WorkflowSummary) => { + setSelectedKey(workflow.key); + setIsDialogOpen(true); }; - const toggleWorkflowStatus = (workflowId: string, currentStatus: string) => { - const newStatus = currentStatus === "ACTIVE" ? "INACTIVE" : "ACTIVE"; - - updateWorkflowMutation.mutate({ - id: workflowId, - organizationId, - status: newStatus, - }); + const handleDialogChange = (open: boolean) => { + setIsDialogOpen(open); + if (!open) { + setSelectedKey(null); + } }; - // Loading state if (isLoadingWorkflows) { return ; } - // Error state if (workflowsError) { return ( -
- - -
- +
+ + +
+
+ +
+
+
+ Failed to Load Workflows + + {workflowsError.message} +
- Failed to load workflows - - {workflowsError.message} -
@@ -256,489 +191,585 @@ export function WorkflowListPage({ organizationId }: WorkflowListPageProps) { PERMISSIONS.WORKFLOWS_ADMIN, ]} fallback={ -
- - -
- +
+ + +
+
+ +
Access Denied - You don't have permission to view workflows. + You do not have permission to view workflows.
} > -
-
-
-

Workflows

-

- Manage and create automated workflows for your organization -

+
+ {/* Header Section */} +
+
+
+ +
+

+ Prebuilt Workflows +

-
- - - - - - - + Automate your business processes with smart, pre-configured + workflows +

+
+ + {/* Info Banner */} + + + + Email automation only + + + SMS, Slack, and webhook channels are temporarily disabled while we + transition to the new prebuilt experience. + + + + {/* Action Bar */} +
+
+ + + {workflows.filter(w => w.enabled).length} Active + + + {workflows.length} Total + +
+ +
+ + {/* Workflows Grid */} +
+ {workflows.map(workflow => { + const Icon = getIconComponent(workflow.icon); + const isTogglePending = pendingToggleKey === workflow.key; + return ( + - - - - - - Create New Workflow - - Create a new automated workflow to streamline your - processes. - - -
-
- - - setNewWorkflow({ - ...newWorkflow, - name: e.target.value, - }) - } - /> + {/* Status Indicator */} +
+ + +
+
+
+ +
+
+
+ + {workflow.title} + + {(workflow.title === "Contract Renewal / Retainer" || + workflow.title === "Internal Health Dashboard") && ( + + Coming Soon + + )} +
+ + {workflow.shortDescription} + +
-
- -