cal.pub0.org/packages/lib
Udit Takkar f755312ed7
feat: Make Team Private
## What does this PR do?

Fixes https://github.com/calcom/cal.com/issues/8974

1) When user is admin

<img width="1440" alt="Screenshot 2023-07-03 at 6 45 50 PM" src="https://github.com/calcom/cal.com/assets/53316345/ce15158f-d278-4f1a-ba2e-8b63e4274793">

2) When user is not admin and team is private

<img width="1440" alt="Screenshot 2023-07-03 at 6 47 15 PM" src="https://github.com/calcom/cal.com/assets/53316345/ce23560e-690a-4c42-a76d-49691260aa4d">

3) 
<img width="1440" alt="Screenshot 2023-07-03 at 6 51 56 PM" src="https://github.com/calcom/cal.com/assets/53316345/13af38f8-5618-4dae-b359-b24dc91e4eb4">


## Type of change

<!-- Please delete bullets that are not relevant. -->

- New feature (non-breaking change which adds functionality)

## How should this be tested?

1) go to Team members page and turn on switch Make Team Private.

Now after making the team private only admin would be able to see all the members list in the settings. There will not be a button to Book a team member instead on the team page like before.


## Mandatory Tasks

- [ ] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2023-07-06 11:55:12 +02:00
..
apps Only return enabled apps in getEnabledApps (#6653) 2023-01-23 16:27:20 -07:00
browser chore: add canonical to the document via `PageWrapper` (#8639) 2023-06-02 18:28:03 +00:00
cva refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
date-fns New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
hooks feat: Routing Forms/Teams Support (#9417) 2023-06-15 08:58:07 +00:00
payment perf: tRPC procedures and middleware refactor (#8419) 2023-05-09 19:27:05 +00:00
server feat: Make Team Private 2023-07-06 11:55:12 +02:00
sync chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
test chore: Sync packages mismatches (#9725) 2023-06-22 15:25:37 -07:00
CalEventParser.ts fix: add uid in evt (#9066) 2023-05-23 18:19:52 +00:00
CalendarService.ts fix with object undefined check (#9493) 2023-06-13 20:27:42 +00:00
CloseCom.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
CloseComeUtils.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
OgImages.tsx chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
Sendgrid.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
array.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
availability.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
bookingSuccessRedirect.ts Possible fix for iOS redirection (#8455) 2023-04-22 19:45:22 +02:00
checkRateLimitAndThrowError.test.ts feat: ratelimit - ratelimit refactor + tests (#9744) 2023-06-26 19:44:58 +00:00
checkRateLimitAndThrowError.ts feat: ratelimit - ratelimit refactor + tests (#9744) 2023-06-26 19:44:58 +00:00
classNames.ts Tailwind Merge (#6596) 2023-01-20 15:19:12 +01:00
constants.ts chore: replace slack with discord (#9900) 2023-07-04 22:11:10 +00:00
convertToNewDurationType.ts Fixed wrong calculation of duration type on event type page. (#5557) 2022-11-17 13:38:03 +05:30
crypto.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
date-ranges.test.ts feat: date range overhaul (#9802) 2023-07-05 09:47:41 -07:00
date-ranges.ts feat: date range overhaul (#9802) 2023-07-05 09:47:41 -07:00
default-cookies.ts test: Hotfix/Orgs rewrite causing 404 with 3 or more dots domains (#9803) 2023-06-27 12:01:30 -07:00
defaultAvatarImage.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
defaultAvatarImage.ts feat: Organizations (#8993) 2023-06-14 21:40:20 +00:00
defaultEvents.ts fix: Vercel autoconverts + to a ' ' character. (#9920) 2023-07-04 12:37:04 -04:00
deriveAppDictKeyFromType.ts Chore/salesforce prep work (#5648) 2022-11-22 13:44:08 -07:00
entityPermissionUtils.ts feat: Routing Forms/Teams Support (#9417) 2023-06-15 08:58:07 +00:00
env.ts Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
errors.ts resolves #3565 (#8581) 2023-05-02 16:56:29 +00:00
fetch-wrapper.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
fetchUsername.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
findDurationType.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
getBooking.tsx Fix/send responses everywhere customInputs were being sent. (#7898) 2023-04-04 10:29:09 +05:30
getBrandColours.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
getBrandColours.tsx RFC: added brandcolor for switch (#8213) 2023-04-19 14:39:23 +00:00
getEventTypeById.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
getIP.ts feat: Upstash implementation for rate limiting/redis (#9514) 2023-06-19 10:01:06 +00:00
getLabelValueMapFromResponses.ts Fix: Send responses in confirm booking flow (#7830) 2023-03-27 13:57:10 +05:30
getPaymentAppData.ts Stripe add the ability to place hold on cards (#8022) 2023-04-11 23:44:14 +02:00
getSafeRedirectUrl.ts Make sure returnTo is correct URL (#6189) 2023-01-05 12:55:55 -07:00
hasKeyInMetadata.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
http-error.ts Stripe to monorepo (#2063) 2022-03-09 15:56:05 -07:00
i18n.ts Remove getDirFromLang, in favour of doing this in the I18nLanguageHan… (#8425) 2023-04-21 00:45:22 +00:00
index.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isBookingLimits.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
isCalcom.ts <Tips> in sidebar (#4999) 2022-10-14 19:38:05 +00:00
isDurationLimits.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isKeyInObject.ts Adds basic global feature flags (#7459) 2023-03-24 17:59:04 -07:00
isMac.ts Adds a fully extensible command(ctrl)+k interface for Cal (#3346) 2022-07-14 06:45:07 +00:00
isOutOfBounds.tsx add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
isPrismaObj.ts License server (#2379) 2022-05-26 11:07:14 -06:00
isProblematicTimezone.ts Fix: Filter Timezones by cities (#7540) 2023-03-06 17:52:20 +00:00
isRecurringEvent.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
jsonUtils.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
logger.ts Allows to override default debug level for logger (#6300) 2023-01-05 16:23:50 -07:00
markdownIt.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
markdownToSafeHTML.ts fix: team bio (#9438) 2023-06-09 12:50:35 +00:00
next-seo.config.ts chore: add canonical to the document via `PageWrapper` (#8639) 2023-06-02 18:28:03 +00:00
notEmpty.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
objectKeys.ts Enables strict mode in nextjs apps (#2354) 2022-04-04 20:26:14 +00:00
package.json chore: Sync packages mismatches (#9725) 2023-06-22 15:25:37 -07:00
parse-dates.ts fix Former time in wrong time zone (Rescheduling) (#9039) 2023-05-23 07:50:47 +00:00
parse-zone.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
perf.ts perf: lazy load tRPC routes (#8167) 2023-04-25 19:39:47 -03:00
random.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
random.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
rateLimit.ts feat: ratelimit - ratelimit refactor + tests (#9744) 2023-06-26 19:44:58 +00:00
recurringStrings.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
sanitizeCalendarObject.ts Caldav/refactor: Mutiple Fixes and General code improvement (#8031) 2023-04-12 14:30:39 -03:00
serverConfig.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
slots.test.ts feat: date range overhaul (#9802) 2023-07-05 09:47:41 -07:00
slots.ts feat: date range overhaul (#9802) 2023-07-05 09:47:41 -07:00
slugify.ts chore: extended slugify function (#8740) 2023-05-17 13:05:14 +00:00
stripMarkdown.ts fix: strip markdown from meta description tag in users page (#8769) 2023-05-15 07:44:23 +00:00
telemetry.ts feat: Organizations (#8993) 2023-06-14 21:40:20 +00:00
text.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
text.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timeFormat.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timezone.ts fix: Change Detroit to New York as a default for EST time zone (#8218) 2023-05-29 19:57:34 +01:00
tsconfig.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
tsconfig.test.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
turndownService.ts Fix shift-enter in bio editor (#6769) 2023-01-27 23:14:58 +00:00
validateBookerLayouts.ts feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
validateIntervalLimitOrder.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
webstorage.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
weekday.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
weekday.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00