cal.pub0.org/apps/web/lib
Omar López 0a8509d721
Admin/team billing downgrader (#2040)
* downgrade func

* fix security hole lol

* fix query conditions

* - set to trial not free
- auto create stripe customer if missing
- fix production check

* Extracts downgrade logic to script, fixes ts-node conflicts with prisma

* Adds trialEndsAt field to users

* Updates trial/downgrade logic

* Typo

* Legibility fixes

* Update team-billing.ts

* Legibility improvements

Co-authored-by: Jamie <ijamespine@me.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-03 19:29:19 +00:00
..
config Fixes connectionIntegration undefined bug (#1987) 2022-02-26 12:27:52 -07:00
core Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
emails hide additional notes in organizer scheduled email if empty (#1870) 2022-02-16 10:32:13 +00:00
events fix: jitsi email does not contain meeting link (#2004) 2022-03-03 09:54:19 +00:00
hooks Feature: Instant Theme Change, without refresh [Booking Pages Only] (#1807) 2022-02-16 15:53:26 +00:00
integrations fix: jitsi email does not contain meeting link (#2004) 2022-03-03 09:54:19 +00:00
mutations Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
queries Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
types Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
webhooks Revert "Revert "Webhooks to support event type association"" (#2033) 2022-03-02 09:24:57 -07:00
CalEventParser.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
QueryCell.tsx Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
app-providers.tsx Remove intercom from public booking pages (#1835) 2022-02-16 08:26:48 -07:00
asStringOrNull.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
auth.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
availability.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
clock.ts Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
cropImage.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
crypto.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
doWorkAsync.ts [Bugfix] Booking Date Picker - First few dates are rendered fast, but later dates are all rendered in UI at once. (#1989) 2022-02-28 09:16:43 +00:00
ensureArray.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
errors.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
event.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
getPlaceholderAvatar.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
getting-started.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
integrations.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
isBrandingHidden.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
jackson.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
jsonUtils.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
location.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
logger.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
member.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
notEmpty.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
notification.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
parseZone.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
prisma.ts Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
profile.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
random.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
saml.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
serverConfig.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
slots.ts fix/slots-calculate-hours (#1994) 2022-02-27 22:51:41 +00:00
slugify.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00
telemetry.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
timeFormat.ts Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
trpc.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
videoClient.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
webhook.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00