@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.1

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 (412) hide show
  1. package/lib/generated/prisma/browser.d.ts +514 -0
  2. package/lib/generated/prisma/browser.js +57 -0
  3. package/lib/generated/prisma/browser.js.map +1 -0
  4. package/lib/generated/prisma/client.d.ts +531 -0
  5. package/lib/generated/prisma/client.js +69 -0
  6. package/lib/generated/prisma/client.js.map +1 -0
  7. package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
  8. package/lib/generated/prisma/commonInputTypes.js +12 -0
  9. package/lib/generated/prisma/commonInputTypes.js.map +1 -0
  10. package/lib/generated/prisma/dmmf.d.ts +4085 -0
  11. package/lib/generated/prisma/dmmf.js +27551 -0
  12. package/lib/generated/prisma/dmmf.js.map +1 -0
  13. package/lib/generated/prisma/enums.d.ts +216 -0
  14. package/lib/generated/prisma/enums.js +205 -0
  15. package/lib/generated/prisma/enums.js.map +1 -0
  16. package/lib/generated/prisma/internal/class.d.ts +1237 -0
  17. package/lib/generated/prisma/internal/class.js +79 -0
  18. package/lib/generated/prisma/internal/class.js.map +1 -0
  19. package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
  20. package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
  21. package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
  23. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
  24. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/lib/generated/prisma/kysely-types.d.ts +1499 -0
  26. package/lib/generated/prisma/kysely-types.js +196 -0
  27. package/lib/generated/prisma/kysely-types.js.map +1 -0
  28. package/lib/generated/prisma/models/Address.d.ts +1339 -0
  29. package/lib/generated/prisma/models/Address.js +12 -0
  30. package/lib/generated/prisma/models/Address.js.map +1 -0
  31. package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
  32. package/lib/generated/prisma/models/Administrator.js +12 -0
  33. package/lib/generated/prisma/models/Administrator.js.map +1 -0
  34. package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
  35. package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
  36. package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
  37. package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
  38. package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
  39. package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
  40. package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
  41. package/lib/generated/prisma/models/ApiToken.js +12 -0
  42. package/lib/generated/prisma/models/ApiToken.js.map +1 -0
  43. package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
  44. package/lib/generated/prisma/models/AwsBucket.js +12 -0
  45. package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
  46. package/lib/generated/prisma/models/Card.d.ts +1533 -0
  47. package/lib/generated/prisma/models/Card.js +12 -0
  48. package/lib/generated/prisma/models/Card.js.map +1 -0
  49. package/lib/generated/prisma/models/Cart.d.ts +2315 -0
  50. package/lib/generated/prisma/models/Cart.js +12 -0
  51. package/lib/generated/prisma/models/Cart.js.map +1 -0
  52. package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
  53. package/lib/generated/prisma/models/CartCost.js +12 -0
  54. package/lib/generated/prisma/models/CartCost.js.map +1 -0
  55. package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
  56. package/lib/generated/prisma/models/CartLine.js +12 -0
  57. package/lib/generated/prisma/models/CartLine.js.map +1 -0
  58. package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
  59. package/lib/generated/prisma/models/CartLineModifier.js +12 -0
  60. package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
  61. package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
  62. package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
  63. package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
  64. package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
  65. package/lib/generated/prisma/models/Checkout.js +12 -0
  66. package/lib/generated/prisma/models/Checkout.js.map +1 -0
  67. package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
  68. package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
  69. package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
  70. package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
  71. package/lib/generated/prisma/models/CheckoutLine.js +12 -0
  72. package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
  73. package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
  74. package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
  75. package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
  76. package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
  77. package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
  78. package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
  79. package/lib/generated/prisma/models/Collection.d.ts +1961 -0
  80. package/lib/generated/prisma/models/Collection.js +12 -0
  81. package/lib/generated/prisma/models/Collection.js.map +1 -0
  82. package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
  83. package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
  84. package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
  85. package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
  86. package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
  87. package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
  88. package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
  89. package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
  90. package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
  91. package/lib/generated/prisma/models/Customer.d.ts +2964 -0
  92. package/lib/generated/prisma/models/Customer.js +12 -0
  93. package/lib/generated/prisma/models/Customer.js.map +1 -0
  94. package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
  95. package/lib/generated/prisma/models/CustomerGroup.js +12 -0
  96. package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
  97. package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
  98. package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
  99. package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
  100. package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
  101. package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
  102. package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
  103. package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
  104. package/lib/generated/prisma/models/DiscountCode.js +12 -0
  105. package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
  106. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
  107. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
  108. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
  109. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
  110. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
  111. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
  112. package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
  113. package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
  114. package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
  115. package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
  116. package/lib/generated/prisma/models/EventLog.js +12 -0
  117. package/lib/generated/prisma/models/EventLog.js.map +1 -0
  118. package/lib/generated/prisma/models/Facet.d.ts +1266 -0
  119. package/lib/generated/prisma/models/Facet.js +12 -0
  120. package/lib/generated/prisma/models/Facet.js.map +1 -0
  121. package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
  122. package/lib/generated/prisma/models/FacetOption.js +12 -0
  123. package/lib/generated/prisma/models/FacetOption.js.map +1 -0
  124. package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
  125. package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
  126. package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
  127. package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
  128. package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
  129. package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
  130. package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
  131. package/lib/generated/prisma/models/FeatureFlag.js +12 -0
  132. package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
  133. package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
  134. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
  135. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
  136. package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
  137. package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
  138. package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
  139. package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
  140. package/lib/generated/prisma/models/FreeItemRule.js +12 -0
  141. package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
  142. package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
  143. package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
  144. package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
  145. package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
  146. package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
  147. package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
  148. package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
  149. package/lib/generated/prisma/models/Ingredient.js +12 -0
  150. package/lib/generated/prisma/models/Ingredient.js.map +1 -0
  151. package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
  152. package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
  153. package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
  154. package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
  155. package/lib/generated/prisma/models/IngredientToStore.js +12 -0
  156. package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
  157. package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
  158. package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
  159. package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
  160. package/lib/generated/prisma/models/Media.d.ts +2127 -0
  161. package/lib/generated/prisma/models/Media.js +12 -0
  162. package/lib/generated/prisma/models/Media.js.map +1 -0
  163. package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
  164. package/lib/generated/prisma/models/Modifier.js +12 -0
  165. package/lib/generated/prisma/models/Modifier.js.map +1 -0
  166. package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
  167. package/lib/generated/prisma/models/ModifierGroup.js +12 -0
  168. package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
  169. package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
  170. package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
  171. package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
  172. package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
  173. package/lib/generated/prisma/models/ModifierOption.js +12 -0
  174. package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
  175. package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
  176. package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
  177. package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
  178. package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
  179. package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
  180. package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
  181. package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
  182. package/lib/generated/prisma/models/OneTimeToken.js +12 -0
  183. package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
  184. package/lib/generated/prisma/models/Payment.d.ts +1560 -0
  185. package/lib/generated/prisma/models/Payment.js +12 -0
  186. package/lib/generated/prisma/models/Payment.js.map +1 -0
  187. package/lib/generated/prisma/models/Platform.d.ts +7442 -0
  188. package/lib/generated/prisma/models/Platform.js +12 -0
  189. package/lib/generated/prisma/models/Platform.js.map +1 -0
  190. package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
  191. package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
  192. package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
  193. package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
  194. package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
  195. package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
  196. package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
  197. package/lib/generated/prisma/models/PrepTime.js +12 -0
  198. package/lib/generated/prisma/models/PrepTime.js.map +1 -0
  199. package/lib/generated/prisma/models/Product.d.ts +2975 -0
  200. package/lib/generated/prisma/models/Product.js +12 -0
  201. package/lib/generated/prisma/models/Product.js.map +1 -0
  202. package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
  203. package/lib/generated/prisma/models/ProductCategory.js +12 -0
  204. package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
  205. package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
  206. package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
  207. package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
  208. package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
  209. package/lib/generated/prisma/models/ProductListing.js +12 -0
  210. package/lib/generated/prisma/models/ProductListing.js.map +1 -0
  211. package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
  212. package/lib/generated/prisma/models/ProductToTag.js +12 -0
  213. package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
  214. package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
  215. package/lib/generated/prisma/models/ProductVariant.js +12 -0
  216. package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
  217. package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
  218. package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
  219. package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
  220. package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
  221. package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
  222. package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
  223. package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
  224. package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
  225. package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
  226. package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
  227. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
  228. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
  229. package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
  230. package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
  231. package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
  232. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
  233. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
  234. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
  235. package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
  236. package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
  237. package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
  238. package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
  239. package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
  240. package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
  241. package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
  242. package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
  243. package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
  244. package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
  245. package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
  246. package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
  247. package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
  248. package/lib/generated/prisma/models/ProductVarietal.js +12 -0
  249. package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
  250. package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
  251. package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
  252. package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
  253. package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
  254. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
  255. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
  256. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
  257. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
  258. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
  259. package/lib/generated/prisma/models/Refund.d.ts +1707 -0
  260. package/lib/generated/prisma/models/Refund.js +12 -0
  261. package/lib/generated/prisma/models/Refund.js.map +1 -0
  262. package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
  263. package/lib/generated/prisma/models/RefundLine.js +12 -0
  264. package/lib/generated/prisma/models/RefundLine.js.map +1 -0
  265. package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
  266. package/lib/generated/prisma/models/RelatedItems.js +12 -0
  267. package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
  268. package/lib/generated/prisma/models/Role.d.ts +1264 -0
  269. package/lib/generated/prisma/models/Role.js +12 -0
  270. package/lib/generated/prisma/models/Role.js.map +1 -0
  271. package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
  272. package/lib/generated/prisma/models/ScheduledTask.js +12 -0
  273. package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
  274. package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
  275. package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
  276. package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
  277. package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
  278. package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
  279. package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
  280. package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
  281. package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
  282. package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
  283. package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
  284. package/lib/generated/prisma/models/SmsConversation.js +12 -0
  285. package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
  286. package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
  287. package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
  288. package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
  289. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
  290. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
  291. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
  292. package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
  293. package/lib/generated/prisma/models/StockLevel.js +12 -0
  294. package/lib/generated/prisma/models/StockLevel.js.map +1 -0
  295. package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
  296. package/lib/generated/prisma/models/StockLocation.js +12 -0
  297. package/lib/generated/prisma/models/StockLocation.js.map +1 -0
  298. package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
  299. package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
  300. package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
  301. package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
  302. package/lib/generated/prisma/models/StockMovement.js +12 -0
  303. package/lib/generated/prisma/models/StockMovement.js.map +1 -0
  304. package/lib/generated/prisma/models/Store.d.ts +4487 -0
  305. package/lib/generated/prisma/models/Store.js +12 -0
  306. package/lib/generated/prisma/models/Store.js.map +1 -0
  307. package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
  308. package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
  309. package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
  310. package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
  311. package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
  312. package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
  313. package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
  314. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
  315. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
  316. package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
  317. package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
  318. package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
  319. package/lib/generated/prisma/models/Tag.d.ts +1581 -0
  320. package/lib/generated/prisma/models/Tag.js +12 -0
  321. package/lib/generated/prisma/models/Tag.js.map +1 -0
  322. package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
  323. package/lib/generated/prisma/models/TaxCategory.js +12 -0
  324. package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
  325. package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
  326. package/lib/generated/prisma/models/Transaction.js +12 -0
  327. package/lib/generated/prisma/models/Transaction.js.map +1 -0
  328. package/lib/generated/prisma/models/User.d.ts +1907 -0
  329. package/lib/generated/prisma/models/User.js +12 -0
  330. package/lib/generated/prisma/models/User.js.map +1 -0
  331. package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
  332. package/lib/generated/prisma/models/UserToRole.js +12 -0
  333. package/lib/generated/prisma/models/UserToRole.js.map +1 -0
  334. package/lib/generated/prisma/models.d.ts +103 -0
  335. package/lib/generated/prisma/models.js +3 -0
  336. package/lib/generated/prisma/models.js.map +1 -0
  337. package/lib/generated/prisma/pjtg.d.ts +145 -0
  338. package/lib/generated/prisma/pjtg.js +3 -0
  339. package/lib/generated/prisma/pjtg.js.map +1 -0
  340. package/lib/helpers.d.ts +37 -0
  341. package/lib/helpers.js +226 -0
  342. package/lib/helpers.js.map +1 -0
  343. package/lib/index.d.ts +10 -0
  344. package/lib/index.js.map +1 -0
  345. package/lib/kysely/index.d.ts +2 -0
  346. package/lib/kysely/index.js +19 -0
  347. package/lib/kysely/index.js.map +1 -0
  348. package/lib/kysely/kysely-db.d.ts +3 -0
  349. package/lib/kysely/kysely-db.js +3 -0
  350. package/lib/kysely/kysely-db.js.map +1 -0
  351. package/lib/kysely/utils/index.d.ts +4 -0
  352. package/lib/kysely/utils/index.js +21 -0
  353. package/lib/kysely/utils/index.js.map +1 -0
  354. package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
  355. package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
  356. package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
  357. package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
  358. package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
  359. package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
  360. package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
  361. package/lib/kysely/utils/serialize-bigint-value.js +13 -0
  362. package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
  363. package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
  364. package/lib/kysely/utils/serialize-numeric-value.js +11 -0
  365. package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
  366. package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
  367. package/lib/kysely/utils/shallow-dehydrate.js +3 -0
  368. package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
  369. package/lib/prisma-module/index.d.ts +4 -0
  370. package/lib/prisma-module/index.js +21 -0
  371. package/lib/prisma-module/index.js.map +1 -0
  372. package/lib/prisma-module/prisma-options.d.ts +59 -0
  373. package/lib/prisma-module/prisma-options.js +3 -0
  374. package/lib/prisma-module/prisma-options.js.map +1 -0
  375. package/lib/prisma-module/prisma.constants.d.ts +1 -0
  376. package/lib/prisma-module/prisma.constants.js +5 -0
  377. package/lib/prisma-module/prisma.constants.js.map +1 -0
  378. package/lib/prisma-module/prisma.module.d.ts +8 -0
  379. package/lib/prisma-module/prisma.module.js +73 -0
  380. package/lib/prisma-module/prisma.module.js.map +1 -0
  381. package/lib/prisma-module/prisma.service.d.ts +5 -0
  382. package/lib/prisma-module/prisma.service.js +29 -0
  383. package/lib/prisma-module/prisma.service.js.map +1 -0
  384. package/lib/tsconfig.build.tsbuildinfo +1 -0
  385. package/lib/types.d.ts +7 -0
  386. package/lib/types.js +3 -0
  387. package/lib/types.js.map +1 -0
  388. package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
  389. package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
  390. package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
  391. package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
  392. package/lib/utils/ignore-prisma-builtins.js +3 -0
  393. package/lib/utils/ignore-prisma-builtins.js.map +1 -0
  394. package/lib/utils/index.d.ts +3 -0
  395. package/lib/utils/index.js +20 -0
  396. package/lib/utils/index.js.map +1 -0
  397. package/lib/utils/prisma-where-to-sql.d.ts +5 -0
  398. package/lib/utils/prisma-where-to-sql.js +94 -0
  399. package/lib/utils/prisma-where-to-sql.js.map +1 -0
  400. package/lib/web360-prisma.constants.d.ts +2 -0
  401. package/lib/web360-prisma.constants.js +6 -0
  402. package/lib/web360-prisma.constants.js.map +1 -0
  403. package/lib/web360-prisma.module.d.ts +7 -0
  404. package/lib/web360-prisma.module.js +81 -0
  405. package/lib/web360-prisma.module.js.map +1 -0
  406. package/lib/web360-prisma.options.d.ts +38 -0
  407. package/lib/web360-prisma.options.js +3 -0
  408. package/lib/web360-prisma.options.js.map +1 -0
  409. package/lib/web360-prisma.service.d.ts +57 -0
  410. package/lib/web360-prisma.service.js +57 -0
  411. package/lib/web360-prisma.service.js.map +1 -0
  412. package/package.json +3 -2
