calcom/apps/web
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
..
@types Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
components Fixes incorrect Webhook Component title (#2047) 2022-03-03 14:16:07 +00:00
contexts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
docs Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
ee Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
lib Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
pages Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
playwright fix/booking-first-day-of-next-mont (#2037) 2022-03-02 15:51:46 -07:00
public Fixes incorrect Webhook Component title (#2047) 2022-03-03 14:16:07 +00:00
scripts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
server Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
styles Runs prettier 2022-02-10 14:22:45 -07:00
test/lib Test/get availability from schedule unit test (#1951) 2022-02-23 16:16:04 +00:00
types Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
web3 Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
.env.example Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
.eslintignore Fixes for lint 2022-02-10 14:22:45 -07:00
.gitignore Unignores .env.example (#1800) 2022-02-10 19:54:55 -07:00
.nvmrc Re-adds .nvmrc 2022-02-10 14:22:45 -07:00
calendso.yaml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
environment.d.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
jest.config.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
next-env.d.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
next-i18next.config.js Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
next.config.js Enable Hotreload for packages (#2051) 2022-03-03 12:19:25 -07:00
package.json Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
postcss.config.js Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
project.toml Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
tailwind.config.js Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
tsconfig.json Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
yarn.lock Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00