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.
- package/.turbo/turbo-build.log +5 -0
- package/CHANGELOG.md +9 -0
- package/README.md +1144 -0
- package/dist/define.d.ts +109 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +268 -0
- package/dist/define.js.map +1 -0
- package/dist/entities/advertising.d.ts +79 -0
- package/dist/entities/advertising.d.ts.map +1 -0
- package/dist/entities/advertising.js +1000 -0
- package/dist/entities/advertising.js.map +1 -0
- package/dist/entities/ai.d.ts +69 -0
- package/dist/entities/ai.d.ts.map +1 -0
- package/dist/entities/ai.js +757 -0
- package/dist/entities/ai.js.map +1 -0
- package/dist/entities/analytics.d.ts +83 -0
- package/dist/entities/analytics.d.ts.map +1 -0
- package/dist/entities/analytics.js +1589 -0
- package/dist/entities/analytics.js.map +1 -0
- package/dist/entities/automation.d.ts +61 -0
- package/dist/entities/automation.d.ts.map +1 -0
- package/dist/entities/automation.js +602 -0
- package/dist/entities/automation.js.map +1 -0
- package/dist/entities/communication.d.ts +96 -0
- package/dist/entities/communication.d.ts.map +1 -0
- package/dist/entities/communication.js +1151 -0
- package/dist/entities/communication.js.map +1 -0
- package/dist/entities/crm.d.ts +91 -0
- package/dist/entities/crm.d.ts.map +1 -0
- package/dist/entities/crm.js +1387 -0
- package/dist/entities/crm.js.map +1 -0
- package/dist/entities/design.d.ts +61 -0
- package/dist/entities/design.d.ts.map +1 -0
- package/dist/entities/design.js +547 -0
- package/dist/entities/design.js.map +1 -0
- package/dist/entities/development.d.ts +145 -0
- package/dist/entities/development.d.ts.map +1 -0
- package/dist/entities/development.js +2213 -0
- package/dist/entities/development.js.map +1 -0
- package/dist/entities/document.d.ts +54 -0
- package/dist/entities/document.d.ts.map +1 -0
- package/dist/entities/document.js +875 -0
- package/dist/entities/document.js.map +1 -0
- package/dist/entities/ecommerce.d.ts +93 -0
- package/dist/entities/ecommerce.d.ts.map +1 -0
- package/dist/entities/ecommerce.js +1430 -0
- package/dist/entities/ecommerce.js.map +1 -0
- package/dist/entities/experiment.d.ts +89 -0
- package/dist/entities/experiment.d.ts.map +1 -0
- package/dist/entities/experiment.js +1040 -0
- package/dist/entities/experiment.js.map +1 -0
- package/dist/entities/finance.d.ts +272 -0
- package/dist/entities/finance.d.ts.map +1 -0
- package/dist/entities/finance.js +3479 -0
- package/dist/entities/finance.js.map +1 -0
- package/dist/entities/forms.d.ts +91 -0
- package/dist/entities/forms.d.ts.map +1 -0
- package/dist/entities/forms.js +1893 -0
- package/dist/entities/forms.js.map +1 -0
- package/dist/entities/hr.d.ts +62 -0
- package/dist/entities/hr.d.ts.map +1 -0
- package/dist/entities/hr.js +662 -0
- package/dist/entities/hr.js.map +1 -0
- package/dist/entities/identity.d.ts +90 -0
- package/dist/entities/identity.d.ts.map +1 -0
- package/dist/entities/identity.js +998 -0
- package/dist/entities/identity.js.map +1 -0
- package/dist/entities/index.d.ts +410 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +283 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/infrastructure.d.ts +98 -0
- package/dist/entities/infrastructure.d.ts.map +1 -0
- package/dist/entities/infrastructure.js +1154 -0
- package/dist/entities/infrastructure.js.map +1 -0
- package/dist/entities/knowledge.d.ts +98 -0
- package/dist/entities/knowledge.d.ts.map +1 -0
- package/dist/entities/knowledge.js +1439 -0
- package/dist/entities/knowledge.js.map +1 -0
- package/dist/entities/marketing.d.ts +82 -0
- package/dist/entities/marketing.d.ts.map +1 -0
- package/dist/entities/marketing.js +1611 -0
- package/dist/entities/marketing.js.map +1 -0
- package/dist/entities/media.d.ts +83 -0
- package/dist/entities/media.d.ts.map +1 -0
- package/dist/entities/media.js +1635 -0
- package/dist/entities/media.js.map +1 -0
- package/dist/entities/notification.d.ts +76 -0
- package/dist/entities/notification.d.ts.map +1 -0
- package/dist/entities/notification.js +1200 -0
- package/dist/entities/notification.js.map +1 -0
- package/dist/entities/presentation.d.ts +61 -0
- package/dist/entities/presentation.d.ts.map +1 -0
- package/dist/entities/presentation.js +1275 -0
- package/dist/entities/presentation.js.map +1 -0
- package/dist/entities/productivity.d.ts +92 -0
- package/dist/entities/productivity.d.ts.map +1 -0
- package/dist/entities/productivity.js +1318 -0
- package/dist/entities/productivity.js.map +1 -0
- package/dist/entities/project-management.d.ts +89 -0
- package/dist/entities/project-management.d.ts.map +1 -0
- package/dist/entities/project-management.js +1137 -0
- package/dist/entities/project-management.js.map +1 -0
- package/dist/entities/recruiting.d.ts +54 -0
- package/dist/entities/recruiting.d.ts.map +1 -0
- package/dist/entities/recruiting.js +737 -0
- package/dist/entities/recruiting.js.map +1 -0
- package/dist/entities/shipping.d.ts +52 -0
- package/dist/entities/shipping.d.ts.map +1 -0
- package/dist/entities/shipping.js +510 -0
- package/dist/entities/shipping.js.map +1 -0
- package/dist/entities/signature.d.ts +83 -0
- package/dist/entities/signature.d.ts.map +1 -0
- package/dist/entities/signature.js +1103 -0
- package/dist/entities/signature.js.map +1 -0
- package/dist/entities/site.d.ts +33 -0
- package/dist/entities/site.d.ts.map +1 -0
- package/dist/entities/site.js +223 -0
- package/dist/entities/site.js.map +1 -0
- package/dist/entities/spreadsheet.d.ts +68 -0
- package/dist/entities/spreadsheet.d.ts.map +1 -0
- package/dist/entities/spreadsheet.js +1342 -0
- package/dist/entities/spreadsheet.js.map +1 -0
- package/dist/entities/storage.d.ts +74 -0
- package/dist/entities/storage.d.ts.map +1 -0
- package/dist/entities/storage.js +1199 -0
- package/dist/entities/storage.js.map +1 -0
- package/dist/entities/support.d.ts +83 -0
- package/dist/entities/support.d.ts.map +1 -0
- package/dist/entities/support.js +1167 -0
- package/dist/entities/support.js.map +1 -0
- package/dist/entities/video-conferencing.d.ts +129 -0
- package/dist/entities/video-conferencing.d.ts.map +1 -0
- package/dist/entities/video-conferencing.js +1751 -0
- package/dist/entities/video-conferencing.js.map +1 -0
- package/dist/entities/video.d.ts +76 -0
- package/dist/entities/video.d.ts.map +1 -0
- package/dist/entities/video.js +951 -0
- package/dist/entities/video.js.map +1 -0
- package/dist/entities.d.ts +147 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/entities.js +1664 -0
- package/dist/entities.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -0
- package/dist/providers/analytics/index.d.ts +19 -0
- package/dist/providers/analytics/index.d.ts.map +1 -0
- package/dist/providers/analytics/index.js +18 -0
- package/dist/providers/analytics/index.js.map +1 -0
- package/dist/providers/analytics/mixpanel.d.ts +25 -0
- package/dist/providers/analytics/mixpanel.d.ts.map +1 -0
- package/dist/providers/analytics/mixpanel.js +256 -0
- package/dist/providers/analytics/mixpanel.js.map +1 -0
- package/dist/providers/calendar/cal-com.d.ts +26 -0
- package/dist/providers/calendar/cal-com.d.ts.map +1 -0
- package/dist/providers/calendar/cal-com.js +304 -0
- package/dist/providers/calendar/cal-com.js.map +1 -0
- package/dist/providers/calendar/google-calendar.d.ts +25 -0
- package/dist/providers/calendar/google-calendar.d.ts.map +1 -0
- package/dist/providers/calendar/google-calendar.js +336 -0
- package/dist/providers/calendar/google-calendar.js.map +1 -0
- package/dist/providers/calendar/index.d.ts +20 -0
- package/dist/providers/calendar/index.d.ts.map +1 -0
- package/dist/providers/calendar/index.js +21 -0
- package/dist/providers/calendar/index.js.map +1 -0
- package/dist/providers/crm/hubspot.d.ts +25 -0
- package/dist/providers/crm/hubspot.d.ts.map +1 -0
- package/dist/providers/crm/hubspot.js +567 -0
- package/dist/providers/crm/hubspot.js.map +1 -0
- package/dist/providers/crm/index.d.ts +19 -0
- package/dist/providers/crm/index.d.ts.map +1 -0
- package/dist/providers/crm/index.js +18 -0
- package/dist/providers/crm/index.js.map +1 -0
- package/dist/providers/development/github.d.ts +25 -0
- package/dist/providers/development/github.d.ts.map +1 -0
- package/dist/providers/development/github.js +473 -0
- package/dist/providers/development/github.js.map +1 -0
- package/dist/providers/development/index.d.ts +19 -0
- package/dist/providers/development/index.d.ts.map +1 -0
- package/dist/providers/development/index.js +18 -0
- package/dist/providers/development/index.js.map +1 -0
- package/dist/providers/ecommerce/index.d.ts +19 -0
- package/dist/providers/ecommerce/index.d.ts.map +1 -0
- package/dist/providers/ecommerce/index.js +18 -0
- package/dist/providers/ecommerce/index.js.map +1 -0
- package/dist/providers/ecommerce/shopify.d.ts +25 -0
- package/dist/providers/ecommerce/shopify.d.ts.map +1 -0
- package/dist/providers/ecommerce/shopify.js +379 -0
- package/dist/providers/ecommerce/shopify.js.map +1 -0
- package/dist/providers/email/index.d.ts +20 -0
- package/dist/providers/email/index.d.ts.map +1 -0
- package/dist/providers/email/index.js +21 -0
- package/dist/providers/email/index.js.map +1 -0
- package/dist/providers/email/resend.d.ts +25 -0
- package/dist/providers/email/resend.d.ts.map +1 -0
- package/dist/providers/email/resend.js +259 -0
- package/dist/providers/email/resend.js.map +1 -0
- package/dist/providers/email/sendgrid.d.ts +25 -0
- package/dist/providers/email/sendgrid.d.ts.map +1 -0
- package/dist/providers/email/sendgrid.js +162 -0
- package/dist/providers/email/sendgrid.js.map +1 -0
- package/dist/providers/finance/index.d.ts +19 -0
- package/dist/providers/finance/index.d.ts.map +1 -0
- package/dist/providers/finance/index.js +18 -0
- package/dist/providers/finance/index.js.map +1 -0
- package/dist/providers/finance/stripe.d.ts +25 -0
- package/dist/providers/finance/stripe.d.ts.map +1 -0
- package/dist/providers/finance/stripe.js +550 -0
- package/dist/providers/finance/stripe.js.map +1 -0
- package/dist/providers/forms/index.d.ts +19 -0
- package/dist/providers/forms/index.d.ts.map +1 -0
- package/dist/providers/forms/index.js +18 -0
- package/dist/providers/forms/index.js.map +1 -0
- package/dist/providers/forms/typeform.d.ts +25 -0
- package/dist/providers/forms/typeform.d.ts.map +1 -0
- package/dist/providers/forms/typeform.js +501 -0
- package/dist/providers/forms/typeform.js.map +1 -0
- package/dist/providers/index.d.ts +56 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +124 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/knowledge/index.d.ts +19 -0
- package/dist/providers/knowledge/index.d.ts.map +1 -0
- package/dist/providers/knowledge/index.js +18 -0
- package/dist/providers/knowledge/index.js.map +1 -0
- package/dist/providers/knowledge/notion.d.ts +25 -0
- package/dist/providers/knowledge/notion.d.ts.map +1 -0
- package/dist/providers/knowledge/notion.js +390 -0
- package/dist/providers/knowledge/notion.js.map +1 -0
- package/dist/providers/marketing/index.d.ts +19 -0
- package/dist/providers/marketing/index.d.ts.map +1 -0
- package/dist/providers/marketing/index.js +18 -0
- package/dist/providers/marketing/index.js.map +1 -0
- package/dist/providers/marketing/mailchimp.d.ts +25 -0
- package/dist/providers/marketing/mailchimp.d.ts.map +1 -0
- package/dist/providers/marketing/mailchimp.js +444 -0
- package/dist/providers/marketing/mailchimp.js.map +1 -0
- package/dist/providers/media/cloudinary.d.ts +25 -0
- package/dist/providers/media/cloudinary.d.ts.map +1 -0
- package/dist/providers/media/cloudinary.js +319 -0
- package/dist/providers/media/cloudinary.js.map +1 -0
- package/dist/providers/media/index.d.ts +19 -0
- package/dist/providers/media/index.d.ts.map +1 -0
- package/dist/providers/media/index.js +18 -0
- package/dist/providers/media/index.js.map +1 -0
- package/dist/providers/messaging/index.d.ts +24 -0
- package/dist/providers/messaging/index.d.ts.map +1 -0
- package/dist/providers/messaging/index.js +21 -0
- package/dist/providers/messaging/index.js.map +1 -0
- package/dist/providers/messaging/slack.d.ts +25 -0
- package/dist/providers/messaging/slack.d.ts.map +1 -0
- package/dist/providers/messaging/slack.js +394 -0
- package/dist/providers/messaging/slack.js.map +1 -0
- package/dist/providers/messaging/twilio-sms.d.ts +25 -0
- package/dist/providers/messaging/twilio-sms.d.ts.map +1 -0
- package/dist/providers/messaging/twilio-sms.js +250 -0
- package/dist/providers/messaging/twilio-sms.js.map +1 -0
- package/dist/providers/project-management/index.d.ts +19 -0
- package/dist/providers/project-management/index.d.ts.map +1 -0
- package/dist/providers/project-management/index.js +18 -0
- package/dist/providers/project-management/index.js.map +1 -0
- package/dist/providers/project-management/linear.d.ts +25 -0
- package/dist/providers/project-management/linear.d.ts.map +1 -0
- package/dist/providers/project-management/linear.js +576 -0
- package/dist/providers/project-management/linear.js.map +1 -0
- package/dist/providers/registry.d.ts +41 -0
- package/dist/providers/registry.d.ts.map +1 -0
- package/dist/providers/registry.js +87 -0
- package/dist/providers/registry.js.map +1 -0
- package/dist/providers/spreadsheet/google-sheets.d.ts +25 -0
- package/dist/providers/spreadsheet/google-sheets.d.ts.map +1 -0
- package/dist/providers/spreadsheet/google-sheets.js +376 -0
- package/dist/providers/spreadsheet/google-sheets.js.map +1 -0
- package/dist/providers/spreadsheet/index.d.ts +20 -0
- package/dist/providers/spreadsheet/index.d.ts.map +1 -0
- package/dist/providers/spreadsheet/index.js +21 -0
- package/dist/providers/spreadsheet/index.js.map +1 -0
- package/dist/providers/spreadsheet/xlsx.d.ts +26 -0
- package/dist/providers/spreadsheet/xlsx.d.ts.map +1 -0
- package/dist/providers/spreadsheet/xlsx.js +424 -0
- package/dist/providers/spreadsheet/xlsx.js.map +1 -0
- package/dist/providers/storage/index.d.ts +30 -0
- package/dist/providers/storage/index.d.ts.map +1 -0
- package/dist/providers/storage/index.js +25 -0
- package/dist/providers/storage/index.js.map +1 -0
- package/dist/providers/storage/s3.d.ts +25 -0
- package/dist/providers/storage/s3.d.ts.map +1 -0
- package/dist/providers/storage/s3.js +420 -0
- package/dist/providers/storage/s3.js.map +1 -0
- package/dist/providers/support/index.d.ts +19 -0
- package/dist/providers/support/index.d.ts.map +1 -0
- package/dist/providers/support/index.js +18 -0
- package/dist/providers/support/index.js.map +1 -0
- package/dist/providers/support/zendesk.d.ts +25 -0
- package/dist/providers/support/zendesk.d.ts.map +1 -0
- package/dist/providers/support/zendesk.js +374 -0
- package/dist/providers/support/zendesk.js.map +1 -0
- package/dist/providers/tasks/index.d.ts +19 -0
- package/dist/providers/tasks/index.d.ts.map +1 -0
- package/dist/providers/tasks/index.js +18 -0
- package/dist/providers/tasks/index.js.map +1 -0
- package/dist/providers/tasks/todoist.d.ts +25 -0
- package/dist/providers/tasks/todoist.d.ts.map +1 -0
- package/dist/providers/tasks/todoist.js +287 -0
- package/dist/providers/tasks/todoist.js.map +1 -0
- package/dist/providers/types.d.ts +1753 -0
- package/dist/providers/types.d.ts.map +1 -0
- package/dist/providers/types.js +10 -0
- package/dist/providers/types.js.map +1 -0
- package/dist/providers/video-conferencing/google-meet.d.ts +26 -0
- package/dist/providers/video-conferencing/google-meet.d.ts.map +1 -0
- package/dist/providers/video-conferencing/google-meet.js +287 -0
- package/dist/providers/video-conferencing/google-meet.js.map +1 -0
- package/dist/providers/video-conferencing/index.d.ts +22 -0
- package/dist/providers/video-conferencing/index.d.ts.map +1 -0
- package/dist/providers/video-conferencing/index.js +32 -0
- package/dist/providers/video-conferencing/index.js.map +1 -0
- package/dist/providers/video-conferencing/jitsi.d.ts +26 -0
- package/dist/providers/video-conferencing/jitsi.d.ts.map +1 -0
- package/dist/providers/video-conferencing/jitsi.js +255 -0
- package/dist/providers/video-conferencing/jitsi.js.map +1 -0
- package/dist/providers/video-conferencing/teams.d.ts +26 -0
- package/dist/providers/video-conferencing/teams.d.ts.map +1 -0
- package/dist/providers/video-conferencing/teams.js +271 -0
- package/dist/providers/video-conferencing/teams.js.map +1 -0
- package/dist/providers/video-conferencing/zoom.d.ts +25 -0
- package/dist/providers/video-conferencing/zoom.d.ts.map +1 -0
- package/dist/providers/video-conferencing/zoom.js +333 -0
- package/dist/providers/video-conferencing/zoom.js.map +1 -0
- package/dist/providers/voice/vapi.d.ts +27 -0
- package/dist/providers/voice/vapi.d.ts.map +1 -0
- package/dist/providers/voice/vapi.js +440 -0
- package/dist/providers/voice/vapi.js.map +1 -0
- package/dist/registry.d.ts +38 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +129 -0
- package/dist/registry.js.map +1 -0
- package/dist/tools/communication.d.ts +94 -0
- package/dist/tools/communication.d.ts.map +1 -0
- package/dist/tools/communication.js +185 -0
- package/dist/tools/communication.js.map +1 -0
- package/dist/tools/data.d.ts +61 -0
- package/dist/tools/data.d.ts.map +1 -0
- package/dist/tools/data.js +206 -0
- package/dist/tools/data.js.map +1 -0
- package/dist/tools/index.d.ts +12 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +12 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/web.d.ts +45 -0
- package/dist/tools/web.d.ts.map +1 -0
- package/dist/tools/web.js +138 -0
- package/dist/tools/web.js.map +1 -0
- package/dist/types.d.ts +330 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/types.js.map +1 -0
- package/package.json +45 -0
- package/src/define.ts +321 -0
- package/src/entities/advertising.ts +1086 -0
- package/src/entities/ai.ts +835 -0
- package/src/entities/analytics.ts +1690 -0
- package/src/entities/automation.ts +669 -0
- package/src/entities/communication.ts +1255 -0
- package/src/entities/crm.ts +1481 -0
- package/src/entities/design.ts +606 -0
- package/src/entities/development.ts +2392 -0
- package/src/entities/document.ts +930 -0
- package/src/entities/ecommerce.ts +1539 -0
- package/src/entities/experiment.ts +1139 -0
- package/src/entities/finance.ts +3907 -0
- package/src/entities/forms.ts +2021 -0
- package/src/entities/hr.ts +725 -0
- package/src/entities/identity.ts +1093 -0
- package/src/entities/index.ts +731 -0
- package/src/entities/infrastructure.ts +1254 -0
- package/src/entities/knowledge.ts +1547 -0
- package/src/entities/marketing.ts +1718 -0
- package/src/entities/media.ts +1747 -0
- package/src/entities/notification.ts +1260 -0
- package/src/entities/presentation.ts +1360 -0
- package/src/entities/productivity.ts +1411 -0
- package/src/entities/project-management.ts +1222 -0
- package/src/entities/recruiting.ts +797 -0
- package/src/entities/shipping.ts +566 -0
- package/src/entities/signature.ts +1204 -0
- package/src/entities/site.ts +244 -0
- package/src/entities/spreadsheet.ts +1434 -0
- package/src/entities/storage.ts +1290 -0
- package/src/entities/support.ts +1267 -0
- package/src/entities/video-conferencing.ts +1874 -0
- package/src/entities/video.ts +1035 -0
- package/src/entities.ts +1795 -0
- package/src/index.ts +176 -0
- package/src/providers/analytics/index.ts +21 -0
- package/src/providers/analytics/mixpanel.ts +311 -0
- package/src/providers/calendar/cal-com.ts +435 -0
- package/src/providers/calendar/google-calendar.ts +412 -0
- package/src/providers/calendar/index.ts +24 -0
- package/src/providers/crm/hubspot.ts +667 -0
- package/src/providers/crm/index.ts +21 -0
- package/src/providers/development/github.ts +608 -0
- package/src/providers/development/index.ts +21 -0
- package/src/providers/ecommerce/index.ts +21 -0
- package/src/providers/ecommerce/shopify.ts +451 -0
- package/src/providers/email/index.ts +24 -0
- package/src/providers/email/resend.ts +301 -0
- package/src/providers/email/sendgrid.ts +196 -0
- package/src/providers/finance/index.ts +21 -0
- package/src/providers/finance/stripe.ts +665 -0
- package/src/providers/forms/index.ts +21 -0
- package/src/providers/forms/typeform.ts +598 -0
- package/src/providers/index.ts +281 -0
- package/src/providers/knowledge/index.ts +21 -0
- package/src/providers/knowledge/notion.ts +497 -0
- package/src/providers/marketing/index.ts +21 -0
- package/src/providers/marketing/mailchimp.ts +656 -0
- package/src/providers/media/cloudinary.ts +373 -0
- package/src/providers/media/index.ts +21 -0
- package/src/providers/messaging/index.ts +24 -0
- package/src/providers/messaging/slack.ts +487 -0
- package/src/providers/messaging/twilio-sms.ts +301 -0
- package/src/providers/project-management/index.ts +21 -0
- package/src/providers/project-management/linear.ts +693 -0
- package/src/providers/registry.ts +119 -0
- package/src/providers/spreadsheet/google-sheets.ts +464 -0
- package/src/providers/spreadsheet/index.ts +24 -0
- package/src/providers/spreadsheet/xlsx.ts +542 -0
- package/src/providers/storage/index.ts +35 -0
- package/src/providers/storage/s3.ts +513 -0
- package/src/providers/support/index.ts +21 -0
- package/src/providers/support/zendesk.ts +417 -0
- package/src/providers/tasks/index.ts +21 -0
- package/src/providers/tasks/todoist.ts +407 -0
- package/src/providers/types.ts +2113 -0
- package/src/providers/video-conferencing/google-meet.ts +412 -0
- package/src/providers/video-conferencing/index.ts +35 -0
- package/src/providers/video-conferencing/jitsi.ts +324 -0
- package/src/providers/video-conferencing/teams.ts +408 -0
- package/src/providers/video-conferencing/zoom.ts +451 -0
- package/src/registry.ts +172 -0
- package/src/tools/communication.ts +256 -0
- package/src/tools/data.ts +236 -0
- package/src/tools/index.ts +12 -0
- package/src/tools/web.ts +161 -0
- package/src/types.ts +539 -0
- package/test/define.test.ts +367 -0
- package/test/registry.test.ts +444 -0
- package/test/tools.test.ts +453 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cal.com Provider
|
|
3
|
+
*
|
|
4
|
+
* Concrete implementation of CalendarProvider using Cal.com API v1.
|
|
5
|
+
* Cal.com is an open-source Calendly alternative for scheduling.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type {
|
|
11
|
+
CalendarProvider,
|
|
12
|
+
ProviderConfig,
|
|
13
|
+
ProviderHealth,
|
|
14
|
+
ProviderInfo,
|
|
15
|
+
CalendarData,
|
|
16
|
+
CreateEventOptions,
|
|
17
|
+
EventData,
|
|
18
|
+
EventListOptions,
|
|
19
|
+
PaginatedResult,
|
|
20
|
+
AvailabilityData,
|
|
21
|
+
PaginationOptions,
|
|
22
|
+
} from '../types.js'
|
|
23
|
+
import { defineProvider } from '../registry.js'
|
|
24
|
+
|
|
25
|
+
const DEFAULT_BASE_URL = 'https://api.cal.com/v1'
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Cal.com provider info
|
|
29
|
+
*/
|
|
30
|
+
export const calComInfo: ProviderInfo = {
|
|
31
|
+
id: 'calendar.cal-com',
|
|
32
|
+
name: 'Cal.com',
|
|
33
|
+
description: 'Cal.com API for scheduling and calendar management (open-source Calendly alternative)',
|
|
34
|
+
category: 'calendar',
|
|
35
|
+
website: 'https://cal.com',
|
|
36
|
+
docsUrl: 'https://cal.com/docs/api-reference',
|
|
37
|
+
requiredConfig: ['apiKey'],
|
|
38
|
+
optionalConfig: ['baseUrl'],
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Cal.com API Response Types
|
|
43
|
+
*/
|
|
44
|
+
interface CalComEventType {
|
|
45
|
+
id: number
|
|
46
|
+
title: string
|
|
47
|
+
slug: string
|
|
48
|
+
length: number
|
|
49
|
+
description?: string
|
|
50
|
+
hidden: boolean
|
|
51
|
+
position: number
|
|
52
|
+
userId?: number
|
|
53
|
+
teamId?: number
|
|
54
|
+
locations?: Array<{ type: string; address?: string; link?: string }>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface CalComBooking {
|
|
58
|
+
id: number
|
|
59
|
+
uid: string
|
|
60
|
+
title: string
|
|
61
|
+
description?: string
|
|
62
|
+
startTime: string
|
|
63
|
+
endTime: string
|
|
64
|
+
status: 'ACCEPTED' | 'PENDING' | 'CANCELLED' | 'REJECTED'
|
|
65
|
+
attendees: Array<{
|
|
66
|
+
email: string
|
|
67
|
+
name: string
|
|
68
|
+
timeZone: string
|
|
69
|
+
locale?: string
|
|
70
|
+
}>
|
|
71
|
+
location?: string
|
|
72
|
+
eventTypeId: number
|
|
73
|
+
userId?: number
|
|
74
|
+
metadata?: Record<string, unknown>
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface CalComAvailability {
|
|
78
|
+
busy: Array<{
|
|
79
|
+
start: string
|
|
80
|
+
end: string
|
|
81
|
+
}>
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Create Cal.com provider
|
|
86
|
+
*/
|
|
87
|
+
export function createCalComProvider(config: ProviderConfig): CalendarProvider {
|
|
88
|
+
let apiKey: string
|
|
89
|
+
let baseUrl: string
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Helper to make authenticated API requests
|
|
93
|
+
*/
|
|
94
|
+
async function apiRequest<T>(
|
|
95
|
+
endpoint: string,
|
|
96
|
+
options: RequestInit = {}
|
|
97
|
+
): Promise<{ ok: boolean; status: number; data?: T; error?: string }> {
|
|
98
|
+
try {
|
|
99
|
+
const url = `${baseUrl}${endpoint}`
|
|
100
|
+
const params = new URLSearchParams()
|
|
101
|
+
|
|
102
|
+
// Cal.com uses apiKey query parameter for authentication
|
|
103
|
+
params.append('apiKey', apiKey)
|
|
104
|
+
|
|
105
|
+
const fullUrl = `${url}${url.includes('?') ? '&' : '?'}${params}`
|
|
106
|
+
|
|
107
|
+
const response = await fetch(fullUrl, {
|
|
108
|
+
...options,
|
|
109
|
+
headers: {
|
|
110
|
+
'Content-Type': 'application/json',
|
|
111
|
+
...options.headers,
|
|
112
|
+
},
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
if (response.ok) {
|
|
116
|
+
const data = (await response.json()) as T
|
|
117
|
+
return { ok: true, status: response.status, data }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const errorData = await response.json().catch(() => ({}))
|
|
121
|
+
return {
|
|
122
|
+
ok: false,
|
|
123
|
+
status: response.status,
|
|
124
|
+
error: (errorData as any)?.message || response.statusText,
|
|
125
|
+
}
|
|
126
|
+
} catch (error) {
|
|
127
|
+
return {
|
|
128
|
+
ok: false,
|
|
129
|
+
status: 0,
|
|
130
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
info: calComInfo,
|
|
137
|
+
|
|
138
|
+
async initialize(cfg: ProviderConfig): Promise<void> {
|
|
139
|
+
apiKey = cfg.apiKey as string
|
|
140
|
+
baseUrl = (cfg.baseUrl as string) || DEFAULT_BASE_URL
|
|
141
|
+
|
|
142
|
+
if (!apiKey) {
|
|
143
|
+
throw new Error('Cal.com API key is required')
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
async healthCheck(): Promise<ProviderHealth> {
|
|
148
|
+
const start = Date.now()
|
|
149
|
+
const result = await apiRequest('/me', { method: 'GET' })
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
healthy: result.ok,
|
|
153
|
+
latencyMs: Date.now() - start,
|
|
154
|
+
message: result.ok ? 'Connected' : result.error || `HTTP ${result.status}`,
|
|
155
|
+
checkedAt: new Date(),
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
|
|
159
|
+
async dispose(): Promise<void> {
|
|
160
|
+
// No cleanup needed
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
async listCalendars(options?: PaginationOptions): Promise<PaginatedResult<CalendarData>> {
|
|
164
|
+
// Cal.com uses "event types" as calendar configurations
|
|
165
|
+
const params = new URLSearchParams()
|
|
166
|
+
if (options?.limit) params.append('take', String(options.limit))
|
|
167
|
+
if (options?.cursor) params.append('skip', String(options.cursor))
|
|
168
|
+
|
|
169
|
+
const result = await apiRequest<{
|
|
170
|
+
event_types: CalComEventType[]
|
|
171
|
+
}>(`/event-types?${params}`)
|
|
172
|
+
|
|
173
|
+
if (!result.ok || !result.data) {
|
|
174
|
+
return { items: [], hasMore: false }
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const items = result.data.event_types
|
|
178
|
+
.filter((et) => !et.hidden)
|
|
179
|
+
.map((et) => ({
|
|
180
|
+
id: String(et.id),
|
|
181
|
+
name: et.title,
|
|
182
|
+
description: et.description,
|
|
183
|
+
timeZone: 'UTC', // Cal.com handles timezone per user
|
|
184
|
+
primary: et.position === 0,
|
|
185
|
+
accessRole: 'owner' as const,
|
|
186
|
+
}))
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
items,
|
|
190
|
+
hasMore: result.data.event_types.length >= (options?.limit || 10),
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
async getCalendar(calendarId: string): Promise<CalendarData | null> {
|
|
195
|
+
const result = await apiRequest<{
|
|
196
|
+
event_type: CalComEventType
|
|
197
|
+
}>(`/event-types/${calendarId}`)
|
|
198
|
+
|
|
199
|
+
if (!result.ok || !result.data) {
|
|
200
|
+
return null
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const et = result.data.event_type
|
|
204
|
+
return {
|
|
205
|
+
id: String(et.id),
|
|
206
|
+
name: et.title,
|
|
207
|
+
description: et.description,
|
|
208
|
+
timeZone: 'UTC',
|
|
209
|
+
primary: et.position === 0,
|
|
210
|
+
accessRole: 'owner',
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
async createEvent(calendarId: string, event: CreateEventOptions): Promise<EventData> {
|
|
215
|
+
// In Cal.com, creating a booking is done through the booking endpoint
|
|
216
|
+
const body = {
|
|
217
|
+
eventTypeId: parseInt(calendarId, 10),
|
|
218
|
+
start: event.start.toISOString(),
|
|
219
|
+
end: event.end.toISOString(),
|
|
220
|
+
responses: {
|
|
221
|
+
name: event.summary,
|
|
222
|
+
email: event.attendees?.[0] || 'guest@example.com',
|
|
223
|
+
notes: event.description,
|
|
224
|
+
location: event.location,
|
|
225
|
+
},
|
|
226
|
+
timeZone: 'UTC',
|
|
227
|
+
language: 'en',
|
|
228
|
+
metadata: {},
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const result = await apiRequest<{
|
|
232
|
+
booking: CalComBooking
|
|
233
|
+
}>('/bookings', {
|
|
234
|
+
method: 'POST',
|
|
235
|
+
body: JSON.stringify(body),
|
|
236
|
+
})
|
|
237
|
+
|
|
238
|
+
if (!result.ok || !result.data) {
|
|
239
|
+
throw new Error(result.error || 'Failed to create booking')
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const booking = result.data.booking
|
|
243
|
+
return {
|
|
244
|
+
id: booking.uid,
|
|
245
|
+
calendarId,
|
|
246
|
+
summary: booking.title,
|
|
247
|
+
description: booking.description,
|
|
248
|
+
location: booking.location,
|
|
249
|
+
start: new Date(booking.startTime),
|
|
250
|
+
end: new Date(booking.endTime),
|
|
251
|
+
attendees: booking.attendees.map((a) => ({
|
|
252
|
+
email: a.email,
|
|
253
|
+
responseStatus: booking.status === 'ACCEPTED' ? 'accepted' : 'needsAction',
|
|
254
|
+
})),
|
|
255
|
+
status: (booking.status === 'CANCELLED' ? 'cancelled' : 'confirmed') as 'confirmed' | 'tentative' | 'cancelled',
|
|
256
|
+
htmlLink: `${baseUrl.replace('/v1', '')}/booking/${booking.uid}`,
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
async getEvent(calendarId: string, eventId: string): Promise<EventData | null> {
|
|
261
|
+
const result = await apiRequest<{
|
|
262
|
+
booking: CalComBooking
|
|
263
|
+
}>(`/bookings/${eventId}`)
|
|
264
|
+
|
|
265
|
+
if (!result.ok || !result.data) {
|
|
266
|
+
return null
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const booking = result.data.booking
|
|
270
|
+
return {
|
|
271
|
+
id: booking.uid,
|
|
272
|
+
calendarId: String(booking.eventTypeId),
|
|
273
|
+
summary: booking.title,
|
|
274
|
+
description: booking.description,
|
|
275
|
+
location: booking.location,
|
|
276
|
+
start: new Date(booking.startTime),
|
|
277
|
+
end: new Date(booking.endTime),
|
|
278
|
+
attendees: booking.attendees.map((a) => ({
|
|
279
|
+
email: a.email,
|
|
280
|
+
responseStatus: booking.status === 'ACCEPTED' ? 'accepted' : 'needsAction',
|
|
281
|
+
})),
|
|
282
|
+
status: (booking.status === 'CANCELLED' ? 'cancelled' : 'confirmed') as 'confirmed' | 'tentative' | 'cancelled',
|
|
283
|
+
htmlLink: `${baseUrl.replace('/v1', '')}/booking/${booking.uid}`,
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
async updateEvent(
|
|
288
|
+
calendarId: string,
|
|
289
|
+
eventId: string,
|
|
290
|
+
updates: Partial<CreateEventOptions>
|
|
291
|
+
): Promise<EventData> {
|
|
292
|
+
// Cal.com bookings are typically rescheduled rather than updated
|
|
293
|
+
const body: any = {}
|
|
294
|
+
|
|
295
|
+
if (updates.start && updates.end) {
|
|
296
|
+
body.start = updates.start.toISOString()
|
|
297
|
+
body.end = updates.end.toISOString()
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (updates.summary) {
|
|
301
|
+
body.title = updates.summary
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (updates.description) {
|
|
305
|
+
body.description = updates.description
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const result = await apiRequest<{
|
|
309
|
+
booking: CalComBooking
|
|
310
|
+
}>(`/bookings/${eventId}`, {
|
|
311
|
+
method: 'PATCH',
|
|
312
|
+
body: JSON.stringify(body),
|
|
313
|
+
})
|
|
314
|
+
|
|
315
|
+
if (!result.ok || !result.data) {
|
|
316
|
+
throw new Error(result.error || 'Failed to update booking')
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const booking = result.data.booking
|
|
320
|
+
return {
|
|
321
|
+
id: booking.uid,
|
|
322
|
+
calendarId: String(booking.eventTypeId),
|
|
323
|
+
summary: booking.title,
|
|
324
|
+
description: booking.description,
|
|
325
|
+
location: booking.location,
|
|
326
|
+
start: new Date(booking.startTime),
|
|
327
|
+
end: new Date(booking.endTime),
|
|
328
|
+
attendees: booking.attendees.map((a) => ({
|
|
329
|
+
email: a.email,
|
|
330
|
+
responseStatus: booking.status === 'ACCEPTED' ? 'accepted' : 'needsAction',
|
|
331
|
+
})),
|
|
332
|
+
status: (booking.status === 'CANCELLED' ? 'cancelled' : 'confirmed') as 'confirmed' | 'tentative' | 'cancelled',
|
|
333
|
+
htmlLink: `${baseUrl.replace('/v1', '')}/booking/${booking.uid}`,
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
async deleteEvent(calendarId: string, eventId: string): Promise<boolean> {
|
|
338
|
+
// Cancel the booking
|
|
339
|
+
const result = await apiRequest(`/bookings/${eventId}`, {
|
|
340
|
+
method: 'DELETE',
|
|
341
|
+
})
|
|
342
|
+
|
|
343
|
+
return result.ok
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
async listEvents(
|
|
347
|
+
calendarId: string,
|
|
348
|
+
options?: EventListOptions
|
|
349
|
+
): Promise<PaginatedResult<EventData>> {
|
|
350
|
+
const params = new URLSearchParams()
|
|
351
|
+
|
|
352
|
+
if (options?.limit) params.append('take', String(options.limit))
|
|
353
|
+
if (options?.cursor) params.append('skip', String(options.cursor))
|
|
354
|
+
|
|
355
|
+
// Filter by event type (calendar)
|
|
356
|
+
params.append('eventTypeId', calendarId)
|
|
357
|
+
|
|
358
|
+
if (options?.timeMin) params.append('afterStart', options.timeMin.toISOString())
|
|
359
|
+
if (options?.timeMax) params.append('beforeEnd', options.timeMax.toISOString())
|
|
360
|
+
|
|
361
|
+
const result = await apiRequest<{
|
|
362
|
+
bookings: CalComBooking[]
|
|
363
|
+
}>(`/bookings?${params}`)
|
|
364
|
+
|
|
365
|
+
if (!result.ok || !result.data) {
|
|
366
|
+
return { items: [], hasMore: false }
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
const items = result.data.bookings.map((booking) => ({
|
|
370
|
+
id: booking.uid,
|
|
371
|
+
calendarId: String(booking.eventTypeId),
|
|
372
|
+
summary: booking.title,
|
|
373
|
+
description: booking.description,
|
|
374
|
+
location: booking.location,
|
|
375
|
+
start: new Date(booking.startTime),
|
|
376
|
+
end: new Date(booking.endTime),
|
|
377
|
+
attendees: booking.attendees.map((a) => ({
|
|
378
|
+
email: a.email,
|
|
379
|
+
responseStatus: booking.status === 'ACCEPTED' ? 'accepted' : 'needsAction',
|
|
380
|
+
})),
|
|
381
|
+
status: (booking.status === 'CANCELLED' ? 'cancelled' : 'confirmed') as 'confirmed' | 'tentative' | 'cancelled',
|
|
382
|
+
htmlLink: `${baseUrl.replace('/v1', '')}/booking/${booking.uid}`,
|
|
383
|
+
}))
|
|
384
|
+
|
|
385
|
+
return {
|
|
386
|
+
items,
|
|
387
|
+
hasMore: result.data.bookings.length >= (options?.limit || 10),
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
|
|
391
|
+
async findAvailability(
|
|
392
|
+
calendarIds: string[],
|
|
393
|
+
timeMin: Date,
|
|
394
|
+
timeMax: Date
|
|
395
|
+
): Promise<AvailabilityData[]> {
|
|
396
|
+
// Cal.com's availability endpoint
|
|
397
|
+
const results: AvailabilityData[] = []
|
|
398
|
+
|
|
399
|
+
for (const calendarId of calendarIds) {
|
|
400
|
+
const params = new URLSearchParams()
|
|
401
|
+
params.append('eventTypeId', calendarId)
|
|
402
|
+
params.append('dateFrom', timeMin.toISOString())
|
|
403
|
+
params.append('dateTo', timeMax.toISOString())
|
|
404
|
+
|
|
405
|
+
const result = await apiRequest<CalComAvailability>(
|
|
406
|
+
`/availability?${params}`
|
|
407
|
+
)
|
|
408
|
+
|
|
409
|
+
if (result.ok && result.data) {
|
|
410
|
+
results.push({
|
|
411
|
+
calendarId,
|
|
412
|
+
busy: result.data.busy.map((slot) => ({
|
|
413
|
+
start: new Date(slot.start),
|
|
414
|
+
end: new Date(slot.end),
|
|
415
|
+
})),
|
|
416
|
+
})
|
|
417
|
+
} else {
|
|
418
|
+
results.push({
|
|
419
|
+
calendarId,
|
|
420
|
+
busy: [],
|
|
421
|
+
})
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return results
|
|
426
|
+
},
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Cal.com provider definition
|
|
432
|
+
*/
|
|
433
|
+
export const calComProvider = defineProvider(calComInfo, async (config) =>
|
|
434
|
+
createCalComProvider(config)
|
|
435
|
+
)
|