@intlayer/backend 3.0.3 → 3.2.0

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 (272) hide show
  1. package/dist/cjs/controllers/dictionary.controller.cjs +91 -18
  2. package/dist/cjs/controllers/dictionary.controller.cjs.map +1 -1
  3. package/dist/cjs/controllers/organization.controller.cjs +140 -12
  4. package/dist/cjs/controllers/organization.controller.cjs.map +1 -1
  5. package/dist/cjs/controllers/project.controller.cjs +181 -31
  6. package/dist/cjs/controllers/project.controller.cjs.map +1 -1
  7. package/dist/cjs/controllers/projectAccessKey.controller.cjs +61 -10
  8. package/dist/cjs/controllers/projectAccessKey.controller.cjs.map +1 -1
  9. package/dist/cjs/controllers/sessionAuth.controller.cjs +291 -62
  10. package/dist/cjs/controllers/sessionAuth.controller.cjs.map +1 -1
  11. package/dist/cjs/controllers/stripe.controller.cjs +84 -0
  12. package/dist/cjs/controllers/stripe.controller.cjs.map +1 -0
  13. package/dist/cjs/controllers/user.controller.cjs +49 -20
  14. package/dist/cjs/controllers/user.controller.cjs.map +1 -1
  15. package/dist/cjs/emails/SubscriptionPaymentCancellation.cjs +182 -0
  16. package/dist/cjs/emails/SubscriptionPaymentCancellation.cjs.map +1 -0
  17. package/dist/cjs/emails/SubscriptionPaymentError.cjs +182 -0
  18. package/dist/cjs/emails/SubscriptionPaymentError.cjs.map +1 -0
  19. package/dist/cjs/emails/SubscriptionPaymentSuccess.cjs +188 -0
  20. package/dist/cjs/emails/SubscriptionPaymentSuccess.cjs.map +1 -0
  21. package/dist/cjs/export.cjs.map +1 -1
  22. package/dist/cjs/index.cjs +16 -5
  23. package/dist/cjs/index.cjs.map +1 -1
  24. package/dist/cjs/middlewares/oAuth2.middleware.cjs +10 -0
  25. package/dist/cjs/middlewares/oAuth2.middleware.cjs.map +1 -1
  26. package/dist/cjs/middlewares/sessionAuth.middleware.cjs +50 -10
  27. package/dist/cjs/middlewares/sessionAuth.middleware.cjs.map +1 -1
  28. package/dist/cjs/routes/dictionary.routes.cjs +2 -62
  29. package/dist/cjs/routes/dictionary.routes.cjs.map +1 -1
  30. package/dist/cjs/routes/organization.routes.cjs +1 -25
  31. package/dist/cjs/routes/organization.routes.cjs.map +1 -1
  32. package/dist/cjs/routes/project.routes.cjs +10 -85
  33. package/dist/cjs/routes/project.routes.cjs.map +1 -1
  34. package/dist/cjs/routes/sessionAuth.routes.cjs +26 -25
  35. package/dist/cjs/routes/sessionAuth.routes.cjs.map +1 -1
  36. package/dist/cjs/routes/stripe.routes.cjs +42 -0
  37. package/dist/cjs/routes/stripe.routes.cjs.map +1 -0
  38. package/dist/cjs/routes/user.routes.cjs +6 -27
  39. package/dist/cjs/routes/user.routes.cjs.map +1 -1
  40. package/dist/cjs/schemas/organization.schema.cjs +5 -0
  41. package/dist/cjs/schemas/organization.schema.cjs.map +1 -1
  42. package/dist/cjs/{middlewares/admin.middleware.cjs → schemas/plans.schema.cjs} +32 -20
  43. package/dist/cjs/schemas/plans.schema.cjs.map +1 -0
  44. package/dist/cjs/schemas/project.schema.cjs +14 -1
  45. package/dist/cjs/schemas/project.schema.cjs.map +1 -1
  46. package/dist/cjs/schemas/user.schema.cjs +5 -1
  47. package/dist/cjs/schemas/user.schema.cjs.map +1 -1
  48. package/dist/cjs/services/dictionary.service.cjs.map +1 -1
  49. package/dist/cjs/services/email.service.cjs +113 -43
  50. package/dist/cjs/services/email.service.cjs.map +1 -1
  51. package/dist/cjs/services/oAuth2.service.cjs +16 -8
  52. package/dist/cjs/services/oAuth2.service.cjs.map +1 -1
  53. package/dist/cjs/services/organization.service.cjs +63 -8
  54. package/dist/cjs/services/organization.service.cjs.map +1 -1
  55. package/dist/cjs/services/project.service.cjs +9 -5
  56. package/dist/cjs/services/project.service.cjs.map +1 -1
  57. package/dist/cjs/services/projectAccessKey.service.cjs +42 -10
  58. package/dist/cjs/services/projectAccessKey.service.cjs.map +1 -1
  59. package/dist/cjs/services/sessionAuth.service.cjs +9 -11
  60. package/dist/cjs/services/sessionAuth.service.cjs.map +1 -1
  61. package/dist/cjs/services/subscription.service.cjs +201 -0
  62. package/dist/cjs/services/subscription.service.cjs.map +1 -0
  63. package/dist/cjs/services/user.service.cjs +1 -3
  64. package/dist/cjs/services/user.service.cjs.map +1 -1
  65. package/dist/cjs/types/dictionary.types.cjs.map +1 -1
  66. package/dist/cjs/types/organization.types.cjs.map +1 -1
  67. package/dist/cjs/types/plan.types.cjs +17 -0
  68. package/dist/cjs/types/plan.types.cjs.map +1 -0
  69. package/dist/cjs/types/project.types.cjs.map +1 -1
  70. package/dist/cjs/types/session.types.cjs.map +1 -1
  71. package/dist/cjs/types/user.types.cjs.map +1 -1
  72. package/dist/cjs/utils/errors/ErrorHandler.cjs +29 -9
  73. package/dist/cjs/utils/errors/ErrorHandler.cjs.map +1 -1
  74. package/dist/cjs/utils/errors/ErrorsClass.cjs +17 -3
  75. package/dist/cjs/utils/errors/ErrorsClass.cjs.map +1 -1
  76. package/dist/cjs/utils/errors/errorCodes.cjs +321 -9
  77. package/dist/cjs/utils/errors/errorCodes.cjs.map +1 -1
  78. package/dist/cjs/utils/mapper/organization.cjs.map +1 -1
  79. package/dist/cjs/utils/mapper/project.cjs +19 -3
  80. package/dist/cjs/utils/mapper/project.cjs.map +1 -1
  81. package/dist/cjs/utils/mapper/user.cjs.map +1 -1
  82. package/dist/cjs/utils/plan.cjs +75 -0
  83. package/dist/cjs/utils/plan.cjs.map +1 -0
  84. package/dist/cjs/utils/responseData.cjs +8 -0
  85. package/dist/cjs/utils/responseData.cjs.map +1 -1
  86. package/dist/cjs/webhooks/stripe.webhook.cjs +133 -0
  87. package/dist/cjs/webhooks/stripe.webhook.cjs.map +1 -0
  88. package/dist/esm/controllers/dictionary.controller.mjs +91 -18
  89. package/dist/esm/controllers/dictionary.controller.mjs.map +1 -1
  90. package/dist/esm/controllers/organization.controller.mjs +140 -12
  91. package/dist/esm/controllers/organization.controller.mjs.map +1 -1
  92. package/dist/esm/controllers/project.controller.mjs +181 -31
  93. package/dist/esm/controllers/project.controller.mjs.map +1 -1
  94. package/dist/esm/controllers/projectAccessKey.controller.mjs +61 -10
  95. package/dist/esm/controllers/projectAccessKey.controller.mjs.map +1 -1
  96. package/dist/esm/controllers/sessionAuth.controller.mjs +287 -61
  97. package/dist/esm/controllers/sessionAuth.controller.mjs.map +1 -1
  98. package/dist/esm/controllers/stripe.controller.mjs +60 -0
  99. package/dist/esm/controllers/stripe.controller.mjs.map +1 -0
  100. package/dist/esm/controllers/user.controller.mjs +49 -20
  101. package/dist/esm/controllers/user.controller.mjs.map +1 -1
  102. package/dist/esm/emails/SubscriptionPaymentCancellation.mjs +168 -0
  103. package/dist/esm/emails/SubscriptionPaymentCancellation.mjs.map +1 -0
  104. package/dist/esm/emails/SubscriptionPaymentError.mjs +168 -0
  105. package/dist/esm/emails/SubscriptionPaymentError.mjs.map +1 -0
  106. package/dist/esm/emails/SubscriptionPaymentSuccess.mjs +174 -0
  107. package/dist/esm/emails/SubscriptionPaymentSuccess.mjs.map +1 -0
  108. package/dist/esm/export.mjs.map +1 -1
  109. package/dist/esm/index.mjs +19 -7
  110. package/dist/esm/index.mjs.map +1 -1
  111. package/dist/esm/middlewares/oAuth2.middleware.mjs +10 -0
  112. package/dist/esm/middlewares/oAuth2.middleware.mjs.map +1 -1
  113. package/dist/esm/middlewares/sessionAuth.middleware.mjs +49 -9
  114. package/dist/esm/middlewares/sessionAuth.middleware.mjs.map +1 -1
  115. package/dist/esm/routes/dictionary.routes.mjs +2 -62
  116. package/dist/esm/routes/dictionary.routes.mjs.map +1 -1
  117. package/dist/esm/routes/organization.routes.mjs +1 -25
  118. package/dist/esm/routes/organization.routes.mjs.map +1 -1
  119. package/dist/esm/routes/project.routes.mjs +10 -85
  120. package/dist/esm/routes/project.routes.mjs.map +1 -1
  121. package/dist/esm/routes/sessionAuth.routes.mjs +29 -26
  122. package/dist/esm/routes/sessionAuth.routes.mjs.map +1 -1
  123. package/dist/esm/routes/stripe.routes.mjs +17 -0
  124. package/dist/esm/routes/stripe.routes.mjs.map +1 -0
  125. package/dist/esm/routes/user.routes.mjs +6 -27
  126. package/dist/esm/routes/user.routes.mjs.map +1 -1
  127. package/dist/esm/schemas/organization.schema.mjs +5 -0
  128. package/dist/esm/schemas/organization.schema.mjs.map +1 -1
  129. package/dist/esm/schemas/plans.schema.mjs +32 -0
  130. package/dist/esm/schemas/plans.schema.mjs.map +1 -0
  131. package/dist/esm/schemas/project.schema.mjs +13 -1
  132. package/dist/esm/schemas/project.schema.mjs.map +1 -1
  133. package/dist/esm/schemas/user.schema.mjs +5 -1
  134. package/dist/esm/schemas/user.schema.mjs.map +1 -1
  135. package/dist/esm/services/dictionary.service.mjs.map +1 -1
  136. package/dist/esm/services/email.service.mjs +125 -43
  137. package/dist/esm/services/email.service.mjs.map +1 -1
  138. package/dist/esm/services/oAuth2.service.mjs +16 -8
  139. package/dist/esm/services/oAuth2.service.mjs.map +1 -1
  140. package/dist/esm/services/organization.service.mjs +58 -7
  141. package/dist/esm/services/organization.service.mjs.map +1 -1
  142. package/dist/esm/services/project.service.mjs +9 -5
  143. package/dist/esm/services/project.service.mjs.map +1 -1
  144. package/dist/esm/services/projectAccessKey.service.mjs +42 -10
  145. package/dist/esm/services/projectAccessKey.service.mjs.map +1 -1
  146. package/dist/esm/services/sessionAuth.service.mjs +9 -10
  147. package/dist/esm/services/sessionAuth.service.mjs.map +1 -1
  148. package/dist/esm/services/subscription.service.mjs +178 -0
  149. package/dist/esm/services/subscription.service.mjs.map +1 -0
  150. package/dist/esm/services/user.service.mjs +1 -3
  151. package/dist/esm/services/user.service.mjs.map +1 -1
  152. package/dist/esm/types/plan.types.mjs +1 -0
  153. package/dist/esm/types/plan.types.mjs.map +1 -0
  154. package/dist/esm/utils/errors/ErrorHandler.mjs +29 -9
  155. package/dist/esm/utils/errors/ErrorHandler.mjs.map +1 -1
  156. package/dist/esm/utils/errors/ErrorsClass.mjs +17 -3
  157. package/dist/esm/utils/errors/ErrorsClass.mjs.map +1 -1
  158. package/dist/esm/utils/errors/errorCodes.mjs +321 -9
  159. package/dist/esm/utils/errors/errorCodes.mjs.map +1 -1
  160. package/dist/esm/utils/mapper/organization.mjs.map +1 -1
  161. package/dist/esm/utils/mapper/project.mjs +17 -2
  162. package/dist/esm/utils/mapper/project.mjs.map +1 -1
  163. package/dist/esm/utils/mapper/user.mjs.map +1 -1
  164. package/dist/esm/utils/plan.mjs +50 -0
  165. package/dist/esm/utils/plan.mjs.map +1 -0
  166. package/dist/esm/utils/responseData.mjs +8 -0
  167. package/dist/esm/utils/responseData.mjs.map +1 -1
  168. package/dist/esm/webhooks/stripe.webhook.mjs +113 -0
  169. package/dist/esm/webhooks/stripe.webhook.mjs.map +1 -0
  170. package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
  171. package/dist/types/controllers/organization.controller.d.ts.map +1 -1
  172. package/dist/types/controllers/project.controller.d.ts +9 -7
  173. package/dist/types/controllers/project.controller.d.ts.map +1 -1
  174. package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
  175. package/dist/types/controllers/sessionAuth.controller.d.ts +28 -9
  176. package/dist/types/controllers/sessionAuth.controller.d.ts.map +1 -1
  177. package/dist/types/controllers/stripe.controller.d.ts +17 -0
  178. package/dist/types/controllers/stripe.controller.d.ts.map +1 -0
  179. package/dist/types/controllers/user.controller.d.ts.map +1 -1
  180. package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +20 -0
  181. package/dist/types/emails/SubscriptionPaymentCancellation.d.ts.map +1 -0
  182. package/dist/types/emails/SubscriptionPaymentError.d.ts +20 -0
  183. package/dist/types/emails/SubscriptionPaymentError.d.ts.map +1 -0
  184. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +20 -0
  185. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts.map +1 -0
  186. package/dist/types/export.d.ts +2 -0
  187. package/dist/types/export.d.ts.map +1 -1
  188. package/dist/types/index.d.ts.map +1 -1
  189. package/dist/types/middlewares/oAuth2.middleware.d.ts.map +1 -1
  190. package/dist/types/middlewares/sessionAuth.middleware.d.ts +13 -7
  191. package/dist/types/middlewares/sessionAuth.middleware.d.ts.map +1 -1
  192. package/dist/types/models/dictionary.model.d.ts +1 -1
  193. package/dist/types/models/oAuth2.model.d.ts +1 -1
  194. package/dist/types/models/organization.model.d.ts +2 -1
  195. package/dist/types/models/organization.model.d.ts.map +1 -1
  196. package/dist/types/models/plan.moddel.d.ts +11 -0
  197. package/dist/types/models/plan.moddel.d.ts.map +1 -0
  198. package/dist/types/models/project.model.d.ts +1 -1
  199. package/dist/types/routes/dictionary.routes.d.ts.map +1 -1
  200. package/dist/types/routes/organization.routes.d.ts.map +1 -1
  201. package/dist/types/routes/project.routes.d.ts.map +1 -1
  202. package/dist/types/routes/sessionAuth.routes.d.ts +15 -2
  203. package/dist/types/routes/sessionAuth.routes.d.ts.map +1 -1
  204. package/dist/types/routes/stripe.routes.d.ts +10 -0
  205. package/dist/types/routes/stripe.routes.d.ts.map +1 -0
  206. package/dist/types/routes/user.routes.d.ts.map +1 -1
  207. package/dist/types/schemas/dictionary.schema.d.ts +2 -2
  208. package/dist/types/schemas/oAuth2.schema.d.ts +2 -2
  209. package/dist/types/schemas/organization.schema.d.ts +3 -2
  210. package/dist/types/schemas/organization.schema.d.ts.map +1 -1
  211. package/dist/types/schemas/plans.schema.d.ts +16 -0
  212. package/dist/types/schemas/plans.schema.d.ts.map +1 -0
  213. package/dist/types/schemas/project.schema.d.ts +12 -3
  214. package/dist/types/schemas/project.schema.d.ts.map +1 -1
  215. package/dist/types/schemas/user.schema.d.ts +2 -2
  216. package/dist/types/schemas/user.schema.d.ts.map +1 -1
  217. package/dist/types/services/dictionary.service.d.ts +9 -9
  218. package/dist/types/services/dictionary.service.d.ts.map +1 -1
  219. package/dist/types/services/email.service.d.ts +33 -4
  220. package/dist/types/services/email.service.d.ts.map +1 -1
  221. package/dist/types/services/oAuth2.service.d.ts +7 -5
  222. package/dist/types/services/oAuth2.service.d.ts.map +1 -1
  223. package/dist/types/services/organization.service.d.ts +27 -6
  224. package/dist/types/services/organization.service.d.ts.map +1 -1
  225. package/dist/types/services/plans.service.d.ts +35 -0
  226. package/dist/types/services/plans.service.d.ts.map +1 -0
  227. package/dist/types/services/project.service.d.ts +6 -6
  228. package/dist/types/services/project.service.d.ts.map +1 -1
  229. package/dist/types/services/projectAccessKey.service.d.ts +4 -4
  230. package/dist/types/services/projectAccessKey.service.d.ts.map +1 -1
  231. package/dist/types/services/sessionAuth.service.d.ts +9 -16
  232. package/dist/types/services/sessionAuth.service.d.ts.map +1 -1
  233. package/dist/types/services/subscription.service.d.ts +22 -0
  234. package/dist/types/services/subscription.service.d.ts.map +1 -0
  235. package/dist/types/services/user.service.d.ts +11 -19
  236. package/dist/types/services/user.service.d.ts.map +1 -1
  237. package/dist/types/types/dictionary.types.d.ts +2 -2
  238. package/dist/types/types/dictionary.types.d.ts.map +1 -1
  239. package/dist/types/types/organization.types.d.ts +4 -2
  240. package/dist/types/types/organization.types.d.ts.map +1 -1
  241. package/dist/types/types/plan.types.d.ts +18 -0
  242. package/dist/types/types/plan.types.d.ts.map +1 -0
  243. package/dist/types/types/project.types.d.ts +13 -2
  244. package/dist/types/types/project.types.d.ts.map +1 -1
  245. package/dist/types/types/session.types.d.ts +6 -6
  246. package/dist/types/types/session.types.d.ts.map +1 -1
  247. package/dist/types/types/user.types.d.ts +2 -1
  248. package/dist/types/types/user.types.d.ts.map +1 -1
  249. package/dist/types/utils/errors/ErrorHandler.d.ts +5 -3
  250. package/dist/types/utils/errors/ErrorHandler.d.ts.map +1 -1
  251. package/dist/types/utils/errors/ErrorsClass.d.ts +4 -1
  252. package/dist/types/utils/errors/ErrorsClass.d.ts.map +1 -1
  253. package/dist/types/utils/errors/errorCodes.d.ts +313 -1
  254. package/dist/types/utils/errors/errorCodes.d.ts.map +1 -1
  255. package/dist/types/utils/mapper/organization.d.ts +1 -1
  256. package/dist/types/utils/mapper/organization.d.ts.map +1 -1
  257. package/dist/types/utils/mapper/project.d.ts +10 -1
  258. package/dist/types/utils/mapper/project.d.ts.map +1 -1
  259. package/dist/types/utils/mapper/user.d.ts +1 -1
  260. package/dist/types/utils/mapper/user.d.ts.map +1 -1
  261. package/dist/types/utils/plan.d.ts +17 -0
  262. package/dist/types/utils/plan.d.ts.map +1 -0
  263. package/dist/types/utils/responseData.d.ts +13 -2
  264. package/dist/types/utils/responseData.d.ts.map +1 -1
  265. package/dist/types/webhooks/stripe.d.ts +3 -0
  266. package/dist/types/webhooks/stripe.d.ts.map +1 -0
  267. package/dist/types/webhooks/stripe.webhook.d.ts +3 -0
  268. package/dist/types/webhooks/stripe.webhook.d.ts.map +1 -0
  269. package/package.json +27 -24
  270. package/dist/cjs/middlewares/admin.middleware.cjs.map +0 -1
  271. package/dist/esm/middlewares/admin.middleware.mjs +0 -20
  272. package/dist/esm/middlewares/admin.middleware.mjs.map +0 -1
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var SubscriptionPaymentCancellation_exports = {};
20
+ __export(SubscriptionPaymentCancellation_exports, {
21
+ SubscriptionPaymentCancellationEN: () => SubscriptionPaymentCancellationEN,
22
+ SubscriptionPaymentCancellationES: () => SubscriptionPaymentCancellationES,
23
+ SubscriptionPaymentCancellationFR: () => SubscriptionPaymentCancellationFR
24
+ });
25
+ module.exports = __toCommonJS(SubscriptionPaymentCancellation_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var import_components = require("@react-email/components");
28
+ const SubscriptionPaymentCancellationEN = ({
29
+ username,
30
+ planName,
31
+ cancellationDate,
32
+ reactivateLink
33
+ }) => {
34
+ const previewText = `Your ${planName} subscription has been canceled`;
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_components.Img,
41
+ {
42
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
43
+ width: "40",
44
+ height: "37",
45
+ alt: "Intlayer",
46
+ className: "mx-auto my-0"
47
+ }
48
+ ) }),
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Subscription Canceled" }),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
51
+ "Hello ",
52
+ username,
53
+ ","
54
+ ] }),
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
56
+ "We\u2019re sorry to see you go! Your subscription to the",
57
+ " ",
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
59
+ " plan has been canceled. You will still have access until ",
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: cancellationDate }),
61
+ "."
62
+ ] }),
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ import_components.Button,
65
+ {
66
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
67
+ href: reactivateLink,
68
+ children: "Reactivate Your Subscription"
69
+ }
70
+ ) })
71
+ ] }) }) })
72
+ ] });
73
+ };
74
+ const SubscriptionPaymentCancellationFR = ({
75
+ username,
76
+ planName,
77
+ cancellationDate,
78
+ reactivateLink
79
+ }) => {
80
+ const previewText = `Votre abonnement ${planName} a \xE9t\xE9 annul\xE9`;
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
+ import_components.Img,
87
+ {
88
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
89
+ width: "40",
90
+ height: "37",
91
+ alt: "Intlayer",
92
+ className: "mx-auto my-0"
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Abonnement Annul\xE9" }),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
97
+ "Bonjour ",
98
+ username,
99
+ ","
100
+ ] }),
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
102
+ "Nous sommes d\xE9sol\xE9s de vous voir partir ! Votre abonnement au plan",
103
+ " ",
104
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
105
+ " a \xE9t\xE9 annul\xE9. Vous aurez toujours acc\xE8s jusqu'au ",
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: cancellationDate }),
107
+ "."
108
+ ] }),
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
+ import_components.Button,
111
+ {
112
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
113
+ href: reactivateLink,
114
+ children: "R\xE9activer votre abonnement"
115
+ }
116
+ ) })
117
+ ] }) }) })
118
+ ] });
119
+ };
120
+ const SubscriptionPaymentCancellationES = ({
121
+ username,
122
+ planName,
123
+ cancellationDate,
124
+ reactivateLink
125
+ }) => {
126
+ const previewText = `Tu suscripci\xF3n ${planName} ha sido cancelada`;
127
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
+ import_components.Img,
133
+ {
134
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
135
+ width: "40",
136
+ height: "37",
137
+ alt: "Intlayer",
138
+ className: "mx-auto my-0"
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Suscripci\xF3n Cancelada" }),
142
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
143
+ "Hola ",
144
+ username,
145
+ ","
146
+ ] }),
147
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
148
+ "Lamentamos verte partir. Tu suscripci\xF3n al plan",
149
+ " ",
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
151
+ " ha sido cancelada. Tendr\xE1s acceso hasta ",
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: cancellationDate }),
153
+ "."
154
+ ] }),
155
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
+ import_components.Button,
157
+ {
158
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
159
+ href: reactivateLink,
160
+ children: "Reactivar tu suscripci\xF3n"
161
+ }
162
+ ) })
163
+ ] }) }) })
164
+ ] });
165
+ };
166
+ const PreviewProps = {
167
+ username: "John Doe",
168
+ email: "john.doe@example.com",
169
+ planName: "Pro Plan",
170
+ cancellationDate: "November 30, 2024",
171
+ reactivateLink: "https://intlayer.org/reactivate-subscription"
172
+ };
173
+ SubscriptionPaymentCancellationEN.PreviewProps = PreviewProps;
174
+ SubscriptionPaymentCancellationFR.PreviewProps = PreviewProps;
175
+ SubscriptionPaymentCancellationES.PreviewProps = PreviewProps;
176
+ // Annotate the CommonJS export names for ESM import in node:
177
+ 0 && (module.exports = {
178
+ SubscriptionPaymentCancellationEN,
179
+ SubscriptionPaymentCancellationES,
180
+ SubscriptionPaymentCancellationFR
181
+ });
182
+ //# sourceMappingURL=SubscriptionPaymentCancellation.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/emails/SubscriptionPaymentCancellation.tsx"],"sourcesContent":["import {\n Html,\n Head,\n Preview,\n Tailwind,\n Body,\n Section,\n Img,\n Heading,\n Container,\n Button,\n Text,\n} from '@react-email/components';\n\nexport type SubscriptionPaymentCancellationProps = {\n username: string; // The name of the user receiving the email\n email: string; // The email address of the user\n planName: string; // The name of the subscription plan\n cancellationDate: string; // The date when the subscription will end\n reactivateLink: string; // A link for the user to reactivate their subscription\n};\n\nexport const SubscriptionPaymentCancellationEN = ({\n username,\n planName,\n cancellationDate,\n reactivateLink,\n}: SubscriptionPaymentCancellationProps) => {\n const previewText = `Your ${planName} subscription has been canceled`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Subscription Canceled\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hello {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n We’re sorry to see you go! Your subscription to the{' '}\n <strong>{planName}</strong> plan has been canceled. You will still\n have access until <strong>{cancellationDate}</strong>.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={reactivateLink}\n >\n Reactivate Your Subscription\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nexport const SubscriptionPaymentCancellationFR = ({\n username,\n planName,\n cancellationDate,\n reactivateLink,\n}: SubscriptionPaymentCancellationProps) => {\n const previewText = `Votre abonnement ${planName} a été annulé`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Abonnement Annulé\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Bonjour {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Nous sommes désolés de vous voir partir ! Votre abonnement au plan{' '}\n <strong>{planName}</strong> a été annulé. Vous aurez toujours\n accès jusqu'au <strong>{cancellationDate}</strong>.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={reactivateLink}\n >\n Réactiver votre abonnement\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nexport const SubscriptionPaymentCancellationES = ({\n username,\n planName,\n cancellationDate,\n reactivateLink,\n}: SubscriptionPaymentCancellationProps) => {\n const previewText = `Tu suscripción ${planName} ha sido cancelada`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Suscripción Cancelada\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hola {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Lamentamos verte partir. Tu suscripción al plan{' '}\n <strong>{planName}</strong> ha sido cancelada. Tendrás acceso\n hasta <strong>{cancellationDate}</strong>.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={reactivateLink}\n >\n Reactivar tu suscripción\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nconst PreviewProps: SubscriptionPaymentCancellationProps = {\n username: 'John Doe',\n email: 'john.doe@example.com',\n planName: 'Pro Plan',\n cancellationDate: 'November 30, 2024',\n reactivateLink: 'https://intlayer.org/reactivate-subscription',\n};\n\nSubscriptionPaymentCancellationEN.PreviewProps = PreviewProps;\nSubscriptionPaymentCancellationFR.PreviewProps = PreviewProps;\nSubscriptionPaymentCancellationES.PreviewProps = PreviewProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCM;AAhCN,wBAYO;AAUA,MAAM,oCAAoC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;AAAA,QAAS;AAAA,SAC3C;AAAA,MACA,4CAAC,6BAAQ,WAAU,yBACjB;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,MAAM;AAAA,UACP;AAAA;AAAA,MAED,GACF;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAEA,MAAM,eAAqD;AAAA,EACzD,UAAU;AAAA,EACV,OAAO;AAAA,EACP,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,gBAAgB;AAClB;AAEA,kCAAkC,eAAe;AACjD,kCAAkC,eAAe;AACjD,kCAAkC,eAAe;","names":[]}
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var SubscriptionPaymentError_exports = {};
20
+ __export(SubscriptionPaymentError_exports, {
21
+ SubscriptionPaymentErrorEN: () => SubscriptionPaymentErrorEN,
22
+ SubscriptionPaymentErrorES: () => SubscriptionPaymentErrorES,
23
+ SubscriptionPaymentErrorFR: () => SubscriptionPaymentErrorFR
24
+ });
25
+ module.exports = __toCommonJS(SubscriptionPaymentError_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var import_components = require("@react-email/components");
28
+ const SubscriptionPaymentErrorEN = ({
29
+ username,
30
+ planName,
31
+ errorDate,
32
+ retryPaymentLink
33
+ }) => {
34
+ const previewText = `There was an issue with your ${planName} subscription payment`;
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_components.Img,
41
+ {
42
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
43
+ width: "40",
44
+ height: "37",
45
+ alt: "Intlayer",
46
+ className: "mx-auto my-0"
47
+ }
48
+ ) }),
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Payment Issue Detected" }),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
51
+ "Hello ",
52
+ username,
53
+ ","
54
+ ] }),
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
56
+ "We encountered an issue processing your payment for the",
57
+ " ",
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
59
+ " plan on ",
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: errorDate }),
61
+ ". Please update your payment information to ensure continued access to your subscription."
62
+ ] }),
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ import_components.Button,
65
+ {
66
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
67
+ href: retryPaymentLink,
68
+ children: "Retry Payment"
69
+ }
70
+ ) })
71
+ ] }) }) })
72
+ ] });
73
+ };
74
+ const SubscriptionPaymentErrorFR = ({
75
+ username,
76
+ planName,
77
+ errorDate,
78
+ retryPaymentLink
79
+ }) => {
80
+ const previewText = `Un probl\xE8me est survenu avec votre paiement pour l'abonnement ${planName}`;
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
82
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
+ import_components.Img,
87
+ {
88
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
89
+ width: "40",
90
+ height: "37",
91
+ alt: "Intlayer",
92
+ className: "mx-auto my-0"
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Probl\xE8me de Paiement" }),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
97
+ "Bonjour ",
98
+ username,
99
+ ","
100
+ ] }),
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
102
+ "Nous avons rencontr\xE9 un probl\xE8me lors du traitement de votre paiement pour le plan ",
103
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
104
+ " le",
105
+ " ",
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: errorDate }),
107
+ ". Veuillez mettre \xE0 jour vos informations de paiement pour garantir un acc\xE8s continu \xE0 votre abonnement."
108
+ ] }),
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
+ import_components.Button,
111
+ {
112
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
113
+ href: retryPaymentLink,
114
+ children: "R\xE9essayer le Paiement"
115
+ }
116
+ ) })
117
+ ] }) }) })
118
+ ] });
119
+ };
120
+ const SubscriptionPaymentErrorES = ({
121
+ username,
122
+ planName,
123
+ errorDate,
124
+ retryPaymentLink
125
+ }) => {
126
+ const previewText = `Hubo un problema con el pago de tu suscripci\xF3n ${planName}`;
127
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
+ import_components.Img,
133
+ {
134
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
135
+ width: "40",
136
+ height: "37",
137
+ alt: "Intlayer",
138
+ className: "mx-auto my-0"
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Problema de Pago" }),
142
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
143
+ "Hola ",
144
+ username,
145
+ ","
146
+ ] }),
147
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
148
+ "Hubo un problema al procesar tu pago para el plan",
149
+ " ",
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
151
+ " el ",
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: errorDate }),
153
+ ". Por favor, actualiza tu informaci\xF3n de pago para garantizar el acceso continuo a tu suscripci\xF3n."
154
+ ] }),
155
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
+ import_components.Button,
157
+ {
158
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
159
+ href: retryPaymentLink,
160
+ children: "Reintentar el Pago"
161
+ }
162
+ ) })
163
+ ] }) }) })
164
+ ] });
165
+ };
166
+ const PreviewProps = {
167
+ username: "John Doe",
168
+ email: "john.doe@example.com",
169
+ planName: "Pro Plan",
170
+ errorDate: "November 18, 2024",
171
+ retryPaymentLink: "https://intlayer.org/retry-payment"
172
+ };
173
+ SubscriptionPaymentErrorEN.PreviewProps = PreviewProps;
174
+ SubscriptionPaymentErrorFR.PreviewProps = PreviewProps;
175
+ SubscriptionPaymentErrorES.PreviewProps = PreviewProps;
176
+ // Annotate the CommonJS export names for ESM import in node:
177
+ 0 && (module.exports = {
178
+ SubscriptionPaymentErrorEN,
179
+ SubscriptionPaymentErrorES,
180
+ SubscriptionPaymentErrorFR
181
+ });
182
+ //# sourceMappingURL=SubscriptionPaymentError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/emails/SubscriptionPaymentError.tsx"],"sourcesContent":["import {\n Html,\n Head,\n Preview,\n Tailwind,\n Body,\n Section,\n Img,\n Heading,\n Container,\n Button,\n Text,\n} from '@react-email/components';\n\nexport type SubscriptionPaymentErrorProps = {\n username: string; // The name of the user receiving the email\n email: string; // The email address of the user\n planName: string; // The name of the subscription plan\n errorDate: string; // The date the payment error occurred\n retryPaymentLink: string; // A link for the user to retry their payment\n};\n\n// Payment Error Email - English (EN)\nexport const SubscriptionPaymentErrorEN = ({\n username,\n planName,\n errorDate,\n retryPaymentLink,\n}: SubscriptionPaymentErrorProps) => {\n const previewText = `There was an issue with your ${planName} subscription payment`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Payment Issue Detected\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hello {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n We encountered an issue processing your payment for the{' '}\n <strong>{planName}</strong> plan on <strong>{errorDate}</strong>.\n Please update your payment information to ensure continued access\n to your subscription.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={retryPaymentLink}\n >\n Retry Payment\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\n// Payment Error Email - French (FR)\nexport const SubscriptionPaymentErrorFR = ({\n username,\n planName,\n errorDate,\n retryPaymentLink,\n}: SubscriptionPaymentErrorProps) => {\n const previewText = `Un problème est survenu avec votre paiement pour l'abonnement ${planName}`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Problème de Paiement\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Bonjour {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Nous avons rencontré un problème lors du traitement de votre\n paiement pour le plan <strong>{planName}</strong> le{' '}\n <strong>{errorDate}</strong>. Veuillez mettre à jour vos\n informations de paiement pour garantir un accès continu à votre\n abonnement.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={retryPaymentLink}\n >\n Réessayer le Paiement\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\n// Payment Error Email - Spanish (ES)\nexport const SubscriptionPaymentErrorES = ({\n username,\n planName,\n errorDate,\n retryPaymentLink,\n}: SubscriptionPaymentErrorProps) => {\n const previewText = `Hubo un problema con el pago de tu suscripción ${planName}`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Problema de Pago\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hola {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hubo un problema al procesar tu pago para el plan{' '}\n <strong>{planName}</strong> el <strong>{errorDate}</strong>. Por\n favor, actualiza tu información de pago para garantizar el acceso\n continuo a tu suscripción.\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={retryPaymentLink}\n >\n Reintentar el Pago\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\n// Preview Props Example\nconst PreviewProps: SubscriptionPaymentErrorProps = {\n username: 'John Doe',\n email: 'john.doe@example.com',\n planName: 'Pro Plan',\n errorDate: 'November 18, 2024',\n retryPaymentLink: 'https://intlayer.org/retry-payment',\n};\n\nSubscriptionPaymentErrorEN.PreviewProps = PreviewProps;\nSubscriptionPaymentErrorFR.PreviewProps = PreviewProps;\nSubscriptionPaymentErrorES.PreviewProps = PreviewProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCM;AAjCN,wBAYO;AAWA,MAAM,6BAA6B,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAc,gCAAgC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A,UACC,WAAU;AAAA,UACV,MAAM;AAAA,UACP;AAAA;AAAA,MAED,GACF;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAGA,MAAM,eAA8C;AAAA,EAClD,UAAU;AAAA,EACV,OAAO;AAAA,EACP,UAAU;AAAA,EACV,WAAW;AAAA,EACX,kBAAkB;AACpB;AAEA,2BAA2B,eAAe;AAC1C,2BAA2B,eAAe;AAC1C,2BAA2B,eAAe;","names":[]}
@@ -0,0 +1,188 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var SubscriptionPaymentSuccess_exports = {};
20
+ __export(SubscriptionPaymentSuccess_exports, {
21
+ SubscriptionPaymentSuccessEN: () => SubscriptionPaymentSuccessEN,
22
+ SubscriptionPaymentSuccessES: () => SubscriptionPaymentSuccessES,
23
+ SubscriptionPaymentSuccessFR: () => SubscriptionPaymentSuccessFR
24
+ });
25
+ module.exports = __toCommonJS(SubscriptionPaymentSuccess_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var import_components = require("@react-email/components");
28
+ const SubscriptionPaymentSuccessEN = ({
29
+ username,
30
+ planName,
31
+ subscriptionStartDate,
32
+ manageSubscriptionLink
33
+ }) => {
34
+ const previewText = `Your payment for ${planName} subscription is confirmed`;
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_components.Img,
41
+ {
42
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
43
+ width: "40",
44
+ height: "37",
45
+ alt: "Intlayer",
46
+ className: "mx-auto my-0"
47
+ }
48
+ ) }),
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Payment Confirmed" }),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
51
+ "Hello ",
52
+ username,
53
+ ","
54
+ ] }),
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
56
+ "Thank you for your payment! Your subscription to the",
57
+ " ",
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
59
+ " plan is now active."
60
+ ] }),
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
62
+ "Start Date: ",
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: subscriptionStartDate })
64
+ ] }),
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
66
+ import_components.Button,
67
+ {
68
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
69
+ href: manageSubscriptionLink,
70
+ children: "Manage Your Subscription"
71
+ }
72
+ ) })
73
+ ] }) }) })
74
+ ] });
75
+ };
76
+ const SubscriptionPaymentSuccessFR = ({
77
+ username,
78
+ planName,
79
+ subscriptionStartDate,
80
+ manageSubscriptionLink
81
+ }) => {
82
+ const previewText = `Votre paiement pour l'abonnement ${planName} est confirm\xE9`;
83
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
86
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ import_components.Img,
89
+ {
90
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
91
+ width: "40",
92
+ height: "37",
93
+ alt: "Intlayer",
94
+ className: "mx-auto my-0"
95
+ }
96
+ ) }),
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Paiement Confirm\xE9" }),
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
99
+ "Bonjour ",
100
+ username,
101
+ ","
102
+ ] }),
103
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
104
+ "Merci pour votre paiement ! Votre abonnement au plan",
105
+ " ",
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
107
+ " est maintenant actif."
108
+ ] }),
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
110
+ "Date de d\xE9but : ",
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: subscriptionStartDate })
112
+ ] }),
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
114
+ import_components.Button,
115
+ {
116
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
117
+ href: manageSubscriptionLink,
118
+ children: "G\xE9rer votre abonnement"
119
+ }
120
+ ) })
121
+ ] }) }) })
122
+ ] });
123
+ };
124
+ const SubscriptionPaymentSuccessES = ({
125
+ username,
126
+ planName,
127
+ subscriptionStartDate,
128
+ manageSubscriptionLink
129
+ }) => {
130
+ const previewText = `Tu pago por la suscripci\xF3n ${planName} ha sido confirmado`;
131
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Html, { children: [
132
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Head, {}),
133
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Preview, { children: previewText }),
134
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Tailwind, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Body, { className: "m-auto px-2 font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Container, { className: "mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]", children: [
135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "mt-[32px]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
136
+ import_components.Img,
137
+ {
138
+ src: `https://intlayer.org/assets/favicon-32x32.png`,
139
+ width: "40",
140
+ height: "37",
141
+ alt: "Intlayer",
142
+ className: "mx-auto my-0"
143
+ }
144
+ ) }),
145
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Heading, { className: "mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black", children: "Pago Confirmado" }),
146
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
147
+ "Hola ",
148
+ username,
149
+ ","
150
+ ] }),
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
152
+ "\xA1Gracias por tu pago! Tu suscripci\xF3n al plan",
153
+ " ",
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: planName }),
155
+ " ya est\xE1 activa."
156
+ ] }),
157
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.Text, { className: "text-[14px] leading-[24px] text-black", children: [
158
+ "Fecha de inicio: ",
159
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: subscriptionStartDate })
160
+ ] }),
161
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Section, { className: "my-[32px] text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
+ import_components.Button,
163
+ {
164
+ className: "rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline",
165
+ href: manageSubscriptionLink,
166
+ children: "Gestionar tu suscripci\xF3n"
167
+ }
168
+ ) })
169
+ ] }) }) })
170
+ ] });
171
+ };
172
+ const PreviewProps = {
173
+ username: "John Doe",
174
+ email: "john.doe@example.com",
175
+ planName: "Pro Plan",
176
+ subscriptionStartDate: "November 20, 2024",
177
+ manageSubscriptionLink: "https://intlayer.org/manage-subscription"
178
+ };
179
+ SubscriptionPaymentSuccessEN.PreviewProps = PreviewProps;
180
+ SubscriptionPaymentSuccessFR.PreviewProps = PreviewProps;
181
+ SubscriptionPaymentSuccessES.PreviewProps = PreviewProps;
182
+ // Annotate the CommonJS export names for ESM import in node:
183
+ 0 && (module.exports = {
184
+ SubscriptionPaymentSuccessEN,
185
+ SubscriptionPaymentSuccessES,
186
+ SubscriptionPaymentSuccessFR
187
+ });
188
+ //# sourceMappingURL=SubscriptionPaymentSuccess.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/emails/SubscriptionPaymentSuccess.tsx"],"sourcesContent":["import {\n Html,\n Head,\n Preview,\n Tailwind,\n Body,\n Section,\n Img,\n Heading,\n Container,\n Button,\n Text,\n} from '@react-email/components';\n\nexport type SubscriptionPaymentSuccessProps = {\n username: string; // The name of the user receiving the email\n email: string; // The email address of the user\n planName: string; // The name of the subscription plan\n subscriptionStartDate: string; // The start date of the subscription\n manageSubscriptionLink: string; // A link for the user to manage their subscription\n};\n\nexport const SubscriptionPaymentSuccessEN = ({\n username,\n planName,\n subscriptionStartDate,\n manageSubscriptionLink,\n}: SubscriptionPaymentSuccessProps) => {\n const previewText = `Your payment for ${planName} subscription is confirmed`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Payment Confirmed\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hello {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Thank you for your payment! Your subscription to the{' '}\n <strong>{planName}</strong> plan is now active.\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Start Date: <strong>{subscriptionStartDate}</strong>\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={manageSubscriptionLink}\n >\n Manage Your Subscription\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nexport const SubscriptionPaymentSuccessFR = ({\n username,\n planName,\n subscriptionStartDate,\n manageSubscriptionLink,\n}: SubscriptionPaymentSuccessProps) => {\n const previewText = `Votre paiement pour l'abonnement ${planName} est confirmé`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Paiement Confirmé\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Bonjour {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Merci pour votre paiement ! Votre abonnement au plan{' '}\n <strong>{planName}</strong> est maintenant actif.\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Date de début : <strong>{subscriptionStartDate}</strong>\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={manageSubscriptionLink}\n >\n Gérer votre abonnement\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nexport const SubscriptionPaymentSuccessES = ({\n username,\n planName,\n subscriptionStartDate,\n manageSubscriptionLink,\n}: SubscriptionPaymentSuccessProps) => {\n const previewText = `Tu pago por la suscripción ${planName} ha sido confirmado`;\n\n return (\n <Html>\n <Head />\n <Preview>{previewText}</Preview>\n <Tailwind>\n <Body className=\"m-auto px-2 font-sans\">\n <Container className=\"mx-auto my-[40px] max-w-[465px] rounded-xl border border-solid border-[#eaeaea] bg-white p-[20px]\">\n <Section className=\"mt-[32px]\">\n <Img\n src={`https://intlayer.org/assets/favicon-32x32.png`}\n width=\"40\"\n height=\"37\"\n alt=\"Intlayer\"\n className=\"mx-auto my-0\"\n />\n </Section>\n <Heading className=\"mx-0 my-[30px] p-0 text-center text-[24px] font-normal text-black\">\n Pago Confirmado\n </Heading>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Hola {username},\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n ¡Gracias por tu pago! Tu suscripción al plan{' '}\n <strong>{planName}</strong> ya está activa.\n </Text>\n <Text className=\"text-[14px] leading-[24px] text-black\">\n Fecha de inicio: <strong>{subscriptionStartDate}</strong>\n </Text>\n <Section className=\"my-[32px] text-center\">\n <Button\n className=\"rounded-md bg-[#000000] px-5 py-3 text-center text-[12px] font-semibold text-white no-underline\"\n href={manageSubscriptionLink}\n >\n Gestionar tu suscripción\n </Button>\n </Section>\n </Container>\n </Body>\n </Tailwind>\n </Html>\n );\n};\n\nconst PreviewProps: SubscriptionPaymentSuccessProps = {\n username: 'John Doe',\n email: 'john.doe@example.com',\n planName: 'Pro Plan',\n subscriptionStartDate: 'November 20, 2024',\n manageSubscriptionLink: 'https://intlayer.org/manage-subscription',\n};\n\nSubscriptionPaymentSuccessEN.PreviewProps = PreviewProps;\nSubscriptionPaymentSuccessFR.PreviewProps = PreviewProps;\nSubscriptionPa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WAAU,qEAAoE,6BAEvF;AAAA,MACA,6CAAC,0BAAK,WAAU,yCAAwC;AAAA;AAAA,QAChD;AAAA,QAAS;AAAA,SACjB;AAAA,MACA,6CAAC,0BAAK,WAAU,yCAAwC;AAAA;AAAA,QACT;AAAA,QAC7C,4CAAC,YAAQ,oBAAS;AAAA,QAAS;AAAA,SAC7B;AAAA,MACA,6CAAC,0BAAK,WAAU,yCAAwC;AAAA;AAAA,QACrC,4CAAC,YAAQ,iCAAsB;AAAA,SAClD;AAAA,MACA,4CAAC,6BAAQ,WAAU,yBACjB;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,MAAM;AAAA,UACP;AAAA;AAAA,MAED,GACF;AAAA,OACF,GACF,GACF;AAAA,KACF;AAEJ;AAEA,MAAM,eAAgD;AAAA,EACpD,UAAU;AAAA,EACV,OAAO;AAAA,EACP,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,wBAAwB;AAC1B;AAEA,6BAA6B,eAAe;AAC5C,6BAA6B,eAAe;AAC5C,6BAA6B,eAAe;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/export.ts"],"sourcesContent":["// Routes\nexport { userRoutes } from '@routes/user.routes';\nexport { organizationRoutes } from '@routes/organization.routes';\nexport { projectRoutes } from '@routes/project.routes';\nexport { dictionaryRoutes } from '@routes/dictionary.routes';\nexport { sessionAuthRoutes } from '@routes/sessionAuth.routes';\n\n// Controllers types\nexport type * from '@controllers/sessionAuth.controller';\nexport type * from '@controllers/oAuth2.controller';\nexport type * from '@controllers/organization.controller';\nexport type * from '@controllers/project.controller';\nexport type * from '@controllers/projectAccessKey.controller';\nexport type * from '@controllers/user.controller';\nexport type * from '@controllers/dictionary.controller';\n\n// Objects types\nexport type * from '@/types/organization.types';\nexport type * from '@/types/project.types';\nexport type * from '@/types/user.types';\nexport type * from '@/types/dictionary.types';\n\n// Utils\nexport * from '@utils/cookies';\nexport * from '@utils/httpStatusCodes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2B;AAC3B,0BAAmC;AACnC,qBAA8B;AAC9B,wBAAiC;AACjC,yBAAkC;AAkBlC,2BAAc,2BAvBd;AAwBA,2BAAc,mCAxBd;","names":[]}
1
+ {"version":3,"sources":["../../src/export.ts"],"sourcesContent":["// Routes\nexport { userRoutes } from '@routes/user.routes';\nexport { organizationRoutes } from '@routes/organization.routes';\nexport { projectRoutes } from '@routes/project.routes';\nexport { dictionaryRoutes } from '@routes/dictionary.routes';\nexport { sessionAuthRoutes } from '@routes/sessionAuth.routes';\n\n// Controllers types\nexport type * from '@controllers/sessionAuth.controller';\nexport type * from '@controllers/oAuth2.controller';\nexport type * from '@controllers/organization.controller';\nexport type * from '@controllers/project.controller';\nexport type * from '@controllers/projectAccessKey.controller';\nexport type * from '@controllers/user.controller';\nexport type * from '@controllers/dictionary.controller';\nexport type * from '@controllers/stripe.controller';\n\n// Objects types\nexport type * from '@/types/organization.types';\nexport type * from '@/types/project.types';\nexport type * from '@/types/user.types';\nexport type * from '@/types/dictionary.types';\nexport type * from '@/types/plan.types';\n\n// Utils\nexport * from '@utils/cookies';\nexport * from '@utils/httpStatusCodes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAA2B;AAC3B,0BAAmC;AACnC,qBAA8B;AAC9B,wBAAiC;AACjC,yBAAkC;AAoBlC,2BAAc,2BAzBd;AA0BA,2BAAc,mCA1Bd;","names":[]}