prisma 5.19.0-integration-feat-typed-sql.1 → 5.19.0-integration-feat-typed-sql.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -533,8 +533,8 @@ var require_graceful_fs = __commonJS({
533
533
  }
534
534
  function noop() {
535
535
  }
536
- function publishQueue(context2, queue2) {
537
- Object.defineProperty(context2, gracefulQueue, {
536
+ function publishQueue(context, queue2) {
537
+ Object.defineProperty(context, gracefulQueue, {
538
538
  get: function() {
539
539
  return queue2;
540
540
  }
@@ -2380,12 +2380,183 @@ var require_indent_string = __commonJS({
2380
2380
  if (count === 0) {
2381
2381
  return string;
2382
2382
  }
2383
- const regex3 = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
2384
- return string.replace(regex3, options.indent.repeat(count));
2383
+ const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
2384
+ return string.replace(regex, options.indent.repeat(count));
2385
2385
  };
2386
2386
  }
2387
2387
  });
2388
2388
 
2389
+ // ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
2390
+ var require_identifier = __commonJS({
2391
+ "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js"(exports2) {
2392
+ "use strict";
2393
+ Object.defineProperty(exports2, "__esModule", {
2394
+ value: true
2395
+ });
2396
+ exports2.isIdentifierChar = isIdentifierChar;
2397
+ exports2.isIdentifierName = isIdentifierName2;
2398
+ exports2.isIdentifierStart = isIdentifierStart;
2399
+ var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
2400
+ var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
2401
+ var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
2402
+ var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
2403
+ nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
2404
+ var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
2405
+ var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
2406
+ function isInAstralSet(code, set) {
2407
+ let pos = 65536;
2408
+ for (let i = 0, length = set.length; i < length; i += 2) {
2409
+ pos += set[i];
2410
+ if (pos > code) return false;
2411
+ pos += set[i + 1];
2412
+ if (pos >= code) return true;
2413
+ }
2414
+ return false;
2415
+ }
2416
+ function isIdentifierStart(code) {
2417
+ if (code < 65) return code === 36;
2418
+ if (code <= 90) return true;
2419
+ if (code < 97) return code === 95;
2420
+ if (code <= 122) return true;
2421
+ if (code <= 65535) {
2422
+ return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
2423
+ }
2424
+ return isInAstralSet(code, astralIdentifierStartCodes);
2425
+ }
2426
+ function isIdentifierChar(code) {
2427
+ if (code < 48) return code === 36;
2428
+ if (code < 58) return true;
2429
+ if (code < 65) return false;
2430
+ if (code <= 90) return true;
2431
+ if (code < 97) return code === 95;
2432
+ if (code <= 122) return true;
2433
+ if (code <= 65535) {
2434
+ return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
2435
+ }
2436
+ return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
2437
+ }
2438
+ function isIdentifierName2(name) {
2439
+ let isFirst = true;
2440
+ for (let i = 0; i < name.length; i++) {
2441
+ let cp = name.charCodeAt(i);
2442
+ if ((cp & 64512) === 55296 && i + 1 < name.length) {
2443
+ const trail = name.charCodeAt(++i);
2444
+ if ((trail & 64512) === 56320) {
2445
+ cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
2446
+ }
2447
+ }
2448
+ if (isFirst) {
2449
+ isFirst = false;
2450
+ if (!isIdentifierStart(cp)) {
2451
+ return false;
2452
+ }
2453
+ } else if (!isIdentifierChar(cp)) {
2454
+ return false;
2455
+ }
2456
+ }
2457
+ return !isFirst;
2458
+ }
2459
+ }
2460
+ });
2461
+
2462
+ // ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
2463
+ var require_keyword = __commonJS({
2464
+ "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js"(exports2) {
2465
+ "use strict";
2466
+ Object.defineProperty(exports2, "__esModule", {
2467
+ value: true
2468
+ });
2469
+ exports2.isKeyword = isKeyword;
2470
+ exports2.isReservedWord = isReservedWord;
2471
+ exports2.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
2472
+ exports2.isStrictBindReservedWord = isStrictBindReservedWord;
2473
+ exports2.isStrictReservedWord = isStrictReservedWord;
2474
+ var reservedWords = {
2475
+ keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
2476
+ strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
2477
+ strictBind: ["eval", "arguments"]
2478
+ };
2479
+ var keywords = new Set(reservedWords.keyword);
2480
+ var reservedWordsStrictSet = new Set(reservedWords.strict);
2481
+ var reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
2482
+ function isReservedWord(word, inModule) {
2483
+ return inModule && word === "await" || word === "enum";
2484
+ }
2485
+ function isStrictReservedWord(word, inModule) {
2486
+ return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
2487
+ }
2488
+ function isStrictBindOnlyReservedWord(word) {
2489
+ return reservedWordsStrictBindSet.has(word);
2490
+ }
2491
+ function isStrictBindReservedWord(word, inModule) {
2492
+ return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
2493
+ }
2494
+ function isKeyword(word) {
2495
+ return keywords.has(word);
2496
+ }
2497
+ }
2498
+ });
2499
+
2500
+ // ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/index.js
2501
+ var require_lib2 = __commonJS({
2502
+ "../../node_modules/.pnpm/@babel+helper-validator-identifier@7.24.7/node_modules/@babel/helper-validator-identifier/lib/index.js"(exports2) {
2503
+ "use strict";
2504
+ Object.defineProperty(exports2, "__esModule", {
2505
+ value: true
2506
+ });
2507
+ Object.defineProperty(exports2, "isIdentifierChar", {
2508
+ enumerable: true,
2509
+ get: function() {
2510
+ return _identifier.isIdentifierChar;
2511
+ }
2512
+ });
2513
+ Object.defineProperty(exports2, "isIdentifierName", {
2514
+ enumerable: true,
2515
+ get: function() {
2516
+ return _identifier.isIdentifierName;
2517
+ }
2518
+ });
2519
+ Object.defineProperty(exports2, "isIdentifierStart", {
2520
+ enumerable: true,
2521
+ get: function() {
2522
+ return _identifier.isIdentifierStart;
2523
+ }
2524
+ });
2525
+ Object.defineProperty(exports2, "isKeyword", {
2526
+ enumerable: true,
2527
+ get: function() {
2528
+ return _keyword.isKeyword;
2529
+ }
2530
+ });
2531
+ Object.defineProperty(exports2, "isReservedWord", {
2532
+ enumerable: true,
2533
+ get: function() {
2534
+ return _keyword.isReservedWord;
2535
+ }
2536
+ });
2537
+ Object.defineProperty(exports2, "isStrictBindOnlyReservedWord", {
2538
+ enumerable: true,
2539
+ get: function() {
2540
+ return _keyword.isStrictBindOnlyReservedWord;
2541
+ }
2542
+ });
2543
+ Object.defineProperty(exports2, "isStrictBindReservedWord", {
2544
+ enumerable: true,
2545
+ get: function() {
2546
+ return _keyword.isStrictBindReservedWord;
2547
+ }
2548
+ });
2549
+ Object.defineProperty(exports2, "isStrictReservedWord", {
2550
+ enumerable: true,
2551
+ get: function() {
2552
+ return _keyword.isStrictReservedWord;
2553
+ }
2554
+ });
2555
+ var _identifier = require_identifier();
2556
+ var _keyword = require_keyword();
2557
+ }
2558
+ });
2559
+
2389
2560
  // ../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.js
2390
2561
  var require_pluralize = __commonJS({
2391
2562
  "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.js"(exports2, module2) {
@@ -2995,7 +3166,7 @@ var require_package2 = __commonJS({
2995
3166
  "package.json"(exports2, module2) {
2996
3167
  module2.exports = {
2997
3168
  name: "@prisma/client",
2998
- version: "5.19.0-integration-feat-typed-sql.1",
3169
+ version: "5.19.0-integration-feat-typed-sql.3",
2999
3170
  description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
3000
3171
  keywords: [
3001
3172
  "ORM",
@@ -3230,7 +3401,6 @@ var require_package2 = __commonJS({
3230
3401
  "get-stream": "6.0.1",
3231
3402
  globby: "11.1.0",
3232
3403
  "indent-string": "4.0.0",
3233
- "is-identifier": "1.0.1",
3234
3404
  jest: "29.7.0",
3235
3405
  "jest-extended": "4.0.2",
3236
3406
  "jest-junit": "16.0.0",
@@ -4387,6 +4557,12 @@ function hasOwnProperty(object, key) {
4387
4557
  return Object.prototype.hasOwnProperty.call(object, key);
4388
4558
  }
4389
4559
 
4560
+ // ../internals/src/utils/isValidJsIdentifier.ts
4561
+ var import_helper_validator_identifier = __toESM(require_lib2());
4562
+ function isValidJsIdentifier(str) {
4563
+ return (0, import_helper_validator_identifier.isIdentifierName)(str);
4564
+ }
4565
+
4390
4566
  // ../internals/src/utils/setClassName.ts
4391
4567
  function setClassName(classObject, name) {
4392
4568
  Object.defineProperty(classObject, "name", {
@@ -5255,124 +5431,6 @@ function parameter(name, type) {
5255
5431
  return new Parameter(name, type);
5256
5432
  }
5257
5433
 
5258
- // ../../node_modules/.pnpm/reserved-identifiers@1.0.0/node_modules/reserved-identifiers/index.js
5259
- var identifiers = [
5260
- // Keywords
5261
- "await",
5262
- "break",
5263
- "case",
5264
- "catch",
5265
- "class",
5266
- "const",
5267
- "continue",
5268
- "debugger",
5269
- "default",
5270
- "delete",
5271
- "do",
5272
- "else",
5273
- "enum",
5274
- "export",
5275
- "extends",
5276
- "false",
5277
- "finally",
5278
- "for",
5279
- "function",
5280
- "if",
5281
- "import",
5282
- "in",
5283
- "instanceof",
5284
- "new",
5285
- "null",
5286
- "return",
5287
- "super",
5288
- "switch",
5289
- "this",
5290
- "throw",
5291
- "true",
5292
- "try",
5293
- "typeof",
5294
- "var",
5295
- "void",
5296
- "while",
5297
- "with",
5298
- "yield",
5299
- // Future reserved keywords
5300
- "implements",
5301
- "interface",
5302
- "package",
5303
- "private",
5304
- "protected",
5305
- "public",
5306
- // Not keywords, but still restricted
5307
- "arguments",
5308
- "eval"
5309
- ];
5310
- var globalProperties = [
5311
- "globalThis",
5312
- "Infinity",
5313
- "NaN",
5314
- "undefined"
5315
- ];
5316
- function reservedIdentifiers({ includeGlobalProperties = false } = {}) {
5317
- return /* @__PURE__ */ new Set([
5318
- ...identifiers,
5319
- ...includeGlobalProperties ? globalProperties : []
5320
- ]);
5321
- }
5322
-
5323
- // ../../node_modules/.pnpm/identifier-regex@1.0.0/node_modules/identifier-regex/index.js
5324
- var baseRegex = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*/u;
5325
- var basePattern = `(?!${[...reservedIdentifiers({ includeGlobalProperties: true })].join("|")})${baseRegex.source}`;
5326
- var regex = new RegExp(basePattern, "u");
5327
- var regexExact = new RegExp(`^${basePattern}$`, "u");
5328
- function identifierRegex({ exact = true } = {}) {
5329
- return exact ? regexExact : regex;
5330
- }
5331
-
5332
- // ../../node_modules/.pnpm/function-timeout@1.0.2/node_modules/function-timeout/index.js
5333
- var import_node_vm = __toESM(require("vm"), 1);
5334
- var script = new import_node_vm.default.Script("returnValue = functionToRun()");
5335
- function functionTimeout(function_, { timeout, context: context2 = import_node_vm.default.createContext() } = {}) {
5336
- const wrappedFunction = (...arguments_) => {
5337
- context2.functionToRun = () => function_(...arguments_);
5338
- script.runInNewContext(context2, { timeout });
5339
- return context2.returnValue;
5340
- };
5341
- Object.defineProperty(wrappedFunction, "name", {
5342
- value: `functionTimeout(${function_.name || "<anonymous>"})`,
5343
- configurable: true
5344
- });
5345
- return wrappedFunction;
5346
- }
5347
- function isTimeoutError(error) {
5348
- return error?.code === "ERR_SCRIPT_EXECUTION_TIMEOUT";
5349
- }
5350
-
5351
- // ../../node_modules/.pnpm/super-regex@1.0.0/node_modules/super-regex/index.js
5352
- var context = {};
5353
- function isMatch(regex3, string, { timeout } = {}) {
5354
- try {
5355
- return functionTimeout(() => structuredClone(regex3).test(string), { timeout, context })();
5356
- } catch (error) {
5357
- if (isTimeoutError(error)) {
5358
- return false;
5359
- }
5360
- throw error;
5361
- }
5362
- }
5363
-
5364
- // ../../node_modules/.pnpm/is-identifier@1.0.1/node_modules/is-identifier/index.js
5365
- var regex2 = identifierRegex();
5366
- function isIdentifier(value) {
5367
- if (typeof value !== "string") {
5368
- throw new TypeError(`Expected a string, got \`${typeof value}\`.`);
5369
- }
5370
- if (value.length > 1e5) {
5371
- return false;
5372
- }
5373
- return isMatch(regex2, value, { timeout: 1e3 });
5374
- }
5375
-
5376
5434
  // src/generation/ts-builders/Property.ts
5377
5435
  var Property = class {
5378
5436
  constructor(name, type) {
@@ -5400,10 +5458,14 @@ var Property = class {
5400
5458
  if (this.isReadonly) {
5401
5459
  writer.write("readonly ");
5402
5460
  }
5403
- if (isIdentifier(this.name)) {
5404
- writer.write(this.name);
5461
+ if (typeof this.name === "string") {
5462
+ if (isValidJsIdentifier(this.name)) {
5463
+ writer.write(this.name);
5464
+ } else {
5465
+ writer.write("[").write(JSON.stringify(this.name)).write("]");
5466
+ }
5405
5467
  } else {
5406
- writer.write("[").write(JSON.stringify(this.name)).write("]");
5468
+ writer.write("[").write(this.name).write("]");
5407
5469
  }
5408
5470
  if (this.isOptional) {
5409
5471
  writer.write("?");
@@ -5418,8 +5480,8 @@ function property(name, type) {
5418
5480
  // src/generation/ts-builders/Writer.ts
5419
5481
  var INDENT_SIZE = 2;
5420
5482
  var Writer = class {
5421
- constructor(startingIndent = 0, context2) {
5422
- this.context = context2;
5483
+ constructor(startingIndent = 0, context) {
5484
+ this.context = context;
5423
5485
  this.lines = [];
5424
5486
  this.currentLine = "";
5425
5487
  this.currentIndent = 0;
@@ -5713,6 +5775,20 @@ function unionType(types) {
5713
5775
  return new UnionType(types);
5714
5776
  }
5715
5777
 
5778
+ // src/generation/ts-builders/WellKnownSymbol.ts
5779
+ var WellKnownSymbol = class {
5780
+ constructor(name) {
5781
+ this.name = name;
5782
+ }
5783
+ write(writer) {
5784
+ writer.write("Symbol.").write(this.name);
5785
+ }
5786
+ };
5787
+ function wellKnownSymbol(name) {
5788
+ return new WellKnownSymbol(name);
5789
+ }
5790
+ var toStringTag = wellKnownSymbol("toStringTag");
5791
+
5716
5792
  // src/generation/TSClient/Input.ts
5717
5793
  var InputField = class {
5718
5794
  constructor(field, genericsInfo, source) {
@@ -6462,9 +6538,9 @@ function escapeJson(str) {
6462
6538
 
6463
6539
  // src/generation/TSClient/Args.ts
6464
6540
  var ArgsTypeBuilder = class {
6465
- constructor(type, context2, action) {
6541
+ constructor(type, context, action) {
6466
6542
  this.type = type;
6467
- this.context = context2;
6543
+ this.context = context;
6468
6544
  this.action = action;
6469
6545
  this.hasDefaultName = true;
6470
6546
  this.moduleExport = moduleExport(
@@ -6633,20 +6709,20 @@ function enumTypeName(ref) {
6633
6709
  }
6634
6710
 
6635
6711
  // src/generation/TSClient/Payload.ts
6636
- function buildModelPayload(model, context2) {
6637
- const isComposite = context2.dmmf.isComposite(model.name);
6712
+ function buildModelPayload(model, context) {
6713
+ const isComposite = context.dmmf.isComposite(model.name);
6638
6714
  const objects = objectType();
6639
6715
  const scalars = objectType();
6640
6716
  const composites = objectType();
6641
6717
  for (const field of model.fields) {
6642
6718
  if (field.kind === "object") {
6643
- if (context2.dmmf.isComposite(field.type)) {
6644
- composites.add(buildModelOutputProperty(field, context2.dmmf));
6719
+ if (context.dmmf.isComposite(field.type)) {
6720
+ composites.add(buildModelOutputProperty(field, context.dmmf));
6645
6721
  } else {
6646
- objects.add(buildModelOutputProperty(field, context2.dmmf));
6722
+ objects.add(buildModelOutputProperty(field, context.dmmf));
6647
6723
  }
6648
6724
  } else if (field.kind === "enum" || field.kind === "scalar") {
6649
- scalars.add(buildModelOutputProperty(field, context2.dmmf));
6725
+ scalars.add(buildModelOutputProperty(field, context.dmmf));
6650
6726
  }
6651
6727
  }
6652
6728
  const scalarsType = isComposite ? scalars : namedType("$Extensions.GetPayloadResult").addGenericArgument(scalars).addGenericArgument(namedType("ExtArgs").subKey("result").subKey(lowerCase(model.name)));
@@ -6734,11 +6810,11 @@ function getModelActions(dmmf, name) {
6734
6810
 
6735
6811
  // src/generation/TSClient/Model.ts
6736
6812
  var Model = class {
6737
- constructor(model, context2) {
6813
+ constructor(model, context) {
6738
6814
  this.model = model;
6739
- this.context = context2;
6740
- this.dmmf = context2.dmmf;
6741
- this.genericsInfo = context2.genericArgsInfo;
6815
+ this.context = context;
6816
+ this.dmmf = context.dmmf;
6817
+ this.genericsInfo = context.genericArgsInfo;
6742
6818
  this.type = this.context.dmmf.outputTypeMap.model[model.name];
6743
6819
  this.createManyAndReturnType = this.context.dmmf.outputTypeMap.model[getCreateManyAndReturnOutputType(model.name)];
6744
6820
  this.mapping = this.context.dmmf.mappings.modelOperations.find((m) => m.model === model.name);
@@ -7006,9 +7082,9 @@ ${this.argsTypes.map((type) => stringify(type)).join("\n\n")}
7006
7082
  }
7007
7083
  };
7008
7084
  var ModelDelegate = class {
7009
- constructor(outputType, context2) {
7085
+ constructor(outputType, context) {
7010
7086
  this.outputType = outputType;
7011
- this.context = context2;
7087
+ this.context = context;
7012
7088
  }
7013
7089
  /**
7014
7090
  * Returns all available non-aggregate or group actions
@@ -7142,10 +7218,10 @@ ${stringify(buildFluentWrapperDefinition(name, this.outputType, this.context))}
7142
7218
  `;
7143
7219
  }
7144
7220
  };
7145
- function buildModelDelegateMethod(modelName, actionName, context2) {
7146
- const mapping = context2.dmmf.mappingsMap[modelName] ?? { model: modelName, plural: `${modelName}s` };
7147
- const modelOrType = context2.dmmf.typeAndModelMap[modelName];
7148
- const method2 = method(actionName).setDocComment(docComment(getMethodJSDocBody(actionName, mapping, modelOrType))).addParameter(getNonAggregateMethodArgs(modelName, actionName)).setReturnType(getReturnType({ modelName, actionName, context: context2 }));
7221
+ function buildModelDelegateMethod(modelName, actionName, context) {
7222
+ const mapping = context.dmmf.mappingsMap[modelName] ?? { model: modelName, plural: `${modelName}s` };
7223
+ const modelOrType = context.dmmf.typeAndModelMap[modelName];
7224
+ const method2 = method(actionName).setDocComment(docComment(getMethodJSDocBody(actionName, mapping, modelOrType))).addParameter(getNonAggregateMethodArgs(modelName, actionName)).setReturnType(getReturnType({ modelName, actionName, context }));
7149
7225
  const generic = getNonAggregateMethodGenericParam(modelName, actionName);
7150
7226
  if (generic) {
7151
7227
  method2.addGenericParameter(generic);
@@ -7187,7 +7263,7 @@ function getNonAggregateMethodGenericParam(modelName, actionName) {
7187
7263
  function getReturnType({
7188
7264
  modelName,
7189
7265
  actionName,
7190
- context: context2,
7266
+ context,
7191
7267
  isChaining = false,
7192
7268
  isNullable = false
7193
7269
  }) {
@@ -7205,7 +7281,7 @@ function getReturnType({
7205
7281
  }
7206
7282
  const isList = actionName === DMMF.ModelAction.findMany || actionName === DMMF.ModelAction.createManyAndReturn;
7207
7283
  if (isList) {
7208
- let result = getResultType(modelName, actionName, context2);
7284
+ let result = getResultType(modelName, actionName, context);
7209
7285
  if (isChaining) {
7210
7286
  result = unionType(result).addVariant(namedType("Null"));
7211
7287
  }
@@ -7213,39 +7289,39 @@ function getReturnType({
7213
7289
  }
7214
7290
  if (isChaining && actionName === DMMF.ModelAction.findUniqueOrThrow) {
7215
7291
  const nullType2 = isNullable ? nullType : namedType("Null");
7216
- const result = unionType(getResultType(modelName, actionName, context2)).addVariant(nullType2);
7217
- return getFluentWrapper(modelName, context2, result, nullType2);
7292
+ const result = unionType(getResultType(modelName, actionName, context)).addVariant(nullType2);
7293
+ return getFluentWrapper(modelName, context, result, nullType2);
7218
7294
  }
7219
7295
  if (actionName === DMMF.ModelAction.findFirst || actionName === DMMF.ModelAction.findUnique) {
7220
- const result = unionType(getResultType(modelName, actionName, context2)).addVariant(nullType);
7221
- return getFluentWrapper(modelName, context2, result, nullType);
7296
+ const result = unionType(getResultType(modelName, actionName, context)).addVariant(nullType);
7297
+ return getFluentWrapper(modelName, context, result, nullType);
7222
7298
  }
7223
- return getFluentWrapper(modelName, context2, getResultType(modelName, actionName, context2));
7299
+ return getFluentWrapper(modelName, context, getResultType(modelName, actionName, context));
7224
7300
  }
7225
- function getFluentWrapper(modelName, context2, resultType, nullType2 = neverType) {
7301
+ function getFluentWrapper(modelName, context, resultType, nullType2 = neverType) {
7226
7302
  const result = namedType(fluentWrapperName(modelName)).addGenericArgument(resultType).addGenericArgument(nullType2).addGenericArgument(extArgsParam.toArgument());
7227
- if (context2.isPreviewFeatureOn("omitApi")) {
7303
+ if (context.isPreviewFeatureOn("omitApi")) {
7228
7304
  result.addGenericArgument(namedType("ClientOptions"));
7229
7305
  }
7230
7306
  return result;
7231
7307
  }
7232
- function getResultType(modelName, actionName, context2) {
7308
+ function getResultType(modelName, actionName, context) {
7233
7309
  const result = namedType("$Result.GetResult").addGenericArgument(namedType(getPayloadName(modelName)).addGenericArgument(extArgsParam.toArgument())).addGenericArgument(namedType("T")).addGenericArgument(stringLiteral(actionName));
7234
- if (context2.isPreviewFeatureOn("omitApi")) {
7310
+ if (context.isPreviewFeatureOn("omitApi")) {
7235
7311
  result.addGenericArgument(namedType("ClientOptions"));
7236
7312
  }
7237
7313
  return result;
7238
7314
  }
7239
- function buildFluentWrapperDefinition(modelName, outputType, context2) {
7315
+ function buildFluentWrapperDefinition(modelName, outputType, context) {
7240
7316
  const definition = interfaceDeclaration(fluentWrapperName(modelName));
7241
7317
  definition.addGenericParameter(genericParameter("T")).addGenericParameter(genericParameter("Null").default(neverType)).addGenericParameter(extArgsParam).extends(prismaPromise(namedType("T")));
7242
- if (context2.isPreviewFeatureOn("omitApi")) {
7318
+ if (context.isPreviewFeatureOn("omitApi")) {
7243
7319
  definition.addGenericParameter(genericParameter("ClientOptions").default(objectType()));
7244
7320
  }
7245
- definition.add(property("[Symbol.toStringTag]", stringLiteral("PrismaPromise")).readonly());
7321
+ definition.add(property(toStringTag, stringLiteral("PrismaPromise")).readonly());
7246
7322
  definition.addMultiple(
7247
7323
  outputType.fields.filter(
7248
- (field) => field.outputType.location === "outputObjectTypes" && !context2.dmmf.isComposite(field.outputType.type) && field.name !== "_count"
7324
+ (field) => field.outputType.location === "outputObjectTypes" && !context.dmmf.isComposite(field.outputType.type) && field.name !== "_count"
7249
7325
  ).map((field) => {
7250
7326
  const fieldArgType = namedType(getFieldArgName(field, modelName)).addGenericArgument(extArgsParam.toArgument());
7251
7327
  const argsParam = genericParameter("T").extends(fieldArgType).default(objectType());
@@ -7254,7 +7330,7 @@ function buildFluentWrapperDefinition(modelName, outputType, context2) {
7254
7330
  modelName: field.outputType.type,
7255
7331
  actionName: field.outputType.isList ? DMMF.ModelAction.findMany : DMMF.ModelAction.findUniqueOrThrow,
7256
7332
  isChaining: true,
7257
- context: context2,
7333
+ context,
7258
7334
  isNullable: field.isNullable
7259
7335
  })
7260
7336
  );
@@ -8314,9 +8390,9 @@ class ${name} {
8314
8390
  // src/generation/TSClient/Count.ts
8315
8391
  var import_indent_string5 = __toESM(require_indent_string());
8316
8392
  var Count = class {
8317
- constructor(type, context2) {
8393
+ constructor(type, context) {
8318
8394
  this.type = type;
8319
- this.context = context2;
8395
+ this.context = context;
8320
8396
  }
8321
8397
  get argsTypes() {
8322
8398
  const argsTypes = [];
@@ -8468,15 +8544,15 @@ function globalOmitConfig(dmmf) {
8468
8544
  }
8469
8545
 
8470
8546
  // src/generation/TSClient/PrismaClient.ts
8471
- function clientTypeMapModelsDefinition(context2) {
8547
+ function clientTypeMapModelsDefinition(context) {
8472
8548
  const meta = objectType();
8473
- const modelNames = context2.dmmf.datamodel.models.map((m) => m.name);
8549
+ const modelNames = context.dmmf.datamodel.models.map((m) => m.name);
8474
8550
  if (modelNames.length === 0) {
8475
8551
  meta.add(property("modelProps", neverType));
8476
8552
  } else {
8477
8553
  meta.add(property("modelProps", unionType(modelNames.map((name) => stringLiteral(lowerCase(name))))));
8478
8554
  }
8479
- const isolationLevel = context2.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
8555
+ const isolationLevel = context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma") ? namedType("Prisma.TransactionIsolationLevel") : neverType;
8480
8556
  meta.add(property("txIsolationLevel", isolationLevel));
8481
8557
  const model = objectType();
8482
8558
  model.addMultiple(
@@ -8486,7 +8562,7 @@ function clientTypeMapModelsDefinition(context2) {
8486
8562
  property("payload", namedType(getPayloadName(modelName)).addGenericArgument(extArgsParam.toArgument()))
8487
8563
  );
8488
8564
  entry.add(property("fields", namedType(`Prisma.${getFieldRefsTypeName(modelName)}`)));
8489
- const actions = getModelActions(context2.dmmf, modelName);
8565
+ const actions = getModelActions(context.dmmf, modelName);
8490
8566
  const operations = objectType();
8491
8567
  operations.addMultiple(
8492
8568
  actions.map((action) => {
@@ -8528,13 +8604,13 @@ function clientTypeMapModelsResultDefinition(modelName, action) {
8528
8604
  function payloadToResult(modelName) {
8529
8605
  return namedType("$Utils.PayloadToResult").addGenericArgument(namedType(getPayloadName(modelName)));
8530
8606
  }
8531
- function clientTypeMapOthersDefinition(context2) {
8532
- const otherOperationsNames = context2.dmmf.getOtherOperationNames().flatMap((name) => {
8607
+ function clientTypeMapOthersDefinition(context) {
8608
+ const otherOperationsNames = context.dmmf.getOtherOperationNames().flatMap((name) => {
8533
8609
  const results = [`$${name}`];
8534
8610
  if (name === "executeRaw" || name === "queryRaw") {
8535
8611
  results.push(`$${name}Unsafe`);
8536
8612
  }
8537
- if (name === "queryRaw" && context2.isPreviewFeatureOn("typedSql")) {
8613
+ if (name === "queryRaw" && context.isPreviewFeatureOn("typedSql")) {
8538
8614
  results.push(`$queryRawTyped`);
8539
8615
  }
8540
8616
  return results;
@@ -8561,8 +8637,8 @@ function clientTypeMapOthersDefinition(context2) {
8561
8637
  }
8562
8638
  }`;
8563
8639
  }
8564
- function clientTypeMapDefinition(context2) {
8565
- const typeMap = `${stringify(clientTypeMapModelsDefinition(context2))} & ${clientTypeMapOthersDefinition(context2)}`;
8640
+ function clientTypeMapDefinition(context) {
8641
+ const typeMap = `${stringify(clientTypeMapModelsDefinition(context))} & ${clientTypeMapOthersDefinition(context)}`;
8566
8642
  return `
8567
8643
  interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, clientOptions: PrismaClientOptions }, $Utils.Record<string, any>> {
8568
8644
  returns: Prisma.TypeMap<this['params']['extArgs'], this['params']['clientOptions']>
@@ -8570,8 +8646,8 @@ interface TypeMapCb extends $Utils.Fn<{extArgs: $Extensions.InternalArgs, client
8570
8646
 
8571
8647
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = ${typeMap}`;
8572
8648
  }
8573
- function clientExtensionsDefinitions(context2) {
8574
- const typeMap = clientTypeMapDefinition(context2);
8649
+ function clientExtensionsDefinitions(context) {
8650
+ const typeMap = clientTypeMapDefinition(context);
8575
8651
  const define2 = moduleExport(
8576
8652
  constDeclaration(
8577
8653
  "defineExtension",
@@ -8580,16 +8656,16 @@ function clientExtensionsDefinitions(context2) {
8580
8656
  );
8581
8657
  return [typeMap, stringify(define2)].join("\n");
8582
8658
  }
8583
- function extendsPropertyDefinition(context2) {
8659
+ function extendsPropertyDefinition(context) {
8584
8660
  const extendsDefinition = namedType("$Extensions.ExtendsHook").addGenericArgument(stringLiteral("extends")).addGenericArgument(namedType("Prisma.TypeMapCb")).addGenericArgument(namedType("ExtArgs"));
8585
- if (context2.isPreviewFeatureOn("omitApi")) {
8661
+ if (context.isPreviewFeatureOn("omitApi")) {
8586
8662
  extendsDefinition.addGenericArgument(
8587
8663
  namedType("$Utils.Call").addGenericArgument(namedType("Prisma.TypeMapCb")).addGenericArgument(objectType().add(property("extArgs", namedType("ExtArgs"))))
8588
8664
  ).addGenericArgument(namedType("ClientOptions"));
8589
8665
  }
8590
8666
  return stringify(property("$extends", extendsDefinition), { indentLevel: 1 });
8591
8667
  }
8592
- function batchingTransactionDefinition(context2) {
8668
+ function batchingTransactionDefinition(context) {
8593
8669
  const method2 = method("$transaction").setDocComment(
8594
8670
  docComment`
8595
8671
  Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
@@ -8605,15 +8681,15 @@ function batchingTransactionDefinition(context2) {
8605
8681
  Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
8606
8682
  `
8607
8683
  ).addGenericParameter(genericParameter("P").extends(array(prismaPromise(anyType)))).addParameter(parameter("arg", arraySpread(namedType("P")))).setReturnType(promise(namedType("runtime.Types.Utils.UnwrapTuple").addGenericArgument(namedType("P"))));
8608
- if (context2.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
8684
+ if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
8609
8685
  const options = objectType().formatInline().add(property("isolationLevel", namedType("Prisma.TransactionIsolationLevel")).optional());
8610
8686
  method2.addParameter(parameter("options", options).optional());
8611
8687
  }
8612
8688
  return stringify(method2, { indentLevel: 1, newLine: "leading" });
8613
8689
  }
8614
- function interactiveTransactionDefinition(context2) {
8690
+ function interactiveTransactionDefinition(context) {
8615
8691
  const options = objectType().formatInline().add(property("maxWait", numberType).optional()).add(property("timeout", numberType).optional());
8616
- if (context2.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
8692
+ if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
8617
8693
  const isolationLevel = property("isolationLevel", namedType("Prisma.TransactionIsolationLevel")).optional();
8618
8694
  options.add(isolationLevel);
8619
8695
  }
@@ -8624,8 +8700,8 @@ function interactiveTransactionDefinition(context2) {
8624
8700
  const method2 = method("$transaction").addGenericParameter(genericParameter("R")).addParameter(parameter("fn", callbackType)).addParameter(parameter("options", options).optional()).setReturnType(returnType);
8625
8701
  return stringify(method2, { indentLevel: 1, newLine: "leading" });
8626
8702
  }
8627
- function queryRawDefinition(context2) {
8628
- if (!context2.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
8703
+ function queryRawDefinition(context) {
8704
+ if (!context.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
8629
8705
  return "";
8630
8706
  }
8631
8707
  return `
@@ -8652,8 +8728,8 @@ function queryRawDefinition(context2) {
8652
8728
  */
8653
8729
  $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;`;
8654
8730
  }
8655
- function executeRawDefinition(context2) {
8656
- if (!context2.dmmf.mappings.otherOperations.write.includes("executeRaw")) {
8731
+ function executeRawDefinition(context) {
8732
+ if (!context.dmmf.mappings.otherOperations.write.includes("executeRaw")) {
8657
8733
  return "";
8658
8734
  }
8659
8735
  return `
@@ -8680,11 +8756,11 @@ function executeRawDefinition(context2) {
8680
8756
  */
8681
8757
  $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;`;
8682
8758
  }
8683
- function queryRawTypedDefinition(context2) {
8684
- if (!context2.isPreviewFeatureOn("typedSql")) {
8759
+ function queryRawTypedDefinition(context) {
8760
+ if (!context.isPreviewFeatureOn("typedSql")) {
8685
8761
  return "";
8686
8762
  }
8687
- if (!context2.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
8763
+ if (!context.dmmf.mappings.otherOperations.write.includes("queryRaw")) {
8688
8764
  return "";
8689
8765
  }
8690
8766
  const param = genericParameter("T");
@@ -8706,8 +8782,8 @@ function queryRawTypedDefinition(context2) {
8706
8782
  ).setReturnType(prismaPromise(array(param.toArgument())));
8707
8783
  return stringify(method2, { indentLevel: 1, newLine: "leading" });
8708
8784
  }
8709
- function metricDefinition(context2) {
8710
- if (!context2.isPreviewFeatureOn("metrics")) {
8785
+ function metricDefinition(context) {
8786
+ if (!context.isPreviewFeatureOn("metrics")) {
8711
8787
  return "";
8712
8788
  }
8713
8789
  const property2 = property("$metrics", namedType(`runtime.${runtimeImport("MetricsClient")}`)).setDocComment(
@@ -8724,8 +8800,8 @@ function metricDefinition(context2) {
8724
8800
  ).readonly();
8725
8801
  return stringify(property2, { indentLevel: 1, newLine: "leading" });
8726
8802
  }
8727
- function runCommandRawDefinition(context2) {
8728
- if (!context2.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
8803
+ function runCommandRawDefinition(context) {
8804
+ if (!context.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
8729
8805
  return "";
8730
8806
  }
8731
8807
  const method2 = method("$runCommandRaw").addParameter(parameter("command", namedType("Prisma.InputJsonObject"))).setReturnType(prismaPromise(namedType("Prisma.JsonObject"))).setDocComment(docComment`
@@ -8760,8 +8836,8 @@ function eventRegistrationMethodDeclaration(runtimeNameTs) {
8760
8836
  }
8761
8837
  }
8762
8838
  var PrismaClientClass = class {
8763
- constructor(context2, internalDatasources, outputDir, runtimeNameTs, browser) {
8764
- this.context = context2;
8839
+ constructor(context, internalDatasources, outputDir, runtimeNameTs, browser) {
8840
+ this.context = context;
8765
8841
  this.internalDatasources = internalDatasources;
8766
8842
  this.outputDir = outputDir;
8767
8843
  this.runtimeNameTs = runtimeNameTs;
@@ -9106,14 +9182,14 @@ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, rela
9106
9182
  const topExports = moduleExportFrom(`./${reusedTs}`);
9107
9183
  return stringify(topExports);
9108
9184
  }
9109
- const context2 = new GenerateContext({
9185
+ const context = new GenerateContext({
9110
9186
  dmmf: this.dmmf,
9111
9187
  genericArgsInfo: this.genericsInfo,
9112
9188
  generator: this.options.generator,
9113
9189
  defaultArgsAliases: new DefaultArgsAliases()
9114
9190
  });
9115
9191
  const prismaClientClass = new PrismaClientClass(
9116
- context2,
9192
+ context,
9117
9193
  this.options.datasources,
9118
9194
  this.options.outputDir,
9119
9195
  this.options.runtimeNameTs,
@@ -9122,7 +9198,7 @@ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, rela
9122
9198
  const commonCode = commonCodeTS(this.options);
9123
9199
  const modelAndTypes = Object.values(this.dmmf.typeAndModelMap).reduce((acc, modelOrType) => {
9124
9200
  if (this.dmmf.outputTypeMap.model[modelOrType.name]) {
9125
- acc.push(new Model(modelOrType, context2));
9201
+ acc.push(new Model(modelOrType, context));
9126
9202
  }
9127
9203
  return acc;
9128
9204
  }, []);
@@ -9139,7 +9215,7 @@ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, rela
9139
9215
  );
9140
9216
  }
9141
9217
  const fieldRefs = this.dmmf.schema.fieldRefTypes.prisma?.map((type) => new FieldRefInput(type).toTS()) ?? [];
9142
- const countTypes = this.dmmf.schema.outputObjectTypes.prisma?.filter((t) => t.name.endsWith("CountOutputType")).map((t) => new Count(t, context2));
9218
+ const countTypes = this.dmmf.schema.outputObjectTypes.prisma?.filter((t) => t.name.endsWith("CountOutputType")).map((t) => new Count(t, context));
9143
9219
  const code = `
9144
9220
  /**
9145
9221
  * Client
@@ -9226,7 +9302,7 @@ ${this.dmmf.inputObjectTypes.model?.map((inputType) => new InputType(inputType,
9226
9302
  /**
9227
9303
  * Aliases for legacy arg types
9228
9304
  */
9229
- ${context2.defaultArgsAliases.generateAliases()}
9305
+ ${context.defaultArgsAliases.generateAliases()}
9230
9306
 
9231
9307
  /**
9232
9308
  * Batch Payload for updateMany & deleteMany & createMany