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,1589 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `StockMovement` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.js"
13
- import type * as Prisma from "../internal/prismaNamespace.js"
14
-
15
- /**
16
- * Model StockMovement
17
- *
18
- */
19
- export type StockMovementModel = runtime.Types.Result.DefaultSelection<Prisma.$StockMovementPayload>
20
-
21
- export type AggregateStockMovement = {
22
- _count: StockMovementCountAggregateOutputType | null
23
- _avg: StockMovementAvgAggregateOutputType | null
24
- _sum: StockMovementSumAggregateOutputType | null
25
- _min: StockMovementMinAggregateOutputType | null
26
- _max: StockMovementMaxAggregateOutputType | null
27
- }
28
-
29
- export type StockMovementAvgAggregateOutputType = {
30
- no: number | null
31
- }
32
-
33
- export type StockMovementSumAggregateOutputType = {
34
- no: number | null
35
- }
36
-
37
- export type StockMovementMinAggregateOutputType = {
38
- id: string | null
39
- no: number | null
40
- movementType: string | null
41
- to: string | null
42
- toId: string | null
43
- from: string | null
44
- fromId: string | null
45
- quantity: string | null
46
- createdAt: Date | null
47
- updatedAt: Date | null
48
- }
49
-
50
- export type StockMovementMaxAggregateOutputType = {
51
- id: string | null
52
- no: number | null
53
- movementType: string | null
54
- to: string | null
55
- toId: string | null
56
- from: string | null
57
- fromId: string | null
58
- quantity: string | null
59
- createdAt: Date | null
60
- updatedAt: Date | null
61
- }
62
-
63
- export type StockMovementCountAggregateOutputType = {
64
- id: number
65
- no: number
66
- movementType: number
67
- to: number
68
- toId: number
69
- from: number
70
- fromId: number
71
- quantity: number
72
- createdAt: number
73
- updatedAt: number
74
- _all: number
75
- }
76
-
77
-
78
- export type StockMovementAvgAggregateInputType = {
79
- no?: true
80
- }
81
-
82
- export type StockMovementSumAggregateInputType = {
83
- no?: true
84
- }
85
-
86
- export type StockMovementMinAggregateInputType = {
87
- id?: true
88
- no?: true
89
- movementType?: true
90
- to?: true
91
- toId?: true
92
- from?: true
93
- fromId?: true
94
- quantity?: true
95
- createdAt?: true
96
- updatedAt?: true
97
- }
98
-
99
- export type StockMovementMaxAggregateInputType = {
100
- id?: true
101
- no?: true
102
- movementType?: true
103
- to?: true
104
- toId?: true
105
- from?: true
106
- fromId?: true
107
- quantity?: true
108
- createdAt?: true
109
- updatedAt?: true
110
- }
111
-
112
- export type StockMovementCountAggregateInputType = {
113
- id?: true
114
- no?: true
115
- movementType?: true
116
- to?: true
117
- toId?: true
118
- from?: true
119
- fromId?: true
120
- quantity?: true
121
- createdAt?: true
122
- updatedAt?: true
123
- _all?: true
124
- }
125
-
126
- export type StockMovementAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
- /**
128
- * Filter which StockMovement to aggregate.
129
- */
130
- where?: Prisma.StockMovementWhereInput
131
- /**
132
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
133
- *
134
- * Determine the order of StockMovements to fetch.
135
- */
136
- orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
137
- /**
138
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
139
- *
140
- * Sets the start position
141
- */
142
- cursor?: Prisma.StockMovementWhereUniqueInput
143
- /**
144
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
- *
146
- * Take `±n` StockMovements from the position of the cursor.
147
- */
148
- take?: number
149
- /**
150
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
151
- *
152
- * Skip the first `n` StockMovements.
153
- */
154
- skip?: number
155
- /**
156
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
- *
158
- * Count returned StockMovements
159
- **/
160
- _count?: true | StockMovementCountAggregateInputType
161
- /**
162
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
- *
164
- * Select which fields to average
165
- **/
166
- _avg?: StockMovementAvgAggregateInputType
167
- /**
168
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
- *
170
- * Select which fields to sum
171
- **/
172
- _sum?: StockMovementSumAggregateInputType
173
- /**
174
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
- *
176
- * Select which fields to find the minimum value
177
- **/
178
- _min?: StockMovementMinAggregateInputType
179
- /**
180
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
- *
182
- * Select which fields to find the maximum value
183
- **/
184
- _max?: StockMovementMaxAggregateInputType
185
- }
186
-
187
- export type GetStockMovementAggregateType<T extends StockMovementAggregateArgs> = {
188
- [P in keyof T & keyof AggregateStockMovement]: P extends '_count' | 'count'
189
- ? T[P] extends true
190
- ? number
191
- : Prisma.GetScalarType<T[P], AggregateStockMovement[P]>
192
- : Prisma.GetScalarType<T[P], AggregateStockMovement[P]>
193
- }
194
-
195
-
196
-
197
-
198
- export type StockMovementGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
199
- where?: Prisma.StockMovementWhereInput
200
- orderBy?: Prisma.StockMovementOrderByWithAggregationInput | Prisma.StockMovementOrderByWithAggregationInput[]
201
- by: Prisma.StockMovementScalarFieldEnum[] | Prisma.StockMovementScalarFieldEnum
202
- having?: Prisma.StockMovementScalarWhereWithAggregatesInput
203
- take?: number
204
- skip?: number
205
- _count?: StockMovementCountAggregateInputType | true
206
- _avg?: StockMovementAvgAggregateInputType
207
- _sum?: StockMovementSumAggregateInputType
208
- _min?: StockMovementMinAggregateInputType
209
- _max?: StockMovementMaxAggregateInputType
210
- }
211
-
212
- export type StockMovementGroupByOutputType = {
213
- id: string
214
- no: number
215
- movementType: string
216
- to: string | null
217
- toId: string | null
218
- from: string | null
219
- fromId: string | null
220
- quantity: string
221
- createdAt: Date
222
- updatedAt: Date
223
- _count: StockMovementCountAggregateOutputType | null
224
- _avg: StockMovementAvgAggregateOutputType | null
225
- _sum: StockMovementSumAggregateOutputType | null
226
- _min: StockMovementMinAggregateOutputType | null
227
- _max: StockMovementMaxAggregateOutputType | null
228
- }
229
-
230
- type GetStockMovementGroupByPayload<T extends StockMovementGroupByArgs> = Prisma.PrismaPromise<
231
- Array<
232
- Prisma.PickEnumerable<StockMovementGroupByOutputType, T['by']> &
233
- {
234
- [P in ((keyof T) & (keyof StockMovementGroupByOutputType))]: P extends '_count'
235
- ? T[P] extends boolean
236
- ? number
237
- : Prisma.GetScalarType<T[P], StockMovementGroupByOutputType[P]>
238
- : Prisma.GetScalarType<T[P], StockMovementGroupByOutputType[P]>
239
- }
240
- >
241
- >
242
-
243
-
244
-
245
- export type StockMovementWhereInput = {
246
- AND?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[]
247
- OR?: Prisma.StockMovementWhereInput[]
248
- NOT?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[]
249
- id?: Prisma.StringFilter<"StockMovement"> | string
250
- no?: Prisma.IntFilter<"StockMovement"> | number
251
- movementType?: Prisma.StringFilter<"StockMovement"> | string
252
- to?: Prisma.StringNullableFilter<"StockMovement"> | string | null
253
- toId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
254
- from?: Prisma.StringNullableFilter<"StockMovement"> | string | null
255
- fromId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
256
- quantity?: Prisma.StringFilter<"StockMovement"> | string
257
- createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
258
- updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
259
- material?: Prisma.DispatchMaterialListRelationFilter
260
- }
261
-
262
- export type StockMovementOrderByWithRelationInput = {
263
- id?: Prisma.SortOrder
264
- no?: Prisma.SortOrder
265
- movementType?: Prisma.SortOrder
266
- to?: Prisma.SortOrderInput | Prisma.SortOrder
267
- toId?: Prisma.SortOrderInput | Prisma.SortOrder
268
- from?: Prisma.SortOrderInput | Prisma.SortOrder
269
- fromId?: Prisma.SortOrderInput | Prisma.SortOrder
270
- quantity?: Prisma.SortOrder
271
- createdAt?: Prisma.SortOrder
272
- updatedAt?: Prisma.SortOrder
273
- material?: Prisma.DispatchMaterialOrderByRelationAggregateInput
274
- }
275
-
276
- export type StockMovementWhereUniqueInput = Prisma.AtLeast<{
277
- id?: string
278
- AND?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[]
279
- OR?: Prisma.StockMovementWhereInput[]
280
- NOT?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[]
281
- no?: Prisma.IntFilter<"StockMovement"> | number
282
- movementType?: Prisma.StringFilter<"StockMovement"> | string
283
- to?: Prisma.StringNullableFilter<"StockMovement"> | string | null
284
- toId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
285
- from?: Prisma.StringNullableFilter<"StockMovement"> | string | null
286
- fromId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
287
- quantity?: Prisma.StringFilter<"StockMovement"> | string
288
- createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
289
- updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
290
- material?: Prisma.DispatchMaterialListRelationFilter
291
- }, "id" | "id">
292
-
293
- export type StockMovementOrderByWithAggregationInput = {
294
- id?: Prisma.SortOrder
295
- no?: Prisma.SortOrder
296
- movementType?: Prisma.SortOrder
297
- to?: Prisma.SortOrderInput | Prisma.SortOrder
298
- toId?: Prisma.SortOrderInput | Prisma.SortOrder
299
- from?: Prisma.SortOrderInput | Prisma.SortOrder
300
- fromId?: Prisma.SortOrderInput | Prisma.SortOrder
301
- quantity?: Prisma.SortOrder
302
- createdAt?: Prisma.SortOrder
303
- updatedAt?: Prisma.SortOrder
304
- _count?: Prisma.StockMovementCountOrderByAggregateInput
305
- _avg?: Prisma.StockMovementAvgOrderByAggregateInput
306
- _max?: Prisma.StockMovementMaxOrderByAggregateInput
307
- _min?: Prisma.StockMovementMinOrderByAggregateInput
308
- _sum?: Prisma.StockMovementSumOrderByAggregateInput
309
- }
310
-
311
- export type StockMovementScalarWhereWithAggregatesInput = {
312
- AND?: Prisma.StockMovementScalarWhereWithAggregatesInput | Prisma.StockMovementScalarWhereWithAggregatesInput[]
313
- OR?: Prisma.StockMovementScalarWhereWithAggregatesInput[]
314
- NOT?: Prisma.StockMovementScalarWhereWithAggregatesInput | Prisma.StockMovementScalarWhereWithAggregatesInput[]
315
- id?: Prisma.StringWithAggregatesFilter<"StockMovement"> | string
316
- no?: Prisma.IntWithAggregatesFilter<"StockMovement"> | number
317
- movementType?: Prisma.StringWithAggregatesFilter<"StockMovement"> | string
318
- to?: Prisma.StringNullableWithAggregatesFilter<"StockMovement"> | string | null
319
- toId?: Prisma.StringNullableWithAggregatesFilter<"StockMovement"> | string | null
320
- from?: Prisma.StringNullableWithAggregatesFilter<"StockMovement"> | string | null
321
- fromId?: Prisma.StringNullableWithAggregatesFilter<"StockMovement"> | string | null
322
- quantity?: Prisma.StringWithAggregatesFilter<"StockMovement"> | string
323
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"StockMovement"> | Date | string
324
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"StockMovement"> | Date | string
325
- }
326
-
327
- export type StockMovementCreateInput = {
328
- id?: string
329
- no?: number
330
- movementType: string
331
- to?: string | null
332
- toId?: string | null
333
- from?: string | null
334
- fromId?: string | null
335
- quantity: string
336
- createdAt?: Date | string
337
- updatedAt?: Date | string
338
- material?: Prisma.DispatchMaterialCreateNestedManyWithoutStockMovementInput
339
- }
340
-
341
- export type StockMovementUncheckedCreateInput = {
342
- id?: string
343
- no?: number
344
- movementType: string
345
- to?: string | null
346
- toId?: string | null
347
- from?: string | null
348
- fromId?: string | null
349
- quantity: string
350
- createdAt?: Date | string
351
- updatedAt?: Date | string
352
- material?: Prisma.DispatchMaterialUncheckedCreateNestedManyWithoutStockMovementInput
353
- }
354
-
355
- export type StockMovementUpdateInput = {
356
- id?: Prisma.StringFieldUpdateOperationsInput | string
357
- no?: Prisma.IntFieldUpdateOperationsInput | number
358
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
359
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
361
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
362
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
363
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
364
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
365
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
366
- material?: Prisma.DispatchMaterialUpdateManyWithoutStockMovementNestedInput
367
- }
368
-
369
- export type StockMovementUncheckedUpdateInput = {
370
- id?: Prisma.StringFieldUpdateOperationsInput | string
371
- no?: Prisma.IntFieldUpdateOperationsInput | number
372
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
373
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
374
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
375
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
377
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
378
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
380
- material?: Prisma.DispatchMaterialUncheckedUpdateManyWithoutStockMovementNestedInput
381
- }
382
-
383
- export type StockMovementCreateManyInput = {
384
- id?: string
385
- no?: number
386
- movementType: string
387
- to?: string | null
388
- toId?: string | null
389
- from?: string | null
390
- fromId?: string | null
391
- quantity: string
392
- createdAt?: Date | string
393
- updatedAt?: Date | string
394
- }
395
-
396
- export type StockMovementUpdateManyMutationInput = {
397
- id?: Prisma.StringFieldUpdateOperationsInput | string
398
- no?: Prisma.IntFieldUpdateOperationsInput | number
399
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
400
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
401
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
402
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
403
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
404
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
405
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
406
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
407
- }
408
-
409
- export type StockMovementUncheckedUpdateManyInput = {
410
- id?: Prisma.StringFieldUpdateOperationsInput | string
411
- no?: Prisma.IntFieldUpdateOperationsInput | number
412
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
413
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
414
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
415
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
416
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
417
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
418
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
419
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
420
- }
421
-
422
- export type StockMovementListRelationFilter = {
423
- every?: Prisma.StockMovementWhereInput
424
- some?: Prisma.StockMovementWhereInput
425
- none?: Prisma.StockMovementWhereInput
426
- }
427
-
428
- export type StockMovementOrderByRelationAggregateInput = {
429
- _count?: Prisma.SortOrder
430
- }
431
-
432
- export type StockMovementCountOrderByAggregateInput = {
433
- id?: Prisma.SortOrder
434
- no?: Prisma.SortOrder
435
- movementType?: Prisma.SortOrder
436
- to?: Prisma.SortOrder
437
- toId?: Prisma.SortOrder
438
- from?: Prisma.SortOrder
439
- fromId?: Prisma.SortOrder
440
- quantity?: Prisma.SortOrder
441
- createdAt?: Prisma.SortOrder
442
- updatedAt?: Prisma.SortOrder
443
- }
444
-
445
- export type StockMovementAvgOrderByAggregateInput = {
446
- no?: Prisma.SortOrder
447
- }
448
-
449
- export type StockMovementMaxOrderByAggregateInput = {
450
- id?: Prisma.SortOrder
451
- no?: Prisma.SortOrder
452
- movementType?: Prisma.SortOrder
453
- to?: Prisma.SortOrder
454
- toId?: Prisma.SortOrder
455
- from?: Prisma.SortOrder
456
- fromId?: Prisma.SortOrder
457
- quantity?: Prisma.SortOrder
458
- createdAt?: Prisma.SortOrder
459
- updatedAt?: Prisma.SortOrder
460
- }
461
-
462
- export type StockMovementMinOrderByAggregateInput = {
463
- id?: Prisma.SortOrder
464
- no?: Prisma.SortOrder
465
- movementType?: Prisma.SortOrder
466
- to?: Prisma.SortOrder
467
- toId?: Prisma.SortOrder
468
- from?: Prisma.SortOrder
469
- fromId?: Prisma.SortOrder
470
- quantity?: Prisma.SortOrder
471
- createdAt?: Prisma.SortOrder
472
- updatedAt?: Prisma.SortOrder
473
- }
474
-
475
- export type StockMovementSumOrderByAggregateInput = {
476
- no?: Prisma.SortOrder
477
- }
478
-
479
- export type StockMovementCreateNestedManyWithoutMaterialInput = {
480
- create?: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput> | Prisma.StockMovementCreateWithoutMaterialInput[] | Prisma.StockMovementUncheckedCreateWithoutMaterialInput[]
481
- connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutMaterialInput | Prisma.StockMovementCreateOrConnectWithoutMaterialInput[]
482
- connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
483
- }
484
-
485
- export type StockMovementUncheckedCreateNestedManyWithoutMaterialInput = {
486
- create?: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput> | Prisma.StockMovementCreateWithoutMaterialInput[] | Prisma.StockMovementUncheckedCreateWithoutMaterialInput[]
487
- connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutMaterialInput | Prisma.StockMovementCreateOrConnectWithoutMaterialInput[]
488
- connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
489
- }
490
-
491
- export type StockMovementUpdateManyWithoutMaterialNestedInput = {
492
- create?: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput> | Prisma.StockMovementCreateWithoutMaterialInput[] | Prisma.StockMovementUncheckedCreateWithoutMaterialInput[]
493
- connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutMaterialInput | Prisma.StockMovementCreateOrConnectWithoutMaterialInput[]
494
- upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutMaterialInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutMaterialInput[]
495
- set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
496
- disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
497
- delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
498
- connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
499
- update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutMaterialInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutMaterialInput[]
500
- updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutMaterialInput | Prisma.StockMovementUpdateManyWithWhereWithoutMaterialInput[]
501
- deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
502
- }
503
-
504
- export type StockMovementUncheckedUpdateManyWithoutMaterialNestedInput = {
505
- create?: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput> | Prisma.StockMovementCreateWithoutMaterialInput[] | Prisma.StockMovementUncheckedCreateWithoutMaterialInput[]
506
- connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutMaterialInput | Prisma.StockMovementCreateOrConnectWithoutMaterialInput[]
507
- upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutMaterialInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutMaterialInput[]
508
- set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
509
- disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
510
- delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
511
- connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
512
- update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutMaterialInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutMaterialInput[]
513
- updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutMaterialInput | Prisma.StockMovementUpdateManyWithWhereWithoutMaterialInput[]
514
- deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
515
- }
516
-
517
- export type StockMovementCreateWithoutMaterialInput = {
518
- id?: string
519
- no?: number
520
- movementType: string
521
- to?: string | null
522
- toId?: string | null
523
- from?: string | null
524
- fromId?: string | null
525
- quantity: string
526
- createdAt?: Date | string
527
- updatedAt?: Date | string
528
- }
529
-
530
- export type StockMovementUncheckedCreateWithoutMaterialInput = {
531
- id?: string
532
- no?: number
533
- movementType: string
534
- to?: string | null
535
- toId?: string | null
536
- from?: string | null
537
- fromId?: string | null
538
- quantity: string
539
- createdAt?: Date | string
540
- updatedAt?: Date | string
541
- }
542
-
543
- export type StockMovementCreateOrConnectWithoutMaterialInput = {
544
- where: Prisma.StockMovementWhereUniqueInput
545
- create: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput>
546
- }
547
-
548
- export type StockMovementUpsertWithWhereUniqueWithoutMaterialInput = {
549
- where: Prisma.StockMovementWhereUniqueInput
550
- update: Prisma.XOR<Prisma.StockMovementUpdateWithoutMaterialInput, Prisma.StockMovementUncheckedUpdateWithoutMaterialInput>
551
- create: Prisma.XOR<Prisma.StockMovementCreateWithoutMaterialInput, Prisma.StockMovementUncheckedCreateWithoutMaterialInput>
552
- }
553
-
554
- export type StockMovementUpdateWithWhereUniqueWithoutMaterialInput = {
555
- where: Prisma.StockMovementWhereUniqueInput
556
- data: Prisma.XOR<Prisma.StockMovementUpdateWithoutMaterialInput, Prisma.StockMovementUncheckedUpdateWithoutMaterialInput>
557
- }
558
-
559
- export type StockMovementUpdateManyWithWhereWithoutMaterialInput = {
560
- where: Prisma.StockMovementScalarWhereInput
561
- data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutMaterialInput>
562
- }
563
-
564
- export type StockMovementScalarWhereInput = {
565
- AND?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
566
- OR?: Prisma.StockMovementScalarWhereInput[]
567
- NOT?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
568
- id?: Prisma.StringFilter<"StockMovement"> | string
569
- no?: Prisma.IntFilter<"StockMovement"> | number
570
- movementType?: Prisma.StringFilter<"StockMovement"> | string
571
- to?: Prisma.StringNullableFilter<"StockMovement"> | string | null
572
- toId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
573
- from?: Prisma.StringNullableFilter<"StockMovement"> | string | null
574
- fromId?: Prisma.StringNullableFilter<"StockMovement"> | string | null
575
- quantity?: Prisma.StringFilter<"StockMovement"> | string
576
- createdAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
577
- updatedAt?: Prisma.DateTimeFilter<"StockMovement"> | Date | string
578
- }
579
-
580
- export type StockMovementUpdateWithoutMaterialInput = {
581
- id?: Prisma.StringFieldUpdateOperationsInput | string
582
- no?: Prisma.IntFieldUpdateOperationsInput | number
583
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
584
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
585
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
586
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
587
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
588
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
589
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
590
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
591
- }
592
-
593
- export type StockMovementUncheckedUpdateWithoutMaterialInput = {
594
- id?: Prisma.StringFieldUpdateOperationsInput | string
595
- no?: Prisma.IntFieldUpdateOperationsInput | number
596
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
597
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
598
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
599
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
600
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
601
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
602
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
603
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
604
- }
605
-
606
- export type StockMovementUncheckedUpdateManyWithoutMaterialInput = {
607
- id?: Prisma.StringFieldUpdateOperationsInput | string
608
- no?: Prisma.IntFieldUpdateOperationsInput | number
609
- movementType?: Prisma.StringFieldUpdateOperationsInput | string
610
- to?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
611
- toId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
612
- from?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
613
- fromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
614
- quantity?: Prisma.StringFieldUpdateOperationsInput | string
615
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
616
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
- }
618
-
619
-
620
- /**
621
- * Count Type StockMovementCountOutputType
622
- */
623
-
624
- export type StockMovementCountOutputType = {
625
- material: number
626
- }
627
-
628
- export type StockMovementCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
629
- material?: boolean | StockMovementCountOutputTypeCountMaterialArgs
630
- }
631
-
632
- /**
633
- * StockMovementCountOutputType without action
634
- */
635
- export type StockMovementCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
636
- /**
637
- * Select specific fields to fetch from the StockMovementCountOutputType
638
- */
639
- select?: Prisma.StockMovementCountOutputTypeSelect<ExtArgs> | null
640
- }
641
-
642
- /**
643
- * StockMovementCountOutputType without action
644
- */
645
- export type StockMovementCountOutputTypeCountMaterialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
646
- where?: Prisma.DispatchMaterialWhereInput
647
- }
648
-
649
-
650
- export type StockMovementSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
651
- id?: boolean
652
- no?: boolean
653
- movementType?: boolean
654
- to?: boolean
655
- toId?: boolean
656
- from?: boolean
657
- fromId?: boolean
658
- quantity?: boolean
659
- createdAt?: boolean
660
- updatedAt?: boolean
661
- material?: boolean | Prisma.StockMovement$materialArgs<ExtArgs>
662
- _count?: boolean | Prisma.StockMovementCountOutputTypeDefaultArgs<ExtArgs>
663
- }, ExtArgs["result"]["stockMovement"]>
664
-
665
- export type StockMovementSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
666
- id?: boolean
667
- no?: boolean
668
- movementType?: boolean
669
- to?: boolean
670
- toId?: boolean
671
- from?: boolean
672
- fromId?: boolean
673
- quantity?: boolean
674
- createdAt?: boolean
675
- updatedAt?: boolean
676
- }, ExtArgs["result"]["stockMovement"]>
677
-
678
- export type StockMovementSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
679
- id?: boolean
680
- no?: boolean
681
- movementType?: boolean
682
- to?: boolean
683
- toId?: boolean
684
- from?: boolean
685
- fromId?: boolean
686
- quantity?: boolean
687
- createdAt?: boolean
688
- updatedAt?: boolean
689
- }, ExtArgs["result"]["stockMovement"]>
690
-
691
- export type StockMovementSelectScalar = {
692
- id?: boolean
693
- no?: boolean
694
- movementType?: boolean
695
- to?: boolean
696
- toId?: boolean
697
- from?: boolean
698
- fromId?: boolean
699
- quantity?: boolean
700
- createdAt?: boolean
701
- updatedAt?: boolean
702
- }
703
-
704
- export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "no" | "movementType" | "to" | "toId" | "from" | "fromId" | "quantity" | "createdAt" | "updatedAt", ExtArgs["result"]["stockMovement"]>
705
- export type StockMovementInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
706
- material?: boolean | Prisma.StockMovement$materialArgs<ExtArgs>
707
- _count?: boolean | Prisma.StockMovementCountOutputTypeDefaultArgs<ExtArgs>
708
- }
709
- export type StockMovementIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
710
- export type StockMovementIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
711
-
712
- export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
713
- name: "StockMovement"
714
- objects: {
715
- material: Prisma.$DispatchMaterialPayload<ExtArgs>[]
716
- }
717
- scalars: runtime.Types.Extensions.GetPayloadResult<{
718
- id: string
719
- no: number
720
- movementType: string
721
- to: string | null
722
- toId: string | null
723
- from: string | null
724
- fromId: string | null
725
- quantity: string
726
- createdAt: Date
727
- updatedAt: Date
728
- }, ExtArgs["result"]["stockMovement"]>
729
- composites: {}
730
- }
731
-
732
- export type StockMovementGetPayload<S extends boolean | null | undefined | StockMovementDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$StockMovementPayload, S>
733
-
734
- export type StockMovementCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
735
- Omit<StockMovementFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
736
- select?: StockMovementCountAggregateInputType | true
737
- }
738
-
739
- export interface StockMovementDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
740
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['StockMovement'], meta: { name: 'StockMovement' } }
741
- /**
742
- * Find zero or one StockMovement that matches the filter.
743
- * @param {StockMovementFindUniqueArgs} args - Arguments to find a StockMovement
744
- * @example
745
- * // Get one StockMovement
746
- * const stockMovement = await prisma.stockMovement.findUnique({
747
- * where: {
748
- * // ... provide filter here
749
- * }
750
- * })
751
- */
752
- findUnique<T extends StockMovementFindUniqueArgs>(args: Prisma.SelectSubset<T, StockMovementFindUniqueArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
753
-
754
- /**
755
- * Find one StockMovement that matches the filter or throw an error with `error.code='P2025'`
756
- * if no matches were found.
757
- * @param {StockMovementFindUniqueOrThrowArgs} args - Arguments to find a StockMovement
758
- * @example
759
- * // Get one StockMovement
760
- * const stockMovement = await prisma.stockMovement.findUniqueOrThrow({
761
- * where: {
762
- * // ... provide filter here
763
- * }
764
- * })
765
- */
766
- findUniqueOrThrow<T extends StockMovementFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, StockMovementFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
767
-
768
- /**
769
- * Find the first StockMovement that matches the filter.
770
- * Note, that providing `undefined` is treated as the value not being there.
771
- * Read more here: https://pris.ly/d/null-undefined
772
- * @param {StockMovementFindFirstArgs} args - Arguments to find a StockMovement
773
- * @example
774
- * // Get one StockMovement
775
- * const stockMovement = await prisma.stockMovement.findFirst({
776
- * where: {
777
- * // ... provide filter here
778
- * }
779
- * })
780
- */
781
- findFirst<T extends StockMovementFindFirstArgs>(args?: Prisma.SelectSubset<T, StockMovementFindFirstArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
782
-
783
- /**
784
- * Find the first StockMovement that matches the filter or
785
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
786
- * Note, that providing `undefined` is treated as the value not being there.
787
- * Read more here: https://pris.ly/d/null-undefined
788
- * @param {StockMovementFindFirstOrThrowArgs} args - Arguments to find a StockMovement
789
- * @example
790
- * // Get one StockMovement
791
- * const stockMovement = await prisma.stockMovement.findFirstOrThrow({
792
- * where: {
793
- * // ... provide filter here
794
- * }
795
- * })
796
- */
797
- findFirstOrThrow<T extends StockMovementFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, StockMovementFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
798
-
799
- /**
800
- * Find zero or more StockMovements that matches the filter.
801
- * Note, that providing `undefined` is treated as the value not being there.
802
- * Read more here: https://pris.ly/d/null-undefined
803
- * @param {StockMovementFindManyArgs} args - Arguments to filter and select certain fields only.
804
- * @example
805
- * // Get all StockMovements
806
- * const stockMovements = await prisma.stockMovement.findMany()
807
- *
808
- * // Get first 10 StockMovements
809
- * const stockMovements = await prisma.stockMovement.findMany({ take: 10 })
810
- *
811
- * // Only select the `id`
812
- * const stockMovementWithIdOnly = await prisma.stockMovement.findMany({ select: { id: true } })
813
- *
814
- */
815
- findMany<T extends StockMovementFindManyArgs>(args?: Prisma.SelectSubset<T, StockMovementFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
816
-
817
- /**
818
- * Create a StockMovement.
819
- * @param {StockMovementCreateArgs} args - Arguments to create a StockMovement.
820
- * @example
821
- * // Create one StockMovement
822
- * const StockMovement = await prisma.stockMovement.create({
823
- * data: {
824
- * // ... data to create a StockMovement
825
- * }
826
- * })
827
- *
828
- */
829
- create<T extends StockMovementCreateArgs>(args: Prisma.SelectSubset<T, StockMovementCreateArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
830
-
831
- /**
832
- * Create many StockMovements.
833
- * @param {StockMovementCreateManyArgs} args - Arguments to create many StockMovements.
834
- * @example
835
- * // Create many StockMovements
836
- * const stockMovement = await prisma.stockMovement.createMany({
837
- * data: [
838
- * // ... provide data here
839
- * ]
840
- * })
841
- *
842
- */
843
- createMany<T extends StockMovementCreateManyArgs>(args?: Prisma.SelectSubset<T, StockMovementCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
844
-
845
- /**
846
- * Create many StockMovements and returns the data saved in the database.
847
- * @param {StockMovementCreateManyAndReturnArgs} args - Arguments to create many StockMovements.
848
- * @example
849
- * // Create many StockMovements
850
- * const stockMovement = await prisma.stockMovement.createManyAndReturn({
851
- * data: [
852
- * // ... provide data here
853
- * ]
854
- * })
855
- *
856
- * // Create many StockMovements and only return the `id`
857
- * const stockMovementWithIdOnly = await prisma.stockMovement.createManyAndReturn({
858
- * select: { id: true },
859
- * data: [
860
- * // ... provide data here
861
- * ]
862
- * })
863
- * Note, that providing `undefined` is treated as the value not being there.
864
- * Read more here: https://pris.ly/d/null-undefined
865
- *
866
- */
867
- createManyAndReturn<T extends StockMovementCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StockMovementCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
868
-
869
- /**
870
- * Delete a StockMovement.
871
- * @param {StockMovementDeleteArgs} args - Arguments to delete one StockMovement.
872
- * @example
873
- * // Delete one StockMovement
874
- * const StockMovement = await prisma.stockMovement.delete({
875
- * where: {
876
- * // ... filter to delete one StockMovement
877
- * }
878
- * })
879
- *
880
- */
881
- delete<T extends StockMovementDeleteArgs>(args: Prisma.SelectSubset<T, StockMovementDeleteArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
882
-
883
- /**
884
- * Update one StockMovement.
885
- * @param {StockMovementUpdateArgs} args - Arguments to update one StockMovement.
886
- * @example
887
- * // Update one StockMovement
888
- * const stockMovement = await prisma.stockMovement.update({
889
- * where: {
890
- * // ... provide filter here
891
- * },
892
- * data: {
893
- * // ... provide data here
894
- * }
895
- * })
896
- *
897
- */
898
- update<T extends StockMovementUpdateArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
899
-
900
- /**
901
- * Delete zero or more StockMovements.
902
- * @param {StockMovementDeleteManyArgs} args - Arguments to filter StockMovements to delete.
903
- * @example
904
- * // Delete a few StockMovements
905
- * const { count } = await prisma.stockMovement.deleteMany({
906
- * where: {
907
- * // ... provide filter here
908
- * }
909
- * })
910
- *
911
- */
912
- deleteMany<T extends StockMovementDeleteManyArgs>(args?: Prisma.SelectSubset<T, StockMovementDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
913
-
914
- /**
915
- * Update zero or more StockMovements.
916
- * Note, that providing `undefined` is treated as the value not being there.
917
- * Read more here: https://pris.ly/d/null-undefined
918
- * @param {StockMovementUpdateManyArgs} args - Arguments to update one or more rows.
919
- * @example
920
- * // Update many StockMovements
921
- * const stockMovement = await prisma.stockMovement.updateMany({
922
- * where: {
923
- * // ... provide filter here
924
- * },
925
- * data: {
926
- * // ... provide data here
927
- * }
928
- * })
929
- *
930
- */
931
- updateMany<T extends StockMovementUpdateManyArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
932
-
933
- /**
934
- * Update zero or more StockMovements and returns the data updated in the database.
935
- * @param {StockMovementUpdateManyAndReturnArgs} args - Arguments to update many StockMovements.
936
- * @example
937
- * // Update many StockMovements
938
- * const stockMovement = await prisma.stockMovement.updateManyAndReturn({
939
- * where: {
940
- * // ... provide filter here
941
- * },
942
- * data: [
943
- * // ... provide data here
944
- * ]
945
- * })
946
- *
947
- * // Update zero or more StockMovements and only return the `id`
948
- * const stockMovementWithIdOnly = await prisma.stockMovement.updateManyAndReturn({
949
- * select: { id: true },
950
- * where: {
951
- * // ... provide filter here
952
- * },
953
- * data: [
954
- * // ... provide data here
955
- * ]
956
- * })
957
- * Note, that providing `undefined` is treated as the value not being there.
958
- * Read more here: https://pris.ly/d/null-undefined
959
- *
960
- */
961
- updateManyAndReturn<T extends StockMovementUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StockMovementUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
962
-
963
- /**
964
- * Create or update one StockMovement.
965
- * @param {StockMovementUpsertArgs} args - Arguments to update or create a StockMovement.
966
- * @example
967
- * // Update or create a StockMovement
968
- * const stockMovement = await prisma.stockMovement.upsert({
969
- * create: {
970
- * // ... data to create a StockMovement
971
- * },
972
- * update: {
973
- * // ... in case it already exists, update
974
- * },
975
- * where: {
976
- * // ... the filter for the StockMovement we want to update
977
- * }
978
- * })
979
- */
980
- upsert<T extends StockMovementUpsertArgs>(args: Prisma.SelectSubset<T, StockMovementUpsertArgs<ExtArgs>>): Prisma.Prisma__StockMovementClient<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
981
-
982
-
983
- /**
984
- * Count the number of StockMovements.
985
- * Note, that providing `undefined` is treated as the value not being there.
986
- * Read more here: https://pris.ly/d/null-undefined
987
- * @param {StockMovementCountArgs} args - Arguments to filter StockMovements to count.
988
- * @example
989
- * // Count the number of StockMovements
990
- * const count = await prisma.stockMovement.count({
991
- * where: {
992
- * // ... the filter for the StockMovements we want to count
993
- * }
994
- * })
995
- **/
996
- count<T extends StockMovementCountArgs>(
997
- args?: Prisma.Subset<T, StockMovementCountArgs>,
998
- ): Prisma.PrismaPromise<
999
- T extends runtime.Types.Utils.Record<'select', any>
1000
- ? T['select'] extends true
1001
- ? number
1002
- : Prisma.GetScalarType<T['select'], StockMovementCountAggregateOutputType>
1003
- : number
1004
- >
1005
-
1006
- /**
1007
- * Allows you to perform aggregations operations on a StockMovement.
1008
- * Note, that providing `undefined` is treated as the value not being there.
1009
- * Read more here: https://pris.ly/d/null-undefined
1010
- * @param {StockMovementAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1011
- * @example
1012
- * // Ordered by age ascending
1013
- * // Where email contains prisma.io
1014
- * // Limited to the 10 users
1015
- * const aggregations = await prisma.user.aggregate({
1016
- * _avg: {
1017
- * age: true,
1018
- * },
1019
- * where: {
1020
- * email: {
1021
- * contains: "prisma.io",
1022
- * },
1023
- * },
1024
- * orderBy: {
1025
- * age: "asc",
1026
- * },
1027
- * take: 10,
1028
- * })
1029
- **/
1030
- aggregate<T extends StockMovementAggregateArgs>(args: Prisma.Subset<T, StockMovementAggregateArgs>): Prisma.PrismaPromise<GetStockMovementAggregateType<T>>
1031
-
1032
- /**
1033
- * Group by StockMovement.
1034
- * Note, that providing `undefined` is treated as the value not being there.
1035
- * Read more here: https://pris.ly/d/null-undefined
1036
- * @param {StockMovementGroupByArgs} args - Group by arguments.
1037
- * @example
1038
- * // Group by city, order by createdAt, get count
1039
- * const result = await prisma.user.groupBy({
1040
- * by: ['city', 'createdAt'],
1041
- * orderBy: {
1042
- * createdAt: true
1043
- * },
1044
- * _count: {
1045
- * _all: true
1046
- * },
1047
- * })
1048
- *
1049
- **/
1050
- groupBy<
1051
- T extends StockMovementGroupByArgs,
1052
- HasSelectOrTake extends Prisma.Or<
1053
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1054
- Prisma.Extends<'take', Prisma.Keys<T>>
1055
- >,
1056
- OrderByArg extends Prisma.True extends HasSelectOrTake
1057
- ? { orderBy: StockMovementGroupByArgs['orderBy'] }
1058
- : { orderBy?: StockMovementGroupByArgs['orderBy'] },
1059
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1060
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1061
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1062
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1063
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1064
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1065
- InputErrors extends ByEmpty extends Prisma.True
1066
- ? `Error: "by" must not be empty.`
1067
- : HavingValid extends Prisma.False
1068
- ? {
1069
- [P in HavingFields]: P extends ByFields
1070
- ? never
1071
- : P extends string
1072
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1073
- : [
1074
- Error,
1075
- 'Field ',
1076
- P,
1077
- ` in "having" needs to be provided in "by"`,
1078
- ]
1079
- }[HavingFields]
1080
- : 'take' extends Prisma.Keys<T>
1081
- ? 'orderBy' extends Prisma.Keys<T>
1082
- ? ByValid extends Prisma.True
1083
- ? {}
1084
- : {
1085
- [P in OrderFields]: P extends ByFields
1086
- ? never
1087
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1088
- }[OrderFields]
1089
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1090
- : 'skip' extends Prisma.Keys<T>
1091
- ? 'orderBy' extends Prisma.Keys<T>
1092
- ? ByValid extends Prisma.True
1093
- ? {}
1094
- : {
1095
- [P in OrderFields]: P extends ByFields
1096
- ? never
1097
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1098
- }[OrderFields]
1099
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1100
- : ByValid extends Prisma.True
1101
- ? {}
1102
- : {
1103
- [P in OrderFields]: P extends ByFields
1104
- ? never
1105
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1106
- }[OrderFields]
1107
- >(args: Prisma.SubsetIntersection<T, StockMovementGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStockMovementGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1108
- /**
1109
- * Fields of the StockMovement model
1110
- */
1111
- readonly fields: StockMovementFieldRefs;
1112
- }
1113
-
1114
- /**
1115
- * The delegate class that acts as a "Promise-like" for StockMovement.
1116
- * Why is this prefixed with `Prisma__`?
1117
- * Because we want to prevent naming conflicts as mentioned in
1118
- * https://github.com/prisma/prisma-client-js/issues/707
1119
- */
1120
- export interface Prisma__StockMovementClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1121
- readonly [Symbol.toStringTag]: "PrismaPromise"
1122
- material<T extends Prisma.StockMovement$materialArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$materialArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DispatchMaterialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1123
- /**
1124
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1125
- * @param onfulfilled The callback to execute when the Promise is resolved.
1126
- * @param onrejected The callback to execute when the Promise is rejected.
1127
- * @returns A Promise for the completion of which ever callback is executed.
1128
- */
1129
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1130
- /**
1131
- * Attaches a callback for only the rejection of the Promise.
1132
- * @param onrejected The callback to execute when the Promise is rejected.
1133
- * @returns A Promise for the completion of the callback.
1134
- */
1135
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1136
- /**
1137
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1138
- * resolved value cannot be modified from the callback.
1139
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1140
- * @returns A Promise for the completion of the callback.
1141
- */
1142
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1143
- }
1144
-
1145
-
1146
-
1147
-
1148
- /**
1149
- * Fields of the StockMovement model
1150
- */
1151
- export interface StockMovementFieldRefs {
1152
- readonly id: Prisma.FieldRef<"StockMovement", 'String'>
1153
- readonly no: Prisma.FieldRef<"StockMovement", 'Int'>
1154
- readonly movementType: Prisma.FieldRef<"StockMovement", 'String'>
1155
- readonly to: Prisma.FieldRef<"StockMovement", 'String'>
1156
- readonly toId: Prisma.FieldRef<"StockMovement", 'String'>
1157
- readonly from: Prisma.FieldRef<"StockMovement", 'String'>
1158
- readonly fromId: Prisma.FieldRef<"StockMovement", 'String'>
1159
- readonly quantity: Prisma.FieldRef<"StockMovement", 'String'>
1160
- readonly createdAt: Prisma.FieldRef<"StockMovement", 'DateTime'>
1161
- readonly updatedAt: Prisma.FieldRef<"StockMovement", 'DateTime'>
1162
- }
1163
-
1164
-
1165
- // Custom InputTypes
1166
- /**
1167
- * StockMovement findUnique
1168
- */
1169
- export type StockMovementFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1170
- /**
1171
- * Select specific fields to fetch from the StockMovement
1172
- */
1173
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1174
- /**
1175
- * Omit specific fields from the StockMovement
1176
- */
1177
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1178
- /**
1179
- * Choose, which related nodes to fetch as well
1180
- */
1181
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1182
- /**
1183
- * Filter, which StockMovement to fetch.
1184
- */
1185
- where: Prisma.StockMovementWhereUniqueInput
1186
- }
1187
-
1188
- /**
1189
- * StockMovement findUniqueOrThrow
1190
- */
1191
- export type StockMovementFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
- /**
1193
- * Select specific fields to fetch from the StockMovement
1194
- */
1195
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1196
- /**
1197
- * Omit specific fields from the StockMovement
1198
- */
1199
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1200
- /**
1201
- * Choose, which related nodes to fetch as well
1202
- */
1203
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1204
- /**
1205
- * Filter, which StockMovement to fetch.
1206
- */
1207
- where: Prisma.StockMovementWhereUniqueInput
1208
- }
1209
-
1210
- /**
1211
- * StockMovement findFirst
1212
- */
1213
- export type StockMovementFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1214
- /**
1215
- * Select specific fields to fetch from the StockMovement
1216
- */
1217
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1218
- /**
1219
- * Omit specific fields from the StockMovement
1220
- */
1221
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1222
- /**
1223
- * Choose, which related nodes to fetch as well
1224
- */
1225
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1226
- /**
1227
- * Filter, which StockMovement to fetch.
1228
- */
1229
- where?: Prisma.StockMovementWhereInput
1230
- /**
1231
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1232
- *
1233
- * Determine the order of StockMovements to fetch.
1234
- */
1235
- orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
1236
- /**
1237
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1238
- *
1239
- * Sets the position for searching for StockMovements.
1240
- */
1241
- cursor?: Prisma.StockMovementWhereUniqueInput
1242
- /**
1243
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1244
- *
1245
- * Take `±n` StockMovements from the position of the cursor.
1246
- */
1247
- take?: number
1248
- /**
1249
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1250
- *
1251
- * Skip the first `n` StockMovements.
1252
- */
1253
- skip?: number
1254
- /**
1255
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1256
- *
1257
- * Filter by unique combinations of StockMovements.
1258
- */
1259
- distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
1260
- }
1261
-
1262
- /**
1263
- * StockMovement findFirstOrThrow
1264
- */
1265
- export type StockMovementFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
- /**
1267
- * Select specific fields to fetch from the StockMovement
1268
- */
1269
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1270
- /**
1271
- * Omit specific fields from the StockMovement
1272
- */
1273
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1274
- /**
1275
- * Choose, which related nodes to fetch as well
1276
- */
1277
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1278
- /**
1279
- * Filter, which StockMovement to fetch.
1280
- */
1281
- where?: Prisma.StockMovementWhereInput
1282
- /**
1283
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1284
- *
1285
- * Determine the order of StockMovements to fetch.
1286
- */
1287
- orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
1288
- /**
1289
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1290
- *
1291
- * Sets the position for searching for StockMovements.
1292
- */
1293
- cursor?: Prisma.StockMovementWhereUniqueInput
1294
- /**
1295
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1296
- *
1297
- * Take `±n` StockMovements from the position of the cursor.
1298
- */
1299
- take?: number
1300
- /**
1301
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1302
- *
1303
- * Skip the first `n` StockMovements.
1304
- */
1305
- skip?: number
1306
- /**
1307
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1308
- *
1309
- * Filter by unique combinations of StockMovements.
1310
- */
1311
- distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
1312
- }
1313
-
1314
- /**
1315
- * StockMovement findMany
1316
- */
1317
- export type StockMovementFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
- /**
1319
- * Select specific fields to fetch from the StockMovement
1320
- */
1321
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1322
- /**
1323
- * Omit specific fields from the StockMovement
1324
- */
1325
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1326
- /**
1327
- * Choose, which related nodes to fetch as well
1328
- */
1329
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1330
- /**
1331
- * Filter, which StockMovements to fetch.
1332
- */
1333
- where?: Prisma.StockMovementWhereInput
1334
- /**
1335
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1336
- *
1337
- * Determine the order of StockMovements to fetch.
1338
- */
1339
- orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
1340
- /**
1341
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1342
- *
1343
- * Sets the position for listing StockMovements.
1344
- */
1345
- cursor?: Prisma.StockMovementWhereUniqueInput
1346
- /**
1347
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1348
- *
1349
- * Take `±n` StockMovements from the position of the cursor.
1350
- */
1351
- take?: number
1352
- /**
1353
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1354
- *
1355
- * Skip the first `n` StockMovements.
1356
- */
1357
- skip?: number
1358
- distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
1359
- }
1360
-
1361
- /**
1362
- * StockMovement create
1363
- */
1364
- export type StockMovementCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1365
- /**
1366
- * Select specific fields to fetch from the StockMovement
1367
- */
1368
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1369
- /**
1370
- * Omit specific fields from the StockMovement
1371
- */
1372
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1373
- /**
1374
- * Choose, which related nodes to fetch as well
1375
- */
1376
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1377
- /**
1378
- * The data needed to create a StockMovement.
1379
- */
1380
- data: Prisma.XOR<Prisma.StockMovementCreateInput, Prisma.StockMovementUncheckedCreateInput>
1381
- }
1382
-
1383
- /**
1384
- * StockMovement createMany
1385
- */
1386
- export type StockMovementCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1387
- /**
1388
- * The data used to create many StockMovements.
1389
- */
1390
- data: Prisma.StockMovementCreateManyInput | Prisma.StockMovementCreateManyInput[]
1391
- skipDuplicates?: boolean
1392
- }
1393
-
1394
- /**
1395
- * StockMovement createManyAndReturn
1396
- */
1397
- export type StockMovementCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1398
- /**
1399
- * Select specific fields to fetch from the StockMovement
1400
- */
1401
- select?: Prisma.StockMovementSelectCreateManyAndReturn<ExtArgs> | null
1402
- /**
1403
- * Omit specific fields from the StockMovement
1404
- */
1405
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1406
- /**
1407
- * The data used to create many StockMovements.
1408
- */
1409
- data: Prisma.StockMovementCreateManyInput | Prisma.StockMovementCreateManyInput[]
1410
- skipDuplicates?: boolean
1411
- }
1412
-
1413
- /**
1414
- * StockMovement update
1415
- */
1416
- export type StockMovementUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
- /**
1418
- * Select specific fields to fetch from the StockMovement
1419
- */
1420
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1421
- /**
1422
- * Omit specific fields from the StockMovement
1423
- */
1424
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1425
- /**
1426
- * Choose, which related nodes to fetch as well
1427
- */
1428
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1429
- /**
1430
- * The data needed to update a StockMovement.
1431
- */
1432
- data: Prisma.XOR<Prisma.StockMovementUpdateInput, Prisma.StockMovementUncheckedUpdateInput>
1433
- /**
1434
- * Choose, which StockMovement to update.
1435
- */
1436
- where: Prisma.StockMovementWhereUniqueInput
1437
- }
1438
-
1439
- /**
1440
- * StockMovement updateMany
1441
- */
1442
- export type StockMovementUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
- /**
1444
- * The data used to update StockMovements.
1445
- */
1446
- data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyInput>
1447
- /**
1448
- * Filter which StockMovements to update
1449
- */
1450
- where?: Prisma.StockMovementWhereInput
1451
- /**
1452
- * Limit how many StockMovements to update.
1453
- */
1454
- limit?: number
1455
- }
1456
-
1457
- /**
1458
- * StockMovement updateManyAndReturn
1459
- */
1460
- export type StockMovementUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1461
- /**
1462
- * Select specific fields to fetch from the StockMovement
1463
- */
1464
- select?: Prisma.StockMovementSelectUpdateManyAndReturn<ExtArgs> | null
1465
- /**
1466
- * Omit specific fields from the StockMovement
1467
- */
1468
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1469
- /**
1470
- * The data used to update StockMovements.
1471
- */
1472
- data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyInput>
1473
- /**
1474
- * Filter which StockMovements to update
1475
- */
1476
- where?: Prisma.StockMovementWhereInput
1477
- /**
1478
- * Limit how many StockMovements to update.
1479
- */
1480
- limit?: number
1481
- }
1482
-
1483
- /**
1484
- * StockMovement upsert
1485
- */
1486
- export type StockMovementUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1487
- /**
1488
- * Select specific fields to fetch from the StockMovement
1489
- */
1490
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1491
- /**
1492
- * Omit specific fields from the StockMovement
1493
- */
1494
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1495
- /**
1496
- * Choose, which related nodes to fetch as well
1497
- */
1498
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1499
- /**
1500
- * The filter to search for the StockMovement to update in case it exists.
1501
- */
1502
- where: Prisma.StockMovementWhereUniqueInput
1503
- /**
1504
- * In case the StockMovement found by the `where` argument doesn't exist, create a new StockMovement with this data.
1505
- */
1506
- create: Prisma.XOR<Prisma.StockMovementCreateInput, Prisma.StockMovementUncheckedCreateInput>
1507
- /**
1508
- * In case the StockMovement was found with the provided `where` argument, update it with this data.
1509
- */
1510
- update: Prisma.XOR<Prisma.StockMovementUpdateInput, Prisma.StockMovementUncheckedUpdateInput>
1511
- }
1512
-
1513
- /**
1514
- * StockMovement delete
1515
- */
1516
- export type StockMovementDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1517
- /**
1518
- * Select specific fields to fetch from the StockMovement
1519
- */
1520
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1521
- /**
1522
- * Omit specific fields from the StockMovement
1523
- */
1524
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1525
- /**
1526
- * Choose, which related nodes to fetch as well
1527
- */
1528
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1529
- /**
1530
- * Filter which StockMovement to delete.
1531
- */
1532
- where: Prisma.StockMovementWhereUniqueInput
1533
- }
1534
-
1535
- /**
1536
- * StockMovement deleteMany
1537
- */
1538
- export type StockMovementDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1539
- /**
1540
- * Filter which StockMovements to delete
1541
- */
1542
- where?: Prisma.StockMovementWhereInput
1543
- /**
1544
- * Limit how many StockMovements to delete.
1545
- */
1546
- limit?: number
1547
- }
1548
-
1549
- /**
1550
- * StockMovement.material
1551
- */
1552
- export type StockMovement$materialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
- /**
1554
- * Select specific fields to fetch from the DispatchMaterial
1555
- */
1556
- select?: Prisma.DispatchMaterialSelect<ExtArgs> | null
1557
- /**
1558
- * Omit specific fields from the DispatchMaterial
1559
- */
1560
- omit?: Prisma.DispatchMaterialOmit<ExtArgs> | null
1561
- /**
1562
- * Choose, which related nodes to fetch as well
1563
- */
1564
- include?: Prisma.DispatchMaterialInclude<ExtArgs> | null
1565
- where?: Prisma.DispatchMaterialWhereInput
1566
- orderBy?: Prisma.DispatchMaterialOrderByWithRelationInput | Prisma.DispatchMaterialOrderByWithRelationInput[]
1567
- cursor?: Prisma.DispatchMaterialWhereUniqueInput
1568
- take?: number
1569
- skip?: number
1570
- distinct?: Prisma.DispatchMaterialScalarFieldEnum | Prisma.DispatchMaterialScalarFieldEnum[]
1571
- }
1572
-
1573
- /**
1574
- * StockMovement without action
1575
- */
1576
- export type StockMovementDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1577
- /**
1578
- * Select specific fields to fetch from the StockMovement
1579
- */
1580
- select?: Prisma.StockMovementSelect<ExtArgs> | null
1581
- /**
1582
- * Omit specific fields from the StockMovement
1583
- */
1584
- omit?: Prisma.StockMovementOmit<ExtArgs> | null
1585
- /**
1586
- * Choose, which related nodes to fetch as well
1587
- */
1588
- include?: Prisma.StockMovementInclude<ExtArgs> | null
1589
- }