efiber-prisma-schema 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/package.json +19 -18
  2. package/prisma/generated/edge.js +73 -28
  3. package/prisma/generated/index-browser.js +14 -13
  4. package/prisma/generated/index.d.ts +24 -9
  5. package/prisma/generated/index.js +95 -29
  6. package/prisma/generated/libquery_engine-darwin-arm64.dylib.node +0 -0
  7. package/prisma/generated/package.json +68 -29
  8. package/prisma/generated/query_engine_bg.js +2 -0
  9. package/prisma/generated/query_engine_bg.wasm +0 -0
  10. package/prisma/generated/runtime/edge-esm.js +35 -0
  11. package/prisma/generated/runtime/edge.js +35 -0
  12. package/prisma/generated/runtime/index-browser.d.ts +303 -20
  13. package/prisma/generated/runtime/index-browser.js +12 -1
  14. package/prisma/generated/runtime/{client.d.ts → library.d.ts} +905 -103
  15. package/prisma/generated/runtime/library.js +147 -0
  16. package/prisma/generated/runtime/react-native.js +84 -0
  17. package/prisma/generated/runtime/wasm-compiler-edge.js +33 -24
  18. package/prisma/generated/runtime/wasm-engine-edge.js +38 -0
  19. package/prisma/generated/schema.prisma +1 -0
  20. package/prisma/generated/wasm-edge-light-loader.mjs +1 -1
  21. package/prisma/generated/wasm-worker-loader.mjs +1 -1
  22. package/prisma/generated/wasm.d.ts +1 -0
  23. package/prisma/generated/{internal/class.ts → wasm.js} +2448 -1238
  24. package/prisma/schema.prisma +1 -0
  25. package/index.d.ts +0 -10
  26. package/index.js +0 -10
  27. package/prisma/generated/browser.ts +0 -559
  28. package/prisma/generated/client.ts +0 -581
  29. package/prisma/generated/commonInputTypes.ts +0 -1246
  30. package/prisma/generated/enums.ts +0 -188
  31. package/prisma/generated/internal/prismaNamespace.ts +0 -11532
  32. package/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -2582
  33. package/prisma/generated/models/AttributeDefinition.ts +0 -1498
  34. package/prisma/generated/models/AttributeValue.ts +0 -1419
  35. package/prisma/generated/models/Audit.ts +0 -1725
  36. package/prisma/generated/models/BillOfMaterial.ts +0 -1934
  37. package/prisma/generated/models/Building.ts +0 -6130
  38. package/prisma/generated/models/BuildingTemplate.ts +0 -2912
  39. package/prisma/generated/models/Cable.ts +0 -10501
  40. package/prisma/generated/models/CableAttachment.ts +0 -1530
  41. package/prisma/generated/models/CableAttributes.ts +0 -2244
  42. package/prisma/generated/models/CableTemplate.ts +0 -3170
  43. package/prisma/generated/models/CamusatClient.ts +0 -2001
  44. package/prisma/generated/models/CamusatCountry.ts +0 -2425
  45. package/prisma/generated/models/CentralOffice.ts +0 -1921
  46. package/prisma/generated/models/CentralOfficeTeam.ts +0 -1620
  47. package/prisma/generated/models/CentralOfficeUser.ts +0 -1650
  48. package/prisma/generated/models/Cluster.ts +0 -10984
  49. package/prisma/generated/models/ClusterComments.ts +0 -1668
  50. package/prisma/generated/models/ClusterNotes.ts +0 -1703
  51. package/prisma/generated/models/Conduit.ts +0 -5119
  52. package/prisma/generated/models/ConduitTemplate.ts +0 -2940
  53. package/prisma/generated/models/Country.ts +0 -1795
  54. package/prisma/generated/models/DispatchMaterial.ts +0 -3070
  55. package/prisma/generated/models/DispatchProject.ts +0 -4179
  56. package/prisma/generated/models/DispatchTeam.ts +0 -3053
  57. package/prisma/generated/models/Duct.ts +0 -1813
  58. package/prisma/generated/models/ElementNode.ts +0 -4413
  59. package/prisma/generated/models/ElementRelation.ts +0 -1644
  60. package/prisma/generated/models/EmailConfigurations.ts +0 -3736
  61. package/prisma/generated/models/EmailTemplates.ts +0 -1739
  62. package/prisma/generated/models/EmailsIncoming.ts +0 -2010
  63. package/prisma/generated/models/EmailsIncomingSample.ts +0 -1503
  64. package/prisma/generated/models/EmailsOutgoing.ts +0 -1648
  65. package/prisma/generated/models/FDTSRO.ts +0 -6180
  66. package/prisma/generated/models/FDTSROTemplate.ts +0 -2912
  67. package/prisma/generated/models/Feature.ts +0 -1867
  68. package/prisma/generated/models/FeatureType.ts +0 -1430
  69. package/prisma/generated/models/IntegrationReportTemplate.ts +0 -1878
  70. package/prisma/generated/models/Loop.ts +0 -5271
  71. package/prisma/generated/models/LoopTemplate.ts +0 -2912
  72. package/prisma/generated/models/MainProject.ts +0 -1664
  73. package/prisma/generated/models/Manhole.ts +0 -5090
  74. package/prisma/generated/models/ManholeTemplate.ts +0 -2912
  75. package/prisma/generated/models/MapElement.ts +0 -3450
  76. package/prisma/generated/models/MapElementTemplate.ts +0 -2742
  77. package/prisma/generated/models/Material.ts +0 -1963
  78. package/prisma/generated/models/MaterialBillOfMaterial.ts +0 -1737
  79. package/prisma/generated/models/MaterialChangeLog.ts +0 -1454
  80. package/prisma/generated/models/NetworkElement.ts +0 -6891
  81. package/prisma/generated/models/NetworkElementInstallation.ts +0 -3320
  82. package/prisma/generated/models/Notifications.ts +0 -1563
  83. package/prisma/generated/models/OptionSource.ts +0 -1132
  84. package/prisma/generated/models/PboFat.ts +0 -8248
  85. package/prisma/generated/models/PboFatAttributes.ts +0 -2672
  86. package/prisma/generated/models/PboFatTemplate.ts +0 -3112
  87. package/prisma/generated/models/Platform.ts +0 -1759
  88. package/prisma/generated/models/Pole.ts +0 -5266
  89. package/prisma/generated/models/PoleTemplate.ts +0 -2912
  90. package/prisma/generated/models/Position.ts +0 -1490
  91. package/prisma/generated/models/PreviousEquipment.ts +0 -1881
  92. package/prisma/generated/models/Project.ts +0 -14893
  93. package/prisma/generated/models/ProjectType.ts +0 -1351
  94. package/prisma/generated/models/ProjectWorkFlow.ts +0 -1856
  95. package/prisma/generated/models/ReportFormats.ts +0 -1768
  96. package/prisma/generated/models/ReportFormulaConfig.ts +0 -1375
  97. package/prisma/generated/models/ReportMetric.ts +0 -1737
  98. package/prisma/generated/models/ReportTable.ts +0 -1498
  99. package/prisma/generated/models/ReportVisualization.ts +0 -1446
  100. package/prisma/generated/models/Revision.ts +0 -4653
  101. package/prisma/generated/models/Role.ts +0 -2960
  102. package/prisma/generated/models/SFU.ts +0 -5977
  103. package/prisma/generated/models/SFUTemplate.ts +0 -2912
  104. package/prisma/generated/models/SpliceClosure.ts +0 -6405
  105. package/prisma/generated/models/SpliceClosureAttributes.ts +0 -2172
  106. package/prisma/generated/models/SpliceClosureTemplate.ts +0 -3176
  107. package/prisma/generated/models/Splitter.ts +0 -1459
  108. package/prisma/generated/models/StockMovement.ts +0 -1589
  109. package/prisma/generated/models/SubsidiaryMaterial.ts +0 -2193
  110. package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +0 -1966
  111. package/prisma/generated/models/Team.ts +0 -2044
  112. package/prisma/generated/models/TeamMaterial.ts +0 -2193
  113. package/prisma/generated/models/TeamMaterialMovementLog.ts +0 -1966
  114. package/prisma/generated/models/TeamPlatform.ts +0 -1874
  115. package/prisma/generated/models/TeamType.ts +0 -1655
  116. package/prisma/generated/models/Template.ts +0 -1691
  117. package/prisma/generated/models/TemplateComponent.ts +0 -1995
  118. package/prisma/generated/models/User.ts +0 -25676
  119. package/prisma/generated/models/WorkOrder.ts +0 -5901
  120. package/prisma/generated/models/WorkOrderActivityLog.ts +0 -2126
  121. package/prisma/generated/models/WorkOrderChannel.ts +0 -1454
  122. package/prisma/generated/models/WorkOrderComments.ts +0 -1687
  123. package/prisma/generated/models/WorkOrderEditLog.ts +0 -1757
  124. package/prisma/generated/models/WorkOrderMaterial.ts +0 -1933
  125. package/prisma/generated/models/WorkOrderPauses.ts +0 -1454
  126. package/prisma/generated/models/WorkOrderTask.ts +0 -2220
  127. package/prisma/generated/models/WorkOrderTaskData.ts +0 -1244
  128. package/prisma/generated/models/ZoneNro.ts +0 -3926
  129. package/prisma/generated/models/ZoneNroTemplate.ts +0 -2966
  130. package/prisma/generated/models/clientMaterial.ts +0 -2193
  131. package/prisma/generated/models/clientMaterialMovementLog.ts +0 -1966
  132. package/prisma/generated/models/ductTemplate.ts +0 -1606
  133. package/prisma/generated/models/installationSequence.ts +0 -1708
  134. package/prisma/generated/models/integrationProjectUserStatus.ts +0 -1916
  135. package/prisma/generated/models/integrationUserLocation.ts +0 -1681
  136. package/prisma/generated/models/problemCategorization.ts +0 -1543
  137. package/prisma/generated/models/projectPhaseLog.ts +0 -1728
  138. package/prisma/generated/models/qrCodeTag.ts +0 -4978
  139. package/prisma/generated/models/qrCodeTemplate.ts +0 -6500
  140. package/prisma/generated/models/ticketMaterialMovementLog.ts +0 -1651
  141. package/prisma/generated/models.ts +0 -119
  142. package/prisma/generated/query_compiler_bg.js +0 -2
  143. package/prisma/generated/query_compiler_bg.wasm +0 -0
  144. package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
  145. package/prisma/generated/runtime/client.js +0 -86
  146. package/prisma/migrations/0_init/migration.sql +0 -0
  147. package/prisma/migrations/20231209164007_/migration.sql +0 -8
  148. package/prisma/migrations/20231209192452_country_table/migration.sql +0 -7
  149. package/prisma/migrations/20231209194848_/migration.sql +0 -10
  150. package/prisma/migrations/20231209195140_/migration.sql +0 -8
  151. package/prisma/migrations/20231209201218_country_update/migration.sql +0 -29
  152. package/prisma/migrations/20231209201405_/migration.sql +0 -8
  153. package/prisma/migrations/20231209213149_camusat_country/migration.sql +0 -20
  154. package/prisma/migrations/20231209221814_platform/migration.sql +0 -26
  155. package/prisma/migrations/20231209223246_/migration.sql +0 -16
  156. package/prisma/migrations/20231209231721_roles/migration.sql +0 -34
  157. package/prisma/migrations/20231210113501_team_and_users/migration.sql +0 -119
  158. package/prisma/migrations/20231210181832_user_update/migration.sql +0 -25
  159. package/prisma/migrations/20231219121311_add_projects/migration.sql +0 -60
  160. package/prisma/migrations/20231219123045_/migration.sql +0 -8
  161. package/prisma/migrations/20231219123850_audit/migration.sql +0 -20
  162. package/prisma/migrations/20240116090035_/migration.sql +0 -57
  163. package/prisma/migrations/20240202082320_init/migration.sql +0 -17
  164. package/prisma/migrations/20240202091027_camusat_client/migration.sql +0 -29
  165. package/prisma/migrations/20240202124330_camusatcountry/migration.sql +0 -20
  166. package/prisma/migrations/20240203085209_feature/migration.sql +0 -66
  167. package/prisma/migrations/20240203123342_feature/migration.sql +0 -38
  168. package/prisma/migrations/20240203124454_featuretype/migration.sql +0 -30
  169. package/prisma/migrations/20240203134414_featuretype/migration.sql +0 -8
  170. package/prisma/migrations/20240203154141_featuretype/migration.sql +0 -47
  171. package/prisma/migrations/20240203203915_template/migration.sql +0 -82
  172. package/prisma/migrations/20240204040725_template_component/migration.sql +0 -83
  173. package/prisma/migrations/20240204043127_template_component/migration.sql +0 -3
  174. package/prisma/migrations/20240204051036_template_component/migration.sql +0 -17
  175. package/prisma/migrations/20240204052923_template_component/migration.sql +0 -24
  176. package/prisma/migrations/20240204103902_template_component/migration.sql +0 -10
  177. package/prisma/migrations/20240204112656_camusat_client/migration.sql +0 -13
  178. package/prisma/migrations/20240204113143_camusat_client/migration.sql +0 -16
  179. package/prisma/migrations/20240204133932_camusat_client/migration.sql +0 -13
  180. package/prisma/migrations/20240204134637_camusat_client/migration.sql +0 -16
  181. package/prisma/migrations/20240204135459_camusat_client/migration.sql +0 -8
  182. package/prisma/migrations/20240204135615_camusat_client/migration.sql +0 -16
  183. package/prisma/migrations/20240204141001_camusat_client/migration.sql +0 -16
  184. package/prisma/migrations/20240205070804_template/migration.sql +0 -60
  185. package/prisma/migrations/20240205071138_template/migration.sql +0 -8
  186. package/prisma/migrations/20240205074015_template/migration.sql +0 -11
  187. package/prisma/migrations/20240205100949_template/migration.sql +0 -3
  188. package/prisma/migrations/20240205170632_template/migration.sql +0 -26
  189. package/prisma/migrations/20240205171038_template/migration.sql +0 -8
  190. package/prisma/migrations/20240206115225_template/migration.sql +0 -2
  191. package/prisma/migrations/20240206115743_template/migration.sql +0 -8
  192. package/prisma/migrations/20240206122145_template/migration.sql +0 -8
  193. package/prisma/migrations/20240206122530_template/migration.sql +0 -17
  194. package/prisma/migrations/20240206124010_template/migration.sql +0 -2
  195. package/prisma/migrations/20240206124504_template/migration.sql +0 -8
  196. package/prisma/migrations/20240207123737_template_component/migration.sql +0 -27
  197. package/prisma/migrations/20240207182427_project_workflow/migration.sql +0 -13
  198. package/prisma/migrations/20240208080438_project_workflow/migration.sql +0 -29
  199. package/prisma/migrations/20240208094341_project_workflow/migration.sql +0 -20
  200. package/prisma/migrations/20240208094513_project_workflow/migration.sql +0 -11
  201. package/prisma/migrations/20240208110543_feature/migration.sql +0 -42
  202. package/prisma/migrations/20240209094123_feature/migration.sql +0 -2
  203. package/prisma/migrations/20240211174122_camusat_client/migration.sql +0 -2
  204. package/prisma/migrations/20240219060721_feature/migration.sql +0 -14
  205. package/prisma/migrations/20240220085809_emails/migration.sql +0 -82
  206. package/prisma/migrations/20240226075734_update_email_config_and_workorder/migration.sql +0 -33
  207. package/prisma/migrations/20240227112839_update_email_config/migration.sql +0 -2
  208. package/prisma/migrations/20240227124801_work_order_update/migration.sql +0 -6
  209. package/prisma/migrations/20240301063634_material/migration.sql +0 -40
  210. package/prisma/migrations/20240301064450_material/migration.sql +0 -8
  211. package/prisma/migrations/20240301071914_bill_of_material/migration.sql +0 -32
  212. package/prisma/migrations/20240301130744_dispatch_material/migration.sql +0 -19
  213. package/prisma/migrations/20240304051150_dispatch_material/migration.sql +0 -5
  214. package/prisma/migrations/20240304060722_dispatch_material/migration.sql +0 -5
  215. package/prisma/migrations/20240304060902_dispatch_material/migration.sql +0 -8
  216. package/prisma/migrations/20240304061156_dispatch_material/migration.sql +0 -9
  217. package/prisma/migrations/20240304173952_stock_movement/migration.sql +0 -40
  218. package/prisma/migrations/20240305072137_stock_movement/migration.sql +0 -239
  219. package/prisma/migrations/20240305072744_stock_movement/migration.sql +0 -12
  220. package/prisma/migrations/20240306055959_stock_movement/migration.sql +0 -11
  221. package/prisma/migrations/20240306062724_stock_movement/migration.sql +0 -2
  222. package/prisma/migrations/20240306113309_stock_movement/migration.sql +0 -8
  223. package/prisma/migrations/20240306141448_stock_movement/migration.sql +0 -5
  224. package/prisma/migrations/20240306144254_stock_movement/migration.sql +0 -5
  225. package/prisma/migrations/20240306154800_stock_movement/migration.sql +0 -8
  226. package/prisma/migrations/20240307095205_stock_movement/migration.sql +0 -16
  227. package/prisma/migrations/20240308175028_new/migration.sql +0 -8
  228. package/prisma/migrations/20240310114206_dispatch_project/migration.sql +0 -5
  229. package/prisma/migrations/20240311121226_new/migration.sql +0 -71
  230. package/prisma/migrations/20240311171024_new/migration.sql +0 -8
  231. package/prisma/migrations/20240312090511_material/migration.sql +0 -17
  232. package/prisma/migrations/20240312095600_material/migration.sql +0 -16
  233. package/prisma/migrations/20240312115431_material/migration.sql +0 -11
  234. package/prisma/migrations/20240316161358_work_order/migration.sql +0 -3
  235. package/prisma/migrations/20240318112352_problem_categorization/migration.sql +0 -14
  236. package/prisma/migrations/20240318112616_problem_categorization/migration.sql +0 -8
  237. package/prisma/migrations/20240319072457_work_order/migration.sql +0 -5
  238. package/prisma/migrations/20240320124008_dispatch_project/migration.sql +0 -26
  239. package/prisma/migrations/20240321081929_dispatch_project/migration.sql +0 -8
  240. package/prisma/migrations/20240321102139_work_order/migration.sql +0 -45
  241. package/prisma/migrations/20240321103420_work_order/migration.sql +0 -14
  242. package/prisma/migrations/20240321103537_work_order/migration.sql +0 -2
  243. package/prisma/migrations/20240322061027_material/migration.sql +0 -11
  244. package/prisma/migrations/20240323122952_work_order/migration.sql +0 -6
  245. package/prisma/migrations/20240323125822_work_order/migration.sql +0 -2
  246. package/prisma/migrations/20240325082900_work_order/migration.sql +0 -11
  247. package/prisma/migrations/20240326115608_work_order/migration.sql +0 -18
  248. package/prisma/migrations/20240327051438_work_order/migration.sql +0 -8
  249. package/prisma/migrations/20240327100905_work_order/migration.sql +0 -24
  250. package/prisma/migrations/20240328121421_work_order/migration.sql +0 -26
  251. package/prisma/migrations/20240328122320_work_order/migration.sql +0 -9
  252. package/prisma/migrations/20240328123833_work_order/migration.sql +0 -3
  253. package/prisma/migrations/20240328132921_work_order/migration.sql +0 -5
  254. package/prisma/migrations/20240328142205_work_order/migration.sql +0 -2
  255. package/prisma/migrations/20240401184203_billof_material/migration.sql +0 -8
  256. package/prisma/migrations/20240402125649_feature/migration.sql +0 -2
  257. package/prisma/migrations/20240404054220_project/migration.sql +0 -29
  258. package/prisma/migrations/20240407224722_user/migration.sql +0 -2
  259. package/prisma/migrations/20240408100730_template_component/migration.sql +0 -12
  260. package/prisma/migrations/20240409094754_template/migration.sql +0 -2
  261. package/prisma/migrations/20240409095653_template/migration.sql +0 -2
  262. package/prisma/migrations/20240409100032_features/migration.sql +0 -2
  263. package/prisma/migrations/20240409100313_project/migration.sql +0 -5
  264. package/prisma/migrations/20240411073053_subject_email_configurations/migration.sql +0 -2
  265. package/prisma/migrations/20240412093517_work_order_tasks/migration.sql +0 -3
  266. package/prisma/migrations/20240413085449_problem_categorization/migration.sql +0 -5
  267. package/prisma/migrations/20240415101559_project/migration.sql +0 -20
  268. package/prisma/migrations/20240417062104_sync_to_git/migration.sql +0 -122
  269. package/prisma/migrations/20240417125606_workorder/migration.sql +0 -2
  270. package/prisma/migrations/20240422112728_movement_logs/migration.sql +0 -17
  271. package/prisma/migrations/20240423100846_work_order_task/migration.sql +0 -3
  272. package/prisma/migrations/20240428163748_email_count/migration.sql +0 -6
  273. package/prisma/migrations/20240430112607_work_order_edit_logs/migration.sql +0 -25
  274. package/prisma/migrations/20240502051952_template_status_color/migration.sql +0 -2
  275. package/prisma/migrations/20240506195539_projecttypes/migration.sql +0 -29
  276. package/prisma/migrations/20240508074229_workorder_task/migration.sql +0 -2
  277. package/prisma/migrations/20240515065236_coms/migration.sql +0 -21
  278. package/prisma/migrations/20240516093046_subsidiary_prefix/migration.sql +0 -2
  279. package/prisma/migrations/20240516170701_/migration.sql +0 -9
  280. package/prisma/migrations/20240520093356_emailconfig/migration.sql +0 -13
  281. package/prisma/migrations/20240530093136_emailtemplates/migration.sql +0 -24
  282. package/prisma/migrations/20240530110729_emailtemplates/migration.sql +0 -4
  283. package/prisma/migrations/20240530113416_emailtemplates/migration.sql +0 -9
  284. package/prisma/migrations/20240605072947_audit/migration.sql +0 -2
  285. package/prisma/migrations/20240605130105_notification_tokens/migration.sql +0 -2
  286. package/prisma/migrations/20240606074325_notifications/migration.sql +0 -21
  287. package/prisma/migrations/20240606074819_notif2/migration.sql +0 -8
  288. package/prisma/migrations/20240606172109_excel_config/migration.sql +0 -2
  289. package/prisma/migrations/20240607094457_reportformats/migration.sql +0 -27
  290. package/prisma/migrations/20240611101040_audit_matrices/migration.sql +0 -2
  291. package/prisma/migrations/20240611102951_workorder_audit_matrix/migration.sql +0 -2
  292. package/prisma/migrations/20240613063600_dispatch_roles/migration.sql +0 -18
  293. package/prisma/migrations/20240613071005_permissions_view_schedule/migration.sql +0 -2
  294. package/prisma/migrations/20240703093757_email_templates_templateinfo/migration.sql +0 -2
  295. package/prisma/migrations/20240715124159_mainproject_roles/migration.sql +0 -5
  296. package/prisma/migrations/20240722073020_admin_permissions_update/migration.sql +0 -4
  297. package/prisma/migrations/20240722082135_edit_projects/migration.sql +0 -2
  298. package/prisma/migrations/20240726090437_user_refresh_token/migration.sql +0 -11
  299. package/prisma/migrations/20240729135109_project_workflow_edit/migration.sql +0 -2
  300. package/prisma/migrations/20240729140705_template_component_project_index/migration.sql +0 -2
  301. package/prisma/migrations/20240731061332_report_format_bom_info/migration.sql +0 -2
  302. package/prisma/migrations/20240805073630_user_platform_relationship/migration.sql +0 -17
  303. package/prisma/migrations/20240809075746_workorder_sla/migration.sql +0 -2
  304. package/prisma/migrations/20240814094717_platform_to_project/migration.sql +0 -17
  305. package/prisma/migrations/20240814102025_platforms_to_project/migration.sql +0 -8
  306. package/prisma/migrations/20240819093908_network_elements/migration.sql +0 -239
  307. package/prisma/migrations/20240820092024_network_element_attributes/migration.sql +0 -276
  308. package/prisma/migrations/20240826083231_fat_template/migration.sql +0 -45
  309. package/prisma/migrations/20240826085204_pbo_pbo_template_to_project/migration.sql +0 -23
  310. package/prisma/migrations/20240826091924_attributes_to_fat_optional/migration.sql +0 -15
  311. package/prisma/migrations/20240902094457_email_signature/migration.sql +0 -2
  312. package/prisma/migrations/20240904092123_pbo_fat_zone_geometry/migration.sql +0 -16
  313. package/prisma/migrations/20240905125754_fat_name_attributes/migration.sql +0 -3
  314. package/prisma/migrations/20240905131742_fat_attribute_visible_on_mobile/migration.sql +0 -2
  315. package/prisma/migrations/20240911083041_country_list_user/migration.sql +0 -17
  316. package/prisma/migrations/20240911135957_actiondate_workorder_activity_log/migration.sql +0 -2
  317. package/prisma/migrations/20240911140227_workorder_activity_log_action_date_string_to_datetime/migration.sql +0 -9
  318. package/prisma/migrations/20240916130344_cable_template/migration.sql +0 -72
  319. package/prisma/migrations/20240916132002_cable_terminal_access/migration.sql +0 -5
  320. package/prisma/migrations/20240917113037_cable_id_on_cable_attributes_optional/migration.sql +0 -8
  321. package/prisma/migrations/20240917114004_visible_on_mobile_cable_attributes/migration.sql +0 -2
  322. package/prisma/migrations/20240917114107_visible_on_mobile_cable_attributes/migration.sql +0 -9
  323. package/prisma/migrations/20240919080014_create_cluster_and_central_office_tables/migration.sql +0 -54
  324. package/prisma/migrations/20240920092832_create_qr_code/migration.sql +0 -39
  325. package/prisma/migrations/20240924121308_qrcode_tag/migration.sql +0 -23
  326. package/prisma/migrations/20241003093709_integration_login_permissions/migration.sql +0 -3
  327. package/prisma/migrations/20241024090904_project_phase/migration.sql +0 -2
  328. package/prisma/migrations/20241024115650_project_phase_log/migration.sql +0 -24
  329. package/prisma/migrations/20241026095632_pbo_fat_attributes/migration.sql +0 -2
  330. package/prisma/migrations/20241028095307_qr_code_template_i_ds/migration.sql +0 -9
  331. package/prisma/migrations/20241029081315_add_more_network_elements/migration.sql +0 -273
  332. package/prisma/migrations/20241029084826_cable_coordinates/migration.sql +0 -5
  333. package/prisma/migrations/20241029092244_splice_closure_to_project/migration.sql +0 -5
  334. package/prisma/migrations/20241029092705_splice_closure_to_cluster/migration.sql +0 -5
  335. package/prisma/migrations/20241029094049_network_element_templates/migration.sql +0 -295
  336. package/prisma/migrations/20241029102645_network_elements_name/migration.sql +0 -50
  337. package/prisma/migrations/20241102074544_mail_carboncopy_list/migration.sql +0 -2
  338. package/prisma/migrations/20241104114549_change_qr_code_to_qr_code_template/migration.sql +0 -122
  339. package/prisma/migrations/20241104121110_qr_code_template_to_network_element_template/migration.sql +0 -33
  340. package/prisma/migrations/20241106101316_zone_coordinates/migration.sql +0 -5
  341. package/prisma/migrations/20241201141127_auto_name_elements/migration.sql +0 -39
  342. package/prisma/migrations/20241201144124_auto_name_element/migration.sql +0 -39
  343. package/prisma/migrations/20241201150401_template_index/migration.sql +0 -29
  344. package/prisma/migrations/20241205084445_template_id/migration.sql +0 -59
  345. package/prisma/migrations/20241205093552_integration_project_user_status/migration.sql +0 -23
  346. package/prisma/migrations/20241211093653_installation_sequence/migration.sql +0 -90
  347. package/prisma/migrations/20241211150807_installation_index/migration.sql +0 -2
  348. package/prisma/migrations/20241217082800_cluster_boundary/migration.sql +0 -3
  349. package/prisma/migrations/20250114092907_workorder_to_pbo_fat/migration.sql +0 -5
  350. package/prisma/migrations/20250114112746_workorder_to_sfu_and_building/migration.sql +0 -9
  351. package/prisma/migrations/20250211070850_networkelement_sequence/migration.sql +0 -19
  352. package/prisma/migrations/20250211072332_refresh_db/migration.sql +0 -95
  353. package/prisma/migrations/20250211080946_installation_sequence_self_relation/migration.sql +0 -6
  354. package/prisma/migrations/20250220100853_cluster_to_user_status/migration.sql +0 -32
  355. package/prisma/migrations/20250228100106_qr_code_template_to_cluster/migration.sql +0 -5
  356. package/prisma/migrations/20250304155122_clusters_to_users_centraloffices_to_users/migration.sql +0 -50
  357. package/prisma/migrations/20250306100801_templates_to_projects/migration.sql +0 -244
  358. package/prisma/migrations/20250306101814_cluster_naming_convention/migration.sql +0 -2
  359. package/prisma/migrations/20250311083647_previous_equipment/migration.sql +0 -28
  360. package/prisma/migrations/20250311141713_make_qrcode_template_prefix_unique/migration.sql +0 -8
  361. package/prisma/migrations/20250313114158_ne_coordinates/migration.sql +0 -32
  362. package/prisma/migrations/20250317072348_integration_user_location_model/migration.sql +0 -23
  363. package/prisma/migrations/20250416100413_standardize_cluster_centraloffice_qrcode/migration.sql +0 -8
  364. package/prisma/migrations/20250514130302_work_order_pause_table/migration.sql +0 -18
  365. package/prisma/migrations/20250514143429_work_order_pauses_end_at_nullable/migration.sql +0 -2
  366. package/prisma/migrations/20250514144701_workorder_is_paused_column/migration.sql +0 -2
  367. package/prisma/migrations/20250516124919_team_to_dispatch_team/migration.sql +0 -5
  368. package/prisma/migrations/20250519061226_camusat_client_to_user/migration.sql +0 -16
  369. package/prisma/migrations/20250611094742_integration_reports_kpi/migration.sql +0 -136
  370. package/prisma/migrations/20250618064448_optionalize_report_metrics/migration.sql +0 -4
  371. package/prisma/migrations/20250618072220_metricids_to_reportvisualization/migration.sql +0 -12
  372. package/prisma/migrations/20250618140056_report_metric_type/migration.sql +0 -5
  373. package/prisma/migrations/20250701090108_network_element_classification/migration.sql +0 -5
  374. package/prisma/migrations/20250701095803_network_element_texts/migration.sql +0 -59
  375. package/prisma/migrations/20250702092223_network_elements_files/migration.sql +0 -59
  376. package/prisma/migrations/20250730060532_mapelements/migration.sql +0 -95
  377. package/prisma/migrations/20250730080107_map_element_type/migration.sql +0 -8
  378. package/prisma/migrations/20250730152717_map_element_templates_to_projects/migration.sql +0 -28
  379. package/prisma/migrations/20250825114129_as_built_coordinates/migration.sql +0 -23
  380. package/prisma/migrations/20250826103723_central_office_team/migration.sql +0 -44
  381. package/prisma/migrations/20250828071450_is_installed/migration.sql +0 -37
  382. package/prisma/migrations/20250828080138_installation_status/migration.sql +0 -2
  383. package/prisma/migrations/20250901055110_web_notifications/migration.sql +0 -8
  384. package/prisma/migrations/20250901072039_cluster_comments/migration.sql +0 -22
  385. package/prisma/migrations/20250901112738_cluster_status_phase/migration.sql +0 -17
  386. package/prisma/migrations/20250902073555_cluster_comments_type/migration.sql +0 -9
  387. package/prisma/migrations/20250902170717_ne_installation_status/migration.sql +0 -35
  388. package/prisma/migrations/20250903092620_network_element_revision/migration.sql +0 -91
  389. package/prisma/migrations/20250903094438_revision_to_cluster/migration.sql +0 -5
  390. package/prisma/migrations/20250909084233_element_node/migration.sql +0 -191
  391. package/prisma/migrations/20250925093531_cluster_notes/migration.sql +0 -27
  392. package/prisma/migrations/20251010080110_create_conduit_ne/migration.sql +0 -212
  393. package/prisma/migrations/20251010083652_conduit_coordinates/migration.sql +0 -2
  394. package/prisma/migrations/20251015110151_denormalized_attributes_fat/migration.sql +0 -79
  395. package/prisma/migrations/20251015114440_fat_maximum_capacity/migration.sql +0 -9
  396. package/prisma/migrations/20251022155308_client_revision_id/migration.sql +0 -2
  397. package/prisma/migrations/20251023080808_backfill_ne_attributes/migration.sql +0 -164
  398. package/prisma/migrations/20251023103204_ne_attribute_addition/migration.sql +0 -24
  399. package/prisma/migrations/20251023170405_building_address/migration.sql +0 -2
  400. package/prisma/migrations/20251025065659_sfu_address/migration.sql +0 -2
  401. package/prisma/migrations/20251028133222_workorder_config_custom_sla/migration.sql +0 -3
  402. package/prisma/migrations/20251029064618_sla_start_at/migration.sql +0 -2
  403. package/prisma/migrations/20251029072210_workorder_comments/migration.sql +0 -23
  404. package/prisma/migrations/20251105075805_cable_subcable/migration.sql +0 -7
  405. package/prisma/migrations/20251106090226_conduit_name_prefix/migration.sql +0 -2
  406. package/prisma/migrations/20251106101538_max_capacity_string/migration.sql +0 -2
  407. package/prisma/migrations/migration_lock.toml +0 -3
  408. package/prisma.config.ts +0 -18
