digital-tools 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/CHANGELOG.md +9 -0
  3. package/README.md +1144 -0
  4. package/dist/define.d.ts +109 -0
  5. package/dist/define.d.ts.map +1 -0
  6. package/dist/define.js +268 -0
  7. package/dist/define.js.map +1 -0
  8. package/dist/entities/advertising.d.ts +79 -0
  9. package/dist/entities/advertising.d.ts.map +1 -0
  10. package/dist/entities/advertising.js +1000 -0
  11. package/dist/entities/advertising.js.map +1 -0
  12. package/dist/entities/ai.d.ts +69 -0
  13. package/dist/entities/ai.d.ts.map +1 -0
  14. package/dist/entities/ai.js +757 -0
  15. package/dist/entities/ai.js.map +1 -0
  16. package/dist/entities/analytics.d.ts +83 -0
  17. package/dist/entities/analytics.d.ts.map +1 -0
  18. package/dist/entities/analytics.js +1589 -0
  19. package/dist/entities/analytics.js.map +1 -0
  20. package/dist/entities/automation.d.ts +61 -0
  21. package/dist/entities/automation.d.ts.map +1 -0
  22. package/dist/entities/automation.js +602 -0
  23. package/dist/entities/automation.js.map +1 -0
  24. package/dist/entities/communication.d.ts +96 -0
  25. package/dist/entities/communication.d.ts.map +1 -0
  26. package/dist/entities/communication.js +1151 -0
  27. package/dist/entities/communication.js.map +1 -0
  28. package/dist/entities/crm.d.ts +91 -0
  29. package/dist/entities/crm.d.ts.map +1 -0
  30. package/dist/entities/crm.js +1387 -0
  31. package/dist/entities/crm.js.map +1 -0
  32. package/dist/entities/design.d.ts +61 -0
  33. package/dist/entities/design.d.ts.map +1 -0
  34. package/dist/entities/design.js +547 -0
  35. package/dist/entities/design.js.map +1 -0
  36. package/dist/entities/development.d.ts +145 -0
  37. package/dist/entities/development.d.ts.map +1 -0
  38. package/dist/entities/development.js +2213 -0
  39. package/dist/entities/development.js.map +1 -0
  40. package/dist/entities/document.d.ts +54 -0
  41. package/dist/entities/document.d.ts.map +1 -0
  42. package/dist/entities/document.js +875 -0
  43. package/dist/entities/document.js.map +1 -0
  44. package/dist/entities/ecommerce.d.ts +93 -0
  45. package/dist/entities/ecommerce.d.ts.map +1 -0
  46. package/dist/entities/ecommerce.js +1430 -0
  47. package/dist/entities/ecommerce.js.map +1 -0
  48. package/dist/entities/experiment.d.ts +89 -0
  49. package/dist/entities/experiment.d.ts.map +1 -0
  50. package/dist/entities/experiment.js +1040 -0
  51. package/dist/entities/experiment.js.map +1 -0
  52. package/dist/entities/finance.d.ts +272 -0
  53. package/dist/entities/finance.d.ts.map +1 -0
  54. package/dist/entities/finance.js +3479 -0
  55. package/dist/entities/finance.js.map +1 -0
  56. package/dist/entities/forms.d.ts +91 -0
  57. package/dist/entities/forms.d.ts.map +1 -0
  58. package/dist/entities/forms.js +1893 -0
  59. package/dist/entities/forms.js.map +1 -0
  60. package/dist/entities/hr.d.ts +62 -0
  61. package/dist/entities/hr.d.ts.map +1 -0
  62. package/dist/entities/hr.js +662 -0
  63. package/dist/entities/hr.js.map +1 -0
  64. package/dist/entities/identity.d.ts +90 -0
  65. package/dist/entities/identity.d.ts.map +1 -0
  66. package/dist/entities/identity.js +998 -0
  67. package/dist/entities/identity.js.map +1 -0
  68. package/dist/entities/index.d.ts +410 -0
  69. package/dist/entities/index.d.ts.map +1 -0
  70. package/dist/entities/index.js +283 -0
  71. package/dist/entities/index.js.map +1 -0
  72. package/dist/entities/infrastructure.d.ts +98 -0
  73. package/dist/entities/infrastructure.d.ts.map +1 -0
  74. package/dist/entities/infrastructure.js +1154 -0
  75. package/dist/entities/infrastructure.js.map +1 -0
  76. package/dist/entities/knowledge.d.ts +98 -0
  77. package/dist/entities/knowledge.d.ts.map +1 -0
  78. package/dist/entities/knowledge.js +1439 -0
  79. package/dist/entities/knowledge.js.map +1 -0
  80. package/dist/entities/marketing.d.ts +82 -0
  81. package/dist/entities/marketing.d.ts.map +1 -0
  82. package/dist/entities/marketing.js +1611 -0
  83. package/dist/entities/marketing.js.map +1 -0
  84. package/dist/entities/media.d.ts +83 -0
  85. package/dist/entities/media.d.ts.map +1 -0
  86. package/dist/entities/media.js +1635 -0
  87. package/dist/entities/media.js.map +1 -0
  88. package/dist/entities/notification.d.ts +76 -0
  89. package/dist/entities/notification.d.ts.map +1 -0
  90. package/dist/entities/notification.js +1200 -0
  91. package/dist/entities/notification.js.map +1 -0
  92. package/dist/entities/presentation.d.ts +61 -0
  93. package/dist/entities/presentation.d.ts.map +1 -0
  94. package/dist/entities/presentation.js +1275 -0
  95. package/dist/entities/presentation.js.map +1 -0
  96. package/dist/entities/productivity.d.ts +92 -0
  97. package/dist/entities/productivity.d.ts.map +1 -0
  98. package/dist/entities/productivity.js +1318 -0
  99. package/dist/entities/productivity.js.map +1 -0
  100. package/dist/entities/project-management.d.ts +89 -0
  101. package/dist/entities/project-management.d.ts.map +1 -0
  102. package/dist/entities/project-management.js +1137 -0
  103. package/dist/entities/project-management.js.map +1 -0
  104. package/dist/entities/recruiting.d.ts +54 -0
  105. package/dist/entities/recruiting.d.ts.map +1 -0
  106. package/dist/entities/recruiting.js +737 -0
  107. package/dist/entities/recruiting.js.map +1 -0
  108. package/dist/entities/shipping.d.ts +52 -0
  109. package/dist/entities/shipping.d.ts.map +1 -0
  110. package/dist/entities/shipping.js +510 -0
  111. package/dist/entities/shipping.js.map +1 -0
  112. package/dist/entities/signature.d.ts +83 -0
  113. package/dist/entities/signature.d.ts.map +1 -0
  114. package/dist/entities/signature.js +1103 -0
  115. package/dist/entities/signature.js.map +1 -0
  116. package/dist/entities/site.d.ts +33 -0
  117. package/dist/entities/site.d.ts.map +1 -0
  118. package/dist/entities/site.js +223 -0
  119. package/dist/entities/site.js.map +1 -0
  120. package/dist/entities/spreadsheet.d.ts +68 -0
  121. package/dist/entities/spreadsheet.d.ts.map +1 -0
  122. package/dist/entities/spreadsheet.js +1342 -0
  123. package/dist/entities/spreadsheet.js.map +1 -0
  124. package/dist/entities/storage.d.ts +74 -0
  125. package/dist/entities/storage.d.ts.map +1 -0
  126. package/dist/entities/storage.js +1199 -0
  127. package/dist/entities/storage.js.map +1 -0
  128. package/dist/entities/support.d.ts +83 -0
  129. package/dist/entities/support.d.ts.map +1 -0
  130. package/dist/entities/support.js +1167 -0
  131. package/dist/entities/support.js.map +1 -0
  132. package/dist/entities/video-conferencing.d.ts +129 -0
  133. package/dist/entities/video-conferencing.d.ts.map +1 -0
  134. package/dist/entities/video-conferencing.js +1751 -0
  135. package/dist/entities/video-conferencing.js.map +1 -0
  136. package/dist/entities/video.d.ts +76 -0
  137. package/dist/entities/video.d.ts.map +1 -0
  138. package/dist/entities/video.js +951 -0
  139. package/dist/entities/video.js.map +1 -0
  140. package/dist/entities.d.ts +147 -0
  141. package/dist/entities.d.ts.map +1 -0
  142. package/dist/entities.js +1664 -0
  143. package/dist/entities.js.map +1 -0
  144. package/dist/index.d.ts +29 -0
  145. package/dist/index.d.ts.map +1 -0
  146. package/dist/index.js +75 -0
  147. package/dist/index.js.map +1 -0
  148. package/dist/providers/analytics/index.d.ts +19 -0
  149. package/dist/providers/analytics/index.d.ts.map +1 -0
  150. package/dist/providers/analytics/index.js +18 -0
  151. package/dist/providers/analytics/index.js.map +1 -0
  152. package/dist/providers/analytics/mixpanel.d.ts +25 -0
  153. package/dist/providers/analytics/mixpanel.d.ts.map +1 -0
  154. package/dist/providers/analytics/mixpanel.js +256 -0
  155. package/dist/providers/analytics/mixpanel.js.map +1 -0
  156. package/dist/providers/calendar/cal-com.d.ts +26 -0
  157. package/dist/providers/calendar/cal-com.d.ts.map +1 -0
  158. package/dist/providers/calendar/cal-com.js +304 -0
  159. package/dist/providers/calendar/cal-com.js.map +1 -0
  160. package/dist/providers/calendar/google-calendar.d.ts +25 -0
  161. package/dist/providers/calendar/google-calendar.d.ts.map +1 -0
  162. package/dist/providers/calendar/google-calendar.js +336 -0
  163. package/dist/providers/calendar/google-calendar.js.map +1 -0
  164. package/dist/providers/calendar/index.d.ts +20 -0
  165. package/dist/providers/calendar/index.d.ts.map +1 -0
  166. package/dist/providers/calendar/index.js +21 -0
  167. package/dist/providers/calendar/index.js.map +1 -0
  168. package/dist/providers/crm/hubspot.d.ts +25 -0
  169. package/dist/providers/crm/hubspot.d.ts.map +1 -0
  170. package/dist/providers/crm/hubspot.js +567 -0
  171. package/dist/providers/crm/hubspot.js.map +1 -0
  172. package/dist/providers/crm/index.d.ts +19 -0
  173. package/dist/providers/crm/index.d.ts.map +1 -0
  174. package/dist/providers/crm/index.js +18 -0
  175. package/dist/providers/crm/index.js.map +1 -0
  176. package/dist/providers/development/github.d.ts +25 -0
  177. package/dist/providers/development/github.d.ts.map +1 -0
  178. package/dist/providers/development/github.js +473 -0
  179. package/dist/providers/development/github.js.map +1 -0
  180. package/dist/providers/development/index.d.ts +19 -0
  181. package/dist/providers/development/index.d.ts.map +1 -0
  182. package/dist/providers/development/index.js +18 -0
  183. package/dist/providers/development/index.js.map +1 -0
  184. package/dist/providers/ecommerce/index.d.ts +19 -0
  185. package/dist/providers/ecommerce/index.d.ts.map +1 -0
  186. package/dist/providers/ecommerce/index.js +18 -0
  187. package/dist/providers/ecommerce/index.js.map +1 -0
  188. package/dist/providers/ecommerce/shopify.d.ts +25 -0
  189. package/dist/providers/ecommerce/shopify.d.ts.map +1 -0
  190. package/dist/providers/ecommerce/shopify.js +379 -0
  191. package/dist/providers/ecommerce/shopify.js.map +1 -0
  192. package/dist/providers/email/index.d.ts +20 -0
  193. package/dist/providers/email/index.d.ts.map +1 -0
  194. package/dist/providers/email/index.js +21 -0
  195. package/dist/providers/email/index.js.map +1 -0
  196. package/dist/providers/email/resend.d.ts +25 -0
  197. package/dist/providers/email/resend.d.ts.map +1 -0
  198. package/dist/providers/email/resend.js +259 -0
  199. package/dist/providers/email/resend.js.map +1 -0
  200. package/dist/providers/email/sendgrid.d.ts +25 -0
  201. package/dist/providers/email/sendgrid.d.ts.map +1 -0
  202. package/dist/providers/email/sendgrid.js +162 -0
  203. package/dist/providers/email/sendgrid.js.map +1 -0
  204. package/dist/providers/finance/index.d.ts +19 -0
  205. package/dist/providers/finance/index.d.ts.map +1 -0
  206. package/dist/providers/finance/index.js +18 -0
  207. package/dist/providers/finance/index.js.map +1 -0
  208. package/dist/providers/finance/stripe.d.ts +25 -0
  209. package/dist/providers/finance/stripe.d.ts.map +1 -0
  210. package/dist/providers/finance/stripe.js +550 -0
  211. package/dist/providers/finance/stripe.js.map +1 -0
  212. package/dist/providers/forms/index.d.ts +19 -0
  213. package/dist/providers/forms/index.d.ts.map +1 -0
  214. package/dist/providers/forms/index.js +18 -0
  215. package/dist/providers/forms/index.js.map +1 -0
  216. package/dist/providers/forms/typeform.d.ts +25 -0
  217. package/dist/providers/forms/typeform.d.ts.map +1 -0
  218. package/dist/providers/forms/typeform.js +501 -0
  219. package/dist/providers/forms/typeform.js.map +1 -0
  220. package/dist/providers/index.d.ts +56 -0
  221. package/dist/providers/index.d.ts.map +1 -0
  222. package/dist/providers/index.js +124 -0
  223. package/dist/providers/index.js.map +1 -0
  224. package/dist/providers/knowledge/index.d.ts +19 -0
  225. package/dist/providers/knowledge/index.d.ts.map +1 -0
  226. package/dist/providers/knowledge/index.js +18 -0
  227. package/dist/providers/knowledge/index.js.map +1 -0
  228. package/dist/providers/knowledge/notion.d.ts +25 -0
  229. package/dist/providers/knowledge/notion.d.ts.map +1 -0
  230. package/dist/providers/knowledge/notion.js +390 -0
  231. package/dist/providers/knowledge/notion.js.map +1 -0
  232. package/dist/providers/marketing/index.d.ts +19 -0
  233. package/dist/providers/marketing/index.d.ts.map +1 -0
  234. package/dist/providers/marketing/index.js +18 -0
  235. package/dist/providers/marketing/index.js.map +1 -0
  236. package/dist/providers/marketing/mailchimp.d.ts +25 -0
  237. package/dist/providers/marketing/mailchimp.d.ts.map +1 -0
  238. package/dist/providers/marketing/mailchimp.js +444 -0
  239. package/dist/providers/marketing/mailchimp.js.map +1 -0
  240. package/dist/providers/media/cloudinary.d.ts +25 -0
  241. package/dist/providers/media/cloudinary.d.ts.map +1 -0
  242. package/dist/providers/media/cloudinary.js +319 -0
  243. package/dist/providers/media/cloudinary.js.map +1 -0
  244. package/dist/providers/media/index.d.ts +19 -0
  245. package/dist/providers/media/index.d.ts.map +1 -0
  246. package/dist/providers/media/index.js +18 -0
  247. package/dist/providers/media/index.js.map +1 -0
  248. package/dist/providers/messaging/index.d.ts +24 -0
  249. package/dist/providers/messaging/index.d.ts.map +1 -0
  250. package/dist/providers/messaging/index.js +21 -0
  251. package/dist/providers/messaging/index.js.map +1 -0
  252. package/dist/providers/messaging/slack.d.ts +25 -0
  253. package/dist/providers/messaging/slack.d.ts.map +1 -0
  254. package/dist/providers/messaging/slack.js +394 -0
  255. package/dist/providers/messaging/slack.js.map +1 -0
  256. package/dist/providers/messaging/twilio-sms.d.ts +25 -0
  257. package/dist/providers/messaging/twilio-sms.d.ts.map +1 -0
  258. package/dist/providers/messaging/twilio-sms.js +250 -0
  259. package/dist/providers/messaging/twilio-sms.js.map +1 -0
  260. package/dist/providers/project-management/index.d.ts +19 -0
  261. package/dist/providers/project-management/index.d.ts.map +1 -0
  262. package/dist/providers/project-management/index.js +18 -0
  263. package/dist/providers/project-management/index.js.map +1 -0
  264. package/dist/providers/project-management/linear.d.ts +25 -0
  265. package/dist/providers/project-management/linear.d.ts.map +1 -0
  266. package/dist/providers/project-management/linear.js +576 -0
  267. package/dist/providers/project-management/linear.js.map +1 -0
  268. package/dist/providers/registry.d.ts +41 -0
  269. package/dist/providers/registry.d.ts.map +1 -0
  270. package/dist/providers/registry.js +87 -0
  271. package/dist/providers/registry.js.map +1 -0
  272. package/dist/providers/spreadsheet/google-sheets.d.ts +25 -0
  273. package/dist/providers/spreadsheet/google-sheets.d.ts.map +1 -0
  274. package/dist/providers/spreadsheet/google-sheets.js +376 -0
  275. package/dist/providers/spreadsheet/google-sheets.js.map +1 -0
  276. package/dist/providers/spreadsheet/index.d.ts +20 -0
  277. package/dist/providers/spreadsheet/index.d.ts.map +1 -0
  278. package/dist/providers/spreadsheet/index.js +21 -0
  279. package/dist/providers/spreadsheet/index.js.map +1 -0
  280. package/dist/providers/spreadsheet/xlsx.d.ts +26 -0
  281. package/dist/providers/spreadsheet/xlsx.d.ts.map +1 -0
  282. package/dist/providers/spreadsheet/xlsx.js +424 -0
  283. package/dist/providers/spreadsheet/xlsx.js.map +1 -0
  284. package/dist/providers/storage/index.d.ts +30 -0
  285. package/dist/providers/storage/index.d.ts.map +1 -0
  286. package/dist/providers/storage/index.js +25 -0
  287. package/dist/providers/storage/index.js.map +1 -0
  288. package/dist/providers/storage/s3.d.ts +25 -0
  289. package/dist/providers/storage/s3.d.ts.map +1 -0
  290. package/dist/providers/storage/s3.js +420 -0
  291. package/dist/providers/storage/s3.js.map +1 -0
  292. package/dist/providers/support/index.d.ts +19 -0
  293. package/dist/providers/support/index.d.ts.map +1 -0
  294. package/dist/providers/support/index.js +18 -0
  295. package/dist/providers/support/index.js.map +1 -0
  296. package/dist/providers/support/zendesk.d.ts +25 -0
  297. package/dist/providers/support/zendesk.d.ts.map +1 -0
  298. package/dist/providers/support/zendesk.js +374 -0
  299. package/dist/providers/support/zendesk.js.map +1 -0
  300. package/dist/providers/tasks/index.d.ts +19 -0
  301. package/dist/providers/tasks/index.d.ts.map +1 -0
  302. package/dist/providers/tasks/index.js +18 -0
  303. package/dist/providers/tasks/index.js.map +1 -0
  304. package/dist/providers/tasks/todoist.d.ts +25 -0
  305. package/dist/providers/tasks/todoist.d.ts.map +1 -0
  306. package/dist/providers/tasks/todoist.js +287 -0
  307. package/dist/providers/tasks/todoist.js.map +1 -0
  308. package/dist/providers/types.d.ts +1753 -0
  309. package/dist/providers/types.d.ts.map +1 -0
  310. package/dist/providers/types.js +10 -0
  311. package/dist/providers/types.js.map +1 -0
  312. package/dist/providers/video-conferencing/google-meet.d.ts +26 -0
  313. package/dist/providers/video-conferencing/google-meet.d.ts.map +1 -0
  314. package/dist/providers/video-conferencing/google-meet.js +287 -0
  315. package/dist/providers/video-conferencing/google-meet.js.map +1 -0
  316. package/dist/providers/video-conferencing/index.d.ts +22 -0
  317. package/dist/providers/video-conferencing/index.d.ts.map +1 -0
  318. package/dist/providers/video-conferencing/index.js +32 -0
  319. package/dist/providers/video-conferencing/index.js.map +1 -0
  320. package/dist/providers/video-conferencing/jitsi.d.ts +26 -0
  321. package/dist/providers/video-conferencing/jitsi.d.ts.map +1 -0
  322. package/dist/providers/video-conferencing/jitsi.js +255 -0
  323. package/dist/providers/video-conferencing/jitsi.js.map +1 -0
  324. package/dist/providers/video-conferencing/teams.d.ts +26 -0
  325. package/dist/providers/video-conferencing/teams.d.ts.map +1 -0
  326. package/dist/providers/video-conferencing/teams.js +271 -0
  327. package/dist/providers/video-conferencing/teams.js.map +1 -0
  328. package/dist/providers/video-conferencing/zoom.d.ts +25 -0
  329. package/dist/providers/video-conferencing/zoom.d.ts.map +1 -0
  330. package/dist/providers/video-conferencing/zoom.js +333 -0
  331. package/dist/providers/video-conferencing/zoom.js.map +1 -0
  332. package/dist/providers/voice/vapi.d.ts +27 -0
  333. package/dist/providers/voice/vapi.d.ts.map +1 -0
  334. package/dist/providers/voice/vapi.js +440 -0
  335. package/dist/providers/voice/vapi.js.map +1 -0
  336. package/dist/registry.d.ts +38 -0
  337. package/dist/registry.d.ts.map +1 -0
  338. package/dist/registry.js +129 -0
  339. package/dist/registry.js.map +1 -0
  340. package/dist/tools/communication.d.ts +94 -0
  341. package/dist/tools/communication.d.ts.map +1 -0
  342. package/dist/tools/communication.js +185 -0
  343. package/dist/tools/communication.js.map +1 -0
  344. package/dist/tools/data.d.ts +61 -0
  345. package/dist/tools/data.d.ts.map +1 -0
  346. package/dist/tools/data.js +206 -0
  347. package/dist/tools/data.js.map +1 -0
  348. package/dist/tools/index.d.ts +12 -0
  349. package/dist/tools/index.d.ts.map +1 -0
  350. package/dist/tools/index.js +12 -0
  351. package/dist/tools/index.js.map +1 -0
  352. package/dist/tools/web.d.ts +45 -0
  353. package/dist/tools/web.d.ts.map +1 -0
  354. package/dist/tools/web.js +138 -0
  355. package/dist/tools/web.js.map +1 -0
  356. package/dist/types.d.ts +330 -0
  357. package/dist/types.d.ts.map +1 -0
  358. package/dist/types.js +11 -0
  359. package/dist/types.js.map +1 -0
  360. package/package.json +45 -0
  361. package/src/define.ts +321 -0
  362. package/src/entities/advertising.ts +1086 -0
  363. package/src/entities/ai.ts +835 -0
  364. package/src/entities/analytics.ts +1690 -0
  365. package/src/entities/automation.ts +669 -0
  366. package/src/entities/communication.ts +1255 -0
  367. package/src/entities/crm.ts +1481 -0
  368. package/src/entities/design.ts +606 -0
  369. package/src/entities/development.ts +2392 -0
  370. package/src/entities/document.ts +930 -0
  371. package/src/entities/ecommerce.ts +1539 -0
  372. package/src/entities/experiment.ts +1139 -0
  373. package/src/entities/finance.ts +3907 -0
  374. package/src/entities/forms.ts +2021 -0
  375. package/src/entities/hr.ts +725 -0
  376. package/src/entities/identity.ts +1093 -0
  377. package/src/entities/index.ts +731 -0
  378. package/src/entities/infrastructure.ts +1254 -0
  379. package/src/entities/knowledge.ts +1547 -0
  380. package/src/entities/marketing.ts +1718 -0
  381. package/src/entities/media.ts +1747 -0
  382. package/src/entities/notification.ts +1260 -0
  383. package/src/entities/presentation.ts +1360 -0
  384. package/src/entities/productivity.ts +1411 -0
  385. package/src/entities/project-management.ts +1222 -0
  386. package/src/entities/recruiting.ts +797 -0
  387. package/src/entities/shipping.ts +566 -0
  388. package/src/entities/signature.ts +1204 -0
  389. package/src/entities/site.ts +244 -0
  390. package/src/entities/spreadsheet.ts +1434 -0
  391. package/src/entities/storage.ts +1290 -0
  392. package/src/entities/support.ts +1267 -0
  393. package/src/entities/video-conferencing.ts +1874 -0
  394. package/src/entities/video.ts +1035 -0
  395. package/src/entities.ts +1795 -0
  396. package/src/index.ts +176 -0
  397. package/src/providers/analytics/index.ts +21 -0
  398. package/src/providers/analytics/mixpanel.ts +311 -0
  399. package/src/providers/calendar/cal-com.ts +435 -0
  400. package/src/providers/calendar/google-calendar.ts +412 -0
  401. package/src/providers/calendar/index.ts +24 -0
  402. package/src/providers/crm/hubspot.ts +667 -0
  403. package/src/providers/crm/index.ts +21 -0
  404. package/src/providers/development/github.ts +608 -0
  405. package/src/providers/development/index.ts +21 -0
  406. package/src/providers/ecommerce/index.ts +21 -0
  407. package/src/providers/ecommerce/shopify.ts +451 -0
  408. package/src/providers/email/index.ts +24 -0
  409. package/src/providers/email/resend.ts +301 -0
  410. package/src/providers/email/sendgrid.ts +196 -0
  411. package/src/providers/finance/index.ts +21 -0
  412. package/src/providers/finance/stripe.ts +665 -0
  413. package/src/providers/forms/index.ts +21 -0
  414. package/src/providers/forms/typeform.ts +598 -0
  415. package/src/providers/index.ts +281 -0
  416. package/src/providers/knowledge/index.ts +21 -0
  417. package/src/providers/knowledge/notion.ts +497 -0
  418. package/src/providers/marketing/index.ts +21 -0
  419. package/src/providers/marketing/mailchimp.ts +656 -0
  420. package/src/providers/media/cloudinary.ts +373 -0
  421. package/src/providers/media/index.ts +21 -0
  422. package/src/providers/messaging/index.ts +24 -0
  423. package/src/providers/messaging/slack.ts +487 -0
  424. package/src/providers/messaging/twilio-sms.ts +301 -0
  425. package/src/providers/project-management/index.ts +21 -0
  426. package/src/providers/project-management/linear.ts +693 -0
  427. package/src/providers/registry.ts +119 -0
  428. package/src/providers/spreadsheet/google-sheets.ts +464 -0
  429. package/src/providers/spreadsheet/index.ts +24 -0
  430. package/src/providers/spreadsheet/xlsx.ts +542 -0
  431. package/src/providers/storage/index.ts +35 -0
  432. package/src/providers/storage/s3.ts +513 -0
  433. package/src/providers/support/index.ts +21 -0
  434. package/src/providers/support/zendesk.ts +417 -0
  435. package/src/providers/tasks/index.ts +21 -0
  436. package/src/providers/tasks/todoist.ts +407 -0
  437. package/src/providers/types.ts +2113 -0
  438. package/src/providers/video-conferencing/google-meet.ts +412 -0
  439. package/src/providers/video-conferencing/index.ts +35 -0
  440. package/src/providers/video-conferencing/jitsi.ts +324 -0
  441. package/src/providers/video-conferencing/teams.ts +408 -0
  442. package/src/providers/video-conferencing/zoom.ts +451 -0
  443. package/src/registry.ts +172 -0
  444. package/src/tools/communication.ts +256 -0
  445. package/src/tools/data.ts +236 -0
  446. package/src/tools/index.ts +12 -0
  447. package/src/tools/web.ts +161 -0
  448. package/src/types.ts +539 -0
  449. package/test/define.test.ts +367 -0
  450. package/test/registry.test.ts +444 -0
  451. package/test/tools.test.ts +453 -0
  452. package/tsconfig.json +20 -0
