forehalo
4ec89ebd69
chore(server): standardize server db names and columns ( #7674 )
2024-07-31 07:59:23 +00:00
forehalo
14fbeb7879
fix(server): should clean bill date if lifetime subscription ( #7577 )
2024-07-23 08:19:28 +00:00
forehalo
9ef8829ef1
feat(server): add lifetime plan flag ( #7443 )
2024-07-08 07:41:30 +00:00
forehalo
de91027852
feat(server): support lifetime subscription ( #7405 )
...
closes CLOUD-48
- [x] lifetime subscription quota
- [ ] tests
2024-07-08 07:41:26 +00:00
liuyi
54fc1197ad
feat(server): introduce user friendly server errors ( #7111 )
2024-06-17 11:30:58 +08:00
forehalo
41bc683eed
fix(server): should update stripe customer email if changed ( #7181 )
2024-06-08 15:52:23 +00:00
forehalo
aff166a0ef
feat(server): add administrator feature ( #6995 )
2024-05-27 11:17:21 +00:00
darkskygit
8e0a0a7f02
fix: wait activated event ( #6814 )
2024-05-07 09:44:38 +00:00
forehalo
7041991967
fix(server): allow promotion codes if no discount applied ( #6810 )
2024-05-07 07:44:41 +00:00
forehalo
f566457dcf
test(server): payment tests ( #6737 )
2024-04-30 06:59:54 +00:00
darkskygit
8bdd940ac8
fix: some event missing with multiple env webhook ( #6705 )
2024-04-26 02:56:09 +00:00
forehalo
2c228a35f8
fix(server): stripe webhook calls in random order ( #6702 )
2024-04-25 12:22:07 +00:00
forehalo
651a99a48e
fix(server): avoid store unpaid subscriptions
2024-04-17 16:25:03 +08:00
liuyi
5b315bfc81
fix(server): only returns active subscriptions ( #6590 )
2024-04-17 16:19:34 +08:00
forehalo
e1c292b8b5
feat(server): support registering ai early access users ( #6565 )
2024-04-16 13:54:08 +00:00
darkskygit
1b0864eb60
feat: check quota correctly ( #6561 )
2024-04-16 09:41:48 +00:00
liuyi
edef9b2735
fix(server): only auto apply coupon in pro subscription ( #6452 )
2024-04-03 17:13:18 +08:00
Brooooooklyn
10af0ab48d
feat(server): support ai plan ( #6216 )
2024-03-22 08:39:18 +00:00
Brooooooklyn
aecc523663
fix(server): avoid error when other prices added but logic is not released ( #6191 )
2024-03-22 08:39:12 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth ( #5895 )
...
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
2024-03-12 10:00:09 +00:00
liuyi
4d421a324f
refactor(server): import prisma from @prisma/client ( #5863 )
2024-02-22 07:46:57 +00:00
liuyi
e3b8d0dba4
feat(server): allow pass coupon to checkout session ( #5749 )
2024-01-31 21:34:22 +08:00
liuyi
e516e0db23
refactor(server): plugin modules ( #5630 )
...
- [x] separates modules into `fundamental`, `core`, `plugins`
- [x] optional modules with `@OptionalModule` decorator to install modules with requirements met(`requires`, `if`)
- [x] `module.contributesTo` defines optional features that will be enabled if module registered
- [x] `AFFiNE.plugins.use('payment', {})` to enable a optional/plugin module
- [x] `PaymentModule` is the first plugin module
- [x] GraphQLSchema will not be generated for non-included modules
- [x] Frontend can use `ServerConfigType` query to detect which features are enabled
- [x] override existing provider globally
2024-01-22 07:40:28 +00:00