@@ -1,43 +1,25 @@
1
- import { AnyNull } from '@prisma/client-runtime-utils';
2
- import { DbNull } from '@prisma/client-runtime-utils';
3
- import { Decimal } from '@prisma/client-runtime-utils';
4
- import { empty } from '@prisma/client-runtime-utils';
5
- import { isAnyNull } from '@prisma/client-runtime-utils';
6
- import { isDbNull } from '@prisma/client-runtime-utils';
7
- import { isJsonNull } from '@prisma/client-runtime-utils';
8
- import { join } from '@prisma/client-runtime-utils';
9
- import { JsonNull } from '@prisma/client-runtime-utils';
10
- import { NullTypes } from '@prisma/client-runtime-utils';
11
- import { ObjectEnumValue } from '@prisma/client-runtime-utils';
12
- import { PrismaClientInitializationError } from '@prisma/client-runtime-utils';
13
- import { PrismaClientKnownRequestError } from '@prisma/client-runtime-utils';
14
- import { PrismaClientRustPanicError } from '@prisma/client-runtime-utils';
15
- import { PrismaClientUnknownRequestError } from '@prisma/client-runtime-utils';
16
- import { PrismaClientValidationError } from '@prisma/client-runtime-utils';
17
- import { raw } from '@prisma/client-runtime-utils';
18
- import { RawValue } from '@prisma/client-runtime-utils';
19
- import { Sql } from '@prisma/client-runtime-utils';
20
- import { sql as sqltag } from '@prisma/client-runtime-utils';
21
- import { Value } from '@prisma/client-runtime-utils';
22
-
23
1
  /**
24
2
  * @param this
25
3
  */