@@ -0,0 +1,665 @@
1
+ /**
2
+ * Stripe Finance Provider
3
+ *
4
+ * Concrete implementation of FinanceProvider using Stripe API.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+
9
+ import type {
10
+ FinanceProvider,
11
+ ProviderConfig,
12
+ ProviderHealth,
13
+ ProviderInfo,
14
+ CreateInvoiceOptions,
15
+ InvoiceData,
16
+ InvoiceListOptions,
17
+ CreatePaymentOptions,
18
+ PaymentData,
19
+ PaymentListOptions,
20
+ RefundData,
21
+ CreateFinanceCustomerOptions,
22
+ FinanceCustomerData,
23
+ PaginatedResult,
24
+ PaginationOptions,
25
+ } from '../types.js'
26
+ import { defineProvider } from '../registry.js'
27
+
28
+ const STRIPE_API_URL = 'https://api.stripe.com/v1'
29
+
30
+ /**
31
+ * Stripe provider info
32
+ */
33
+ export const stripeInfo: ProviderInfo = {
34
+ id: 'finance.stripe',
35
+ name: 'Stripe',
36
+ description: 'Stripe payment processing and invoicing platform',
37
+ category: 'finance',
38
+ website: 'https://stripe.com',
39
+ docsUrl: 'https://stripe.com/docs/api',
40
+ requiredConfig: ['apiKey'],
41
+ optionalConfig: ['webhookSecret'],
42
+ }
43
+
44
+ /**
45
+ * Create Stripe finance provider
46
+ */
47
+ export function createStripeProvider(config: ProviderConfig): FinanceProvider {
48
+ let apiKey: string
49
+
50
+ /**
51
+ * Helper to make Stripe API requests
52
+ */
53
+ async function stripeRequest<T>(
54
+ endpoint: string,
55
+ options: {
56
+ method?: string
57
+ body?: Record<string, unknown>
58
+ params?: Record<string, string>
59
+ } = {}
60
+ ): Promise<T> {
61
+ const { method = 'GET', body, params } = options
62
+ const url = new URL(`${STRIPE_API_URL}${endpoint}`)
63
+
64
+ // Add query params for GET requests
65
+ if (params && method === 'GET') {
66
+ Object.entries(params).forEach(([key, value]) => {
67
+ if (value !== undefined) {
68
+ url.searchParams.append(key, value)
69
+ }
70
+ })
71
+ }
72
+
73
+ const headers: Record<string, string> = {
74
+ Authorization: `Bearer ${apiKey}`,
75
+ }
76
+
77
+ let requestBody: string | undefined
78
+ if (body && method !== 'GET') {
79
+ // Stripe uses form-encoded data
80
+ const params = new URLSearchParams()
81
+ Object.entries(body).forEach(([key, value]) => {
82
+ params.append(key, String(value))
83
+ })
84
+ requestBody = params.toString()
85
+ headers['Content-Type'] = 'application/x-www-form-urlencoded'
86
+ }
87
+
88
+ const response = await fetch(url.toString(), {
89
+ method,
90
+ headers,
91
+ body: requestBody,
92
+ })
93
+
94
+ if (!response.ok) {
95
+ const error = await response.json().catch(() => ({}))
96
+ throw new Error(
97
+ (error as any)?.error?.message || `Stripe API error: ${response.status}`
98
+ )
99
+ }
100
+
101
+ return response.json() as Promise<T>
102
+ }
103
+
104
+ /**
105
+ * Convert Stripe nested params to form format
106
+ */
107
+ function flattenParams(obj: Record<string, unknown>, prefix = ''): Record<string, string> {
108
+ const result: Record<string, string> = {}
109
+
110
+ for (const [key, value] of Object.entries(obj)) {
111
+ const fullKey = prefix ? `${prefix}[${key}]` : key
112
+
113
+ if (value === null || value === undefined) {
114
+ continue
115
+ } else if (Array.isArray(value)) {
116
+ value.forEach((item, index) => {
117
+ if (typeof item === 'object' && item !== null) {
118
+ Object.assign(result, flattenParams(item as Record<string, unknown>, `${fullKey}[${index}]`))
119
+ } else {
120
+ result[`${fullKey}[${index}]`] = String(item)
121
+ }
122
+ })
123
+ } else if (typeof value === 'object') {
124
+ Object.assign(result, flattenParams(value as Record<string, unknown>, fullKey))
125
+ } else {
126
+ result[fullKey] = String(value)
127
+ }
128
+ }
129
+
130
+ return result
131
+ }
132
+
133
+ /**
134
+ * Make Stripe API request with nested params support
135
+ */
136
+ async function stripeRequestWithParams<T>(
137
+ endpoint: string,
138
+ options: {
139
+ method?: string
140
+ data?: Record<string, unknown>
141
+ params?: Record<string, string>
142
+ } = {}
143
+ ): Promise<T> {
144
+ const { method = 'GET', data, params } = options
145
+ const url = new URL(`${STRIPE_API_URL}${endpoint}`)
146
+
147
+ // Add query params for GET requests
148
+ if (params && method === 'GET') {
149
+ Object.entries(params).forEach(([key, value]) => {
150
+ if (value !== undefined) {
151
+ url.searchParams.append(key, value)
152
+ }
153
+ })
154
+ }
155
+
156
+ const headers: Record<string, string> = {
157
+ Authorization: `Bearer ${apiKey}`,
158
+ }
159
+
160
+ let requestBody: string | undefined
161
+ if (data && method !== 'GET') {
162
+ // Flatten nested objects for Stripe's form format
163
+ const flatParams = flattenParams(data)
164
+ requestBody = new URLSearchParams(flatParams).toString()
165
+ headers['Content-Type'] = 'application/x-www-form-urlencoded'
166
+ }
167
+
168
+ const response = await fetch(url.toString(), {
169
+ method,
170
+ headers,
171
+ body: requestBody,
172
+ })
173
+
174
+ if (!response.ok) {
175
+ const error = await response.json().catch(() => ({}))
176
+ throw new Error(
177
+ (error as any)?.error?.message || `Stripe API error: ${response.status}`
178
+ )
179
+ }
180
+
181
+ return response.json() as Promise<T>
182
+ }
183
+
184
+ return {
185
+ info: stripeInfo,
186
+
187
+ async initialize(cfg: ProviderConfig): Promise<void> {
188
+ apiKey = cfg.apiKey as string
189
+
190
+ if (!apiKey) {
191
+ throw new Error('Stripe API key is required')
192
+ }
193
+ },
194
+
195
+ async healthCheck(): Promise<ProviderHealth> {
196
+ const start = Date.now()
197
+ try {
198
+ // Use balance endpoint to verify API key
199
+ await stripeRequest('/balance')
200
+
201
+ return {
202
+ healthy: true,
203
+ latencyMs: Date.now() - start,
204
+ message: 'Connected',
205
+ checkedAt: new Date(),
206
+ }
207
+ } catch (error) {
208
+ return {
209
+ healthy: false,
210
+ latencyMs: Date.now() - start,
211
+ message: error instanceof Error ? error.message : 'Unknown error',
212
+ checkedAt: new Date(),
213
+ }
214
+ }
215
+ },
216
+
217
+ async dispose(): Promise<void> {
218
+ // No cleanup needed
219
+ },
220
+
221
+ async createInvoice(invoice: CreateInvoiceOptions): Promise<InvoiceData> {
222
+ const data: Record<string, unknown> = {
223
+ customer: invoice.customerId,
224
+ currency: invoice.currency || 'usd',
225
+ auto_advance: false, // Don't auto-finalize
226
+ }
227
+
228
+ if (invoice.dueDate) {
229
+ data.due_date = Math.floor(invoice.dueDate.getTime() / 1000)
230
+ }
231
+
232
+ if (invoice.memo) {
233
+ data.description = invoice.memo
234
+ }
235
+
236
+ // Create the invoice
237
+ const stripeInvoice = await stripeRequestWithParams<any>('/invoices', {
238
+ method: 'POST',
239
+ data,
240
+ })
241
+
242
+ // Add line items
243
+ for (const item of invoice.lineItems) {
244
+ await stripeRequestWithParams('/invoiceitems', {
245
+ method: 'POST',
246
+ data: {
247
+ customer: invoice.customerId,
248
+ invoice: stripeInvoice.id,
249
+ description: item.description,
250
+ quantity: item.quantity,
251
+ unit_amount: Math.round(item.unitPrice * 100), // Convert to cents
252
+ currency: invoice.currency || 'usd',
253
+ },
254
+ })
255
+ }
256
+
257
+ // Retrieve updated invoice with line items
258
+ const updatedInvoice = await stripeRequest<any>(`/invoices/${stripeInvoice.id}`)
259
+
260
+ return {
261
+ id: updatedInvoice.id,
262
+ number: updatedInvoice.number || updatedInvoice.id,
263
+ customerId: updatedInvoice.customer,
264
+ status: mapStripeInvoiceStatus(updatedInvoice.status),
265
+ currency: updatedInvoice.currency,
266
+ subtotal: updatedInvoice.subtotal / 100,
267
+ tax: updatedInvoice.tax ? updatedInvoice.tax / 100 : undefined,
268
+ total: updatedInvoice.total / 100,
269
+ amountDue: updatedInvoice.amount_due / 100,
270
+ amountPaid: updatedInvoice.amount_paid / 100,
271
+ dueDate: updatedInvoice.due_date ? new Date(updatedInvoice.due_date * 1000) : undefined,
272
+ paidAt: updatedInvoice.status_transitions?.paid_at
273
+ ? new Date(updatedInvoice.status_transitions.paid_at * 1000)
274
+ : undefined,
275
+ url: updatedInvoice.hosted_invoice_url,
276
+ createdAt: new Date(updatedInvoice.created * 1000),
277
+ }
278
+ },
279
+
280
+ async getInvoice(invoiceId: string): Promise<InvoiceData | null> {
281
+ try {
282
+ const invoice = await stripeRequest<any>(`/invoices/${invoiceId}`)
283
+
284
+ return {
285
+ id: invoice.id,
286
+ number: invoice.number || invoice.id,
287
+ customerId: invoice.customer,
288
+ status: mapStripeInvoiceStatus(invoice.status),
289
+ currency: invoice.currency,
290
+ subtotal: invoice.subtotal / 100,
291
+ tax: invoice.tax ? invoice.tax / 100 : undefined,
292
+ total: invoice.total / 100,
293
+ amountDue: invoice.amount_due / 100,
294
+ amountPaid: invoice.amount_paid / 100,
295
+ dueDate: invoice.due_date ? new Date(invoice.due_date * 1000) : undefined,
296
+ paidAt: invoice.status_transitions?.paid_at
297
+ ? new Date(invoice.status_transitions.paid_at * 1000)
298
+ : undefined,
299
+ url: invoice.hosted_invoice_url,
300
+ createdAt: new Date(invoice.created * 1000),
301
+ }
302
+ } catch (error) {
303
+ return null
304
+ }
305
+ },
306
+
307
+ async updateInvoice(
308
+ invoiceId: string,
309
+ updates: Partial<CreateInvoiceOptions>
310
+ ): Promise<InvoiceData> {
311
+ const data: Record<string, unknown> = {}
312
+
313
+ if (updates.dueDate) {
314
+ data.due_date = Math.floor(updates.dueDate.getTime() / 1000)
315
+ }
316
+
317
+ if (updates.memo) {
318
+ data.description = updates.memo
319
+ }
320
+
321
+ const invoice = await stripeRequestWithParams<any>(`/invoices/${invoiceId}`, {
322
+ method: 'POST',
323
+ data,
324
+ })
325
+
326
+ return {
327
+ id: invoice.id,
328
+ number: invoice.number || invoice.id,
329
+ customerId: invoice.customer,
330
+ status: mapStripeInvoiceStatus(invoice.status),
331
+ currency: invoice.currency,
332
+ subtotal: invoice.subtotal / 100,
333
+ tax: invoice.tax ? invoice.tax / 100 : undefined,
334
+ total: invoice.total / 100,
335
+ amountDue: invoice.amount_due / 100,
336
+ amountPaid: invoice.amount_paid / 100,
337
+ dueDate: invoice.due_date ? new Date(invoice.due_date * 1000) : undefined,
338
+ paidAt: invoice.status_transitions?.paid_at
339
+ ? new Date(invoice.status_transitions.paid_at * 1000)
340
+ : undefined,
341
+ url: invoice.hosted_invoice_url,
342
+ createdAt: new Date(invoice.created * 1000),
343
+ }
344
+ },
345
+
346
+ async listInvoices(options: InvoiceListOptions = {}): Promise<PaginatedResult<InvoiceData>> {
347
+ const params: Record<string, string> = {}
348
+
349
+ if (options.limit) {
350
+ params.limit = String(options.limit)
351
+ }
352
+
353
+ if (options.cursor) {
354
+ params.starting_after = options.cursor
355
+ }
356
+
357
+ if (options.customerId) {
358
+ params.customer = options.customerId
359
+ }
360
+
361
+ if (options.status) {
362
+ params.status = options.status
363
+ }
364
+
365
+ const response = await stripeRequest<any>('/invoices', { params })
366
+
367
+ return {
368
+ items: response.data.map((invoice: any) => ({
369
+ id: invoice.id,
370
+ number: invoice.number || invoice.id,
371
+ customerId: invoice.customer,
372
+ status: mapStripeInvoiceStatus(invoice.status),
373
+ currency: invoice.currency,
374
+ subtotal: invoice.subtotal / 100,
375
+ tax: invoice.tax ? invoice.tax / 100 : undefined,
376
+ total: invoice.total / 100,
377
+ amountDue: invoice.amount_due / 100,
378
+ amountPaid: invoice.amount_paid / 100,
379
+ dueDate: invoice.due_date ? new Date(invoice.due_date * 1000) : undefined,
380
+ paidAt: invoice.status_transitions?.paid_at
381
+ ? new Date(invoice.status_transitions.paid_at * 1000)
382
+ : undefined,
383
+ url: invoice.hosted_invoice_url,
384
+ createdAt: new Date(invoice.created * 1000),
385
+ })),
386
+ hasMore: response.has_more,
387
+ nextCursor: response.has_more ? response.data[response.data.length - 1]?.id : undefined,
388
+ }
389
+ },
390
+
391
+ async sendInvoice(invoiceId: string): Promise<boolean> {
392
+ try {
393
+ // First finalize the invoice if it's a draft
394
+ const invoice = await stripeRequest<any>(`/invoices/${invoiceId}`)
395
+ if (invoice.status === 'draft') {
396
+ await stripeRequestWithParams(`/invoices/${invoiceId}/finalize`, {
397
+ method: 'POST',
398
+ })
399
+ }
400
+
401
+ // Send the invoice
402
+ await stripeRequestWithParams(`/invoices/${invoiceId}/send`, {
403
+ method: 'POST',
404
+ })
405
+
406
+ return true
407
+ } catch (error) {
408
+ return false
409
+ }
410
+ },
411
+
412
+ async voidInvoice(invoiceId: string): Promise<boolean> {
413
+ try {
414
+ await stripeRequestWithParams(`/invoices/${invoiceId}/void`, {
415
+ method: 'POST',
416
+ })
417
+ return true
418
+ } catch (error) {
419
+ return false
420
+ }
421
+ },
422
+
423
+ async createPayment(payment: CreatePaymentOptions): Promise<PaymentData> {
424
+ const data: Record<string, unknown> = {
425
+ amount: Math.round(payment.amount * 100), // Convert to cents
426
+ currency: payment.currency,
427
+ payment_method: payment.paymentMethod,
428
+ confirm: true,
429
+ }
430
+
431
+ if (payment.customerId) {
432
+ data.customer = payment.customerId
433
+ }
434
+
435
+ if (payment.description) {
436
+ data.description = payment.description
437
+ }
438
+
439
+ // For Stripe, we create a PaymentIntent
440
+ const intent = await stripeRequestWithParams<any>('/payment_intents', {
441
+ method: 'POST',
442
+ data,
443
+ })
444
+
445
+ return {
446
+ id: intent.id,
447
+ amount: intent.amount / 100,
448
+ currency: intent.currency,
449
+ status: mapStripePaymentStatus(intent.status),
450
+ customerId: intent.customer || undefined,
451
+ invoiceId: intent.invoice || undefined,
452
+ paymentMethod: payment.paymentMethod,
453
+ description: intent.description,
454
+ createdAt: new Date(intent.created * 1000),
455
+ }
456
+ },
457
+
458
+ async getPayment(paymentId: string): Promise<PaymentData | null> {
459
+ try {
460
+ const intent = await stripeRequest<any>(`/payment_intents/${paymentId}`)
461
+
462
+ return {
463
+ id: intent.id,
464
+ amount: intent.amount / 100,
465
+ currency: intent.currency,
466
+ status: mapStripePaymentStatus(intent.status),
467
+ customerId: intent.customer || undefined,
468
+ invoiceId: intent.invoice || undefined,
469
+ paymentMethod: intent.payment_method || 'unknown',
470
+ description: intent.description,
471
+ createdAt: new Date(intent.created * 1000),
472
+ }
473
+ } catch (error) {
474
+ return null
475
+ }
476
+ },
477
+
478
+ async listPayments(options: PaymentListOptions = {}): Promise<PaginatedResult<PaymentData>> {
479
+ const params: Record<string, string> = {}
480
+
481
+ if (options.limit) {
482
+ params.limit = String(options.limit)
483
+ }
484
+
485
+ if (options.cursor) {
486
+ params.starting_after = options.cursor
487
+ }
488
+
489
+ if (options.customerId) {
490
+ params.customer = options.customerId
491
+ }
492
+
493
+ const response = await stripeRequest<any>('/payment_intents', { params })
494
+
495
+ return {
496
+ items: response.data.map((intent: any) => ({
497
+ id: intent.id,
498
+ amount: intent.amount / 100,
499
+ currency: intent.currency,
500
+ status: mapStripePaymentStatus(intent.status),
501
+ customerId: intent.customer || undefined,
502
+ invoiceId: intent.invoice || undefined,
503
+ paymentMethod: intent.payment_method || 'unknown',
504
+ description: intent.description,
505
+ createdAt: new Date(intent.created * 1000),
506
+ })),
507
+ hasMore: response.has_more,
508
+ nextCursor: response.has_more ? response.data[response.data.length - 1]?.id : undefined,
509
+ }
510
+ },
511
+
512
+ async refundPayment(paymentId: string, amount?: number): Promise<RefundData> {
513
+ const data: Record<string, unknown> = {
514
+ payment_intent: paymentId,
515
+ }
516
+
517
+ if (amount !== undefined) {
518
+ data.amount = Math.round(amount * 100)
519
+ }
520
+
521
+ const refund = await stripeRequestWithParams<any>('/refunds', {
522
+ method: 'POST',
523
+ data,
524
+ })
525
+
526
+ return {
527
+ id: refund.id,
528
+ paymentId: refund.payment_intent,
529
+ amount: refund.amount / 100,
530
+ status: refund.status,
531
+ createdAt: new Date(refund.created * 1000),
532
+ }
533
+ },
534
+
535
+ async createCustomer(customer: CreateFinanceCustomerOptions): Promise<FinanceCustomerData> {
536
+ const data: Record<string, unknown> = {
537
+ name: customer.name,
538
+ }
539
+
540
+ if (customer.email) {
541
+ data.email = customer.email
542
+ }
543
+
544
+ if (customer.phone) {
545
+ data.phone = customer.phone
546
+ }
547
+
548
+ if (customer.address) {
549
+ data.address = {
550
+ line1: customer.address.line1,
551
+ line2: customer.address.line2,
552
+ city: customer.address.city,
553
+ state: customer.address.state,
554
+ postal_code: customer.address.postalCode,
555
+ country: customer.address.country,
556
+ }
557
+ }
558
+
559
+ const stripeCustomer = await stripeRequestWithParams<any>('/customers', {
560
+ method: 'POST',
561
+ data,
562
+ })
563
+
564
+ return {
565
+ id: stripeCustomer.id,
566
+ name: stripeCustomer.name,
567
+ email: stripeCustomer.email,
568
+ phone: stripeCustomer.phone,
569
+ balance: stripeCustomer.balance ? stripeCustomer.balance / 100 : undefined,
570
+ createdAt: new Date(stripeCustomer.created * 1000),
571
+ }
572
+ },
573
+
574
+ async getCustomer(customerId: string): Promise<FinanceCustomerData | null> {
575
+ try {
576
+ const customer = await stripeRequest<any>(`/customers/${customerId}`)
577
+
578
+ return {
579
+ id: customer.id,
580
+ name: customer.name,
581
+ email: customer.email,
582
+ phone: customer.phone,
583
+ balance: customer.balance ? customer.balance / 100 : undefined,
584
+ createdAt: new Date(customer.created * 1000),
585
+ }
586
+ } catch (error) {
587
+ return null
588
+ }
589
+ },
590
+
591
+ async listCustomers(options: PaginationOptions = {}): Promise<PaginatedResult<FinanceCustomerData>> {
592
+ const params: Record<string, string> = {}
593
+
594
+ if (options.limit) {
595
+ params.limit = String(options.limit)
596
+ }
597
+
598
+ if (options.cursor) {
599
+ params.starting_after = options.cursor
600
+ }
601
+
602
+ const response = await stripeRequest<any>('/customers', { params })
603
+
604
+ return {
605
+ items: response.data.map((customer: any) => ({
606
+ id: customer.id,
607
+ name: customer.name,
608
+ email: customer.email,
609
+ phone: customer.phone,
610
+ balance: customer.balance ? customer.balance / 100 : undefined,
611
+ createdAt: new Date(customer.created * 1000),
612
+ })),
613
+ hasMore: response.has_more,
614
+ nextCursor: response.has_more ? response.data[response.data.length - 1]?.id : undefined,
615
+ }
616
+ },
617
+ }
618
+ }
619
+
620
+ /**
621
+ * Map Stripe invoice status to standard status
622
+ */
623
+ function mapStripeInvoiceStatus(status: string): 'draft' | 'open' | 'paid' | 'void' | 'uncollectible' {
624
+ switch (status) {
625
+ case 'draft':
626
+ return 'draft'
627
+ case 'open':
628
+ return 'open'
629
+ case 'paid':
630
+ return 'paid'
631
+ case 'void':
632
+ return 'void'
633
+ case 'uncollectible':
634
+ return 'uncollectible'
635
+ default:
636
+ return 'draft'
637
+ }
638
+ }
639
+
640
+ /**
641
+ * Map Stripe payment status to standard status
642
+ */
643
+ function mapStripePaymentStatus(status: string): 'pending' | 'succeeded' | 'failed' | 'refunded' {
644
+ switch (status) {
645
+ case 'requires_payment_method':
646
+ case 'requires_confirmation':
647
+ case 'requires_action':
648
+ case 'processing':
649
+ return 'pending'
650
+ case 'succeeded':
651
+ return 'succeeded'
652
+ case 'canceled':
653
+ case 'requires_capture':
654
+ return 'failed'
655
+ default:
656
+ return 'pending'
657
+ }
658
+ }
659
+
660
+ /**
661
+ * Stripe provider definition
662
+ */
663
+ export const stripeProvider = defineProvider(stripeInfo, async (config) =>
664
+ createStripeProvider(config)
665
+ )
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Forms Providers
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+
7
+ export { typeformInfo, typeformProvider, createTypeformProvider } from './typeform.js'
8
+
9
+ import { typeformProvider } from './typeform.js'
10
+
11
+ /**
12
+ * Register all forms providers
13
+ */
14
+ export function registerFormsProviders(): void {
15
+ typeformProvider.register()
16
+ }
17
+
18
+ /**
19
+ * All forms providers
20
+ */
21
+ export const formsProviders = [typeformProvider]