@@ -0,0 +1,1548 @@
1
+ import type * as PJTG from '../pjtg';
2
+ import type * as runtime from "@prisma/client/runtime/client";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model SmsConversation
6
+ *
7
+ */
8
+ export type SmsConversationModel = runtime.Types.Result.DefaultSelection<Prisma.$SmsConversationPayload>;
9
+ export type AggregateSmsConversation = {
10
+ _count: SmsConversationCountAggregateOutputType | null;
11
+ _avg: SmsConversationAvgAggregateOutputType | null;
12
+ _sum: SmsConversationSumAggregateOutputType | null;
13
+ _min: SmsConversationMinAggregateOutputType | null;
14
+ _max: SmsConversationMaxAggregateOutputType | null;
15
+ };
16
+ export type SmsConversationAvgAggregateOutputType = {
17
+ id: number | null;
18
+ customerId: number | null;
19
+ };
20
+ export type SmsConversationSumAggregateOutputType = {
21
+ id: bigint | null;
22
+ customerId: bigint | null;
23
+ };
24
+ export type SmsConversationMinAggregateOutputType = {
25
+ id: bigint | null;
26
+ customerId: bigint | null;
27
+ customerPhone: string | null;
28
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION') | null;
29
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed') | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ closedAt: Date | null;
33
+ errorMessage: string | null;
34
+ };
35
+ export type SmsConversationMaxAggregateOutputType = {
36
+ id: bigint | null;
37
+ customerId: bigint | null;
38
+ customerPhone: string | null;
39
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION') | null;
40
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed') | null;
41
+ createdAt: Date | null;
42
+ updatedAt: Date | null;
43
+ closedAt: Date | null;
44
+ errorMessage: string | null;
45
+ };
46
+ export type SmsConversationCountAggregateOutputType = {
47
+ id: number;
48
+ customerId: number;
49
+ customerPhone: number;
50
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
51
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
52
+ createdAt: number;
53
+ updatedAt: number;
54
+ closedAt: number;
55
+ metadata: PrismaJson.KeyValueMetadata;
56
+ errorMessage: number;
57
+ _all: number;
58
+ };
59
+ export type SmsConversationAvgAggregateInputType = {
60
+ id?: true;
61
+ customerId?: true;
62
+ };
63
+ export type SmsConversationSumAggregateInputType = {
64
+ id?: true;
65
+ customerId?: true;
66
+ };
67
+ export type SmsConversationMinAggregateInputType = {
68
+ id?: true;
69
+ customerId?: true;
70
+ customerPhone?: true;
71
+ purpose?: true;
72
+ state?: true;
73
+ createdAt?: true;
74
+ updatedAt?: true;
75
+ closedAt?: true;
76
+ errorMessage?: true;
77
+ };
78
+ export type SmsConversationMaxAggregateInputType = {
79
+ id?: true;
80
+ customerId?: true;
81
+ customerPhone?: true;
82
+ purpose?: true;
83
+ state?: true;
84
+ createdAt?: true;
85
+ updatedAt?: true;
86
+ closedAt?: true;
87
+ errorMessage?: true;
88
+ };
89
+ export type SmsConversationCountAggregateInputType = {
90
+ id?: true;
91
+ customerId?: true;
92
+ customerPhone?: true;
93
+ purpose?: true;
94
+ state?: true;
95
+ createdAt?: true;
96
+ updatedAt?: true;
97
+ closedAt?: true;
98
+ metadata?: true;
99
+ errorMessage?: true;
100
+ _all?: true;
101
+ };
102
+ export type SmsConversationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
+ /**
104
+ * Filter which SmsConversation to aggregate.
105
+ */
106
+ where?: Prisma.SmsConversationWhereInput;
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
109
+ *
110
+ * Determine the order of SmsConversations to fetch.
111
+ */
112
+ orderBy?: Prisma.SmsConversationOrderByWithRelationInput | Prisma.SmsConversationOrderByWithRelationInput[];
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
115
+ *
116
+ * Sets the start position
117
+ */
118
+ cursor?: Prisma.SmsConversationWhereUniqueInput;
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Take `±n` SmsConversations from the position of the cursor.
123
+ */
124
+ take?: number;
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Skip the first `n` SmsConversations.
129
+ */
130
+ skip?: number;
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Count returned SmsConversations
135
+ **/
136
+ _count?: true | SmsConversationCountAggregateInputType;
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to average
141
+ **/
142
+ _avg?: SmsConversationAvgAggregateInputType;
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to sum
147
+ **/
148
+ _sum?: SmsConversationSumAggregateInputType;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to find the minimum value
153
+ **/
154
+ _min?: SmsConversationMinAggregateInputType;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to find the maximum value
159
+ **/
160
+ _max?: SmsConversationMaxAggregateInputType;
161
+ };
162
+ export type GetSmsConversationAggregateType<T extends SmsConversationAggregateArgs> = {
163
+ [P in keyof T & keyof AggregateSmsConversation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSmsConversation[P]> : Prisma.GetScalarType<T[P], AggregateSmsConversation[P]>;
164
+ };
165
+ export type SmsConversationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
166
+ where?: Prisma.SmsConversationWhereInput;
167
+ orderBy?: Prisma.SmsConversationOrderByWithAggregationInput | Prisma.SmsConversationOrderByWithAggregationInput[];
168
+ by: Prisma.SmsConversationScalarFieldEnum[] | Prisma.SmsConversationScalarFieldEnum;
169
+ having?: Prisma.SmsConversationScalarWhereWithAggregatesInput;
170
+ take?: number;
171
+ skip?: number;
172
+ _count?: SmsConversationCountAggregateInputType | true;
173
+ _avg?: SmsConversationAvgAggregateInputType;
174
+ _sum?: SmsConversationSumAggregateInputType;
175
+ _min?: SmsConversationMinAggregateInputType;
176
+ _max?: SmsConversationMaxAggregateInputType;
177
+ };
178
+ export type SmsConversationGroupByOutputType = {
179
+ id: bigint;
180
+ customerId: bigint;
181
+ customerPhone: string;
182
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
183
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
184
+ createdAt: Date;
185
+ updatedAt: Date;
186
+ closedAt: Date | null;
187
+ metadata: PrismaJson.KeyValueMetadata[];
188
+ errorMessage: string | null;
189
+ _count: SmsConversationCountAggregateOutputType | null;
190
+ _avg: SmsConversationAvgAggregateOutputType | null;
191
+ _sum: SmsConversationSumAggregateOutputType | null;
192
+ _min: SmsConversationMinAggregateOutputType | null;
193
+ _max: SmsConversationMaxAggregateOutputType | null;
194
+ };
195
+ type GetSmsConversationGroupByPayload<T extends SmsConversationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SmsConversationGroupByOutputType, T['by']> & {
196
+ [P in ((keyof T) & (keyof SmsConversationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SmsConversationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SmsConversationGroupByOutputType[P]>;
197
+ }>>;
198
+ export type SmsConversationWhereInput = {
199
+ AND?: Prisma.SmsConversationWhereInput | Prisma.SmsConversationWhereInput[];
200
+ OR?: Prisma.SmsConversationWhereInput[];
201
+ NOT?: Prisma.SmsConversationWhereInput | Prisma.SmsConversationWhereInput[];
202
+ id?: Prisma.BigIntFilter<"SmsConversation"> | bigint | number;
203
+ customerId?: Prisma.BigIntFilter<"SmsConversation"> | bigint | number;
204
+ customerPhone?: Prisma.StringFilter<"SmsConversation"> | string;
205
+ purpose?: PJTG.TypedStringFilter<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
206
+ state?: PJTG.TypedStringFilter<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
207
+ createdAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
208
+ updatedAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
209
+ closedAt?: Prisma.DateTimeNullableFilter<"SmsConversation"> | Date | string | null;
210
+ metadata?: PJTG.NullableListFilter<PrismaJson.KeyValueMetadata>;
211
+ errorMessage?: Prisma.StringNullableFilter<"SmsConversation"> | string | null;
212
+ smsMessage?: Prisma.SmsConversationMessageListRelationFilter;
213
+ customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>;
214
+ };
215
+ export type SmsConversationOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder;
217
+ customerId?: Prisma.SortOrder;
218
+ customerPhone?: Prisma.SortOrder;
219
+ purpose?: Prisma.SortOrder;
220
+ state?: Prisma.SortOrder;
221
+ createdAt?: Prisma.SortOrder;
222
+ updatedAt?: Prisma.SortOrder;
223
+ closedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
224
+ metadata?: Prisma.SortOrder;
225
+ errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
226
+ smsMessage?: Prisma.SmsConversationMessageOrderByRelationAggregateInput;
227
+ customer?: Prisma.CustomerOrderByWithRelationInput;
228
+ _relevance?: Prisma.SmsConversationOrderByRelevanceInput;
229
+ };
230
+ export type SmsConversationWhereUniqueInput = Prisma.AtLeast<{
231
+ id?: bigint | number;
232
+ AND?: Prisma.SmsConversationWhereInput | Prisma.SmsConversationWhereInput[];
233
+ OR?: Prisma.SmsConversationWhereInput[];
234
+ NOT?: Prisma.SmsConversationWhereInput | Prisma.SmsConversationWhereInput[];
235
+ customerId?: Prisma.BigIntFilter<"SmsConversation"> | bigint | number;
236
+ customerPhone?: Prisma.StringFilter<"SmsConversation"> | string;
237
+ purpose?: Prisma.StringFilter<"SmsConversation"> | string;
238
+ state?: Prisma.StringFilter<"SmsConversation"> | string;
239
+ createdAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
240
+ updatedAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
241
+ closedAt?: Prisma.DateTimeNullableFilter<"SmsConversation"> | Date | string | null;
242
+ metadata?: Prisma.JsonNullableListFilter<"SmsConversation">;
243
+ errorMessage?: Prisma.StringNullableFilter<"SmsConversation"> | string | null;
244
+ smsMessage?: Prisma.SmsConversationMessageListRelationFilter;
245
+ customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>;
246
+ }, "id">;
247
+ export type SmsConversationOrderByWithAggregationInput = {
248
+ id?: Prisma.SortOrder;
249
+ customerId?: Prisma.SortOrder;
250
+ customerPhone?: Prisma.SortOrder;
251
+ purpose?: Prisma.SortOrder;
252
+ state?: Prisma.SortOrder;
253
+ createdAt?: Prisma.SortOrder;
254
+ updatedAt?: Prisma.SortOrder;
255
+ closedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
256
+ metadata?: Prisma.SortOrder;
257
+ errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
258
+ _count?: Prisma.SmsConversationCountOrderByAggregateInput;
259
+ _avg?: Prisma.SmsConversationAvgOrderByAggregateInput;
260
+ _max?: Prisma.SmsConversationMaxOrderByAggregateInput;
261
+ _min?: Prisma.SmsConversationMinOrderByAggregateInput;
262
+ _sum?: Prisma.SmsConversationSumOrderByAggregateInput;
263
+ };
264
+ export type SmsConversationScalarWhereWithAggregatesInput = {
265
+ AND?: Prisma.SmsConversationScalarWhereWithAggregatesInput | Prisma.SmsConversationScalarWhereWithAggregatesInput[];
266
+ OR?: Prisma.SmsConversationScalarWhereWithAggregatesInput[];
267
+ NOT?: Prisma.SmsConversationScalarWhereWithAggregatesInput | Prisma.SmsConversationScalarWhereWithAggregatesInput[];
268
+ id?: Prisma.BigIntWithAggregatesFilter<"SmsConversation"> | bigint | number;
269
+ customerId?: Prisma.BigIntWithAggregatesFilter<"SmsConversation"> | bigint | number;
270
+ customerPhone?: Prisma.StringWithAggregatesFilter<"SmsConversation"> | string;
271
+ purpose?: PJTG.TypedStringWithAggregatesFilter<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
272
+ state?: PJTG.TypedStringWithAggregatesFilter<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
273
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"SmsConversation"> | Date | string;
274
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SmsConversation"> | Date | string;
275
+ closedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"SmsConversation"> | Date | string | null;
276
+ metadata?: PJTG.NullableListFilter<PrismaJson.KeyValueMetadata>;
277
+ errorMessage?: Prisma.StringNullableWithAggregatesFilter<"SmsConversation"> | string | null;
278
+ };
279
+ export type SmsConversationCreateInput = {
280
+ id?: bigint | number;
281
+ customerPhone: string;
282
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
283
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
284
+ createdAt?: Date | string;
285
+ updatedAt?: Date | string;
286
+ closedAt?: Date | string | null;
287
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
288
+ errorMessage?: string | null;
289
+ smsMessage?: Prisma.SmsConversationMessageCreateNestedManyWithoutConversationInput;
290
+ customer: Prisma.CustomerCreateNestedOneWithoutSmsConversationInput;
291
+ };
292
+ export type SmsConversationUncheckedCreateInput = {
293
+ id?: bigint | number;
294
+ customerId: bigint | number;
295
+ customerPhone: string;
296
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
297
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
298
+ createdAt?: Date | string;
299
+ updatedAt?: Date | string;
300
+ closedAt?: Date | string | null;
301
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
302
+ errorMessage?: string | null;
303
+ smsMessage?: Prisma.SmsConversationMessageUncheckedCreateNestedManyWithoutConversationInput;
304
+ };
305
+ export type SmsConversationUpdateInput = {
306
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
307
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
308
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
309
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
310
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
311
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
312
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
313
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
314
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
315
+ smsMessage?: Prisma.SmsConversationMessageUpdateManyWithoutConversationNestedInput;
316
+ customer?: Prisma.CustomerUpdateOneRequiredWithoutSmsConversationNestedInput;
317
+ };
318
+ export type SmsConversationUncheckedUpdateInput = {
319
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
320
+ customerId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
321
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
322
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
323
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
324
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
325
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
327
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
328
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
329
+ smsMessage?: Prisma.SmsConversationMessageUncheckedUpdateManyWithoutConversationNestedInput;
330
+ };
331
+ export type SmsConversationCreateManyInput = {
332
+ id?: bigint | number;
333
+ customerId: bigint | number;
334
+ customerPhone: string;
335
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
336
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
337
+ createdAt?: Date | string;
338
+ updatedAt?: Date | string;
339
+ closedAt?: Date | string | null;
340
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
341
+ errorMessage?: string | null;
342
+ };
343
+ export type SmsConversationUpdateManyMutationInput = {
344
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
345
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
347
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
348
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
349
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
350
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
351
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
352
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
353
+ };
354
+ export type SmsConversationUncheckedUpdateManyInput = {
355
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
356
+ customerId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
357
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
358
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
359
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
360
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
361
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
362
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
363
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
364
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
365
+ };
366
+ export type SmsConversationListRelationFilter = {
367
+ every?: Prisma.SmsConversationWhereInput;
368
+ some?: Prisma.SmsConversationWhereInput;
369
+ none?: Prisma.SmsConversationWhereInput;
370
+ };
371
+ export type SmsConversationOrderByRelationAggregateInput = {
372
+ _count?: Prisma.SortOrder;
373
+ };
374
+ export type SmsConversationScalarRelationFilter = {
375
+ is?: Prisma.SmsConversationWhereInput;
376
+ isNot?: Prisma.SmsConversationWhereInput;
377
+ };
378
+ export type SmsConversationOrderByRelevanceInput = {
379
+ fields: Prisma.SmsConversationOrderByRelevanceFieldEnum | Prisma.SmsConversationOrderByRelevanceFieldEnum[];
380
+ sort: Prisma.SortOrder;
381
+ search: string;
382
+ };
383
+ export type SmsConversationCountOrderByAggregateInput = {
384
+ id?: Prisma.SortOrder;
385
+ customerId?: Prisma.SortOrder;
386
+ customerPhone?: Prisma.SortOrder;
387
+ purpose?: Prisma.SortOrder;
388
+ state?: Prisma.SortOrder;
389
+ createdAt?: Prisma.SortOrder;
390
+ updatedAt?: Prisma.SortOrder;
391
+ closedAt?: Prisma.SortOrder;
392
+ metadata?: Prisma.SortOrder;
393
+ errorMessage?: Prisma.SortOrder;
394
+ };
395
+ export type SmsConversationAvgOrderByAggregateInput = {
396
+ id?: Prisma.SortOrder;
397
+ customerId?: Prisma.SortOrder;
398
+ };
399
+ export type SmsConversationMaxOrderByAggregateInput = {
400
+ id?: Prisma.SortOrder;
401
+ customerId?: Prisma.SortOrder;
402
+ customerPhone?: Prisma.SortOrder;
403
+ purpose?: Prisma.SortOrder;
404
+ state?: Prisma.SortOrder;
405
+ createdAt?: Prisma.SortOrder;
406
+ updatedAt?: Prisma.SortOrder;
407
+ closedAt?: Prisma.SortOrder;
408
+ errorMessage?: Prisma.SortOrder;
409
+ };
410
+ export type SmsConversationMinOrderByAggregateInput = {
411
+ id?: Prisma.SortOrder;
412
+ customerId?: Prisma.SortOrder;
413
+ customerPhone?: Prisma.SortOrder;
414
+ purpose?: Prisma.SortOrder;
415
+ state?: Prisma.SortOrder;
416
+ createdAt?: Prisma.SortOrder;
417
+ updatedAt?: Prisma.SortOrder;
418
+ closedAt?: Prisma.SortOrder;
419
+ errorMessage?: Prisma.SortOrder;
420
+ };
421
+ export type SmsConversationSumOrderByAggregateInput = {
422
+ id?: Prisma.SortOrder;
423
+ customerId?: Prisma.SortOrder;
424
+ };
425
+ export type SmsConversationCreateNestedManyWithoutCustomerInput = {
426
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput> | Prisma.SmsConversationCreateWithoutCustomerInput[] | Prisma.SmsConversationUncheckedCreateWithoutCustomerInput[];
427
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutCustomerInput | Prisma.SmsConversationCreateOrConnectWithoutCustomerInput[];
428
+ createMany?: Prisma.SmsConversationCreateManyCustomerInputEnvelope;
429
+ connect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
430
+ };
431
+ export type SmsConversationUncheckedCreateNestedManyWithoutCustomerInput = {
432
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput> | Prisma.SmsConversationCreateWithoutCustomerInput[] | Prisma.SmsConversationUncheckedCreateWithoutCustomerInput[];
433
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutCustomerInput | Prisma.SmsConversationCreateOrConnectWithoutCustomerInput[];
434
+ createMany?: Prisma.SmsConversationCreateManyCustomerInputEnvelope;
435
+ connect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
436
+ };
437
+ export type SmsConversationUpdateManyWithoutCustomerNestedInput = {
438
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput> | Prisma.SmsConversationCreateWithoutCustomerInput[] | Prisma.SmsConversationUncheckedCreateWithoutCustomerInput[];
439
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutCustomerInput | Prisma.SmsConversationCreateOrConnectWithoutCustomerInput[];
440
+ upsert?: Prisma.SmsConversationUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SmsConversationUpsertWithWhereUniqueWithoutCustomerInput[];
441
+ createMany?: Prisma.SmsConversationCreateManyCustomerInputEnvelope;
442
+ set?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
443
+ disconnect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
444
+ delete?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
445
+ connect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
446
+ update?: Prisma.SmsConversationUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SmsConversationUpdateWithWhereUniqueWithoutCustomerInput[];
447
+ updateMany?: Prisma.SmsConversationUpdateManyWithWhereWithoutCustomerInput | Prisma.SmsConversationUpdateManyWithWhereWithoutCustomerInput[];
448
+ deleteMany?: Prisma.SmsConversationScalarWhereInput | Prisma.SmsConversationScalarWhereInput[];
449
+ };
450
+ export type SmsConversationUncheckedUpdateManyWithoutCustomerNestedInput = {
451
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput> | Prisma.SmsConversationCreateWithoutCustomerInput[] | Prisma.SmsConversationUncheckedCreateWithoutCustomerInput[];
452
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutCustomerInput | Prisma.SmsConversationCreateOrConnectWithoutCustomerInput[];
453
+ upsert?: Prisma.SmsConversationUpsertWithWhereUniqueWithoutCustomerInput | Prisma.SmsConversationUpsertWithWhereUniqueWithoutCustomerInput[];
454
+ createMany?: Prisma.SmsConversationCreateManyCustomerInputEnvelope;
455
+ set?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
456
+ disconnect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
457
+ delete?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
458
+ connect?: Prisma.SmsConversationWhereUniqueInput | Prisma.SmsConversationWhereUniqueInput[];
459
+ update?: Prisma.SmsConversationUpdateWithWhereUniqueWithoutCustomerInput | Prisma.SmsConversationUpdateWithWhereUniqueWithoutCustomerInput[];
460
+ updateMany?: Prisma.SmsConversationUpdateManyWithWhereWithoutCustomerInput | Prisma.SmsConversationUpdateManyWithWhereWithoutCustomerInput[];
461
+ deleteMany?: Prisma.SmsConversationScalarWhereInput | Prisma.SmsConversationScalarWhereInput[];
462
+ };
463
+ export type SmsConversationCreateNestedOneWithoutSmsMessageInput = {
464
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedCreateWithoutSmsMessageInput>;
465
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutSmsMessageInput;
466
+ connect?: Prisma.SmsConversationWhereUniqueInput;
467
+ };
468
+ export type SmsConversationUpdateOneRequiredWithoutSmsMessageNestedInput = {
469
+ create?: Prisma.XOR<Prisma.SmsConversationCreateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedCreateWithoutSmsMessageInput>;
470
+ connectOrCreate?: Prisma.SmsConversationCreateOrConnectWithoutSmsMessageInput;
471
+ upsert?: Prisma.SmsConversationUpsertWithoutSmsMessageInput;
472
+ connect?: Prisma.SmsConversationWhereUniqueInput;
473
+ update?: Prisma.XOR<Prisma.XOR<Prisma.SmsConversationUpdateToOneWithWhereWithoutSmsMessageInput, Prisma.SmsConversationUpdateWithoutSmsMessageInput>, Prisma.SmsConversationUncheckedUpdateWithoutSmsMessageInput>;
474
+ };
475
+ export type SmsConversationCreatemetadataInput = {
476
+ set: runtime.InputJsonValue[];
477
+ };
478
+ export type SmsConversationUpdatemetadataInput = {
479
+ set?: runtime.InputJsonValue[];
480
+ push?: runtime.InputJsonValue | runtime.InputJsonValue[];
481
+ };
482
+ export type SmsConversationCreateWithoutCustomerInput = {
483
+ id?: bigint | number;
484
+ customerPhone: string;
485
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
486
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
487
+ createdAt?: Date | string;
488
+ updatedAt?: Date | string;
489
+ closedAt?: Date | string | null;
490
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
491
+ errorMessage?: string | null;
492
+ smsMessage?: Prisma.SmsConversationMessageCreateNestedManyWithoutConversationInput;
493
+ };
494
+ export type SmsConversationUncheckedCreateWithoutCustomerInput = {
495
+ id?: bigint | number;
496
+ customerPhone: string;
497
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
498
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
499
+ createdAt?: Date | string;
500
+ updatedAt?: Date | string;
501
+ closedAt?: Date | string | null;
502
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
503
+ errorMessage?: string | null;
504
+ smsMessage?: Prisma.SmsConversationMessageUncheckedCreateNestedManyWithoutConversationInput;
505
+ };
506
+ export type SmsConversationCreateOrConnectWithoutCustomerInput = {
507
+ where: Prisma.SmsConversationWhereUniqueInput;
508
+ create: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput>;
509
+ };
510
+ export type SmsConversationCreateManyCustomerInputEnvelope = {
511
+ data: Prisma.SmsConversationCreateManyCustomerInput | Prisma.SmsConversationCreateManyCustomerInput[];
512
+ skipDuplicates?: boolean;
513
+ };
514
+ export type SmsConversationUpsertWithWhereUniqueWithoutCustomerInput = {
515
+ where: Prisma.SmsConversationWhereUniqueInput;
516
+ update: Prisma.XOR<Prisma.SmsConversationUpdateWithoutCustomerInput, Prisma.SmsConversationUncheckedUpdateWithoutCustomerInput>;
517
+ create: Prisma.XOR<Prisma.SmsConversationCreateWithoutCustomerInput, Prisma.SmsConversationUncheckedCreateWithoutCustomerInput>;
518
+ };
519
+ export type SmsConversationUpdateWithWhereUniqueWithoutCustomerInput = {
520
+ where: Prisma.SmsConversationWhereUniqueInput;
521
+ data: Prisma.XOR<Prisma.SmsConversationUpdateWithoutCustomerInput, Prisma.SmsConversationUncheckedUpdateWithoutCustomerInput>;
522
+ };
523
+ export type SmsConversationUpdateManyWithWhereWithoutCustomerInput = {
524
+ where: Prisma.SmsConversationScalarWhereInput;
525
+ data: Prisma.XOR<Prisma.SmsConversationUpdateManyMutationInput, Prisma.SmsConversationUncheckedUpdateManyWithoutCustomerInput>;
526
+ };
527
+ export type SmsConversationScalarWhereInput = {
528
+ AND?: Prisma.SmsConversationScalarWhereInput | Prisma.SmsConversationScalarWhereInput[];
529
+ OR?: Prisma.SmsConversationScalarWhereInput[];
530
+ NOT?: Prisma.SmsConversationScalarWhereInput | Prisma.SmsConversationScalarWhereInput[];
531
+ id?: Prisma.BigIntFilter<"SmsConversation"> | bigint | number;
532
+ customerId?: Prisma.BigIntFilter<"SmsConversation"> | bigint | number;
533
+ customerPhone?: Prisma.StringFilter<"SmsConversation"> | string;
534
+ purpose?: PJTG.TypedStringFilter<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
535
+ state?: PJTG.TypedStringFilter<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
536
+ createdAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
537
+ updatedAt?: Prisma.DateTimeFilter<"SmsConversation"> | Date | string;
538
+ closedAt?: Prisma.DateTimeNullableFilter<"SmsConversation"> | Date | string | null;
539
+ metadata?: PJTG.NullableListFilter<PrismaJson.KeyValueMetadata>;
540
+ errorMessage?: Prisma.StringNullableFilter<"SmsConversation"> | string | null;
541
+ };
542
+ export type SmsConversationCreateWithoutSmsMessageInput = {
543
+ id?: bigint | number;
544
+ customerPhone: string;
545
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
546
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
547
+ createdAt?: Date | string;
548
+ updatedAt?: Date | string;
549
+ closedAt?: Date | string | null;
550
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
551
+ errorMessage?: string | null;
552
+ customer: Prisma.CustomerCreateNestedOneWithoutSmsConversationInput;
553
+ };
554
+ export type SmsConversationUncheckedCreateWithoutSmsMessageInput = {
555
+ id?: bigint | number;
556
+ customerId: bigint | number;
557
+ customerPhone: string;
558
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
559
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
560
+ createdAt?: Date | string;
561
+ updatedAt?: Date | string;
562
+ closedAt?: Date | string | null;
563
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
564
+ errorMessage?: string | null;
565
+ };
566
+ export type SmsConversationCreateOrConnectWithoutSmsMessageInput = {
567
+ where: Prisma.SmsConversationWhereUniqueInput;
568
+ create: Prisma.XOR<Prisma.SmsConversationCreateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedCreateWithoutSmsMessageInput>;
569
+ };
570
+ export type SmsConversationUpsertWithoutSmsMessageInput = {
571
+ update: Prisma.XOR<Prisma.SmsConversationUpdateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedUpdateWithoutSmsMessageInput>;
572
+ create: Prisma.XOR<Prisma.SmsConversationCreateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedCreateWithoutSmsMessageInput>;
573
+ where?: Prisma.SmsConversationWhereInput;
574
+ };
575
+ export type SmsConversationUpdateToOneWithWhereWithoutSmsMessageInput = {
576
+ where?: Prisma.SmsConversationWhereInput;
577
+ data: Prisma.XOR<Prisma.SmsConversationUpdateWithoutSmsMessageInput, Prisma.SmsConversationUncheckedUpdateWithoutSmsMessageInput>;
578
+ };
579
+ export type SmsConversationUpdateWithoutSmsMessageInput = {
580
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
581
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
582
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
583
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
584
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
585
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
586
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
587
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
588
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
589
+ customer?: Prisma.CustomerUpdateOneRequiredWithoutSmsConversationNestedInput;
590
+ };
591
+ export type SmsConversationUncheckedUpdateWithoutSmsMessageInput = {
592
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
593
+ customerId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
594
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
595
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
596
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
597
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
598
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
599
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
600
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
601
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
602
+ };
603
+ export type SmsConversationCreateManyCustomerInput = {
604
+ id?: bigint | number;
605
+ customerPhone: string;
606
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
607
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
608
+ createdAt?: Date | string;
609
+ updatedAt?: Date | string;
610
+ closedAt?: Date | string | null;
611
+ metadata?: PJTG.CreateManyInput<PrismaJson.KeyValueMetadata>;
612
+ errorMessage?: string | null;
613
+ };
614
+ export type SmsConversationUpdateWithoutCustomerInput = {
615
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
616
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
617
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
618
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
619
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
620
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
621
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
622
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
623
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
624
+ smsMessage?: Prisma.SmsConversationMessageUpdateManyWithoutConversationNestedInput;
625
+ };
626
+ export type SmsConversationUncheckedUpdateWithoutCustomerInput = {
627
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
628
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
629
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
630
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
631
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
632
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
633
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
634
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
635
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
636
+ smsMessage?: Prisma.SmsConversationMessageUncheckedUpdateManyWithoutConversationNestedInput;
637
+ };
638
+ export type SmsConversationUncheckedUpdateManyWithoutCustomerInput = {
639
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
640
+ customerPhone?: Prisma.StringFieldUpdateOperationsInput | string;
641
+ purpose?: PJTG.TypedStringFieldUpdateOperationsInput<('CUSTOMER_PAYMENT_VALIDATION')> | ('CUSTOMER_PAYMENT_VALIDATION');
642
+ state?: PJTG.TypedStringFieldUpdateOperationsInput<('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed')> | ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
643
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
644
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
645
+ closedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
646
+ metadata?: PJTG.UpdateManyInput<PrismaJson.KeyValueMetadata>;
647
+ errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
648
+ };
649
+ /**
650
+ * Count Type SmsConversationCountOutputType
651
+ */
652
+ export type SmsConversationCountOutputType = {
653
+ smsMessage: number;
654
+ };
655
+ export type SmsConversationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
656
+ smsMessage?: boolean | SmsConversationCountOutputTypeCountSmsMessageArgs;
657
+ };
658
+ /**
659
+ * SmsConversationCountOutputType without action
660
+ */
661
+ export type SmsConversationCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
662
+ /**
663
+ * Select specific fields to fetch from the SmsConversationCountOutputType
664
+ */
665
+ select?: Prisma.SmsConversationCountOutputTypeSelect<ExtArgs> | null;
666
+ };
667
+ /**
668
+ * SmsConversationCountOutputType without action
669
+ */
670
+ export type SmsConversationCountOutputTypeCountSmsMessageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
671
+ where?: Prisma.SmsConversationMessageWhereInput;
672
+ };
673
+ export type SmsConversationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
674
+ id?: boolean;
675
+ customerId?: boolean;
676
+ customerPhone?: boolean;
677
+ purpose?: boolean;
678
+ state?: boolean;
679
+ createdAt?: boolean;
680
+ updatedAt?: boolean;
681
+ closedAt?: boolean;
682
+ metadata?: boolean;
683
+ errorMessage?: boolean;
684
+ smsMessage?: boolean | Prisma.SmsConversation$smsMessageArgs<ExtArgs>;
685
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
686
+ _count?: boolean | Prisma.SmsConversationCountOutputTypeDefaultArgs<ExtArgs>;
687
+ }, ExtArgs["result"]["smsConversation"]>;
688
+ export type SmsConversationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
689
+ id?: boolean;
690
+ customerId?: boolean;
691
+ customerPhone?: boolean;
692
+ purpose?: boolean;
693
+ state?: boolean;
694
+ createdAt?: boolean;
695
+ updatedAt?: boolean;
696
+ closedAt?: boolean;
697
+ metadata?: boolean;
698
+ errorMessage?: boolean;
699
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
700
+ }, ExtArgs["result"]["smsConversation"]>;
701
+ export type SmsConversationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
702
+ id?: boolean;
703
+ customerId?: boolean;
704
+ customerPhone?: boolean;
705
+ purpose?: boolean;
706
+ state?: boolean;
707
+ createdAt?: boolean;
708
+ updatedAt?: boolean;
709
+ closedAt?: boolean;
710
+ metadata?: boolean;
711
+ errorMessage?: boolean;
712
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
713
+ }, ExtArgs["result"]["smsConversation"]>;
714
+ export type SmsConversationSelectScalar = {
715
+ id?: boolean;
716
+ customerId?: boolean;
717
+ customerPhone?: boolean;
718
+ purpose?: boolean;
719
+ state?: boolean;
720
+ createdAt?: boolean;
721
+ updatedAt?: boolean;
722
+ closedAt?: boolean;
723
+ metadata?: boolean;
724
+ errorMessage?: boolean;
725
+ };
726
+ export type SmsConversationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "customerId" | "customerPhone" | "purpose" | "state" | "createdAt" | "updatedAt" | "closedAt" | "metadata" | "errorMessage", ExtArgs["result"]["smsConversation"]>;
727
+ export type SmsConversationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
728
+ smsMessage?: boolean | Prisma.SmsConversation$smsMessageArgs<ExtArgs>;
729
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
730
+ _count?: boolean | Prisma.SmsConversationCountOutputTypeDefaultArgs<ExtArgs>;
731
+ };
732
+ export type SmsConversationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
733
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
734
+ };
735
+ export type SmsConversationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
736
+ customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>;
737
+ };
738
+ export type $SmsConversationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
+ name: "SmsConversation";
740
+ objects: {
741
+ smsMessage: Prisma.$SmsConversationMessagePayload<ExtArgs>[];
742
+ customer: Prisma.$CustomerPayload<ExtArgs>;
743
+ };
744
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
745
+ id: bigint;
746
+ customerId: bigint;
747
+ customerPhone: string;
748
+ /**
749
+ * !['CUSTOMER_PAYMENT_VALIDATION']
750
+ */
751
+ purpose: ('CUSTOMER_PAYMENT_VALIDATION');
752
+ /**
753
+ * !['Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed']
754
+ */
755
+ state: ('Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed');
756
+ createdAt: Date;
757
+ updatedAt: Date;
758
+ closedAt: Date | null;
759
+ /**
760
+ * [KeyValueMetadata]
761
+ */
762
+ metadata: PrismaJson.KeyValueMetadata[];
763
+ errorMessage: string | null;
764
+ }, ExtArgs["result"]["smsConversation"]>;
765
+ composites: {};
766
+ };
767
+ export type SmsConversationGetPayload<S extends boolean | null | undefined | SmsConversationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload, S>;
768
+ export type SmsConversationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<SmsConversationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
769
+ select?: SmsConversationCountAggregateInputType | true;
770
+ };
771
+ export interface SmsConversationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
772
+ [K: symbol]: {
773
+ types: Prisma.TypeMap<ExtArgs>['model']['SmsConversation'];
774
+ meta: {
775
+ name: 'SmsConversation';
776
+ };
777
+ };
778
+ /**
779
+ * Find zero or one SmsConversation that matches the filter.
780
+ * @param {SmsConversationFindUniqueArgs} args - Arguments to find a SmsConversation
781
+ * @example
782
+ * // Get one SmsConversation
783
+ * const smsConversation = await prisma.smsConversation.findUnique({
784
+ * where: {
785
+ * // ... provide filter here
786
+ * }
787
+ * })
788
+ */
789
+ findUnique<T extends SmsConversationFindUniqueArgs>(args: Prisma.SelectSubset<T, SmsConversationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
790
+ /**
791
+ * Find one SmsConversation that matches the filter or throw an error with `error.code='P2025'`
792
+ * if no matches were found.
793
+ * @param {SmsConversationFindUniqueOrThrowArgs} args - Arguments to find a SmsConversation
794
+ * @example
795
+ * // Get one SmsConversation
796
+ * const smsConversation = await prisma.smsConversation.findUniqueOrThrow({
797
+ * where: {
798
+ * // ... provide filter here
799
+ * }
800
+ * })
801
+ */
802
+ findUniqueOrThrow<T extends SmsConversationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SmsConversationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
803
+ /**
804
+ * Find the first SmsConversation that matches the filter.
805
+ * Note, that providing `undefined` is treated as the value not being there.
806
+ * Read more here: https://pris.ly/d/null-undefined
807
+ * @param {SmsConversationFindFirstArgs} args - Arguments to find a SmsConversation
808
+ * @example
809
+ * // Get one SmsConversation
810
+ * const smsConversation = await prisma.smsConversation.findFirst({
811
+ * where: {
812
+ * // ... provide filter here
813
+ * }
814
+ * })
815
+ */
816
+ findFirst<T extends SmsConversationFindFirstArgs>(args?: Prisma.SelectSubset<T, SmsConversationFindFirstArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
817
+ /**
818
+ * Find the first SmsConversation that matches the filter or
819
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
820
+ * Note, that providing `undefined` is treated as the value not being there.
821
+ * Read more here: https://pris.ly/d/null-undefined
822
+ * @param {SmsConversationFindFirstOrThrowArgs} args - Arguments to find a SmsConversation
823
+ * @example
824
+ * // Get one SmsConversation
825
+ * const smsConversation = await prisma.smsConversation.findFirstOrThrow({
826
+ * where: {
827
+ * // ... provide filter here
828
+ * }
829
+ * })
830
+ */
831
+ findFirstOrThrow<T extends SmsConversationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SmsConversationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
832
+ /**
833
+ * Find zero or more SmsConversations that matches the filter.
834
+ * Note, that providing `undefined` is treated as the value not being there.
835
+ * Read more here: https://pris.ly/d/null-undefined
836
+ * @param {SmsConversationFindManyArgs} args - Arguments to filter and select certain fields only.
837
+ * @example
838
+ * // Get all SmsConversations
839
+ * const smsConversations = await prisma.smsConversation.findMany()
840
+ *
841
+ * // Get first 10 SmsConversations
842
+ * const smsConversations = await prisma.smsConversation.findMany({ take: 10 })
843
+ *
844
+ * // Only select the `id`
845
+ * const smsConversationWithIdOnly = await prisma.smsConversation.findMany({ select: { id: true } })
846
+ *
847
+ */
848
+ findMany<T extends SmsConversationFindManyArgs>(args?: Prisma.SelectSubset<T, SmsConversationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
849
+ /**
850
+ * Create a SmsConversation.
851
+ * @param {SmsConversationCreateArgs} args - Arguments to create a SmsConversation.
852
+ * @example
853
+ * // Create one SmsConversation
854
+ * const SmsConversation = await prisma.smsConversation.create({
855
+ * data: {
856
+ * // ... data to create a SmsConversation
857
+ * }
858
+ * })
859
+ *
860
+ */
861
+ create<T extends SmsConversationCreateArgs>(args: Prisma.SelectSubset<T, SmsConversationCreateArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
862
+ /**
863
+ * Create many SmsConversations.
864
+ * @param {SmsConversationCreateManyArgs} args - Arguments to create many SmsConversations.
865
+ * @example
866
+ * // Create many SmsConversations
867
+ * const smsConversation = await prisma.smsConversation.createMany({
868
+ * data: [
869
+ * // ... provide data here
870
+ * ]
871
+ * })
872
+ *
873
+ */
874
+ createMany<T extends SmsConversationCreateManyArgs>(args?: Prisma.SelectSubset<T, SmsConversationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
875
+ /**
876
+ * Create many SmsConversations and returns the data saved in the database.
877
+ * @param {SmsConversationCreateManyAndReturnArgs} args - Arguments to create many SmsConversations.
878
+ * @example
879
+ * // Create many SmsConversations
880
+ * const smsConversation = await prisma.smsConversation.createManyAndReturn({
881
+ * data: [
882
+ * // ... provide data here
883
+ * ]
884
+ * })
885
+ *
886
+ * // Create many SmsConversations and only return the `id`
887
+ * const smsConversationWithIdOnly = await prisma.smsConversation.createManyAndReturn({
888
+ * select: { id: true },
889
+ * data: [
890
+ * // ... provide data here
891
+ * ]
892
+ * })
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ *
896
+ */
897
+ createManyAndReturn<T extends SmsConversationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SmsConversationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
898
+ /**
899
+ * Delete a SmsConversation.
900
+ * @param {SmsConversationDeleteArgs} args - Arguments to delete one SmsConversation.
901
+ * @example
902
+ * // Delete one SmsConversation
903
+ * const SmsConversation = await prisma.smsConversation.delete({
904
+ * where: {
905
+ * // ... filter to delete one SmsConversation
906
+ * }
907
+ * })
908
+ *
909
+ */
910
+ delete<T extends SmsConversationDeleteArgs>(args: Prisma.SelectSubset<T, SmsConversationDeleteArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
911
+ /**
912
+ * Update one SmsConversation.
913
+ * @param {SmsConversationUpdateArgs} args - Arguments to update one SmsConversation.
914
+ * @example
915
+ * // Update one SmsConversation
916
+ * const smsConversation = await prisma.smsConversation.update({
917
+ * where: {
918
+ * // ... provide filter here
919
+ * },
920
+ * data: {
921
+ * // ... provide data here
922
+ * }
923
+ * })
924
+ *
925
+ */
926
+ update<T extends SmsConversationUpdateArgs>(args: Prisma.SelectSubset<T, SmsConversationUpdateArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
927
+ /**
928
+ * Delete zero or more SmsConversations.
929
+ * @param {SmsConversationDeleteManyArgs} args - Arguments to filter SmsConversations to delete.
930
+ * @example
931
+ * // Delete a few SmsConversations
932
+ * const { count } = await prisma.smsConversation.deleteMany({
933
+ * where: {
934
+ * // ... provide filter here
935
+ * }
936
+ * })
937
+ *
938
+ */
939
+ deleteMany<T extends SmsConversationDeleteManyArgs>(args?: Prisma.SelectSubset<T, SmsConversationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
940
+ /**
941
+ * Update zero or more SmsConversations.
942
+ * Note, that providing `undefined` is treated as the value not being there.
943
+ * Read more here: https://pris.ly/d/null-undefined
944
+ * @param {SmsConversationUpdateManyArgs} args - Arguments to update one or more rows.
945
+ * @example
946
+ * // Update many SmsConversations
947
+ * const smsConversation = await prisma.smsConversation.updateMany({
948
+ * where: {
949
+ * // ... provide filter here
950
+ * },
951
+ * data: {
952
+ * // ... provide data here
953
+ * }
954
+ * })
955
+ *
956
+ */
957
+ updateMany<T extends SmsConversationUpdateManyArgs>(args: Prisma.SelectSubset<T, SmsConversationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
958
+ /**
959
+ * Update zero or more SmsConversations and returns the data updated in the database.
960
+ * @param {SmsConversationUpdateManyAndReturnArgs} args - Arguments to update many SmsConversations.
961
+ * @example
962
+ * // Update many SmsConversations
963
+ * const smsConversation = await prisma.smsConversation.updateManyAndReturn({
964
+ * where: {
965
+ * // ... provide filter here
966
+ * },
967
+ * data: [
968
+ * // ... provide data here
969
+ * ]
970
+ * })
971
+ *
972
+ * // Update zero or more SmsConversations and only return the `id`
973
+ * const smsConversationWithIdOnly = await prisma.smsConversation.updateManyAndReturn({
974
+ * select: { id: true },
975
+ * where: {
976
+ * // ... provide filter here
977
+ * },
978
+ * data: [
979
+ * // ... provide data here
980
+ * ]
981
+ * })
982
+ * Note, that providing `undefined` is treated as the value not being there.
983
+ * Read more here: https://pris.ly/d/null-undefined
984
+ *
985
+ */
986
+ updateManyAndReturn<T extends SmsConversationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SmsConversationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
987
+ /**
988
+ * Create or update one SmsConversation.
989
+ * @param {SmsConversationUpsertArgs} args - Arguments to update or create a SmsConversation.
990
+ * @example
991
+ * // Update or create a SmsConversation
992
+ * const smsConversation = await prisma.smsConversation.upsert({
993
+ * create: {
994
+ * // ... data to create a SmsConversation
995
+ * },
996
+ * update: {
997
+ * // ... in case it already exists, update
998
+ * },
999
+ * where: {
1000
+ * // ... the filter for the SmsConversation we want to update
1001
+ * }
1002
+ * })
1003
+ */
1004
+ upsert<T extends SmsConversationUpsertArgs>(args: Prisma.SelectSubset<T, SmsConversationUpsertArgs<ExtArgs>>): Prisma.Prisma__SmsConversationClient<runtime.Types.Result.GetResult<Prisma.$SmsConversationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1005
+ /**
1006
+ * Count the number of SmsConversations.
1007
+ * Note, that providing `undefined` is treated as the value not being there.
1008
+ * Read more here: https://pris.ly/d/null-undefined
1009
+ * @param {SmsConversationCountArgs} args - Arguments to filter SmsConversations to count.
1010
+ * @example
1011
+ * // Count the number of SmsConversations
1012
+ * const count = await prisma.smsConversation.count({
1013
+ * where: {
1014
+ * // ... the filter for the SmsConversations we want to count
1015
+ * }
1016
+ * })
1017
+ **/
1018
+ count<T extends SmsConversationCountArgs>(args?: Prisma.Subset<T, SmsConversationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SmsConversationCountAggregateOutputType> : number>;
1019
+ /**
1020
+ * Allows you to perform aggregations operations on a SmsConversation.
1021
+ * Note, that providing `undefined` is treated as the value not being there.
1022
+ * Read more here: https://pris.ly/d/null-undefined
1023
+ * @param {SmsConversationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1024
+ * @example
1025
+ * // Ordered by age ascending
1026
+ * // Where email contains prisma.io
1027
+ * // Limited to the 10 users
1028
+ * const aggregations = await prisma.user.aggregate({
1029
+ * _avg: {
1030
+ * age: true,
1031
+ * },
1032
+ * where: {
1033
+ * email: {
1034
+ * contains: "prisma.io",
1035
+ * },
1036
+ * },
1037
+ * orderBy: {
1038
+ * age: "asc",
1039
+ * },
1040
+ * take: 10,
1041
+ * })
1042
+ **/
1043
+ aggregate<T extends SmsConversationAggregateArgs>(args: Prisma.Subset<T, SmsConversationAggregateArgs>): Prisma.PrismaPromise<GetSmsConversationAggregateType<T>>;
1044
+ /**
1045
+ * Group by SmsConversation.
1046
+ * Note, that providing `undefined` is treated as the value not being there.
1047
+ * Read more here: https://pris.ly/d/null-undefined
1048
+ * @param {SmsConversationGroupByArgs} args - Group by arguments.
1049
+ * @example
1050
+ * // Group by city, order by createdAt, get count
1051
+ * const result = await prisma.user.groupBy({
1052
+ * by: ['city', 'createdAt'],
1053
+ * orderBy: {
1054
+ * createdAt: true
1055
+ * },
1056
+ * _count: {
1057
+ * _all: true
1058
+ * },
1059
+ * })
1060
+ *
1061
+ **/
1062
+ groupBy<T extends SmsConversationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1063
+ orderBy: SmsConversationGroupByArgs['orderBy'];
1064
+ } : {
1065
+ orderBy?: SmsConversationGroupByArgs['orderBy'];
1066
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1067
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1068
+ Error,
1069
+ 'Field ',
1070
+ P,
1071
+ ` in "having" needs to be provided in "by"`
1072
+ ];
1073
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1074
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1075
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1076
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1077
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1078
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1079
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, SmsConversationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSmsConversationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1080
+ /**
1081
+ * Fields of the SmsConversation model
1082
+ */
1083
+ readonly fields: SmsConversationFieldRefs;
1084
+ }
1085
+ /**
1086
+ * The delegate class that acts as a "Promise-like" for SmsConversation.
1087
+ * Why is this prefixed with `Prisma__`?
1088
+ * Because we want to prevent naming conflicts as mentioned in
1089
+ * https://github.com/prisma/prisma-client-js/issues/707
1090
+ */
1091
+ export interface Prisma__SmsConversationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1092
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1093
+ smsMessage<T extends Prisma.SmsConversation$smsMessageArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SmsConversation$smsMessageArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SmsConversationMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1094
+ customer<T extends Prisma.CustomerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CustomerDefaultArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1095
+ /**
1096
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1097
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1098
+ * @param onrejected The callback to execute when the Promise is rejected.
1099
+ * @returns A Promise for the completion of which ever callback is executed.
1100
+ */
1101
+ 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>;
1102
+ /**
1103
+ * Attaches a callback for only the rejection of the Promise.
1104
+ * @param onrejected The callback to execute when the Promise is rejected.
1105
+ * @returns A Promise for the completion of the callback.
1106
+ */
1107
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1108
+ /**
1109
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1110
+ * resolved value cannot be modified from the callback.
1111
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1112
+ * @returns A Promise for the completion of the callback.
1113
+ */
1114
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1115
+ }
1116
+ /**
1117
+ * Fields of the SmsConversation model
1118
+ */
1119
+ export interface SmsConversationFieldRefs {
1120
+ readonly id: Prisma.FieldRef<"SmsConversation", 'BigInt'>;
1121
+ readonly customerId: Prisma.FieldRef<"SmsConversation", 'BigInt'>;
1122
+ readonly customerPhone: Prisma.FieldRef<"SmsConversation", 'String'>;
1123
+ readonly purpose: Prisma.FieldRef<"SmsConversation", 'String'>;
1124
+ readonly state: Prisma.FieldRef<"SmsConversation", 'String'>;
1125
+ readonly createdAt: Prisma.FieldRef<"SmsConversation", 'DateTime'>;
1126
+ readonly updatedAt: Prisma.FieldRef<"SmsConversation", 'DateTime'>;
1127
+ readonly closedAt: Prisma.FieldRef<"SmsConversation", 'DateTime'>;
1128
+ readonly metadata: Prisma.FieldRef<"SmsConversation", 'Json[]'>;
1129
+ readonly errorMessage: Prisma.FieldRef<"SmsConversation", 'String'>;
1130
+ }
1131
+ /**
1132
+ * SmsConversation findUnique
1133
+ */
1134
+ export type SmsConversationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1135
+ /**
1136
+ * Select specific fields to fetch from the SmsConversation
1137
+ */
1138
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1139
+ /**
1140
+ * Omit specific fields from the SmsConversation
1141
+ */
1142
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1143
+ /**
1144
+ * Choose, which related nodes to fetch as well
1145
+ */
1146
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1147
+ /**
1148
+ * Filter, which SmsConversation to fetch.
1149
+ */
1150
+ where: Prisma.SmsConversationWhereUniqueInput;
1151
+ };
1152
+ /**
1153
+ * SmsConversation findUniqueOrThrow
1154
+ */
1155
+ export type SmsConversationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1156
+ /**
1157
+ * Select specific fields to fetch from the SmsConversation
1158
+ */
1159
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1160
+ /**
1161
+ * Omit specific fields from the SmsConversation
1162
+ */
1163
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1164
+ /**
1165
+ * Choose, which related nodes to fetch as well
1166
+ */
1167
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1168
+ /**
1169
+ * Filter, which SmsConversation to fetch.
1170
+ */
1171
+ where: Prisma.SmsConversationWhereUniqueInput;
1172
+ };
1173
+ /**
1174
+ * SmsConversation findFirst
1175
+ */
1176
+ export type SmsConversationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1177
+ /**
1178
+ * Select specific fields to fetch from the SmsConversation
1179
+ */
1180
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1181
+ /**
1182
+ * Omit specific fields from the SmsConversation
1183
+ */
1184
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1185
+ /**
1186
+ * Choose, which related nodes to fetch as well
1187
+ */
1188
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1189
+ /**
1190
+ * Filter, which SmsConversation to fetch.
1191
+ */
1192
+ where?: Prisma.SmsConversationWhereInput;
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1195
+ *
1196
+ * Determine the order of SmsConversations to fetch.
1197
+ */
1198
+ orderBy?: Prisma.SmsConversationOrderByWithRelationInput | Prisma.SmsConversationOrderByWithRelationInput[];
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1201
+ *
1202
+ * Sets the position for searching for SmsConversations.
1203
+ */
1204
+ cursor?: Prisma.SmsConversationWhereUniqueInput;
1205
+ /**
1206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1207
+ *
1208
+ * Take `±n` SmsConversations from the position of the cursor.
1209
+ */
1210
+ take?: number;
1211
+ /**
1212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1213
+ *
1214
+ * Skip the first `n` SmsConversations.
1215
+ */
1216
+ skip?: number;
1217
+ /**
1218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1219
+ *
1220
+ * Filter by unique combinations of SmsConversations.
1221
+ */
1222
+ distinct?: Prisma.SmsConversationScalarFieldEnum | Prisma.SmsConversationScalarFieldEnum[];
1223
+ };
1224
+ /**
1225
+ * SmsConversation findFirstOrThrow
1226
+ */
1227
+ export type SmsConversationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
+ /**
1229
+ * Select specific fields to fetch from the SmsConversation
1230
+ */
1231
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1232
+ /**
1233
+ * Omit specific fields from the SmsConversation
1234
+ */
1235
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1236
+ /**
1237
+ * Choose, which related nodes to fetch as well
1238
+ */
1239
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1240
+ /**
1241
+ * Filter, which SmsConversation to fetch.
1242
+ */
1243
+ where?: Prisma.SmsConversationWhereInput;
1244
+ /**
1245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1246
+ *
1247
+ * Determine the order of SmsConversations to fetch.
1248
+ */
1249
+ orderBy?: Prisma.SmsConversationOrderByWithRelationInput | Prisma.SmsConversationOrderByWithRelationInput[];
1250
+ /**
1251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1252
+ *
1253
+ * Sets the position for searching for SmsConversations.
1254
+ */
1255
+ cursor?: Prisma.SmsConversationWhereUniqueInput;
1256
+ /**
1257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1258
+ *
1259
+ * Take `±n` SmsConversations from the position of the cursor.
1260
+ */
1261
+ take?: number;
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1264
+ *
1265
+ * Skip the first `n` SmsConversations.
1266
+ */
1267
+ skip?: number;
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1270
+ *
1271
+ * Filter by unique combinations of SmsConversations.
1272
+ */
1273
+ distinct?: Prisma.SmsConversationScalarFieldEnum | Prisma.SmsConversationScalarFieldEnum[];
1274
+ };
1275
+ /**
1276
+ * SmsConversation findMany
1277
+ */
1278
+ export type SmsConversationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the SmsConversation
1281
+ */
1282
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1283
+ /**
1284
+ * Omit specific fields from the SmsConversation
1285
+ */
1286
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1287
+ /**
1288
+ * Choose, which related nodes to fetch as well
1289
+ */
1290
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1291
+ /**
1292
+ * Filter, which SmsConversations to fetch.
1293
+ */
1294
+ where?: Prisma.SmsConversationWhereInput;
1295
+ /**
1296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1297
+ *
1298
+ * Determine the order of SmsConversations to fetch.
1299
+ */
1300
+ orderBy?: Prisma.SmsConversationOrderByWithRelationInput | Prisma.SmsConversationOrderByWithRelationInput[];
1301
+ /**
1302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1303
+ *
1304
+ * Sets the position for listing SmsConversations.
1305
+ */
1306
+ cursor?: Prisma.SmsConversationWhereUniqueInput;
1307
+ /**
1308
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1309
+ *
1310
+ * Take `±n` SmsConversations from the position of the cursor.
1311
+ */
1312
+ take?: number;
1313
+ /**
1314
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1315
+ *
1316
+ * Skip the first `n` SmsConversations.
1317
+ */
1318
+ skip?: number;
1319
+ distinct?: Prisma.SmsConversationScalarFieldEnum | Prisma.SmsConversationScalarFieldEnum[];
1320
+ };
1321
+ /**
1322
+ * SmsConversation create
1323
+ */
1324
+ export type SmsConversationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
+ /**
1326
+ * Select specific fields to fetch from the SmsConversation
1327
+ */
1328
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1329
+ /**
1330
+ * Omit specific fields from the SmsConversation
1331
+ */
1332
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1333
+ /**
1334
+ * Choose, which related nodes to fetch as well
1335
+ */
1336
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1337
+ /**
1338
+ * The data needed to create a SmsConversation.
1339
+ */
1340
+ data: Prisma.XOR<Prisma.SmsConversationCreateInput, Prisma.SmsConversationUncheckedCreateInput>;
1341
+ };
1342
+ /**
1343
+ * SmsConversation createMany
1344
+ */
1345
+ export type SmsConversationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1346
+ /**
1347
+ * The data used to create many SmsConversations.
1348
+ */
1349
+ data: Prisma.SmsConversationCreateManyInput | Prisma.SmsConversationCreateManyInput[];
1350
+ skipDuplicates?: boolean;
1351
+ };
1352
+ /**
1353
+ * SmsConversation createManyAndReturn
1354
+ */
1355
+ export type SmsConversationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1356
+ /**
1357
+ * Select specific fields to fetch from the SmsConversation
1358
+ */
1359
+ select?: Prisma.SmsConversationSelectCreateManyAndReturn<ExtArgs> | null;
1360
+ /**
1361
+ * Omit specific fields from the SmsConversation
1362
+ */
1363
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1364
+ /**
1365
+ * The data used to create many SmsConversations.
1366
+ */
1367
+ data: Prisma.SmsConversationCreateManyInput | Prisma.SmsConversationCreateManyInput[];
1368
+ skipDuplicates?: boolean;
1369
+ /**
1370
+ * Choose, which related nodes to fetch as well
1371
+ */
1372
+ include?: Prisma.SmsConversationIncludeCreateManyAndReturn<ExtArgs> | null;
1373
+ };
1374
+ /**
1375
+ * SmsConversation update
1376
+ */
1377
+ export type SmsConversationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the SmsConversation
1380
+ */
1381
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1382
+ /**
1383
+ * Omit specific fields from the SmsConversation
1384
+ */
1385
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1390
+ /**
1391
+ * The data needed to update a SmsConversation.
1392
+ */
1393
+ data: Prisma.XOR<Prisma.SmsConversationUpdateInput, Prisma.SmsConversationUncheckedUpdateInput>;
1394
+ /**
1395
+ * Choose, which SmsConversation to update.
1396
+ */
1397
+ where: Prisma.SmsConversationWhereUniqueInput;
1398
+ };
1399
+ /**
1400
+ * SmsConversation updateMany
1401
+ */
1402
+ export type SmsConversationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1403
+ /**
1404
+ * The data used to update SmsConversations.
1405
+ */
1406
+ data: Prisma.XOR<Prisma.SmsConversationUpdateManyMutationInput, Prisma.SmsConversationUncheckedUpdateManyInput>;
1407
+ /**
1408
+ * Filter which SmsConversations to update
1409
+ */
1410
+ where?: Prisma.SmsConversationWhereInput;
1411
+ /**
1412
+ * Limit how many SmsConversations to update.
1413
+ */
1414
+ limit?: number;
1415
+ };
1416
+ /**
1417
+ * SmsConversation updateManyAndReturn
1418
+ */
1419
+ export type SmsConversationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1420
+ /**
1421
+ * Select specific fields to fetch from the SmsConversation
1422
+ */
1423
+ select?: Prisma.SmsConversationSelectUpdateManyAndReturn<ExtArgs> | null;
1424
+ /**
1425
+ * Omit specific fields from the SmsConversation
1426
+ */
1427
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1428
+ /**
1429
+ * The data used to update SmsConversations.
1430
+ */
1431
+ data: Prisma.XOR<Prisma.SmsConversationUpdateManyMutationInput, Prisma.SmsConversationUncheckedUpdateManyInput>;
1432
+ /**
1433
+ * Filter which SmsConversations to update
1434
+ */
1435
+ where?: Prisma.SmsConversationWhereInput;
1436
+ /**
1437
+ * Limit how many SmsConversations to update.
1438
+ */
1439
+ limit?: number;
1440
+ /**
1441
+ * Choose, which related nodes to fetch as well
1442
+ */
1443
+ include?: Prisma.SmsConversationIncludeUpdateManyAndReturn<ExtArgs> | null;
1444
+ };
1445
+ /**
1446
+ * SmsConversation upsert
1447
+ */
1448
+ export type SmsConversationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ /**
1450
+ * Select specific fields to fetch from the SmsConversation
1451
+ */
1452
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1453
+ /**
1454
+ * Omit specific fields from the SmsConversation
1455
+ */
1456
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1457
+ /**
1458
+ * Choose, which related nodes to fetch as well
1459
+ */
1460
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1461
+ /**
1462
+ * The filter to search for the SmsConversation to update in case it exists.
1463
+ */
1464
+ where: Prisma.SmsConversationWhereUniqueInput;
1465
+ /**
1466
+ * In case the SmsConversation found by the `where` argument doesn't exist, create a new SmsConversation with this data.
1467
+ */
1468
+ create: Prisma.XOR<Prisma.SmsConversationCreateInput, Prisma.SmsConversationUncheckedCreateInput>;
1469
+ /**
1470
+ * In case the SmsConversation was found with the provided `where` argument, update it with this data.
1471
+ */
1472
+ update: Prisma.XOR<Prisma.SmsConversationUpdateInput, Prisma.SmsConversationUncheckedUpdateInput>;
1473
+ };
1474
+ /**
1475
+ * SmsConversation delete
1476
+ */
1477
+ export type SmsConversationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1478
+ /**
1479
+ * Select specific fields to fetch from the SmsConversation
1480
+ */
1481
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1482
+ /**
1483
+ * Omit specific fields from the SmsConversation
1484
+ */
1485
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1486
+ /**
1487
+ * Choose, which related nodes to fetch as well
1488
+ */
1489
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1490
+ /**
1491
+ * Filter which SmsConversation to delete.
1492
+ */
1493
+ where: Prisma.SmsConversationWhereUniqueInput;
1494
+ };
1495
+ /**
1496
+ * SmsConversation deleteMany
1497
+ */
1498
+ export type SmsConversationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ /**
1500
+ * Filter which SmsConversations to delete
1501
+ */
1502
+ where?: Prisma.SmsConversationWhereInput;
1503
+ /**
1504
+ * Limit how many SmsConversations to delete.
1505
+ */
1506
+ limit?: number;
1507
+ };
1508
+ /**
1509
+ * SmsConversation.smsMessage
1510
+ */
1511
+ export type SmsConversation$smsMessageArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1512
+ /**
1513
+ * Select specific fields to fetch from the SmsConversationMessage
1514
+ */
1515
+ select?: Prisma.SmsConversationMessageSelect<ExtArgs> | null;
1516
+ /**
1517
+ * Omit specific fields from the SmsConversationMessage
1518
+ */
1519
+ omit?: Prisma.SmsConversationMessageOmit<ExtArgs> | null;
1520
+ /**
1521
+ * Choose, which related nodes to fetch as well
1522
+ */
1523
+ include?: Prisma.SmsConversationMessageInclude<ExtArgs> | null;
1524
+ where?: Prisma.SmsConversationMessageWhereInput;
1525
+ orderBy?: Prisma.SmsConversationMessageOrderByWithRelationInput | Prisma.SmsConversationMessageOrderByWithRelationInput[];
1526
+ cursor?: Prisma.SmsConversationMessageWhereUniqueInput;
1527
+ take?: number;
1528
+ skip?: number;
1529
+ distinct?: Prisma.SmsConversationMessageScalarFieldEnum | Prisma.SmsConversationMessageScalarFieldEnum[];
1530
+ };
1531
+ /**
1532
+ * SmsConversation without action
1533
+ */
1534
+ export type SmsConversationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1535
+ /**
1536
+ * Select specific fields to fetch from the SmsConversation
1537
+ */
1538
+ select?: Prisma.SmsConversationSelect<ExtArgs> | null;
1539
+ /**
1540
+ * Omit specific fields from the SmsConversation
1541
+ */
1542
+ omit?: Prisma.SmsConversationOmit<ExtArgs> | null;
1543
+ /**
1544
+ * Choose, which related nodes to fetch as well
1545
+ */
1546
+ include?: Prisma.SmsConversationInclude<ExtArgs> | null;
1547
+ };
1548
+ export {};