@rovela-ai/sdk 0.1.1 → 0.1.2

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 (575) hide show
  1. package/dist/admin/hooks/useAdminAuth.d.ts.map +1 -1
  2. package/dist/admin/hooks/useAdminAuth.js +4 -1
  3. package/dist/admin/hooks/useAdminAuth.js.map +1 -1
  4. package/dist/auth/hooks/useAuth.d.ts.map +1 -1
  5. package/dist/auth/hooks/useAuth.js +8 -2
  6. package/dist/auth/hooks/useAuth.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/admin/api/auth.d.ts +0 -32
  9. package/dist/admin/api/auth.d.ts.map +0 -1
  10. package/dist/admin/api/auth.js +0 -43
  11. package/dist/admin/api/auth.js.map +0 -1
  12. package/dist/admin/api/categories.d.ts +0 -68
  13. package/dist/admin/api/categories.d.ts.map +0 -1
  14. package/dist/admin/api/categories.js +0 -247
  15. package/dist/admin/api/categories.js.map +0 -1
  16. package/dist/admin/api/customers.d.ts +0 -41
  17. package/dist/admin/api/customers.d.ts.map +0 -1
  18. package/dist/admin/api/customers.js +0 -113
  19. package/dist/admin/api/customers.js.map +0 -1
  20. package/dist/admin/api/index.d.ts +0 -56
  21. package/dist/admin/api/index.d.ts.map +0 -1
  22. package/dist/admin/api/index.js +0 -87
  23. package/dist/admin/api/index.js.map +0 -1
  24. package/dist/admin/api/orders.d.ts +0 -59
  25. package/dist/admin/api/orders.d.ts.map +0 -1
  26. package/dist/admin/api/orders.js +0 -209
  27. package/dist/admin/api/orders.js.map +0 -1
  28. package/dist/admin/api/products.d.ts +0 -103
  29. package/dist/admin/api/products.d.ts.map +0 -1
  30. package/dist/admin/api/products.js +0 -329
  31. package/dist/admin/api/products.js.map +0 -1
  32. package/dist/admin/api/refund.d.ts +0 -29
  33. package/dist/admin/api/refund.d.ts.map +0 -1
  34. package/dist/admin/api/refund.js +0 -136
  35. package/dist/admin/api/refund.js.map +0 -1
  36. package/dist/admin/api/stats.d.ts +0 -40
  37. package/dist/admin/api/stats.d.ts.map +0 -1
  38. package/dist/admin/api/stats.js +0 -74
  39. package/dist/admin/api/stats.js.map +0 -1
  40. package/dist/admin/components/AdminGuard.d.ts +0 -40
  41. package/dist/admin/components/AdminGuard.d.ts.map +0 -1
  42. package/dist/admin/components/AdminGuard.js +0 -97
  43. package/dist/admin/components/AdminGuard.js.map +0 -1
  44. package/dist/admin/components/AdminHeader.d.ts +0 -18
  45. package/dist/admin/components/AdminHeader.d.ts.map +0 -1
  46. package/dist/admin/components/AdminHeader.js +0 -33
  47. package/dist/admin/components/AdminHeader.js.map +0 -1
  48. package/dist/admin/components/AdminLayout.d.ts +0 -50
  49. package/dist/admin/components/AdminLayout.d.ts.map +0 -1
  50. package/dist/admin/components/AdminLayout.js +0 -46
  51. package/dist/admin/components/AdminLayout.js.map +0 -1
  52. package/dist/admin/components/AdminLoginForm.d.ts +0 -18
  53. package/dist/admin/components/AdminLoginForm.d.ts.map +0 -1
  54. package/dist/admin/components/AdminLoginForm.js +0 -58
  55. package/dist/admin/components/AdminLoginForm.js.map +0 -1
  56. package/dist/admin/components/AdminNav.d.ts +0 -34
  57. package/dist/admin/components/AdminNav.d.ts.map +0 -1
  58. package/dist/admin/components/AdminNav.js +0 -61
  59. package/dist/admin/components/AdminNav.js.map +0 -1
  60. package/dist/admin/components/InventoryEditor.d.ts +0 -15
  61. package/dist/admin/components/InventoryEditor.d.ts.map +0 -1
  62. package/dist/admin/components/InventoryEditor.js +0 -83
  63. package/dist/admin/components/InventoryEditor.js.map +0 -1
  64. package/dist/admin/components/LowStockAlert.d.ts +0 -11
  65. package/dist/admin/components/LowStockAlert.d.ts.map +0 -1
  66. package/dist/admin/components/LowStockAlert.js +0 -35
  67. package/dist/admin/components/LowStockAlert.js.map +0 -1
  68. package/dist/admin/components/OrderDetails.d.ts +0 -14
  69. package/dist/admin/components/OrderDetails.d.ts.map +0 -1
  70. package/dist/admin/components/OrderDetails.js +0 -94
  71. package/dist/admin/components/OrderDetails.js.map +0 -1
  72. package/dist/admin/components/OrderTable.d.ts +0 -13
  73. package/dist/admin/components/OrderTable.d.ts.map +0 -1
  74. package/dist/admin/components/OrderTable.js +0 -89
  75. package/dist/admin/components/OrderTable.js.map +0 -1
  76. package/dist/admin/components/ProductForm.d.ts +0 -18
  77. package/dist/admin/components/ProductForm.d.ts.map +0 -1
  78. package/dist/admin/components/ProductForm.js +0 -127
  79. package/dist/admin/components/ProductForm.js.map +0 -1
  80. package/dist/admin/components/ProductTable.d.ts +0 -13
  81. package/dist/admin/components/ProductTable.d.ts.map +0 -1
  82. package/dist/admin/components/ProductTable.js +0 -81
  83. package/dist/admin/components/ProductTable.js.map +0 -1
  84. package/dist/admin/components/RecentOrders.d.ts +0 -11
  85. package/dist/admin/components/RecentOrders.d.ts.map +0 -1
  86. package/dist/admin/components/RecentOrders.js +0 -58
  87. package/dist/admin/components/RecentOrders.js.map +0 -1
  88. package/dist/admin/components/RefundDialog.d.ts +0 -17
  89. package/dist/admin/components/RefundDialog.d.ts.map +0 -1
  90. package/dist/admin/components/RefundDialog.js +0 -86
  91. package/dist/admin/components/RefundDialog.js.map +0 -1
  92. package/dist/admin/components/StatsCards.d.ts +0 -23
  93. package/dist/admin/components/StatsCards.d.ts.map +0 -1
  94. package/dist/admin/components/StatsCards.js +0 -82
  95. package/dist/admin/components/StatsCards.js.map +0 -1
  96. package/dist/admin/components/StoreSettings.d.ts +0 -14
  97. package/dist/admin/components/StoreSettings.d.ts.map +0 -1
  98. package/dist/admin/components/StoreSettings.js +0 -88
  99. package/dist/admin/components/StoreSettings.js.map +0 -1
  100. package/dist/admin/components/index.d.ts +0 -21
  101. package/dist/admin/components/index.d.ts.map +0 -1
  102. package/dist/admin/components/index.js +0 -57
  103. package/dist/admin/components/index.js.map +0 -1
  104. package/dist/admin/config.d.ts +0 -74
  105. package/dist/admin/config.d.ts.map +0 -1
  106. package/dist/admin/config.js +0 -229
  107. package/dist/admin/config.js.map +0 -1
  108. package/dist/admin/hooks/index.d.ts +0 -10
  109. package/dist/admin/hooks/index.d.ts.map +0 -1
  110. package/dist/admin/hooks/index.js +0 -17
  111. package/dist/admin/hooks/index.js.map +0 -1
  112. package/dist/admin/hooks/useAdminOrders.d.ts +0 -41
  113. package/dist/admin/hooks/useAdminOrders.d.ts.map +0 -1
  114. package/dist/admin/hooks/useAdminOrders.js +0 -191
  115. package/dist/admin/hooks/useAdminOrders.js.map +0 -1
  116. package/dist/admin/hooks/useAdminProducts.d.ts +0 -39
  117. package/dist/admin/hooks/useAdminProducts.d.ts.map +0 -1
  118. package/dist/admin/hooks/useAdminProducts.js +0 -235
  119. package/dist/admin/hooks/useAdminProducts.js.map +0 -1
  120. package/dist/admin/hooks/useAdminStats.d.ts +0 -50
  121. package/dist/admin/hooks/useAdminStats.d.ts.map +0 -1
  122. package/dist/admin/hooks/useAdminStats.js +0 -111
  123. package/dist/admin/hooks/useAdminStats.js.map +0 -1
  124. package/dist/admin/index.d.ts +0 -63
  125. package/dist/admin/index.d.ts.map +0 -1
  126. package/dist/admin/index.js +0 -148
  127. package/dist/admin/index.js.map +0 -1
  128. package/dist/admin/server/admin-service.d.ts +0 -130
  129. package/dist/admin/server/admin-service.d.ts.map +0 -1
  130. package/dist/admin/server/admin-service.js +0 -298
  131. package/dist/admin/server/admin-service.js.map +0 -1
  132. package/dist/admin/server/index.d.ts +0 -8
  133. package/dist/admin/server/index.d.ts.map +0 -1
  134. package/dist/admin/server/index.js +0 -25
  135. package/dist/admin/server/index.js.map +0 -1
  136. package/dist/admin/types.d.ts +0 -549
  137. package/dist/admin/types.d.ts.map +0 -1
  138. package/dist/admin/types.js +0 -11
  139. package/dist/admin/types.js.map +0 -1
  140. package/dist/auth/api/auth.d.ts +0 -54
  141. package/dist/auth/api/auth.d.ts.map +0 -1
  142. package/dist/auth/api/auth.js +0 -67
  143. package/dist/auth/api/auth.js.map +0 -1
  144. package/dist/auth/api/forgot-password.d.ts +0 -41
  145. package/dist/auth/api/forgot-password.d.ts.map +0 -1
  146. package/dist/auth/api/forgot-password.js +0 -68
  147. package/dist/auth/api/forgot-password.js.map +0 -1
  148. package/dist/auth/api/index.d.ts +0 -34
  149. package/dist/auth/api/index.d.ts.map +0 -1
  150. package/dist/auth/api/index.js +0 -52
  151. package/dist/auth/api/index.js.map +0 -1
  152. package/dist/auth/api/register.d.ts +0 -41
  153. package/dist/auth/api/register.d.ts.map +0 -1
  154. package/dist/auth/api/register.js +0 -93
  155. package/dist/auth/api/register.js.map +0 -1
  156. package/dist/auth/api/resend-verification.d.ts +0 -41
  157. package/dist/auth/api/resend-verification.d.ts.map +0 -1
  158. package/dist/auth/api/resend-verification.js +0 -71
  159. package/dist/auth/api/resend-verification.js.map +0 -1
  160. package/dist/auth/api/reset-password.d.ts +0 -67
  161. package/dist/auth/api/reset-password.d.ts.map +0 -1
  162. package/dist/auth/api/reset-password.js +0 -110
  163. package/dist/auth/api/reset-password.js.map +0 -1
  164. package/dist/auth/api/verify-email.d.ts +0 -47
  165. package/dist/auth/api/verify-email.d.ts.map +0 -1
  166. package/dist/auth/api/verify-email.js +0 -94
  167. package/dist/auth/api/verify-email.js.map +0 -1
  168. package/dist/auth/components/AuthGuard.d.ts +0 -52
  169. package/dist/auth/components/AuthGuard.d.ts.map +0 -1
  170. package/dist/auth/components/AuthGuard.js +0 -113
  171. package/dist/auth/components/AuthGuard.js.map +0 -1
  172. package/dist/auth/components/ForgotPasswordForm.d.ts +0 -15
  173. package/dist/auth/components/ForgotPasswordForm.d.ts.map +0 -1
  174. package/dist/auth/components/ForgotPasswordForm.js +0 -44
  175. package/dist/auth/components/ForgotPasswordForm.js.map +0 -1
  176. package/dist/auth/components/ResetPasswordForm.d.ts +0 -18
  177. package/dist/auth/components/ResetPasswordForm.d.ts.map +0 -1
  178. package/dist/auth/components/ResetPasswordForm.js +0 -88
  179. package/dist/auth/components/ResetPasswordForm.js.map +0 -1
  180. package/dist/auth/components/SignInForm.d.ts +0 -21
  181. package/dist/auth/components/SignInForm.d.ts.map +0 -1
  182. package/dist/auth/components/SignInForm.js +0 -63
  183. package/dist/auth/components/SignInForm.js.map +0 -1
  184. package/dist/auth/components/SignUpForm.d.ts +0 -18
  185. package/dist/auth/components/SignUpForm.d.ts.map +0 -1
  186. package/dist/auth/components/SignUpForm.js +0 -79
  187. package/dist/auth/components/SignUpForm.js.map +0 -1
  188. package/dist/auth/components/UserMenu.d.ts +0 -18
  189. package/dist/auth/components/UserMenu.d.ts.map +0 -1
  190. package/dist/auth/components/UserMenu.js +0 -75
  191. package/dist/auth/components/UserMenu.js.map +0 -1
  192. package/dist/auth/components/VerifyEmailNotice.d.ts +0 -20
  193. package/dist/auth/components/VerifyEmailNotice.d.ts.map +0 -1
  194. package/dist/auth/components/VerifyEmailNotice.js +0 -59
  195. package/dist/auth/components/VerifyEmailNotice.js.map +0 -1
  196. package/dist/auth/components/index.d.ts +0 -13
  197. package/dist/auth/components/index.d.ts.map +0 -1
  198. package/dist/auth/components/index.js +0 -24
  199. package/dist/auth/components/index.js.map +0 -1
  200. package/dist/auth/config.d.ts +0 -42
  201. package/dist/auth/config.d.ts.map +0 -1
  202. package/dist/auth/config.js +0 -174
  203. package/dist/auth/config.js.map +0 -1
  204. package/dist/auth/hooks/index.d.ts +0 -7
  205. package/dist/auth/hooks/index.d.ts.map +0 -1
  206. package/dist/auth/hooks/index.js +0 -11
  207. package/dist/auth/hooks/index.js.map +0 -1
  208. package/dist/auth/index.d.ts +0 -54
  209. package/dist/auth/index.d.ts.map +0 -1
  210. package/dist/auth/index.js +0 -88
  211. package/dist/auth/index.js.map +0 -1
  212. package/dist/auth/server/customer-service.d.ts +0 -138
  213. package/dist/auth/server/customer-service.d.ts.map +0 -1
  214. package/dist/auth/server/customer-service.js +0 -309
  215. package/dist/auth/server/customer-service.js.map +0 -1
  216. package/dist/auth/server/email-sender.d.ts +0 -64
  217. package/dist/auth/server/email-sender.d.ts.map +0 -1
  218. package/dist/auth/server/email-sender.js +0 -112
  219. package/dist/auth/server/email-sender.js.map +0 -1
  220. package/dist/auth/server/index.d.ts +0 -13
  221. package/dist/auth/server/index.d.ts.map +0 -1
  222. package/dist/auth/server/index.js +0 -48
  223. package/dist/auth/server/index.js.map +0 -1
  224. package/dist/auth/server/password-reset-service.d.ts +0 -86
  225. package/dist/auth/server/password-reset-service.d.ts.map +0 -1
  226. package/dist/auth/server/password-reset-service.js +0 -236
  227. package/dist/auth/server/password-reset-service.js.map +0 -1
  228. package/dist/auth/server/password.d.ts +0 -58
  229. package/dist/auth/server/password.d.ts.map +0 -1
  230. package/dist/auth/server/password.js +0 -94
  231. package/dist/auth/server/password.js.map +0 -1
  232. package/dist/auth/server/verification-service.d.ts +0 -87
  233. package/dist/auth/server/verification-service.d.ts.map +0 -1
  234. package/dist/auth/server/verification-service.js +0 -268
  235. package/dist/auth/server/verification-service.js.map +0 -1
  236. package/dist/auth/types.d.ts +0 -305
  237. package/dist/auth/types.d.ts.map +0 -1
  238. package/dist/auth/types.js +0 -8
  239. package/dist/auth/types.js.map +0 -1
  240. package/dist/cart/CartProvider.d.ts +0 -65
  241. package/dist/cart/CartProvider.d.ts.map +0 -1
  242. package/dist/cart/CartProvider.js +0 -101
  243. package/dist/cart/CartProvider.js.map +0 -1
  244. package/dist/cart/components/AddToCartButton.d.ts +0 -77
  245. package/dist/cart/components/AddToCartButton.d.ts.map +0 -1
  246. package/dist/cart/components/AddToCartButton.js +0 -124
  247. package/dist/cart/components/AddToCartButton.js.map +0 -1
  248. package/dist/cart/components/CartDrawer.d.ts +0 -71
  249. package/dist/cart/components/CartDrawer.d.ts.map +0 -1
  250. package/dist/cart/components/CartDrawer.js +0 -108
  251. package/dist/cart/components/CartDrawer.js.map +0 -1
  252. package/dist/cart/components/CartIcon.d.ts +0 -36
  253. package/dist/cart/components/CartIcon.d.ts.map +0 -1
  254. package/dist/cart/components/CartIcon.js +0 -70
  255. package/dist/cart/components/CartIcon.js.map +0 -1
  256. package/dist/cart/components/CartItem.d.ts +0 -52
  257. package/dist/cart/components/CartItem.d.ts.map +0 -1
  258. package/dist/cart/components/CartItem.js +0 -55
  259. package/dist/cart/components/CartItem.js.map +0 -1
  260. package/dist/cart/components/CartSummary.d.ts +0 -43
  261. package/dist/cart/components/CartSummary.d.ts.map +0 -1
  262. package/dist/cart/components/CartSummary.js +0 -58
  263. package/dist/cart/components/CartSummary.js.map +0 -1
  264. package/dist/cart/components/QuantitySelector.d.ts +0 -39
  265. package/dist/cart/components/QuantitySelector.d.ts.map +0 -1
  266. package/dist/cart/components/QuantitySelector.js +0 -87
  267. package/dist/cart/components/QuantitySelector.js.map +0 -1
  268. package/dist/cart/components/index.d.ts +0 -18
  269. package/dist/cart/components/index.d.ts.map +0 -1
  270. package/dist/cart/components/index.js +0 -21
  271. package/dist/cart/components/index.js.map +0 -1
  272. package/dist/cart/index.d.ts +0 -109
  273. package/dist/cart/index.d.ts.map +0 -1
  274. package/dist/cart/index.js +0 -129
  275. package/dist/cart/index.js.map +0 -1
  276. package/dist/cart/store.d.ts +0 -101
  277. package/dist/cart/store.d.ts.map +0 -1
  278. package/dist/cart/store.js +0 -207
  279. package/dist/cart/store.js.map +0 -1
  280. package/dist/checkout/api/checkout.d.ts +0 -31
  281. package/dist/checkout/api/checkout.d.ts.map +0 -1
  282. package/dist/checkout/api/checkout.js +0 -103
  283. package/dist/checkout/api/checkout.js.map +0 -1
  284. package/dist/checkout/api/index.d.ts +0 -8
  285. package/dist/checkout/api/index.d.ts.map +0 -1
  286. package/dist/checkout/api/index.js +0 -13
  287. package/dist/checkout/api/index.js.map +0 -1
  288. package/dist/checkout/api/webhook.d.ts +0 -30
  289. package/dist/checkout/api/webhook.d.ts.map +0 -1
  290. package/dist/checkout/api/webhook.js +0 -58
  291. package/dist/checkout/api/webhook.js.map +0 -1
  292. package/dist/checkout/components/CheckoutButton.d.ts +0 -44
  293. package/dist/checkout/components/CheckoutButton.d.ts.map +0 -1
  294. package/dist/checkout/components/CheckoutButton.js +0 -97
  295. package/dist/checkout/components/CheckoutButton.js.map +0 -1
  296. package/dist/checkout/components/CheckoutSuccess.d.ts +0 -29
  297. package/dist/checkout/components/CheckoutSuccess.d.ts.map +0 -1
  298. package/dist/checkout/components/CheckoutSuccess.js +0 -60
  299. package/dist/checkout/components/CheckoutSuccess.js.map +0 -1
  300. package/dist/checkout/components/OrderSummary.d.ts +0 -37
  301. package/dist/checkout/components/OrderSummary.d.ts.map +0 -1
  302. package/dist/checkout/components/OrderSummary.js +0 -70
  303. package/dist/checkout/components/OrderSummary.js.map +0 -1
  304. package/dist/checkout/components/ShippingForm.d.ts +0 -30
  305. package/dist/checkout/components/ShippingForm.d.ts.map +0 -1
  306. package/dist/checkout/components/ShippingForm.js +0 -125
  307. package/dist/checkout/components/ShippingForm.js.map +0 -1
  308. package/dist/checkout/components/index.d.ts +0 -10
  309. package/dist/checkout/components/index.d.ts.map +0 -1
  310. package/dist/checkout/components/index.js +0 -17
  311. package/dist/checkout/components/index.js.map +0 -1
  312. package/dist/checkout/hooks/index.d.ts +0 -7
  313. package/dist/checkout/hooks/index.d.ts.map +0 -1
  314. package/dist/checkout/hooks/index.js +0 -12
  315. package/dist/checkout/hooks/index.js.map +0 -1
  316. package/dist/checkout/hooks/useCheckout.d.ts +0 -61
  317. package/dist/checkout/hooks/useCheckout.d.ts.map +0 -1
  318. package/dist/checkout/hooks/useCheckout.js +0 -174
  319. package/dist/checkout/hooks/useCheckout.js.map +0 -1
  320. package/dist/checkout/index.d.ts +0 -111
  321. package/dist/checkout/index.d.ts.map +0 -1
  322. package/dist/checkout/index.js +0 -148
  323. package/dist/checkout/index.js.map +0 -1
  324. package/dist/checkout/server/create-checkout-session.d.ts +0 -69
  325. package/dist/checkout/server/create-checkout-session.d.ts.map +0 -1
  326. package/dist/checkout/server/create-checkout-session.js +0 -190
  327. package/dist/checkout/server/create-checkout-session.js.map +0 -1
  328. package/dist/checkout/server/handle-webhook.d.ts +0 -35
  329. package/dist/checkout/server/handle-webhook.d.ts.map +0 -1
  330. package/dist/checkout/server/handle-webhook.js +0 -279
  331. package/dist/checkout/server/handle-webhook.js.map +0 -1
  332. package/dist/checkout/server/index.d.ts +0 -10
  333. package/dist/checkout/server/index.d.ts.map +0 -1
  334. package/dist/checkout/server/index.js +0 -19
  335. package/dist/checkout/server/index.js.map +0 -1
  336. package/dist/checkout/server/order-service.d.ts +0 -43
  337. package/dist/checkout/server/order-service.d.ts.map +0 -1
  338. package/dist/checkout/server/order-service.js +0 -196
  339. package/dist/checkout/server/order-service.js.map +0 -1
  340. package/dist/checkout/stripe/client.d.ts +0 -72
  341. package/dist/checkout/stripe/client.d.ts.map +0 -1
  342. package/dist/checkout/stripe/client.js +0 -189
  343. package/dist/checkout/stripe/client.js.map +0 -1
  344. package/dist/checkout/stripe/index.d.ts +0 -7
  345. package/dist/checkout/stripe/index.d.ts.map +0 -1
  346. package/dist/checkout/stripe/index.js +0 -21
  347. package/dist/checkout/stripe/index.js.map +0 -1
  348. package/dist/checkout/types.d.ts +0 -263
  349. package/dist/checkout/types.d.ts.map +0 -1
  350. package/dist/checkout/types.js +0 -9
  351. package/dist/checkout/types.js.map +0 -1
  352. package/dist/core/config.d.ts +0 -296
  353. package/dist/core/config.d.ts.map +0 -1
  354. package/dist/core/config.js +0 -162
  355. package/dist/core/config.js.map +0 -1
  356. package/dist/core/db/client.d.ts +0 -69
  357. package/dist/core/db/client.d.ts.map +0 -1
  358. package/dist/core/db/client.js +0 -202
  359. package/dist/core/db/client.js.map +0 -1
  360. package/dist/core/db/index.d.ts +0 -11
  361. package/dist/core/db/index.d.ts.map +0 -1
  362. package/dist/core/db/index.js +0 -87
  363. package/dist/core/db/index.js.map +0 -1
  364. package/dist/core/db/queries.d.ts +0 -658
  365. package/dist/core/db/queries.d.ts.map +0 -1
  366. package/dist/core/db/queries.js +0 -735
  367. package/dist/core/db/queries.js.map +0 -1
  368. package/dist/core/db/schema.d.ts +0 -1628
  369. package/dist/core/db/schema.d.ts.map +0 -1
  370. package/dist/core/db/schema.js +0 -262
  371. package/dist/core/db/schema.js.map +0 -1
  372. package/dist/core/index.d.ts +0 -20
  373. package/dist/core/index.d.ts.map +0 -1
  374. package/dist/core/index.js +0 -71
  375. package/dist/core/index.js.map +0 -1
  376. package/dist/core/server/index.d.ts +0 -17
  377. package/dist/core/server/index.d.ts.map +0 -1
  378. package/dist/core/server/index.js +0 -68
  379. package/dist/core/server/index.js.map +0 -1
  380. package/dist/core/types.d.ts +0 -230
  381. package/dist/core/types.d.ts.map +0 -1
  382. package/dist/core/types.js +0 -9
  383. package/dist/core/types.js.map +0 -1
  384. package/dist/core/utils.d.ts +0 -153
  385. package/dist/core/utils.d.ts.map +0 -1
  386. package/dist/core/utils.js +0 -356
  387. package/dist/core/utils.js.map +0 -1
  388. package/dist/emails/config.d.ts +0 -42
  389. package/dist/emails/config.d.ts.map +0 -1
  390. package/dist/emails/config.js +0 -89
  391. package/dist/emails/config.js.map +0 -1
  392. package/dist/emails/index.d.ts +0 -85
  393. package/dist/emails/index.d.ts.map +0 -1
  394. package/dist/emails/index.js +0 -170
  395. package/dist/emails/index.js.map +0 -1
  396. package/dist/emails/send/auth.d.ts +0 -91
  397. package/dist/emails/send/auth.d.ts.map +0 -1
  398. package/dist/emails/send/auth.js +0 -132
  399. package/dist/emails/send/auth.js.map +0 -1
  400. package/dist/emails/send/index.d.ts +0 -10
  401. package/dist/emails/send/index.d.ts.map +0 -1
  402. package/dist/emails/send/index.js +0 -33
  403. package/dist/emails/send/index.js.map +0 -1
  404. package/dist/emails/send/orders.d.ts +0 -180
  405. package/dist/emails/send/orders.d.ts.map +0 -1
  406. package/dist/emails/send/orders.js +0 -259
  407. package/dist/emails/send/orders.js.map +0 -1
  408. package/dist/emails/sender.d.ts +0 -72
  409. package/dist/emails/sender.d.ts.map +0 -1
  410. package/dist/emails/sender.js +0 -118
  411. package/dist/emails/sender.js.map +0 -1
  412. package/dist/emails/templates/base.d.ts +0 -105
  413. package/dist/emails/templates/base.d.ts.map +0 -1
  414. package/dist/emails/templates/base.js +0 -291
  415. package/dist/emails/templates/base.js.map +0 -1
  416. package/dist/emails/templates/email-verification.d.ts +0 -28
  417. package/dist/emails/templates/email-verification.d.ts.map +0 -1
  418. package/dist/emails/templates/email-verification.js +0 -56
  419. package/dist/emails/templates/email-verification.js.map +0 -1
  420. package/dist/emails/templates/index.d.ts +0 -15
  421. package/dist/emails/templates/index.d.ts.map +0 -1
  422. package/dist/emails/templates/index.js +0 -58
  423. package/dist/emails/templates/index.js.map +0 -1
  424. package/dist/emails/templates/order-cancelled.d.ts +0 -30
  425. package/dist/emails/templates/order-cancelled.d.ts.map +0 -1
  426. package/dist/emails/templates/order-cancelled.js +0 -87
  427. package/dist/emails/templates/order-cancelled.js.map +0 -1
  428. package/dist/emails/templates/order-confirmation.d.ts +0 -36
  429. package/dist/emails/templates/order-confirmation.d.ts.map +0 -1
  430. package/dist/emails/templates/order-confirmation.js +0 -161
  431. package/dist/emails/templates/order-confirmation.js.map +0 -1
  432. package/dist/emails/templates/order-delivered.d.ts +0 -31
  433. package/dist/emails/templates/order-delivered.d.ts.map +0 -1
  434. package/dist/emails/templates/order-delivered.js +0 -95
  435. package/dist/emails/templates/order-delivered.js.map +0 -1
  436. package/dist/emails/templates/order-shipped.d.ts +0 -32
  437. package/dist/emails/templates/order-shipped.d.ts.map +0 -1
  438. package/dist/emails/templates/order-shipped.js +0 -87
  439. package/dist/emails/templates/order-shipped.js.map +0 -1
  440. package/dist/emails/templates/password-reset.d.ts +0 -27
  441. package/dist/emails/templates/password-reset.d.ts.map +0 -1
  442. package/dist/emails/templates/password-reset.js +0 -55
  443. package/dist/emails/templates/password-reset.js.map +0 -1
  444. package/dist/emails/templates/refund-processed.d.ts +0 -32
  445. package/dist/emails/templates/refund-processed.d.ts.map +0 -1
  446. package/dist/emails/templates/refund-processed.js +0 -96
  447. package/dist/emails/templates/refund-processed.js.map +0 -1
  448. package/dist/emails/templates/welcome.d.ts +0 -27
  449. package/dist/emails/templates/welcome.d.ts.map +0 -1
  450. package/dist/emails/templates/welcome.js +0 -56
  451. package/dist/emails/templates/welcome.js.map +0 -1
  452. package/dist/emails/types.d.ts +0 -202
  453. package/dist/emails/types.d.ts.map +0 -1
  454. package/dist/emails/types.js +0 -8
  455. package/dist/emails/types.js.map +0 -1
  456. package/dist/emails/utils.d.ts +0 -94
  457. package/dist/emails/utils.d.ts.map +0 -1
  458. package/dist/emails/utils.js +0 -229
  459. package/dist/emails/utils.js.map +0 -1
  460. package/dist/index.d.ts +0 -40
  461. package/dist/index.d.ts.map +0 -1
  462. package/dist/index.js +0 -225
  463. package/dist/index.js.map +0 -1
  464. package/dist/products/api/categories.d.ts +0 -29
  465. package/dist/products/api/categories.d.ts.map +0 -1
  466. package/dist/products/api/categories.js +0 -49
  467. package/dist/products/api/categories.js.map +0 -1
  468. package/dist/products/api/index.d.ts +0 -24
  469. package/dist/products/api/index.d.ts.map +0 -1
  470. package/dist/products/api/index.js +0 -30
  471. package/dist/products/api/index.js.map +0 -1
  472. package/dist/products/api/product.d.ts +0 -36
  473. package/dist/products/api/product.d.ts.map +0 -1
  474. package/dist/products/api/product.js +0 -70
  475. package/dist/products/api/product.js.map +0 -1
  476. package/dist/products/api/products.d.ts +0 -41
  477. package/dist/products/api/products.d.ts.map +0 -1
  478. package/dist/products/api/products.js +0 -102
  479. package/dist/products/api/products.js.map +0 -1
  480. package/dist/products/components/CategoryNav.d.ts +0 -51
  481. package/dist/products/components/CategoryNav.d.ts.map +0 -1
  482. package/dist/products/components/CategoryNav.js +0 -115
  483. package/dist/products/components/CategoryNav.js.map +0 -1
  484. package/dist/products/components/ProductBreadcrumb.d.ts +0 -52
  485. package/dist/products/components/ProductBreadcrumb.d.ts.map +0 -1
  486. package/dist/products/components/ProductBreadcrumb.js +0 -78
  487. package/dist/products/components/ProductBreadcrumb.js.map +0 -1
  488. package/dist/products/components/ProductCard.d.ts +0 -54
  489. package/dist/products/components/ProductCard.d.ts.map +0 -1
  490. package/dist/products/components/ProductCard.js +0 -65
  491. package/dist/products/components/ProductCard.js.map +0 -1
  492. package/dist/products/components/ProductDetails.d.ts +0 -63
  493. package/dist/products/components/ProductDetails.d.ts.map +0 -1
  494. package/dist/products/components/ProductDetails.js +0 -105
  495. package/dist/products/components/ProductDetails.js.map +0 -1
  496. package/dist/products/components/ProductFilters.d.ts +0 -70
  497. package/dist/products/components/ProductFilters.d.ts.map +0 -1
  498. package/dist/products/components/ProductFilters.js +0 -127
  499. package/dist/products/components/ProductFilters.js.map +0 -1
  500. package/dist/products/components/ProductGallery.d.ts +0 -37
  501. package/dist/products/components/ProductGallery.d.ts.map +0 -1
  502. package/dist/products/components/ProductGallery.js +0 -80
  503. package/dist/products/components/ProductGallery.js.map +0 -1
  504. package/dist/products/components/ProductGrid.d.ts +0 -50
  505. package/dist/products/components/ProductGrid.d.ts.map +0 -1
  506. package/dist/products/components/ProductGrid.js +0 -83
  507. package/dist/products/components/ProductGrid.js.map +0 -1
  508. package/dist/products/components/ProductSearch.d.ts +0 -43
  509. package/dist/products/components/ProductSearch.d.ts.map +0 -1
  510. package/dist/products/components/ProductSearch.js +0 -99
  511. package/dist/products/components/ProductSearch.js.map +0 -1
  512. package/dist/products/components/ProductSort.d.ts +0 -43
  513. package/dist/products/components/ProductSort.d.ts.map +0 -1
  514. package/dist/products/components/ProductSort.js +0 -61
  515. package/dist/products/components/ProductSort.js.map +0 -1
  516. package/dist/products/components/VariantSelector.d.ts +0 -43
  517. package/dist/products/components/VariantSelector.d.ts.map +0 -1
  518. package/dist/products/components/VariantSelector.js +0 -147
  519. package/dist/products/components/VariantSelector.js.map +0 -1
  520. package/dist/products/components/index.d.ts +0 -26
  521. package/dist/products/components/index.d.ts.map +0 -1
  522. package/dist/products/components/index.js +0 -32
  523. package/dist/products/components/index.js.map +0 -1
  524. package/dist/products/hooks/index.d.ts +0 -14
  525. package/dist/products/hooks/index.d.ts.map +0 -1
  526. package/dist/products/hooks/index.js +0 -17
  527. package/dist/products/hooks/index.js.map +0 -1
  528. package/dist/products/hooks/useCategories.d.ts +0 -56
  529. package/dist/products/hooks/useCategories.d.ts.map +0 -1
  530. package/dist/products/hooks/useCategories.js +0 -126
  531. package/dist/products/hooks/useCategories.js.map +0 -1
  532. package/dist/products/hooks/useProduct.d.ts +0 -44
  533. package/dist/products/hooks/useProduct.d.ts.map +0 -1
  534. package/dist/products/hooks/useProduct.js +0 -86
  535. package/dist/products/hooks/useProduct.js.map +0 -1
  536. package/dist/products/hooks/useProductAttributes.d.ts +0 -59
  537. package/dist/products/hooks/useProductAttributes.d.ts.map +0 -1
  538. package/dist/products/hooks/useProductAttributes.js +0 -148
  539. package/dist/products/hooks/useProductAttributes.js.map +0 -1
  540. package/dist/products/hooks/useProducts.d.ts +0 -67
  541. package/dist/products/hooks/useProducts.d.ts.map +0 -1
  542. package/dist/products/hooks/useProducts.js +0 -132
  543. package/dist/products/hooks/useProducts.js.map +0 -1
  544. package/dist/products/index.d.ts +0 -94
  545. package/dist/products/index.d.ts.map +0 -1
  546. package/dist/products/index.js +0 -123
  547. package/dist/products/index.js.map +0 -1
  548. package/dist/theme/ThemeProvider.d.ts +0 -70
  549. package/dist/theme/ThemeProvider.d.ts.map +0 -1
  550. package/dist/theme/ThemeProvider.js +0 -77
  551. package/dist/theme/ThemeProvider.js.map +0 -1
  552. package/dist/theme/colors.d.ts +0 -148
  553. package/dist/theme/colors.d.ts.map +0 -1
  554. package/dist/theme/colors.js +0 -219
  555. package/dist/theme/colors.js.map +0 -1
  556. package/dist/theme/defaults.d.ts +0 -212
  557. package/dist/theme/defaults.d.ts.map +0 -1
  558. package/dist/theme/defaults.js +0 -278
  559. package/dist/theme/defaults.js.map +0 -1
  560. package/dist/theme/fonts.d.ts +0 -59
  561. package/dist/theme/fonts.d.ts.map +0 -1
  562. package/dist/theme/fonts.js +0 -202
  563. package/dist/theme/fonts.js.map +0 -1
  564. package/dist/theme/generator.d.ts +0 -50
  565. package/dist/theme/generator.d.ts.map +0 -1
  566. package/dist/theme/generator.js +0 -322
  567. package/dist/theme/generator.js.map +0 -1
  568. package/dist/theme/hooks.d.ts +0 -110
  569. package/dist/theme/hooks.d.ts.map +0 -1
  570. package/dist/theme/hooks.js +0 -106
  571. package/dist/theme/hooks.js.map +0 -1
  572. package/dist/theme/index.d.ts +0 -37
  573. package/dist/theme/index.d.ts.map +0 -1
  574. package/dist/theme/index.js +0 -85
  575. package/dist/theme/index.js.map +0 -1