26
4
  declare function $extends(this: Client, extension: ExtensionArgs | ((client: Client) => Client)): Client;
27
5
 
28
- /**
29
- * Used by `@prisma/extension-accelerate` until we migrate it to a better API.
30
- */
31
- declare interface AccelerateEngineConfig extends EngineConfig {
32
- /**
33
- * Allows Accelerate to use runtime utilities from the client. These are
34
- * necessary for `@prisma/extension-accelerate` to function correctly.
35
- * See <https://github.com/prisma/prisma-extension-accelerate/blob/b6ffa853f038780f5ab2fc01bff584ca251f645b/src/extension.ts#L518>
36
- */
37
- accelerateUtils: {
38
- resolveDatasourceUrl: () => string;
6
+ declare type AccelerateEngineConfig = {
7
+ inlineSchema: EngineConfig['inlineSchema'];
8
+ inlineSchemaHash: EngineConfig['inlineSchemaHash'];
9
+ env: EngineConfig['env'];
10
+ generator?: {
11
+ previewFeatures: string[];
39
12
  };
40
- }
13
+ inlineDatasources: EngineConfig['inlineDatasources'];
14
+ overrideDatasources: EngineConfig['overrideDatasources'];
15
+ clientVersion: EngineConfig['clientVersion'];
16
+ engineVersion: EngineConfig['engineVersion'];
17
+ logEmitter: EngineConfig['logEmitter'];
18
+ logQueries?: EngineConfig['logQueries'];
19
+ logLevel?: EngineConfig['logLevel'];
20
+ tracingHelper: EngineConfig['tracingHelper'];
21
+ accelerateUtils?: AccelerateUtils;
22
+ };
41
23
 
42
24
  /**
43
25
  * A stripped down interface of `fetch` that `@prisma/extension-accelerate`
@@ -62,6 +44,8 @@ declare type AccelerateExtensionFetch = (url: string, options: {
62
44
 
63
45
  declare type AccelerateExtensionFetchDecorator = (fetch: AccelerateExtensionFetch) => AccelerateExtensionFetch;
64
46
 
47
+ declare type AccelerateUtils = EngineConfig['accelerateUtils'];
48
+
65
49
  export declare type Action = keyof typeof DMMF_2.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
66
50
 
67
51
  declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
@@ -85,7 +69,9 @@ export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args exte
85
69
  [P in K]: Record<TypeMap['meta']['modelProps'], AllModels>;
86
70
  } : {};
87
71
 
88
- export { AnyNull }
72
+ declare class AnyNull extends NullTypesEnumValue {
73
+ #private;
74
+ }
89
75
 
90
76
  export declare type ApplyOmit<T, OmitConfig> = Compute<{
91
77
  [K in keyof T as OmitValue<OmitConfig, K> extends true ? never : K]: T[K];
@@ -169,6 +155,12 @@ declare type BatchTransactionOptions = {
169
155
  isolationLevel?: Transaction_2.IsolationLevel;
170
156
  };
171
157
 
158
+ declare interface BinaryTargetsEnvValue {
159
+ fromEnvVar: string | null;
160
+ value: string;
161
+ native?: boolean;
162
+ }
163
+
172
164
  /**
173
165
  * Equivalent to `Uint8Array` before TypeScript 5.7, and `Uint8Array<ArrayBuffer>` in TypeScript 5.7 and beyond.
174
166
  */
@@ -184,7 +176,7 @@ declare interface CallSite {
184
176
 
185
177
  export declare type Cast<A, W> = A extends W ? A : W;
186
178
 
187
- declare type Client = ReturnType<typeof getPrismaClient> extends new (optionsArg: PrismaClientOptions) => infer T ? T : never;
179
+ declare type Client = ReturnType<typeof getPrismaClient> extends new () => infer T ? T : never;
188
180
 
189
181
  export declare type ClientArg = {
190
182
  [MethodName in string]: unknown;
@@ -384,13 +376,6 @@ declare type DatamodelEnum = ReadonlyDeep_2<{
384
376
 
385
377
  declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
386
378
 
387
- declare type DatamodelSchemaEnum = ReadonlyDeep_2<{
388
- name: string;
389
- values: string[];
390
- }>;
391
-
392
- declare function datamodelSchemaEnumToSchemaEnum(datamodelSchemaEnum: DatamodelSchemaEnum): SchemaEnum;
393
-
394
379
  declare type DataRule = {
395
380
  type: 'rowCountEq';
396
381
  args: number;
@@ -404,7 +389,17 @@ declare type DataRule = {
404
389
  type: 'never';
405
390
  };
406
391
 
407
- export { DbNull }
392
+ declare type Datasource = {
393
+ url?: string;
394
+ };
395
+
396
+ declare type Datasources = {
397
+ [name in string]: Datasource;
398
+ };
399
+
400
+ declare class DbNull extends NullTypesEnumValue {
401
+ #private;
402
+ }
408
403
 
409
404
  export declare const Debug: typeof debugCreate & {
410
405
  enable(namespace: any): void;
@@ -432,7 +427,274 @@ declare function debugCreate(namespace: string): ((...args: any[]) => void) & {
432
427
  extend: () => void;
433
428
  };
434
429
 
435
- export { Decimal }
430
+ export declare function Decimal(n: Decimal.Value): Decimal;
431
+
432
+ export declare namespace Decimal {
433
+ export type Constructor = typeof Decimal;
434
+ export type Instance = Decimal;
435
+ export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
436
+ export type Modulo = Rounding | 9;
437
+ export type Value = string | number | Decimal;
438
+
439
+ // http://mikemcl.github.io/decimal.js/#constructor-properties
440
+ export interface Config {
441
+ precision?: number;
442
+ rounding?: Rounding;
443
+ toExpNeg?: number;
444
+ toExpPos?: number;
445
+ minE?: number;
446
+ maxE?: number;
447
+ crypto?: boolean;
448
+ modulo?: Modulo;
449
+ defaults?: boolean;
450
+ }
451
+ }
452
+
453
+ export declare class Decimal {
454
+ readonly d: number[];
455
+ readonly e: number;
456
+ readonly s: number;
457
+
458
+ constructor(n: Decimal.Value);
459
+
460
+ absoluteValue(): Decimal;
461
+ abs(): Decimal;
462
+
463
+ ceil(): Decimal;
464
+
465
+ clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
466
+ clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
467
+
468
+ comparedTo(n: Decimal.Value): number;
469
+ cmp(n: Decimal.Value): number;
470
+
471
+ cosine(): Decimal;
472
+ cos(): Decimal;
473
+
474
+ cubeRoot(): Decimal;
475
+ cbrt(): Decimal;
476
+
477
+ decimalPlaces(): number;
478
+ dp(): number;
479
+
480
+ dividedBy(n: Decimal.Value): Decimal;
481
+ div(n: Decimal.Value): Decimal;
482
+
483
+ dividedToIntegerBy(n: Decimal.Value): Decimal;
484
+ divToInt(n: Decimal.Value): Decimal;
485
+
486
+ equals(n: Decimal.Value): boolean;
487
+ eq(n: Decimal.Value): boolean;
488
+
489
+ floor(): Decimal;
490
+
491
+ greaterThan(n: Decimal.Value): boolean;
492
+ gt(n: Decimal.Value): boolean;
493
+
494
+ greaterThanOrEqualTo(n: Decimal.Value): boolean;
495
+ gte(n: Decimal.Value): boolean;
496
+
497
+ hyperbolicCosine(): Decimal;
498
+ cosh(): Decimal;
499
+
500
+ hyperbolicSine(): Decimal;
501
+ sinh(): Decimal;
502
+
503
+ hyperbolicTangent(): Decimal;
504
+ tanh(): Decimal;
505
+
506
+ inverseCosine(): Decimal;
507
+ acos(): Decimal;
508
+
509
+ inverseHyperbolicCosine(): Decimal;
510
+ acosh(): Decimal;
511
+
512
+ inverseHyperbolicSine(): Decimal;
513
+ asinh(): Decimal;
514
+
515
+ inverseHyperbolicTangent(): Decimal;
516
+ atanh(): Decimal;
517
+
518
+ inverseSine(): Decimal;
519
+ asin(): Decimal;
520
+
521
+ inverseTangent(): Decimal;
522
+ atan(): Decimal;
523
+
524
+ isFinite(): boolean;
525
+
526
+ isInteger(): boolean;
527
+ isInt(): boolean;
528
+
529
+ isNaN(): boolean;
530
+
531
+ isNegative(): boolean;
532
+ isNeg(): boolean;
533
+
534
+ isPositive(): boolean;
535
+ isPos(): boolean;
536
+
537
+ isZero(): boolean;
538
+
539
+ lessThan(n: Decimal.Value): boolean;
540
+ lt(n: Decimal.Value): boolean;
541
+
542
+ lessThanOrEqualTo(n: Decimal.Value): boolean;
543
+ lte(n: Decimal.Value): boolean;
544
+
545
+ logarithm(n?: Decimal.Value): Decimal;
546
+ log(n?: Decimal.Value): Decimal;
547
+
548
+ minus(n: Decimal.Value): Decimal;
549
+ sub(n: Decimal.Value): Decimal;
550
+
551
+ modulo(n: Decimal.Value): Decimal;
552
+ mod(n: Decimal.Value): Decimal;
553
+
554
+ naturalExponential(): Decimal;
555
+ exp(): Decimal;
556
+
557
+ naturalLogarithm(): Decimal;
558
+ ln(): Decimal;
559
+
560
+ negated(): Decimal;
561
+ neg(): Decimal;
562
+
563
+ plus(n: Decimal.Value): Decimal;
564
+ add(n: Decimal.Value): Decimal;
565
+
566
+ precision(includeZeros?: boolean): number;
567
+ sd(includeZeros?: boolean): number;
568
+
569
+ round(): Decimal;
570
+
571
+ sine() : Decimal;
572
+ sin() : Decimal;
573
+
574
+ squareRoot(): Decimal;
575
+ sqrt(): Decimal;
576
+
577
+ tangent() : Decimal;
578
+ tan() : Decimal;
579
+
580
+ times(n: Decimal.Value): Decimal;
581
+ mul(n: Decimal.Value) : Decimal;
582
+
583
+ toBinary(significantDigits?: number): string;
584
+ toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
585
+
586
+ toDecimalPlaces(decimalPlaces?: number): Decimal;
587
+ toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
588
+ toDP(decimalPlaces?: number): Decimal;
589
+ toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
590
+
591
+ toExponential(decimalPlaces?: number): string;
592
+ toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
593
+
594
+ toFixed(decimalPlaces?: number): string;
595
+ toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
596
+
597
+ toFraction(max_denominator?: Decimal.Value): Decimal[];
598
+
599
+ toHexadecimal(significantDigits?: number): string;
600
+ toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
601
+ toHex(significantDigits?: number): string;
602
+ toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
603
+
604
+ toJSON(): string;
605
+
606
+ toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
607
+
608
+ toNumber(): number;
609
+
610
+ toOctal(significantDigits?: number): string;
611
+ toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
612
+
613
+ toPower(n: Decimal.Value): Decimal;
614
+ pow(n: Decimal.Value): Decimal;
615
+
616
+ toPrecision(significantDigits?: number): string;
617
+ toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
618
+
619
+ toSignificantDigits(significantDigits?: number): Decimal;
620
+ toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
621
+ toSD(significantDigits?: number): Decimal;
622
+ toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
623
+
624
+ toString(): string;
625
+
626
+ truncated(): Decimal;
627
+ trunc(): Decimal;
628
+
629
+ valueOf(): string;
630
+
631
+ static abs(n: Decimal.Value): Decimal;
632
+ static acos(n: Decimal.Value): Decimal;
633
+ static acosh(n: Decimal.Value): Decimal;
634
+ static add(x: Decimal.Value, y: Decimal.Value): Decimal;
635
+ static asin(n: Decimal.Value): Decimal;
636
+ static asinh(n: Decimal.Value): Decimal;
637
+ static atan(n: Decimal.Value): Decimal;
638
+ static atanh(n: Decimal.Value): Decimal;
639
+ static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
640
+ static cbrt(n: Decimal.Value): Decimal;
641
+ static ceil(n: Decimal.Value): Decimal;
642
+ static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
643
+ static clone(object?: Decimal.Config): Decimal.Constructor;
644
+ static config(object: Decimal.Config): Decimal.Constructor;
645
+ static cos(n: Decimal.Value): Decimal;
646
+ static cosh(n: Decimal.Value): Decimal;
647
+ static div(x: Decimal.Value, y: Decimal.Value): Decimal;
648
+ static exp(n: Decimal.Value): Decimal;
649
+ static floor(n: Decimal.Value): Decimal;
650
+ static hypot(...n: Decimal.Value[]): Decimal;
651
+ static isDecimal(object: any): object is Decimal;
652
+ static ln(n: Decimal.Value): Decimal;
653
+ static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
654
+ static log2(n: Decimal.Value): Decimal;
655
+ static log10(n: Decimal.Value): Decimal;
656
+ static max(...n: Decimal.Value[]): Decimal;
657
+ static min(...n: Decimal.Value[]): Decimal;
658
+ static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
659
+ static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
660
+ static noConflict(): Decimal.Constructor; // Browser only
661
+ static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
662
+ static random(significantDigits?: number): Decimal;
663
+ static round(n: Decimal.Value): Decimal;
664
+ static set(object: Decimal.Config): Decimal.Constructor;
665
+ static sign(n: Decimal.Value): number;
666
+ static sin(n: Decimal.Value): Decimal;
667
+ static sinh(n: Decimal.Value): Decimal;
668
+ static sqrt(n: Decimal.Value): Decimal;
669
+ static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
670
+ static sum(...n: Decimal.Value[]): Decimal;
671
+ static tan(n: Decimal.Value): Decimal;
672
+ static tanh(n: Decimal.Value): Decimal;
673
+ static trunc(n: Decimal.Value): Decimal;
674
+
675
+ static readonly default?: Decimal.Constructor;
676
+ static readonly Decimal?: Decimal.Constructor;
677
+
678
+ static readonly precision: number;
679
+ static readonly rounding: Decimal.Rounding;
680
+ static readonly toExpNeg: number;
681
+ static readonly toExpPos: number;
682
+ static readonly minE: number;
683
+ static readonly maxE: number;
684
+ static readonly crypto: boolean;
685
+ static readonly modulo: Decimal.Modulo;
686
+
687
+ static readonly ROUND_UP: 0;
688
+ static readonly ROUND_DOWN: 1;
689
+ static readonly ROUND_CEIL: 2;
690
+ static readonly ROUND_FLOOR: 3;
691
+ static readonly ROUND_HALF_UP: 4;
692
+ static readonly ROUND_HALF_DOWN: 5;
693
+ static readonly ROUND_HALF_EVEN: 6;
694
+ static readonly ROUND_HALF_CEIL: 7;
695
+ static readonly ROUND_HALF_FLOOR: 8;
696
+ static readonly EUCLID: 9;
697
+ }
436
698
 
437
699
  /**
438
700
  * Interface for any Decimal.js-like library
@@ -497,12 +759,10 @@ export declare type DevTypeMapFnDef = {
497
759
  export declare namespace DMMF {
498
760
  export {
499
761
  datamodelEnumToSchemaEnum,
500
- datamodelSchemaEnumToSchemaEnum,
501
762
  Document_2 as Document,
502
763
  Mappings,
503
764
  OtherOperationMappings,
504
765
  DatamodelEnum,
505
- DatamodelSchemaEnum,
506
766
  SchemaEnum,
507
767
  EnumValue,
508
768
  Datamodel,
@@ -533,20 +793,17 @@ export declare namespace DMMF {
533
793
  FieldRefType,
534
794
  FieldRefAllowType,
535
795
  ModelMapping,
536
- ModelAction,
537
- ReadonlyDeep_2 as ReadonlyDeep
796
+ ModelAction
538
797
  }
539
798
  }
540
799
 
541
800
  declare namespace DMMF_2 {
542
801
  export {
543
802
  datamodelEnumToSchemaEnum,
544
- datamodelSchemaEnumToSchemaEnum,
545
803
  Document_2 as Document,
546
804
  Mappings,
547
805
  OtherOperationMappings,
548
806
  DatamodelEnum,
549
- DatamodelSchemaEnum,
550
807
  SchemaEnum,
551
808
  EnumValue,
552
809
  Datamodel,
@@ -577,8 +834,7 @@ declare namespace DMMF_2 {
577
834
  FieldRefType,
578
835
  FieldRefAllowType,
579
836
  ModelMapping,
580
- ModelAction,
581
- ReadonlyDeep_2 as ReadonlyDeep
837
+ ModelAction
582
838
  }
583
839
  }
584
840
 
@@ -746,7 +1002,10 @@ export declare type DynamicResultExtensionNeeds<TypeMap extends TypeMapDef, M ex
746
1002
  [N in keyof TypeMap['model'][M]['payload']['scalars']]?: boolean;
747
1003
  };
748
1004
 
749
- export { empty }
1005
+ /**
1006
+ * Placeholder value for "no text".
1007
+ */
1008
+ export declare const empty: Sql;
750
1009
 
751
1010
  export declare type EmptyToUnknown<T> = T;
752
1011
 
@@ -762,39 +1021,87 @@ declare interface Engine<InteractiveTransactionPayload = unknown> {
762
1021
  transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise<Transaction_2.InteractiveTransactionInfo<unknown>>;
763
1022
  transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
764
1023
  transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
1024
+ metrics(options: MetricsOptionsJson): Promise<Metrics>;
1025
+ metrics(options: MetricsOptionsPrometheus): Promise<string>;
1026
+ applyPendingMigrations(): Promise<void>;
765
1027
  }
766
1028
 
767
1029
  declare interface EngineConfig {
1030
+ cwd: string;
1031
+ dirname: string;
768
1032
  enableDebugLogs?: boolean;
1033
+ allowTriggerPanic?: boolean;
769
1034
  prismaPath?: string;
1035
+ generator?: GeneratorConfig;
1036
+ /**
1037
+ * @remarks this field is used internally by Policy, do not rename or remove
1038
+ */
1039
+ overrideDatasources: Datasources;
1040
+ showColors?: boolean;
770
1041
  logQueries?: boolean;
771
1042
  logLevel?: 'info' | 'warn';
1043
+ env: Record<string, string>;
1044
+ flags?: string[];
772
1045
  clientVersion: string;
1046
+ engineVersion: string;
773
1047
  previewFeatures?: string[];
1048
+ engineEndpoint?: string;
774
1049
  activeProvider?: string;
775
1050
  logEmitter: LogEmitter;
776
1051
  transactionOptions: Transaction_2.Options;
777
1052
  /**
778
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
1053
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`.
1054
+ * If set, this is only used in the library engine, and all queries would be performed through it,
1055
+ * rather than Prisma's Rust drivers.
1056
+ * @remarks only used by LibraryEngine.ts
779
1057
  */
780
1058
  adapter?: SqlDriverAdapterFactory;
781
- /**
782
- * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
783
- */
784
- accelerateUrl?: string;
785
1059
  /**
786
1060
  * The contents of the schema encoded into a string
787
1061
  */
788
1062
  inlineSchema: string;
1063
+ /**
1064
+ * The contents of the datasource url saved in a string
1065
+ * @remarks only used by DataProxyEngine.ts
1066
+ * @remarks this field is used internally by Policy, do not rename or remove
1067
+ */
1068
+ inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
1069
+ /**
1070
+ * The string hash that was produced for a given schema
1071
+ * @remarks only used by DataProxyEngine.ts
1072
+ */
1073
+ inlineSchemaHash: string;
789
1074
  /**
790
1075
  * The helper for interaction with OTEL tracing
791
1076
  * @remarks enabling is determined by the client and @prisma/instrumentation package
792
1077
  */
793
1078
  tracingHelper: TracingHelper;
1079
+ /**
1080
+ * Information about whether we have not found a schema.prisma file in the
1081
+ * default location, and that we fell back to finding the schema.prisma file
1082
+ * in the current working directory. This usually means it has been bundled.
1083
+ */
1084
+ isBundled?: boolean;
794
1085
  /**
795
1086
  * Web Assembly module loading configuration
796
1087
  */
1088
+ engineWasm?: EngineWasmLoadingConfig;
797
1089
  compilerWasm?: CompilerWasmLoadingConfig;
1090
+ /**
1091
+ * Allows Accelerate to use runtime utilities from the client. These are
1092
+ * necessary for the AccelerateEngine to function correctly.
1093
+ */
1094
+ accelerateUtils?: {
1095
+ resolveDatasourceUrl: typeof resolveDatasourceUrl;
1096
+ getBatchRequestPayload: typeof getBatchRequestPayload;
1097
+ prismaGraphQLToJSError: typeof prismaGraphQLToJSError;
1098
+ PrismaClientUnknownRequestError: typeof PrismaClientUnknownRequestError;
1099
+ PrismaClientInitializationError: typeof PrismaClientInitializationError;
1100
+ PrismaClientKnownRequestError: typeof PrismaClientKnownRequestError;
1101
+ debug: (...args: any[]) => void;
1102
+ engineVersion: string;
1103
+ clientVersion: string;
1104
+ };
798
1105
  }
799
1106
 
800
1107
  declare type EngineEvent<E extends EngineEventType> = E extends QueryEventType ? QueryEvent : LogEvent;
@@ -816,15 +1123,70 @@ declare type EngineSpanId = string;
816
1123
 
817
1124
  declare type EngineSpanKind = 'client' | 'internal';
818
1125
 
1126
+ declare type EngineWasmLoadingConfig = {
1127
+ /**
1128
+ * WASM-bindgen runtime for corresponding module
1129
+ */
1130
+ getRuntime: () => Promise<{
1131
+ __wbg_set_wasm(exports: unknown): void;
1132
+ QueryEngine: QueryEngineConstructor;
1133
+ }>;
1134
+ /**
1135
+ * Loads the raw wasm module for the wasm query engine. This configuration is
1136
+ * generated specifically for each type of client, eg. Node.js client and Edge
1137
+ * clients will have different implementations.
1138
+ * @remarks this is a callback on purpose, we only load the wasm if needed.
1139
+ * @remarks only used by LibraryEngine
1140
+ */
1141
+ getQueryEngineWasmModule: () => Promise<unknown>;
1142
+ };
1143
+
819
1144
  declare type EnumValue = ReadonlyDeep_2<{
820
1145
  name: string;
821
1146
  dbName: string | null;
822
1147
  }>;
823
1148
 
1149
+ declare type EnvPaths = {
1150
+ rootEnvPath: string | null;
1151
+ schemaEnvPath: string | undefined;
1152
+ };
1153
+
1154
+ declare interface EnvValue {
1155
+ fromEnvVar: null | string;
1156
+ value: null | string;
1157
+ }
1158
+
824
1159
  export declare type Equals<A, B> = (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? 1 : 0;
825
1160
 
1161
+ declare type Error_2 = MappedError & {
1162
+ originalCode?: string;
1163
+ originalMessage?: string;
1164
+ };
1165
+
1166
+ declare type ErrorCapturingFunction<T> = T extends (...args: infer A) => Promise<infer R> ? (...args: A) => Promise<Result_4<ErrorCapturingInterface<R>>> : T extends (...args: infer A) => infer R ? (...args: A) => Result_4<ErrorCapturingInterface<R>> : T;
1167
+
1168
+ declare type ErrorCapturingInterface<T> = {
1169
+ [K in keyof T]: ErrorCapturingFunction<T[K]>;
1170
+ };
1171
+
1172
+ declare interface ErrorCapturingSqlDriverAdapter extends ErrorCapturingInterface<SqlDriverAdapter> {
1173
+ readonly errorRegistry: ErrorRegistry;
1174
+ }
1175
+
826
1176
  declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
827
1177
 
1178
+ declare type ErrorRecord = {
1179
+ error: unknown;
1180
+ };
1181
+
1182
+ declare interface ErrorRegistry {
1183
+ consumeError(id: number): ErrorRecord | undefined;
1184
+ }
1185
+
1186
+ declare interface ErrorWithBatchIndex {
1187
+ batchRequestIdx?: number;
1188
+ }
1189
+
828
1190
  declare type EventCallback<E extends ExtendedEventType> = [E] extends ['beforeExit'] ? () => Promise<void> : [E] extends [LogLevel] ? (event: EngineEvent<E>) => void : never;
829
1191
 
830
1192
  export declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
@@ -1086,12 +1448,37 @@ declare type Fragment = {
1086
1448
  groupSeparator: string;
1087
1449
  };
1088
1450
 
1451
+ declare interface GeneratorConfig {
1452
+ name: string;
1453
+ output: EnvValue | null;
1454
+ isCustomOutput?: boolean;
1455
+ provider: EnvValue;
1456
+ config: {
1457
+ /** `output` is a reserved name and will only be available directly at `generator.output` */
1458
+ output?: never;
1459
+ /** `provider` is a reserved name and will only be available directly at `generator.provider` */
1460
+ provider?: never;
1461
+ /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
1462
+ binaryTargets?: never;
1463
+ /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
1464
+ previewFeatures?: never;
1465
+ } & {
1466
+ [key: string]: string | string[] | undefined;
1467
+ };
1468
+ binaryTargets: BinaryTargetsEnvValue[];
1469
+ previewFeatures: string[];
1470
+ envPaths?: EnvPaths;
1471
+ sourceFilePath: string;
1472
+ }
1473
+
1089
1474
  export declare type GetAggregateResult<P extends OperationPayload, A> = {
1090
1475
  [K in keyof A as K extends Aggregate ? K : never]: K extends '_count' ? A[K] extends true ? number : Count<A[K]> : {
1091
1476
  [J in keyof A[K] & string]: P['scalars'][J] | null;
1092
1477
  };
1093
1478
  };
1094
1479
 
1480
+ declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2<unknown>): QueryEngineBatchRequest;
1481
+
1095
1482
  export declare type GetBatchResult = {
1096
1483
  count: number;
1097
1484
  };
@@ -1143,7 +1530,7 @@ export declare type GetPayloadResultExtensionObject<R extends InternalArgs['resu
1143
1530
  };
1144
1531
 
1145
1532
  export declare function getPrismaClient(config: GetPrismaClientConfig): {
1146
- new (optionsArg: PrismaClientOptions): {
1533
+ new (optionsArg?: PrismaClientOptions): {
1147
1534
  _originalClient: any;
1148
1535
  _runtimeDataModel: RuntimeDataModel;
1149
1536
  _requestHandler: RequestHandler;
@@ -1264,12 +1651,14 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1264
1651
  */
1265
1652
  _request(internalParams: InternalRequestParams): Promise<any>;
1266
1653
  _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
1654
+ $metrics: MetricsClient;
1267
1655
  /**
1268
1656
  * Shortcut for checking a preview flag
1269
1657
  * @param feature preview flag
1270
1658
  * @returns
1271
1659
  */
1272
1660
  _hasPreviewFlag(feature: string): boolean;
1661
+ $applyPendingMigrations(): Promise<void>;
1273
1662
  $extends: typeof $extends;
1274
1663
  readonly [Symbol.toStringTag]: string;
1275
1664
  };
@@ -1282,17 +1671,74 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1282
1671
  */
1283
1672
  export declare type GetPrismaClientConfig = {
1284
1673
  runtimeDataModel: RuntimeDataModel;
1285
- previewFeatures: string[];
1674
+ generator?: GeneratorConfig;
1675
+ relativeEnvPaths?: {
1676
+ rootEnvPath?: string | null;
1677
+ schemaEnvPath?: string | null;
1678
+ };
1679
+ relativePath: string;
1680
+ dirname: string;
1286
1681
  clientVersion: string;
1287
1682
  engineVersion: string;
1683
+ datasourceNames: string[];
1288
1684
  activeProvider: ActiveConnectorType;
1289
1685
  /**
1290
1686
  * The contents of the schema encoded into a string
1687
+ * @remarks only used for the purpose of data proxy
1291
1688
  */
1292
1689
  inlineSchema: string;
1690
+ /**
1691
+ * A special env object just for the data proxy edge runtime.
1692
+ * Allows bundlers to inject their own env variables (Vercel).
1693
+ * Allows platforms to declare global variables as env (Workers).
1694
+ * @remarks only used for the purpose of data proxy
1695
+ */
1696
+ injectableEdgeEnv?: () => LoadedEnv;
1697
+ /**
1698
+ * The contents of the datasource url saved in a string.
1699
+ * This can either be an env var name or connection string.
1700
+ * It is needed by the client to connect to the Data Proxy.
1701
+ * @remarks only used for the purpose of data proxy
1702
+ */
1703
+ inlineDatasources: {
1704
+ [name in string]: {
1705
+ url: EnvValue;
1706
+ };
1707
+ };
1708
+ /**
1709
+ * The string hash that was produced for a given schema
1710
+ * @remarks only used for the purpose of data proxy
1711
+ */
1712
+ inlineSchemaHash: string;
1713
+ /**
1714
+ * A marker to indicate that the client was not generated via `prisma
1715
+ * generate` but was generated via `generate --postinstall` script instead.
1716
+ * @remarks used to error for Vercel/Netlify for schema caching issues
1717
+ */
1718
+ postinstall?: boolean;
1719
+ /**
1720
+ * Information about the CI where the Prisma Client has been generated. The
1721
+ * name of the CI environment is stored at generation time because CI
1722
+ * information is not always available at runtime. Moreover, the edge client
1723
+ * has no notion of environment variables, so this works around that.
1724
+ * @remarks used to error for Vercel/Netlify for schema caching issues
1725
+ */
1726
+ ciName?: string;
1727
+ /**
1728
+ * Information about whether we have not found a schema.prisma file in the
1729
+ * default location, and that we fell back to finding the schema.prisma file
1730
+ * in the current working directory. This usually means it has been bundled.
1731
+ */
1732
+ isBundled?: boolean;
1733
+ /**
1734
+ * A boolean that is `false` when the client was generated with --no-engine. At
1735
+ * runtime, this means the client will be bound to be using the Data Proxy.
1736
+ */
1737
+ copyEngine?: boolean;
1293
1738
  /**
1294
1739
  * Optional wasm loading configuration
1295
1740
  */
1741
+ engineWasm?: EngineWasmLoadingConfig;
1296
1742
  compilerWasm?: CompilerWasmLoadingConfig;
1297
1743
  };
1298
1744
 
@@ -1451,7 +1897,8 @@ declare type InteractiveTransactionInfo<Payload = unknown> = {
1451
1897
  id: string;
1452
1898
  /**
1453
1899
  * Arbitrary payload the meaning of which depends on the `Engine` implementation.
1454
- * It is currently not used in `LibraryEngine`.
1900
+ * For example, `DataProxyEngine` needs to associate different API endpoints with transactions.
1901
+ * In `LibraryEngine` and `BinaryEngine` it is currently not used.
1455
1902
  */
1456
1903
  payload: Payload;
1457
1904
  };
@@ -1518,12 +1965,6 @@ declare type InternalRequestParams = {
1518
1965
  customDataProxyFetch?: AccelerateExtensionFetchDecorator;
1519
1966
  } & Omit<QueryMiddlewareParams, 'runInTransaction'>;
1520
1967
 
1521
- export { isAnyNull }
1522
-
1523
- export { isDbNull }
1524
-
1525
- export { isJsonNull }
1526
-
1527
1968
  declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
1528
1969
 
1529
1970
  declare type IsolationLevel_2 = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable';
@@ -1542,7 +1983,10 @@ declare interface Job {
1542
1983
  request: any;
1543
1984
  }
1544
1985
 
1545
- export { join }
1986
+ /**
1987
+ * Create a SQL query for a list of values.
1988
+ */
1989
+ export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
1546
1990
 
1547
1991
  declare type JoinExpression = {
1548
1992
  child: QueryPlanNode;
@@ -1589,7 +2033,9 @@ declare type JsonFieldSelection = {
1589
2033
  selection: JsonSelectionSet;
1590
2034
  };
1591
2035
 
1592
- export { JsonNull }
2036
+ declare class JsonNull extends NullTypesEnumValue {
2037
+ #private;
2038
+ }
1593
2039
 
1594
2040
  /**
1595
2041
  * From https://github.com/sindresorhus/type-fest/
@@ -1627,6 +2073,13 @@ export declare type JsOutputValue = null | string | number | boolean | bigint |
1627
2073
 
1628
2074
  export declare type JsPromise<T> = Promise<T> & {};
1629
2075
 
2076
+ declare type KnownErrorParams = {
2077
+ code: string;
2078
+ clientVersion: string;
2079
+ meta?: Record<string, unknown>;
2080
+ batchRequestIdx?: number;
2081
+ };
2082
+
1630
2083
  /**
1631
2084
  * A pointer from the current {@link Span} to another span in the same trace or
1632
2085
  * in a different trace.
@@ -1651,6 +2104,13 @@ declare interface Link {
1651
2104
  droppedAttributesCount?: number;
1652
2105
  }
1653
2106
 
2107
+ declare type LoadedEnv = {
2108
+ message?: string;
2109
+ parsed: {
2110
+ [x: string]: string;
2111
+ };
2112
+ } | undefined;
2113
+
1654
2114
  declare type LocationInFile = {
1655
2115
  fileName: string;
1656
2116
  lineNumber: number | null;
@@ -1704,6 +2164,116 @@ export declare function makeStrictEnum<T extends Record<PropertyKey, string | nu
1704
2164
 
1705
2165
  export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
1706
2166
 
2167
+ declare type MappedError = {
2168
+ kind: 'GenericJs';
2169
+ id: number;
2170
+ } | {
2171
+ kind: 'UnsupportedNativeDataType';
2172
+ type: string;
2173
+ } | {
2174
+ kind: 'InvalidIsolationLevel';
2175
+ level: string;
2176
+ } | {
2177
+ kind: 'LengthMismatch';
2178
+ column?: string;
2179
+ } | {
2180
+ kind: 'UniqueConstraintViolation';
2181
+ constraint?: {
2182
+ fields: string[];
2183
+ } | {
2184
+ index: string;
2185
+ } | {
2186
+ foreignKey: {};
2187
+ };
2188
+ } | {
2189
+ kind: 'NullConstraintViolation';
2190
+ constraint?: {
2191
+ fields: string[];
2192
+ } | {
2193
+ index: string;
2194
+ } | {
2195
+ foreignKey: {};
2196
+ };
2197
+ } | {
2198
+ kind: 'ForeignKeyConstraintViolation';
2199
+ constraint?: {
2200
+ fields: string[];
2201
+ } | {
2202
+ index: string;
2203
+ } | {
2204
+ foreignKey: {};
2205
+ };
2206
+ } | {
2207
+ kind: 'DatabaseNotReachable';
2208
+ host?: string;
2209
+ port?: number;
2210
+ } | {
2211
+ kind: 'DatabaseDoesNotExist';
2212
+ db?: string;
2213
+ } | {
2214
+ kind: 'DatabaseAlreadyExists';
2215
+ db?: string;
2216
+ } | {
2217
+ kind: 'DatabaseAccessDenied';
2218
+ db?: string;
2219
+ } | {
2220
+ kind: 'ConnectionClosed';
2221
+ } | {
2222
+ kind: 'TlsConnectionError';
2223
+ reason: string;
2224
+ } | {
2225
+ kind: 'AuthenticationFailed';
2226
+ user?: string;
2227
+ } | {
2228
+ kind: 'TransactionWriteConflict';
2229
+ } | {
2230
+ kind: 'TableDoesNotExist';
2231
+ table?: string;
2232
+ } | {
2233
+ kind: 'ColumnNotFound';
2234
+ column?: string;
2235
+ } | {
2236
+ kind: 'TooManyConnections';
2237
+ cause: string;
2238
+ } | {
2239
+ kind: 'ValueOutOfRange';
2240
+ cause: string;
2241
+ } | {
2242
+ kind: 'MissingFullTextSearchIndex';
2243
+ } | {
2244
+ kind: 'SocketTimeout';
2245
+ } | {
2246
+ kind: 'InconsistentColumnData';
2247
+ cause: string;
2248
+ } | {
2249
+ kind: 'TransactionAlreadyClosed';
2250
+ cause: string;
2251
+ } | {
2252
+ kind: 'postgres';
2253
+ code: string;
2254
+ severity: string;
2255
+ message: string;
2256
+ detail: string | undefined;
2257
+ column: string | undefined;
2258
+ hint: string | undefined;
2259
+ } | {
2260
+ kind: 'mysql';
2261
+ code: number;
2262
+ message: string;
2263
+ state: string;
2264
+ } | {
2265
+ kind: 'sqlite';
2266
+ /**
2267
+ * Sqlite extended error code: https://www.sqlite.org/rescode.html
2268
+ */
2269
+ extendedCode: number;
2270
+ message: string;
2271
+ } | {
2272
+ kind: 'mssql';
2273
+ code: number;
2274
+ message: string;
2275
+ };
2276
+
1707
2277
  declare type Mappings = ReadonlyDeep_2<{
1708
2278
  modelOperations: ModelMapping[];
1709
2279
  otherOperations: {
@@ -1738,6 +2308,66 @@ declare class MergedExtensionsList {
1738
2308
 
1739
2309
  export declare type MergeExtArgs<TypeMap extends TypeMapDef, ExtArgs extends Record<any, any>, Args extends Record<any, any>> = ComputeDeep<ExtArgs & Args & AllModelsToStringIndex<TypeMap, Args, 'result'> & AllModelsToStringIndex<TypeMap, Args, 'model'>>;
1740
2310
 
2311
+ export declare type Metric<T> = {
2312
+ key: string;
2313
+ value: T;
2314
+ labels: Record<string, string>;
2315
+ description: string;
2316
+ };
2317
+
2318
+ export declare type MetricHistogram = {
2319
+ buckets: MetricHistogramBucket[];
2320
+ sum: number;
2321
+ count: number;
2322
+ };
2323
+
2324
+ export declare type MetricHistogramBucket = [maxValue: number, count: number];
2325
+
2326
+ export declare type Metrics = {
2327
+ counters: Metric<number>[];
2328
+ gauges: Metric<number>[];
2329
+ histograms: Metric<MetricHistogram>[];
2330
+ };
2331
+
2332
+ export declare class MetricsClient {
2333
+ private _client;
2334
+ constructor(client: Client);
2335
+ /**
2336
+ * Returns all metrics gathered up to this point in prometheus format.
2337
+ * Result of this call can be exposed directly to prometheus scraping endpoint
2338
+ *
2339
+ * @param options
2340
+ * @returns
2341
+ */
2342
+ prometheus(options?: MetricsOptions): Promise<string>;
2343
+ /**
2344
+ * Returns all metrics gathered up to this point in prometheus format.
2345
+ *
2346
+ * @param options
2347
+ * @returns
2348
+ */
2349
+ json(options?: MetricsOptions): Promise<Metrics>;
2350
+ }
2351
+
2352
+ declare type MetricsOptions = {
2353
+ /**
2354
+ * Labels to add to every metrics in key-value format
2355
+ */
2356
+ globalLabels?: Record<string, string>;
2357
+ };
2358
+
2359
+ declare type MetricsOptionsCommon = {
2360
+ globalLabels?: Record<string, string>;
2361
+ };
2362
+
2363
+ declare type MetricsOptionsJson = {
2364
+ format: 'json';
2365
+ } & MetricsOptionsCommon;
2366
+
2367
+ declare type MetricsOptionsPrometheus = {
2368
+ format: 'prometheus';
2369
+ } & MetricsOptionsCommon;
2370
+
1741
2371
  declare type MiddlewareArgsMapper<RequestArgs, MiddlewareArgs> = {
1742
2372
  requestArgsToMiddlewareArgs(requestArgs: RequestArgs): MiddlewareArgs;
1743
2373
  middlewareArgsToRequestArgs(middlewareArgs: MiddlewareArgs): RequestArgs;
@@ -1839,9 +2469,32 @@ export declare type Narrowable = string | number | bigint | boolean | [];
1839
2469
 
1840
2470
  export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
1841
2471
 
1842
- export { NullTypes }
2472
+ declare class NullTypesEnumValue extends ObjectEnumValue {
2473
+ _getNamespace(): string;
2474
+ }
2475
+
2476
+ /**
2477
+ * Base class for unique values of object-valued enums.
2478
+ */
2479
+ export declare abstract class ObjectEnumValue {
2480
+ constructor(arg?: symbol);
2481
+ abstract _getNamespace(): string;
2482
+ _getName(): string;
2483
+ toString(): string;
2484
+ }
1843
2485
 
1844
- export { ObjectEnumValue }
2486
+ export declare const objectEnumValues: {
2487
+ classes: {
2488
+ DbNull: typeof DbNull;
2489
+ JsonNull: typeof JsonNull;
2490
+ AnyNull: typeof AnyNull;
2491
+ };
2492
+ instances: {
2493
+ DbNull: DbNull;
2494
+ JsonNull: JsonNull;
2495
+ AnyNull: AnyNull;
2496
+ };
2497
+ };
1845
2498
 
1846
2499
  declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-better-sqlite3", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql", "@prisma/adapter-mariadb"];
1847
2500
 
@@ -1892,6 +2545,10 @@ declare type Options = {
1892
2545
  isolationLevel?: IsolationLevel_2;
1893
2546
  };
1894
2547
 
2548
+ declare type Options_2 = {
2549
+ clientVersion: string;
2550
+ };
2551
+
1895
2552
  export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
1896
2553
  0: {
1897
2554
  0: 0;
@@ -1958,29 +2615,36 @@ declare type PrimaryKey = ReadonlyDeep_2<{
1958
2615
  fields: string[];
1959
2616
  }>;
1960
2617
 
1961
- export { PrismaClientInitializationError }
2618
+ export declare class PrismaClientInitializationError extends Error {
2619
+ clientVersion: string;
2620
+ errorCode?: string;
2621
+ retryable?: boolean;
2622
+ constructor(message: string, clientVersion: string, errorCode?: string);
2623
+ get [Symbol.toStringTag](): string;
2624
+ }
1962
2625
 
1963
- export { PrismaClientKnownRequestError }
2626
+ export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
2627
+ code: string;
2628
+ meta?: Record<string, unknown>;
2629
+ clientVersion: string;
2630
+ batchRequestIdx?: number;
2631
+ constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
2632
+ get [Symbol.toStringTag](): string;
2633
+ }
1964
2634
 
1965
- /**
1966
- * Since Prisma 7, a PrismaClient needs either an adapter or an accelerateUrl.
1967
- * The two options are mutually exclusive.
1968
- */
1969
- declare type PrismaClientMutuallyExclusiveOptions = {
2635
+ export declare type PrismaClientOptions = {
1970
2636
  /**
1971
- * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
2637
+ * Overwrites the primary datasource url from your schema.prisma file
1972
2638
  */
1973
- adapter: SqlDriverAdapterFactory;
1974
- accelerateUrl?: never;
1975
- } | {
2639
+ datasourceUrl?: string;
1976
2640
  /**
1977
- * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
2641
+ * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale.
1978
2642
  */
1979
- accelerateUrl: string;
1980
- adapter?: never;
1981
- };
1982
-
1983
- export declare type PrismaClientOptions = PrismaClientMutuallyExclusiveOptions & {
2643
+ adapter?: SqlDriverAdapterFactory | null;
2644
+ /**
2645
+ * Overwrites the datasource url from your schema.prisma file
2646
+ */
2647
+ datasources?: Datasources;
1984
2648
  /**
1985
2649
  * @default "colorless"
1986
2650
  */
@@ -2014,16 +2678,38 @@ export declare type PrismaClientOptions = PrismaClientMutuallyExclusiveOptions &
2014
2678
  */
2015
2679
  __internal?: {
2016
2680
  debug?: boolean;
2681
+ engine?: {
2682
+ cwd?: string;
2683
+ binaryPath?: string;
2684
+ endpoint?: string;
2685
+ allowTriggerPanic?: boolean;
2686
+ };
2017
2687
  /** This can be used for testing purposes */
2018
2688
  configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig;
2019
2689
  };
2020
2690
  };
2021
2691
 
2022
- export { PrismaClientRustPanicError }
2692
+ export declare class PrismaClientRustPanicError extends Error {
2693
+ clientVersion: string;
2694
+ constructor(message: string, clientVersion: string);
2695
+ get [Symbol.toStringTag](): string;
2696
+ }
2023
2697
 
2024
- export { PrismaClientUnknownRequestError }
2698
+ export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
2699
+ clientVersion: string;
2700
+ batchRequestIdx?: number;
2701
+ constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
2702
+ get [Symbol.toStringTag](): string;
2703
+ }
2025
2704
 
2026
- export { PrismaClientValidationError }
2705
+ export declare class PrismaClientValidationError extends Error {
2706
+ name: string;
2707
+ clientVersion: string;
2708
+ constructor(message: string, { clientVersion }: Options_2);
2709
+ get [Symbol.toStringTag](): string;
2710
+ }
2711
+
2712
+ declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError;
2027
2713
 
2028
2714
  declare type PrismaOperationSpec<TArgs, TAction = string> = {
2029
2715
  args: TArgs;
@@ -2170,6 +2856,61 @@ declare type QueryCompilerOptions = {
2170
2856
  connectionInfo: ConnectionInfo;
2171
2857
  };
2172
2858
 
2859
+ declare type QueryEngineBatchGraphQLRequest = {
2860
+ batch: QueryEngineRequest[];
2861
+ transaction?: boolean;
2862
+ isolationLevel?: IsolationLevel_2;
2863
+ };
2864
+
2865
+ declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery;
2866
+
2867
+ declare type QueryEngineConfig = {
2868
+ datamodel: string;
2869
+ configDir: string;
2870
+ logQueries: boolean;
2871
+ ignoreEnvVarErrors: boolean;
2872
+ datasourceOverrides: Record<string, string>;
2873
+ env: Record<string, string | undefined>;
2874
+ logLevel: QueryEngineLogLevel;
2875
+ engineProtocol: QueryEngineProtocol;
2876
+ enableTracing: boolean;
2877
+ };
2878
+
2879
+ declare interface QueryEngineConstructor {
2880
+ new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingSqlDriverAdapter): QueryEngineInstance;
2881
+ }
2882
+
2883
+ declare type QueryEngineInstance = {
2884
+ connect(headers: string, requestId: string): Promise<void>;
2885
+ disconnect(headers: string, requestId: string): Promise<void>;
2886
+ /**
2887
+ * Frees any resources allocated by the engine's WASM instance. This method is automatically created by WASM bindgen.
2888
+ * Noop for other engines.
2889
+ */
2890
+ free?(): void;
2891
+ /**
2892
+ * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2893
+ * @param headersStr JSON.stringified `QueryEngineRequestHeaders`
2894
+ */
2895
+ query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise<string>;
2896
+ sdlSchema?(): Promise<string>;
2897
+ startTransaction(options: string, traceHeaders: string, requestId: string): Promise<string>;
2898
+ commitTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2899
+ rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2900
+ metrics?(options: string): Promise<string>;
2901
+ applyPendingMigrations?(): Promise<void>;
2902
+ trace(requestId: string): Promise<string | null>;
2903
+ };
2904
+
2905
+ declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
2906
+
2907
+ declare type QueryEngineProtocol = 'graphql' | 'json';
2908
+
2909
+ declare type QueryEngineRequest = {
2910
+ query: string;
2911
+ variables: Object;
2912
+ };
2913
+
2173
2914
  declare type QueryEngineResultData<T> = {
2174
2915
  data: T;
2175
2916
  };
@@ -2348,7 +3089,10 @@ declare type QueryPlanNode = {
2348
3089
  };
2349
3090
  };
2350
3091
 
2351
- export { raw }
3092
+ /**
3093
+ * Create raw SQL statement.
3094
+ */
3095
+ export declare function raw(value: string): Sql;
2352
3096
 
2353
3097
  export declare type RawParameters = {
2354
3098
  __prismaRawParameters__: true;
@@ -2368,7 +3112,10 @@ declare type RawTaggedValue = {
2368
3112
  value: unknown;
2369
3113
  };
2370
3114
 
2371
- export { RawValue }
3115
+ /**
3116
+ * Supported value or SQL instance.
3117
+ */
3118
+ export declare type RawValue = Value | Sql;
2372
3119
 
2373
3120
  export declare type ReadonlyDeep<T> = {
2374
3121
  readonly [K in keyof T]: ReadonlyDeep<T[K]>;
@@ -2395,6 +3142,17 @@ declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2395
3142
  customDataProxyFetch?: AccelerateExtensionFetchDecorator;
2396
3143
  };
2397
3144
 
3145
+ declare interface RequestError {
3146
+ error: string;
3147
+ user_facing_error: {
3148
+ is_panic: boolean;
3149
+ message: string;
3150
+ meta?: Record<string, unknown>;
3151
+ error_code?: string;
3152
+ batch_request_idx?: number;
3153
+ };
3154
+ }
3155
+
2398
3156
  declare class RequestHandler {
2399
3157
  client: Client;
2400
3158
  dataloader: DataLoader<RequestParams>;
@@ -2447,6 +3205,13 @@ export declare type RequiredKeys<O> = {
2447
3205
  [K in keyof O]-?: {} extends Pick_2<O, K> ? never : K;
2448
3206
  }[keyof O];
2449
3207
 
3208
+ declare function resolveDatasourceUrl({ inlineDatasources, overrideDatasources, env, clientVersion, }: {
3209
+ inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
3210
+ overrideDatasources: Datasources;
3211
+ env: Record<string, string | undefined>;
3212
+ clientVersion: string;
3213
+ }): string;
3214
+
2450
3215
  export declare type Result<T, A, F extends Operation> = T extends {
2451
3216
  [K: symbol]: {
2452
3217
  types: {
@@ -2482,6 +3247,17 @@ declare namespace Result_3 {
2482
3247
  }
2483
3248
  }
2484
3249
 
3250
+ declare type Result_4<T> = {
3251
+ map<U>(fn: (value: T) => U): Result_4<U>;
3252
+ flatMap<U>(fn: (value: T) => Result_4<U>): Result_4<U>;
3253
+ } & ({
3254
+ readonly ok: true;
3255
+ readonly value: T;
3256
+ } | {
3257
+ readonly ok: false;
3258
+ readonly error: Error_2;
3259
+ });
3260
+
2485
3261
  export declare type ResultArg = {
2486
3262
  [FieldName in string]: ResultFieldDefinition;
2487
3263
  };
@@ -2540,8 +3316,8 @@ declare type Schema = ReadonlyDeep_2<{
2540
3316
  prisma: OutputType[];
2541
3317
  };
2542
3318
  enumTypes: {
2543
- model?: DatamodelSchemaEnum[];
2544
- prisma: DatamodelSchemaEnum[];
3319
+ model?: SchemaEnum[];
3320
+ prisma: SchemaEnum[];
2545
3321
  };
2546
3322
  fieldRefTypes: {
2547
3323
  prisma?: FieldRefType[];
@@ -2560,10 +3336,7 @@ declare type SchemaArg = ReadonlyDeep_2<{
2560
3336
 
2561
3337
  declare type SchemaEnum = ReadonlyDeep_2<{
2562
3338
  name: string;
2563
- data: {
2564
- key: string;
2565
- value: string;
2566
- }[];
3339
+ values: string[];
2567
3340
  }>;
2568
3341
 
2569
3342
  declare type SchemaField = ReadonlyDeep_2<{
@@ -2871,7 +3644,23 @@ declare enum SpanStatusCode {
2871
3644
  ERROR = 2
2872
3645
  }
2873
3646
 
2874
- export { Sql }
3647
+ /**
3648
+ * A SQL instance can be nested within each other to build SQL strings.
3649
+ */
3650
+ export declare class Sql {
3651
+ readonly values: Value[];
3652
+ readonly strings: string[];
3653
+ constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
3654
+ get sql(): string;
3655
+ get statement(): string;
3656
+ get text(): string;
3657
+ inspect(): {
3658
+ sql: string;
3659
+ statement: string;
3660
+ text: string;
3661
+ values: unknown[];
3662
+ };
3663
+ }
2875
3664
 
2876
3665
  declare interface SqlDriverAdapter extends SqlQueryable {
2877
3666
  /**
@@ -2927,7 +3716,10 @@ declare interface SqlResultSet {
2927
3716
  lastInsertId?: string;
2928
3717
  }
2929
3718
 
2930
- export { sqltag }
3719
+ /**
3720
+ * Create a SQL object from a template string.
3721
+ */
3722
+ export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql;
2931
3723
 
2932
3724
  /**
2933
3725
  * Defines TimeInput.
@@ -3065,6 +3857,11 @@ declare type uniqueIndex = ReadonlyDeep_2<{
3065
3857
  fields: string[];
3066
3858
  }>;
3067
3859
 
3860
+ declare type UnknownErrorParams = {
3861
+ clientVersion: string;
3862
+ batchRequestIdx?: number;
3863
+ };
3864
+
3068
3865
  export declare type UnknownTypedSql = TypedSql<unknown[], unknown>;
3069
3866
 
3070
3867
  declare type Unpacker = (data: any) => any;
@@ -3173,7 +3970,12 @@ declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extend
3173
3970
 
3174
3971
  declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
3175
3972
 
3176
- export { Value }
3973
+ /**
3974
+ * Values supported by SQL engine.
3975
+ */
3976
+ export declare type Value = unknown;
3977
+
3978
+ export declare function warnEnvConflicts(envPaths: any): void;
3177
3979
 
3178
3980
  export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
3179
3981