* feat: Sink url shortner for sms workflow reminders * fix: remove hardcoded dub values * update .env.example * fix: unit tests * chore: add tests for scheduleSmsReminder and utils * review refactor * fix: type check * review refactor * fix: update test to account for smsReminderNumber fallback from main Co-Authored-By: unknown <> * feat: add feature flag for sink and more tests to verify * fix: type check * use proper feature flags for sink * Apply suggestion from @keithwillcode --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Keith Williams <keithwillcode@gmail.com>
56 lines
1.6 KiB
TypeScript
56 lines
1.6 KiB
TypeScript
/**
|
|
* Right now we only support boolean flags.
|
|
* Maybe later on we can add string variants or numeric ones
|
|
**/
|
|
export type AppFlags = {
|
|
"calendar-cache": boolean;
|
|
"calendar-cache-serve": boolean;
|
|
emails: boolean;
|
|
insights: boolean;
|
|
teams: boolean;
|
|
webhooks: boolean;
|
|
workflows: boolean;
|
|
organizations: boolean;
|
|
"email-verification": boolean;
|
|
"google-workspace-directory": boolean;
|
|
"disable-signup": boolean;
|
|
attributes: boolean;
|
|
"organizer-request-email-v2": boolean;
|
|
"delegation-credential": boolean;
|
|
"salesforce-crm-tasker": boolean;
|
|
"workflow-smtp-emails": boolean;
|
|
"cal-video-log-in-overlay": boolean;
|
|
"use-api-v2-for-team-slots": boolean;
|
|
pbac: boolean;
|
|
"restriction-schedule": boolean;
|
|
"team-booking-page-cache": boolean;
|
|
"cal-ai-voice-agents": boolean;
|
|
"tiered-support-chat": boolean;
|
|
"calendar-subscription-cache": boolean;
|
|
"calendar-subscription-sync": boolean;
|
|
"onboarding-v3": boolean;
|
|
"booker-botid": boolean;
|
|
"booking-calendar-view": boolean;
|
|
"booking-email-sms-tasker": boolean;
|
|
"bookings-v3": boolean;
|
|
"booking-audit": boolean;
|
|
"monthly-proration": boolean;
|
|
"hwm-seating": boolean;
|
|
"active-user-billing": boolean;
|
|
"sidebar-tips": boolean;
|
|
"signup-watchlist-review": boolean;
|
|
"sink-shortener": boolean;
|
|
};
|
|
|
|
export type TeamFeatures = Record<keyof AppFlags, boolean>;
|
|
|
|
/**
|
|
* Explicit state for API/UI layer.
|
|
* - "enabled": row with enabled = true
|
|
* - "disabled": row with enabled = false
|
|
* - "inherit": no row
|
|
*/
|
|
export type FeatureState = "enabled" | "disabled" | "inherit";
|
|
|
|
export type FeatureId = keyof AppFlags;
|