@@ -1,170 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails
4
- *
5
- * Transactional email module for e-commerce stores.
6
- *
7
- * This module provides:
8
- * - Email template rendering functions
9
- * - Send functions for common transactional emails
10
- * - Configuration utilities for Resend integration
11
- *
12
- * @example Basic Usage
13
- * ```typescript
14
- * import { sendOrderConfirmation, sendVerificationEmail } from '@rovela/sdk/emails'
15
- *
16
- * // Send order confirmation
17
- * await sendOrderConfirmation({
18
- * to: 'customer@example.com',
19
- * customerName: 'John',
20
- * orderNumber: 'ORD-12345',
21
- * // ... other params
22
- * })
23
- *
24
- * // Send verification email
25
- * await sendVerificationEmail({
26
- * to: 'customer@example.com',
27
- * customerName: 'John',
28
- * verificationLink: 'https://store.com/verify?token=...',
29
- * })
30
- * ```
31
- *
32
- * @example Fire-and-Forget (Webhooks)
33
- * ```typescript
34
- * import { sendOrderConfirmationAsync } from '@rovela/sdk/emails'
35
- *
36
- * // In webhook handler - don't wait for email
37
- * sendOrderConfirmationAsync({
38
- * to: 'customer@example.com',
39
- * // ...
40
- * })
41
- *
42
- * // Return immediately
43
- * return Response.json({ received: true })
44
- * ```
45
- *
46
- * @example Custom Templates
47
- * ```typescript
48
- * import { sendEmail, getEmailConfig, baseLayout } from '@rovela/sdk/emails'
49
- *
50
- * // Build custom email HTML
51
- * const config = getEmailConfig()
52
- * const html = baseLayout({
53
- * config,
54
- * title: 'Custom Email',
55
- * content: '<h1>Hello World</h1>',
56
- * })
57
- *
58
- * // Send it
59
- * await sendEmail({
60
- * to: 'customer@example.com',
61
- * subject: 'Custom Email',
62
- * html,
63
- * })
64
- * ```
65
- *
66
- * ## Environment Variables
67
- *
68
- * Required:
69
- * - `RESEND_API_KEY` - Your Resend API key
70
- * - `RESEND_FROM_EMAIL` - Sender email address (must be verified in Resend)
71
- *
72
- * Optional:
73
- * - `STORE_NAME` - Store name (falls back to blueprint config)
74
- * - `STORE_LOGO_URL` - Logo URL for emails
75
- * - `STORE_ADDRESS` - Physical address for footer
76
- * - `SUPPORT_EMAIL` - Support email (falls back to RESEND_FROM_EMAIL)
77
- * - `NEXT_PUBLIC_APP_URL` - Store URL for links
78
- */
79
- Object.defineProperty(exports, "__esModule", { value: true });
80
- exports.sendWelcomeEmail = exports.sendVerificationEmailAsync = exports.sendVerificationEmail = exports.getRefundProcessedSubject = exports.renderRefundProcessed = exports.getOrderCancelledSubject = exports.renderOrderCancelled = exports.getOrderDeliveredSubject = exports.renderOrderDelivered = exports.getOrderShippedSubject = exports.renderOrderShipped = exports.getOrderConfirmationSubject = exports.renderOrderConfirmation = exports.getPasswordResetSubject = exports.renderPasswordResetEmail = exports.getWelcomeEmailSubject = exports.renderWelcomeEmail = exports.getEmailVerificationSubject = exports.renderEmailVerification = exports.STYLES = exports.sectionHeading = exports.addressSection = exports.secondaryButton = exports.highlightBox = exports.statusBadge = exports.detailBox = exports.linkFallback = exports.infoBox = exports.paragraph = exports.heading = exports.primaryButton = exports.baseLayout = exports.formatOrderNumber = exports.emailFooter = exports.emailButton = exports.escapeHtml = exports.formatAddressHtml = exports.formatAddressLine = exports.formatPrice = exports.formatDateTime = exports.formatDate = exports.sendEmailBatch = exports.sendEmailAsync = exports.sendEmail = exports.getSupportEmail = exports.getEmailConfig = exports.getStoreUrl = exports.getStoreName = exports.getFromEmail = exports.getResend = void 0;
81
- exports.sendRefundProcessedAsync = exports.sendRefundProcessed = exports.sendOrderCancelledAsync = exports.sendOrderCancelled = exports.sendOrderDeliveredAsync = exports.sendOrderDelivered = exports.sendOrderShippedAsync = exports.sendOrderShipped = exports.sendOrderConfirmationAsync = exports.sendOrderConfirmation = exports.sendPasswordResetEmailAsync = exports.sendPasswordResetEmail = exports.sendWelcomeEmailAsync = void 0;
82
- // =============================================================================
83
- // Configuration
84
- // =============================================================================
85
- var config_1 = require("./config");
86
- Object.defineProperty(exports, "getResend", { enumerable: true, get: function () { return config_1.getResend; } });
87
- Object.defineProperty(exports, "getFromEmail", { enumerable: true, get: function () { return config_1.getFromEmail; } });
88
- Object.defineProperty(exports, "getStoreName", { enumerable: true, get: function () { return config_1.getStoreName; } });
89
- Object.defineProperty(exports, "getStoreUrl", { enumerable: true, get: function () { return config_1.getStoreUrl; } });
90
- Object.defineProperty(exports, "getEmailConfig", { enumerable: true, get: function () { return config_1.getEmailConfig; } });
91
- Object.defineProperty(exports, "getSupportEmail", { enumerable: true, get: function () { return config_1.getSupportEmail; } });
92
- // =============================================================================
93
- // Core Sender
94
- // =============================================================================
95
- var sender_1 = require("./sender");
96
- Object.defineProperty(exports, "sendEmail", { enumerable: true, get: function () { return sender_1.sendEmail; } });
97
- Object.defineProperty(exports, "sendEmailAsync", { enumerable: true, get: function () { return sender_1.sendEmailAsync; } });
98
- Object.defineProperty(exports, "sendEmailBatch", { enumerable: true, get: function () { return sender_1.sendEmailBatch; } });
99
- // =============================================================================
100
- // Utilities
101
- // =============================================================================
102
- var utils_1 = require("./utils");
103
- Object.defineProperty(exports, "formatDate", { enumerable: true, get: function () { return utils_1.formatDate; } });
104
- Object.defineProperty(exports, "formatDateTime", { enumerable: true, get: function () { return utils_1.formatDateTime; } });
105
- Object.defineProperty(exports, "formatPrice", { enumerable: true, get: function () { return utils_1.formatPrice; } });
106
- Object.defineProperty(exports, "formatAddressLine", { enumerable: true, get: function () { return utils_1.formatAddressLine; } });
107
- Object.defineProperty(exports, "formatAddressHtml", { enumerable: true, get: function () { return utils_1.formatAddressHtml; } });
108
- Object.defineProperty(exports, "escapeHtml", { enumerable: true, get: function () { return utils_1.escapeHtml; } });
109
- Object.defineProperty(exports, "emailButton", { enumerable: true, get: function () { return utils_1.emailButton; } });
110
- Object.defineProperty(exports, "emailFooter", { enumerable: true, get: function () { return utils_1.emailFooter; } });
111
- Object.defineProperty(exports, "formatOrderNumber", { enumerable: true, get: function () { return utils_1.formatOrderNumber; } });
112
- // =============================================================================
113
- // Templates (Render Functions)
114
- // =============================================================================
115
- var templates_1 = require("./templates");
116
- // Base components
117
- Object.defineProperty(exports, "baseLayout", { enumerable: true, get: function () { return templates_1.baseLayout; } });
118
- Object.defineProperty(exports, "primaryButton", { enumerable: true, get: function () { return templates_1.primaryButton; } });
119
- Object.defineProperty(exports, "heading", { enumerable: true, get: function () { return templates_1.heading; } });
120
- Object.defineProperty(exports, "paragraph", { enumerable: true, get: function () { return templates_1.paragraph; } });
121
- Object.defineProperty(exports, "infoBox", { enumerable: true, get: function () { return templates_1.infoBox; } });
122
- Object.defineProperty(exports, "linkFallback", { enumerable: true, get: function () { return templates_1.linkFallback; } });
123
- Object.defineProperty(exports, "detailBox", { enumerable: true, get: function () { return templates_1.detailBox; } });
124
- Object.defineProperty(exports, "statusBadge", { enumerable: true, get: function () { return templates_1.statusBadge; } });
125
- Object.defineProperty(exports, "highlightBox", { enumerable: true, get: function () { return templates_1.highlightBox; } });
126
- Object.defineProperty(exports, "secondaryButton", { enumerable: true, get: function () { return templates_1.secondaryButton; } });
127
- Object.defineProperty(exports, "addressSection", { enumerable: true, get: function () { return templates_1.addressSection; } });
128
- Object.defineProperty(exports, "sectionHeading", { enumerable: true, get: function () { return templates_1.sectionHeading; } });
129
- Object.defineProperty(exports, "STYLES", { enumerable: true, get: function () { return templates_1.STYLES; } });
130
- // Auth templates
131
- Object.defineProperty(exports, "renderEmailVerification", { enumerable: true, get: function () { return templates_1.renderEmailVerification; } });
132
- Object.defineProperty(exports, "getEmailVerificationSubject", { enumerable: true, get: function () { return templates_1.getEmailVerificationSubject; } });
133
- Object.defineProperty(exports, "renderWelcomeEmail", { enumerable: true, get: function () { return templates_1.renderWelcomeEmail; } });
134
- Object.defineProperty(exports, "getWelcomeEmailSubject", { enumerable: true, get: function () { return templates_1.getWelcomeEmailSubject; } });
135
- Object.defineProperty(exports, "renderPasswordResetEmail", { enumerable: true, get: function () { return templates_1.renderPasswordResetEmail; } });
136
- Object.defineProperty(exports, "getPasswordResetSubject", { enumerable: true, get: function () { return templates_1.getPasswordResetSubject; } });
137
- // Order templates
138
- Object.defineProperty(exports, "renderOrderConfirmation", { enumerable: true, get: function () { return templates_1.renderOrderConfirmation; } });
139
- Object.defineProperty(exports, "getOrderConfirmationSubject", { enumerable: true, get: function () { return templates_1.getOrderConfirmationSubject; } });
140
- Object.defineProperty(exports, "renderOrderShipped", { enumerable: true, get: function () { return templates_1.renderOrderShipped; } });
141
- Object.defineProperty(exports, "getOrderShippedSubject", { enumerable: true, get: function () { return templates_1.getOrderShippedSubject; } });
142
- Object.defineProperty(exports, "renderOrderDelivered", { enumerable: true, get: function () { return templates_1.renderOrderDelivered; } });
143
- Object.defineProperty(exports, "getOrderDeliveredSubject", { enumerable: true, get: function () { return templates_1.getOrderDeliveredSubject; } });
144
- Object.defineProperty(exports, "renderOrderCancelled", { enumerable: true, get: function () { return templates_1.renderOrderCancelled; } });
145
- Object.defineProperty(exports, "getOrderCancelledSubject", { enumerable: true, get: function () { return templates_1.getOrderCancelledSubject; } });
146
- Object.defineProperty(exports, "renderRefundProcessed", { enumerable: true, get: function () { return templates_1.renderRefundProcessed; } });
147
- Object.defineProperty(exports, "getRefundProcessedSubject", { enumerable: true, get: function () { return templates_1.getRefundProcessedSubject; } });
148
- // =============================================================================
149
- // Send Functions (Convenience)
150
- // =============================================================================
151
- var send_1 = require("./send");
152
- // Auth emails
153
- Object.defineProperty(exports, "sendVerificationEmail", { enumerable: true, get: function () { return send_1.sendVerificationEmail; } });
154
- Object.defineProperty(exports, "sendVerificationEmailAsync", { enumerable: true, get: function () { return send_1.sendVerificationEmailAsync; } });
155
- Object.defineProperty(exports, "sendWelcomeEmail", { enumerable: true, get: function () { return send_1.sendWelcomeEmail; } });
156
- Object.defineProperty(exports, "sendWelcomeEmailAsync", { enumerable: true, get: function () { return send_1.sendWelcomeEmailAsync; } });
157
- Object.defineProperty(exports, "sendPasswordResetEmail", { enumerable: true, get: function () { return send_1.sendPasswordResetEmail; } });
158
- Object.defineProperty(exports, "sendPasswordResetEmailAsync", { enumerable: true, get: function () { return send_1.sendPasswordResetEmailAsync; } });
159
- // Order emails
160
- Object.defineProperty(exports, "sendOrderConfirmation", { enumerable: true, get: function () { return send_1.sendOrderConfirmation; } });
161
- Object.defineProperty(exports, "sendOrderConfirmationAsync", { enumerable: true, get: function () { return send_1.sendOrderConfirmationAsync; } });
162
- Object.defineProperty(exports, "sendOrderShipped", { enumerable: true, get: function () { return send_1.sendOrderShipped; } });
163
- Object.defineProperty(exports, "sendOrderShippedAsync", { enumerable: true, get: function () { return send_1.sendOrderShippedAsync; } });
164
- Object.defineProperty(exports, "sendOrderDelivered", { enumerable: true, get: function () { return send_1.sendOrderDelivered; } });
165
- Object.defineProperty(exports, "sendOrderDeliveredAsync", { enumerable: true, get: function () { return send_1.sendOrderDeliveredAsync; } });
166
- Object.defineProperty(exports, "sendOrderCancelled", { enumerable: true, get: function () { return send_1.sendOrderCancelled; } });
167
- Object.defineProperty(exports, "sendOrderCancelledAsync", { enumerable: true, get: function () { return send_1.sendOrderCancelledAsync; } });
168
- Object.defineProperty(exports, "sendRefundProcessed", { enumerable: true, get: function () { return send_1.sendRefundProcessed; } });
169
- Object.defineProperty(exports, "sendRefundProcessedAsync", { enumerable: true, get: function () { return send_1.sendRefundProcessedAsync; } });
170
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/emails/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;;;;AA6BH,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAEhF,mCAOiB;A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AA;AAClB,mHAAA,sBAAsB,OAAA;AACtB,iHAAA,oBAAoB,OAAA;AACpB,qHAAA,wBAAwB,OAAA;AACxB,iHAAA,oBAAoB,OAAA;AACpB,qHAAA,wBAAwB,OAAA;AACxB,kHAAA,qBAAqB,OAAA;AACrB,sHAAA,yBAAyB,OAAA;AAG3B,gFAAgF;AAChF,+BAA+B;AAC/B,gFAAgF;AAEhF,+BAmBe;AAlBb,cAAc;AACd,6GAAA,qBAAqB,OAAA;AACrB,kHAAA,0BAA0B,OAAA;AAC1B,wGAAA,gBAAgB,OAAA;AAChB,6GAAA,qBAAqB,OAAA;AACrB,8GAAA,sBAAsB,OAAA;AACtB,mHAAA,2BAA2B,OAAA;AAC3B,eAAe;AACf,6GAAA,qBAAqB,OAAA;AACrB,kHAAA,0BAA0B,OAAA;AAC1B,wGAAA,gBAAgB,OAAA;AAChB,6GAAA,qBAAqB,OAAA;AACrB,0GAAA,kBAAkB,OAAA;AAClB,+GAAA,uBAAuB,OAAA;AACvB,0GAAA,kBAAkB,OAAA;AAClB,+GAAA,uBAAuB,OAAA;AACvB,2GAAA,mBAAmB,OAAA;AACnB,gHAAA,wBAAwB,OAAA"}
@@ -1,91 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/send/auth
3
- *
4
- * Send functions for authentication emails.
5
- */
6
- import type { SendEmailResult } from '../types';
7
- export interface SendVerificationEmailParams {
8
- /** Customer email address */
9
- to: string;
10
- /** Customer's first name */
11
- customerName: string;
12
- /** Verification link URL */
13
- verificationLink: string;
14
- /** Link expiry time in hours (default: "24") */
15
- expiryTime?: string;
16
- }
17
- /**
18
- * Send an email verification email.
19
- *
20
- * @example
21
- * ```typescript
22
- * import { sendVerificationEmail } from '@rovela/sdk/emails'
23
- *
24
- * await sendVerificationEmail({
25
- * to: 'john@example.com',
26
- * customerName: 'John',
27
- * verificationLink: 'https://store.com/verify?token=...',
28
- * })
29
- * ```
30
- */
31
- export declare function sendVerificationEmail(params: SendVerificationEmailParams): Promise<SendEmailResult>;
32
- export interface SendWelcomeEmailParams {
33
- /** Customer email address */
34
- to: string;
35
- /** Customer's first name */
36
- customerName: string;
37
- /** Account creation date (defaults to today) */
38
- createdDate?: Date | string;
39
- }
40
- /**
41
- * Send a welcome email after account creation/verification.
42
- *
43
- * @example
44
- * ```typescript
45
- * import { sendWelcomeEmail } from '@rovela/sdk/emails'
46
- *
47
- * await sendWelcomeEmail({
48
- * to: 'john@example.com',
49
- * customerName: 'John',
50
- * })
51
- * ```
52
- */
53
- export declare function sendWelcomeEmail(params: SendWelcomeEmailParams): Promise<SendEmailResult>;
54
- export interface SendPasswordResetEmailParams {
55
- /** Customer email address */
56
- to: string;
57
- /** Customer's first name */
58
- customerName: string;
59
- /** Password reset link URL */
60
- resetLink: string;
61
- /** Link expiry time in hours (default: "1") */
62
- expiryTime?: string;
63
- }
64
- /**
65
- * Send a password reset email.
66
- *
67
- * @example
68
- * ```typescript
69
- * import { sendPasswordResetEmail } from '@rovela/sdk/emails'
70
- *
71
- * await sendPasswordResetEmail({
72
- * to: 'john@example.com',
73
- * customerName: 'John',
74
- * resetLink: 'https://store.com/reset-password?token=...',
75
- * })
76
- * ```
77
- */
78
- export declare function sendPasswordResetEmail(params: SendPasswordResetEmailParams): Promise<SendEmailResult>;
79
- /**
80
- * Send verification email without waiting (fire-and-forget).
81
- */
82
- export declare function sendVerificationEmailAsync(params: SendVerificationEmailParams): void;
83
- /**
84
- * Send welcome email without waiting (fire-and-forget).
85
- */
86
- export declare function sendWelcomeEmailAsync(params: SendWelcomeEmailParams): void;
87
- /**
88
- * Send password reset email without waiting (fire-and-forget).
89
- */
90
- export declare function sendPasswordResetEmailAsync(params: SendPasswordResetEmailParams): void;
91
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/emails/send/auth.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,U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@@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/send/auth
4
- *
5
- * Send functions for authentication emails.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.sendVerificationEmail = sendVerificationEmail;
9
- exports.sendWelcomeEmail = sendWelcomeEmail;
10
- exports.sendPasswordResetEmail = sendPasswordResetEmail;
11
- exports.sendVerificationEmailAsync = sendVerificationEmailAsync;
12
- exports.sendWelcomeEmailAsync = sendWelcomeEmailAsync;
13
- exports.sendPasswordResetEmailAsync = sendPasswordResetEmailAsync;
14
- const sender_1 = require("../sender");
15
- const config_1 = require("../config");
16
- const utils_1 = require("../utils");
17
- const templates_1 = require("../templates");
18
- /**
19
- * Send an email verification email.
20
- *
21
- * @example
22
- * ```typescript
23
- * import { sendVerificationEmail } from '@rovela/sdk/emails'
24
- *
25
- * await sendVerificationEmail({
26
- * to: 'john@example.com',
27
- * customerName: 'John',
28
- * verificationLink: 'https://store.com/verify?token=...',
29
- * })
30
- * ```
31
- */
32
- async function sendVerificationEmail(params) {
33
- const config = (0, config_1.getEmailConfig)();
34
- const storeName = (0, config_1.getStoreName)();
35
- const html = (0, templates_1.renderEmailVerification)({
36
- config,
37
- customerName: params.customerName,
38
- customerEmail: params.to,
39
- verificationLink: params.verificationLink,
40
- expiryTime: params.expiryTime || '24',
41
- });
42
- return (0, sender_1.sendEmail)({
43
- to: params.to,
44
- subject: (0, templates_1.getEmailVerificationSubject)(storeName),
45
- html,
46
- });
47
- }
48
- /**
49
- * Send a welcome email after account creation/verification.
50
- *
51
- * @example
52
- * ```typescript
53
- * import { sendWelcomeEmail } from '@rovela/sdk/emails'
54
- *
55
- * await sendWelcomeEmail({
56
- * to: 'john@example.com',
57
- * customerName: 'John',
58
- * })
59
- * ```
60
- */
61
- async function sendWelcomeEmail(params) {
62
- const config = (0, config_1.getEmailConfig)();
63
- const storeName = (0, config_1.getStoreName)();
64
- const html = (0, templates_1.renderWelcomeEmail)({
65
- config,
66
- customerName: params.customerName,
67
- customerEmail: params.to,
68
- createdDate: (0, utils_1.formatDate)(params.createdDate || new Date()),
69
- });
70
- return (0, sender_1.sendEmail)({
71
- to: params.to,
72
- subject: (0, templates_1.getWelcomeEmailSubject)(storeName),
73
- html,
74
- });
75
- }
76
- /**
77
- * Send a password reset email.
78
- *
79
- * @example
80
- * ```typescript
81
- * import { sendPasswordResetEmail } from '@rovela/sdk/emails'
82
- *
83
- * await sendPasswordResetEmail({
84
- * to: 'john@example.com',
85
- * customerName: 'John',
86
- * resetLink: 'https://store.com/reset-password?token=...',
87
- * })
88
- * ```
89
- */
90
- async function sendPasswordResetEmail(params) {
91
- const config = (0, config_1.getEmailConfig)();
92
- const storeName = (0, config_1.getStoreName)();
93
- const html = (0, templates_1.renderPasswordResetEmail)({
94
- config,
95
- customerName: params.customerName,
96
- resetLink: params.resetLink,
97
- expiryTime: params.expiryTime || '1',
98
- });
99
- return (0, sender_1.sendEmail)({
100
- to: params.to,
101
- subject: (0, templates_1.getPasswordResetSubject)(storeName),
102
- html,
103
- });
104
- }
105
- // =============================================================================
106
- // Fire-and-Forget Variants
107
- // =============================================================================
108
- /**
109
- * Send verification email without waiting (fire-and-forget).
110
- */
111
- function sendVerificationEmailAsync(params) {
112
- sendVerificationEmail(params).catch((err) => {
113
- console.error('[Email] Failed to send verification email:', err);
114
- });
115
- }
116
- /**
117
- * Send welcome email without waiting (fire-and-forget).
118
- */
119
- function sendWelcomeEmailAsync(params) {
120
- sendWelcomeEmail(params).catch((err) => {
121
- console.error('[Email] Failed to send welcome email:', err);
122
- });
123
- }
124
- /**
125
- * Send password reset email without waiting (fire-and-forget).
126
- */
127
- function sendPasswordResetEmailAsync(params) {
128
- sendPasswordResetEmail(params).catch((err) => {
129
- console.error('[Email] Failed to send password reset email:', err);
130
- });
131
- }
132
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/emails/send/auth.ts"],"names":[],"mappings":";AAAA;;;;GA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pE,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/send
3
- *
4
- * Convenience functions for sending emails.
5
- */
6
- export { sendVerificationEmail, sendVerificationEmailAsync, sendWelcomeEmail, sendWelcomeEmailAsync, sendPasswordResetEmail, sendPasswordResetEmailAsync, } from './auth';
7
- export type { SendVerificationEmailParams, SendWelcomeEmailParams, SendPasswordResetEmailParams, } from './auth';
8
- export { sendOrderConfirmation, sendOrderConfirmationAsync, sendOrderShipped, sendOrderShippedAsync, sendOrderDelivered, sendOrderDeliveredAsync, sendOrderCancelled, sendOrderCancelledAsync, sendRefundProcessed, sendRefundProcessedAsync, } from './orders';
9
- export type { SendOrderConfirmationParams, SendOrderShippedParams, SendOrderDeliveredParams, SendOrderCancelledParams, SendRefundProcessedParams, } from './orders';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/emails/send/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,QAAQ,CAAA;AAEf,YAAY,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,QAAQ,CAAA;AAMf,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,UAAU,CAAA;AAEjB,YAAY,EACV,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,UAAU,CAAA"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /**
3
- * @rovela/sdk/emails/send
4
- *
5
- * Convenience functions for sending emails.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.sendRefundProcessedAsync = exports.sendRefundProcessed = exports.sendOrderCancelledAsync = exports.sendOrderCancelled = exports.sendOrderDeliveredAsync = exports.sendOrderDelivered = exports.sendOrderShippedAsync = exports.sendOrderShipped = exports.sendOrderConfirmationAsync = exports.sendOrderConfirmation = exports.sendPasswordResetEmailAsync = exports.sendPasswordResetEmail = exports.sendWelcomeEmailAsync = exports.sendWelcomeEmail = exports.sendVerificationEmailAsync = exports.sendVerificationEmail = void 0;
9
- // =============================================================================
10
- // Auth Emails
11
- // =============================================================================
12
- var auth_1 = require("./auth");
13
- Object.defineProperty(exports, "sendVerificationEmail", { enumerable: true, get: function () { return auth_1.sendVerificationEmail; } });
14
- Object.defineProperty(exports, "sendVerificationEmailAsync", { enumerable: true, get: function () { return auth_1.sendVerificationEmailAsync; } });
15
- Object.defineProperty(exports, "sendWelcomeEmail", { enumerable: true, get: function () { return auth_1.sendWelcomeEmail; } });
16
- Object.defineProperty(exports, "sendWelcomeEmailAsync", { enumerable: true, get: function () { return auth_1.sendWelcomeEmailAsync; } });
17
- Object.defineProperty(exports, "sendPasswordResetEmail", { enumerable: true, get: function () { return auth_1.sendPasswordResetEmail; } });
18
- Object.defineProperty(exports, "sendPasswordResetEmailAsync", { enumerable: true, get: function () { return auth_1.sendPasswordResetEmailAsync; } });
19
- // =============================================================================
20
- // Order Emails
21
- // =============================================================================
22
- var orders_1 = require("./orders");
23
- Object.defineProperty(exports, "sendOrderConfirmation", { enumerable: true, get: function () { return orders_1.sendOrderConfirmation; } });
24
- Object.defineProperty(exports, "sendOrderConfirmationAsync", { enumerable: true, get: function () { return orders_1.sendOrderConfirmationAsync; } });
25
- Object.defineProperty(exports, "sendOrderShipped", { enumerable: true, get: function () { return orders_1.sendOrderShipped; } });
26
- Object.defineProperty(exports, "sendOrderShippedAsync", { enumerable: true, get: function () { return orders_1.sendOrderShippedAsync; } });
27
- Object.defineProperty(exports, "sendOrderDelivered", { enumerable: true, get: function () { return orders_1.sendOrderDelivered; } });
28
- Object.defineProperty(exports, "sendOrderDeliveredAsync", { enumerable: true, get: function () { return orders_1.sendOrderDeliveredAsync; } });
29
- Object.defineProperty(exports, "sendOrderCancelled", { enumerable: true, get: function () { return orders_1.sendOrderCancelled; } });
30
- Object.defineProperty(exports, "sendOrderCancelledAsync", { enumerable: true, get: function () { return orders_1.sendOrderCancelledAsync; } });
31
- Object.defineProperty(exports, "sendRefundProcessed", { enumerable: true, get: function () { return orders_1.sendRefundProcessed; } });
32
- Object.defineProperty(exports, "sendRefundProcessedAsync", { enumerable: true, get: function () { return orders_1.sendRefundProcessedAsync; } });
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/emails/send/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,+BAOe;AANb,6GAAA,qBAAqB,OAAA;AACrB,kHAAA,0BAA0B,OAAA;AAC1B,wGAAA,gBAAgB,OAAA;AAChB,6GAAA,qBAAqB,OAAA;AACrB,8GAAA,sBAAsB,OAAA;AACtB,mHAAA,2BAA2B,OAAA;AAS7B,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF,mCAWiB;AAVf,+GAAA,qBAAqB,OAAA;AACrB,oHAAA,0BAA0B,OAAA;AAC1B,0GAAA,gBAAgB,OAAA;AAChB,+GAAA,qBAAqB,OAAA;AACrB,4GAAA,kBAAkB,OAAA;AAClB,iHAAA,uBAAuB,OAAA;AACvB,4GAAA,kBAAkB,OAAA;AAClB,iHAAA,uBAAuB,OAAA;AACvB,6GAAA,mBAAmB,OAAA;AACnB,kHAAA,wBAAwB,OAAA"}
@@ -1,180 +0,0 @@
1
- /**
2
- * @rovela/sdk/emails/send/orders
3
- *
4
- * Send functions for order-related emails.
5
- */
6
- import type { SendEmailResult, EmailOrderItem, EmailAddress } from '../types';
7
- export interface SendOrderConfirmationParams {
8
- to: string;
9
- customerName: string;
10
- orderNumber: string;
11
- orderDate: string;
12
- paymentStatus: string;
13
- items: EmailOrderItem[];
14
- subtotal: string;
15
- shippingCost: string;
16
- tax: string;
17
- total: string;
18
- shippingAddress: EmailAddress;
19
- orderTrackingUrl: string;
20
- }
21
- /**
22
- * Send an order confirmation email.
23
- *
24
- * @example
25
- * ```typescript
26
- * import { sendOrderConfirmation } from '@rovela/sdk/emails'
27
- *
28
- * await sendOrderConfirmation({
29
- * to: 'john@example.com',
30
- * customerName: 'John',
31
- * orderNumber: 'ORD-12345',
32
- * orderDate: 'November 28, 2025',
33
- * paymentStatus: 'Paid',
34
- * items: [{ name: 'Product', quantity: 1, price: '$29.99' }],
35
- * subtotal: '$29.99',
36
- * shippingCost: '$5.00',
37
- * tax: '$2.80',
38
- * total: '$37.79',
39
- * shippingAddress: { name: 'John Doe', ... },
40
- * orderTrackingUrl: 'https://store.com/orders/12345',
41
- * })
42
- * ```
43
- */
44
- export declare function sendOrderConfirmation(params: SendOrderConfirmationParams): Promise<SendEmailResult>;
45
- /**
46
- * Send order confirmation without waiting (fire-and-forget).
47
- * Use this in webhooks to not block the response.
48
- */
49
- export declare function sendOrderConfirmationAsync(params: SendOrderConfirmationParams): void;
50
- export interface SendOrderShippedParams {
51
- to: string;
52
- customerName: string;
53
- orderNumber: string;
54
- trackingNumber: string;
55
- carrierName: string;
56
- estimatedDeliveryDate: string;
57
- shippingAddress: EmailAddress;
58
- trackingUrl: string;
59
- }
60
- /**
61
- * Send an order shipped email.
62
- *
63
- * @example
64
- * ```typescript
65
- * import { sendOrderShipped } from '@rovela/sdk/emails'
66
- *
67
- * await sendOrderShipped({
68
- * to: 'john@example.com',
69
- * customerName: 'John',
70
- * orderNumber: 'ORD-12345',
71
- * trackingNumber: '1Z999AA10123456784',
72
- * carrierName: 'UPS',
73
- * estimatedDeliveryDate: 'December 3, 2025',
74
- * shippingAddress: { name: 'John Doe', ... },
75
- * trackingUrl: 'https://ups.com/track/...',
76
- * })
77
- * ```
78
- */
79
- export declare function sendOrderShipped(params: SendOrderShippedParams): Promise<SendEmailResult>;
80
- /**
81
- * Send order shipped without waiting (fire-and-forget).
82
- */
83
- export declare function sendOrderShippedAsync(params: SendOrderShippedParams): void;
84
- export interface SendOrderDeliveredParams {
85
- to: string;
86
- customerName: string;
87
- orderNumber: string;
88
- deliveryDate: string;
89
- deliveryLocation: string;
90
- reviewUrl: string;
91
- returnCenterUrl: string;
92
- }
93
- /**
94
- * Send an order delivered email.
95
- *
96
- * @example
97
- * ```typescript
98
- * import { sendOrderDelivered } from '@rovela/sdk/emails'
99
- *
100
- * await sendOrderDelivered({
101
- * to: 'john@example.com',
102
- * customerName: 'John',
103
- * orderNumber: 'ORD-12345',
104
- * deliveryDate: 'December 3, 2025',
105
- * deliveryLocation: 'Front Door',
106
- * reviewUrl: 'https://store.com/review/12345',
107
- * returnCenterUrl: 'https://store.com/returns',
108
- * })
109
- * ```
110
- */
111
- export declare function sendOrderDelivered(params: SendOrderDeliveredParams): Promise<SendEmailResult>;
112
- /**
113
- * Send order delivered without waiting (fire-and-forget).
114
- */
115
- export declare function sendOrderDeliveredAsync(params: SendOrderDeliveredParams): void;
116
- export interface SendOrderCancelledParams {
117
- to: string;
118
- customerName: string;
119
- orderNumber: string;
120
- cancellationReason?: string;
121
- cancellationDate: string;
122
- refundMessage: string;
123
- }
124
- /**
125
- * Send an order cancelled email.
126
- *
127
- * @example
128
- * ```typescript
129
- * import { sendOrderCancelled } from '@rovela/sdk/emails'
130
- *
131
- * await sendOrderCancelled({
132
- * to: 'john@example.com',
133
- * customerName: 'John',
134
- * orderNumber: 'ORD-12345',
135
- * cancellationReason: 'Customer requested cancellation.',
136
- * cancellationDate: 'November 28, 2025',
137
- * refundMessage: 'Your refund will be processed within 3-5 business days.',
138
- * })
139
- * ```
140
- */
141
- export declare function sendOrderCancelled(params: SendOrderCancelledParams): Promise<SendEmailResult>;
142
- /**
143
- * Send order cancelled without waiting (fire-and-forget).
144
- */
145
- export declare function sendOrderCancelledAsync(params: SendOrderCancelledParams): void;
146
- export interface SendRefundProcessedParams {
147
- to: string;
148
- customerName: string;
149
- orderNumber: string;
150
- refundAmount: string;
151
- refundDate: string;
152
- paymentMethod: string;
153
- estimatedArrival: string;
154
- businessDays: string;
155
- }
156
- /**
157
- * Send a refund processed email.
158
- *
159
- * @example
160
- * ```typescript
161
- * import { sendRefundProcessed } from '@rovela/sdk/emails'
162
- *
163
- * await sendRefundProcessed({
164
- * to: 'john@example.com',
165
- * customerName: 'John',
166
- * orderNumber: 'ORD-12345',
167
- * refundAmount: '$99.00',
168
- * refundDate: 'November 28, 2025',
169
- * paymentMethod: 'Visa ending in 4242',
170
- * estimatedArrival: '3-5 business days',
171
- * businessDays: '3-5',
172
- * })
173
- * ```
174
- */
175
- export declare function sendRefundProcessed(params: SendRefundProcessedParams): Promise<SendEmailResult>;
176
- /**
177
- * Send refund processed without waiting (fire-and-forget).
178
- */
179
- export declare function sendRefundProcessedAsync(params: SendRefundProcessedParams): void;
180
- //# sourceMappingURL=orders.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../../src/emails/send/orders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAA;AAkBjB,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,YAAY,C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