From 8e76d7bd10e78673730612014b6c65bdf10a2fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Fri, 20 Sep 2024 19:10:12 -0700 Subject: [PATCH] chore: fix formatting (#16750) --- .github/ISSUE_TEMPLATE/feature_request.md | 2 + CONTRIBUTING.md | 21 +++++---- README.md | 44 +++++++++---------- apps/api/v2/README.md | 4 +- apps/web/app/_trpc/trpc-provider.tsx | 4 +- example-apps/credential-sync/README.md | 3 +- infra/README.md | 2 +- packages/app-store/clic/DESCRIPTION.md | 2 +- packages/app-store/demodesk/DESCRIPTION.md | 5 ++- packages/app-store/linear/DESCRIPTION.md | 3 ++ .../app-store/pipedrive-crm/DESCRIPTION.md | 2 +- packages/app-store/pipedrive-crm/README.md | 24 +++++----- packages/app-store/retell-ai/DESCRIPTION.md | 6 ++- packages/app-store/roam/DESCRIPTION.md | 4 +- .../pages/layout-handler/[...appPages].tsx | 2 +- packages/app-store/synthflow/DESCRIPTION.md | 1 - packages/app-store/zapier/README.md | 3 +- packages/features/ee/organizations/README.md | 15 +++---- packages/platform/constants/README.md | 2 +- packages/platform/enums/README.md | 2 +- packages/platform/libraries/CHANGELOG.md | 35 ++++++++++----- packages/platform/libraries/README.md | 18 ++++---- packages/platform/sdk/README.md | 6 ++- packages/platform/types/README.md | 2 +- packages/platform/utils/README.md | 2 +- packages/trpc/react/trpc.ts | 4 +- 26 files changed, 124 insertions(+), 94 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 33e187df6d..a071344ccd 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -49,7 +49,9 @@ assignees: "" (Share it here.) --- + ##### House rules + - If this issue has a `🚨 needs approval` label, don't start coding yet. Wait until a core member approves feature request by removing this label, then you can start coding. - For clarity: Non-core member issues automatically get the `🚨 needs approval` label. - Your feature ideas are invaluable to us! However, they undergo review to ensure alignment with the product's direction. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 71978c0930..072a2c9100 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -177,24 +177,25 @@ Do not commit your `yarn.lock` unless you've made changes to the `package.json`. If your last commit has the `yarn.lock` file alongside other files and you only wish to uncommit the `yarn.lock`: - ```bash - git checkout HEAD~1 yarn.lock - git commit -m "Revert yarn.lock changes" - ``` +```bash +git checkout HEAD~1 yarn.lock +git commit -m "Revert yarn.lock changes" +``` _NB_: You may have to bypass the pre-commit hook with by appending `--no-verify` to the git commit If you've pushed the commit with the `yarn.lock`: - 1. Correct the commit locally using the above method. - 2. Carefully force push: +1. Correct the commit locally using the above method. +2. Carefully force push: - ```bash - git push origin --force - ``` +```bash +git push origin --force +``` If `yarn.lock` was committed a while ago and there have been several commits since, you can use the following steps to revert just the `yarn.lock` changes without impacting the subsequent changes: 1. **Checkout a Previous Version**: + - Find the commit hash before the `yarn.lock` was unintentionally committed. You can do this by viewing the Git log: ```bash @@ -208,6 +209,7 @@ If `yarn.lock` was committed a while ago and there have been several commits sin ``` 2. **Commit the Reverted Version**: + - After checking out the previous version of the `yarn.lock`, commit this change: ```bash @@ -215,6 +217,7 @@ If `yarn.lock` was committed a while ago and there have been several commits sin ``` 3. **Proceed with Caution**: + - If you need to push this change, first pull the latest changes from your remote branch to ensure you're not overwriting other recent changes: ```bash diff --git a/README.md b/README.md index bea598d0a6..4a7037e6ae 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ yarn dx Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\ Where {level} can be one of the following: - + `0` for silly \ `1` for trace \ `2` for debug \ @@ -187,14 +187,14 @@ Where {level} can be one of the following: When you set `NEXT_PUBLIC_LOGGER_LEVEL={level}` in your .env file, it enables logging at that level and higher. Here's how it works: The logger will include all logs that are at the specified level or higher. For example: \ + - If you set `NEXT_PUBLIC_LOGGER_LEVEL=2`, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and (fatal) will be logged. \ - If you set `NEXT_PUBLIC_LOGGER_LEVEL=3`, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \ - - ```sh echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env ``` + for Logger level to be set at info, for example. #### Gitpod Setup @@ -417,25 +417,25 @@ Cal.com, Inc. is a commercial open source company, which means some parts of thi > [!NOTE] > Our philosophy is simple, all "Singleplayer APIs" are open-source under AGPLv3. All commercial "Multiplayer APIs" are under a commercial license. -| | AGPLv3 | EE | -|---|---|---| -| Self-host for commercial purposes | ✅ | ✅ | -| Clone privately | ✅ | ✅ | -| Fork publicly | ✅ | ✅ | -| Requires CLA | ✅ | ✅ | -| Official Support| ❌ | ✅ | -| Derivative work privately | ❌ | ✅ | -| SSO | ❌ | ✅ | -| Admin Panel | ❌ | ✅ | -| Impersonation | ❌ | ✅ | -| Managed Event Types | ❌ | ✅ | -| Organizations | ❌ | ✅ | -| Payments | ❌ | ✅ | -| Platform | ❌ | ✅ | -| Teams | ❌ | ✅ | -| Users | ❌ | ✅ | -| Video | ❌ | ✅ | -| Workflows | ❌ | ✅ | +| | AGPLv3 | EE | +| --------------------------------- | ------ | --- | +| Self-host for commercial purposes | ✅ | ✅ | +| Clone privately | ✅ | ✅ | +| Fork publicly | ✅ | ✅ | +| Requires CLA | ✅ | ✅ | +|  Official Support | ❌  | ✅ | +| Derivative work privately | ❌ | ✅ | +|  SSO | ❌ | ✅ | +| Admin Panel | ❌ | ✅ | +| Impersonation | ❌ | ✅ | +| Managed Event Types | ❌ | ✅ | +| Organizations | ❌ | ✅ | +| Payments | ❌ | ✅ | +| Platform | ❌ | ✅ | +| Teams | ❌ | ✅ | +| Users | ❌ | ✅ | +| Video | ❌ | ✅ | +| Workflows | ❌ | ✅ | > [!TIP] > We work closely with the community and always invite feedback about what should be open and what is fine to be commercial. This list is not set and stone and we have moved things from commercial to open in the past. Please open a [discussion](https://github.com/calcom/cal.com/discussions) if you feel like something is wrong. diff --git a/apps/api/v2/README.md b/apps/api/v2/README.md index 9de22f30c4..e67f17751e 100644 --- a/apps/api/v2/README.md +++ b/apps/api/v2/README.md @@ -44,8 +44,8 @@ Copy `.env.example` to `.env` and fill values. ## Add license Key to deployments table in DB -id, logo theme licenseKey agreedLicenseAt -1, null, null, 'c4234812-12ab-42s6-a1e3-55bedd4a5bb7', '2023-05-15 21:39:47.611' +id, logo theme licenseKey agreedLicenseAt +1, null, null, 'c4234812-12ab-42s6-a1e3-55bedd4a5bb7', '2023-05-15 21:39:47.611' your CALCOM_LICENSE_KEY env var need to contain the same value diff --git a/apps/web/app/_trpc/trpc-provider.tsx b/apps/web/app/_trpc/trpc-provider.tsx index 6b80a08aba..6bb9e77a71 100644 --- a/apps/web/app/_trpc/trpc-provider.tsx +++ b/apps/web/app/_trpc/trpc-provider.tsx @@ -55,7 +55,9 @@ export const TrpcProvider: React.FC<{ children: React.ReactNode; dehydratedState // adds pretty logs to your console in development and logs errors in production loggerLink({ enabled: (opts) => - (typeof process.env.NEXT_PUBLIC_LOGGER_LEVEL === 'number' && process.env.NEXT_PUBLIC_LOGGER_LEVEL >= 0) || (opts.direction === "down" && opts.result instanceof Error), + (typeof process.env.NEXT_PUBLIC_LOGGER_LEVEL === "number" && + process.env.NEXT_PUBLIC_LOGGER_LEVEL >= 0) || + (opts.direction === "down" && opts.result instanceof Error), }), splitLink({ // check for context property `skipBatch` diff --git a/example-apps/credential-sync/README.md b/example-apps/credential-sync/README.md index 54803fe5ee..b76f6d82e9 100644 --- a/example-apps/credential-sync/README.md +++ b/example-apps/credential-sync/README.md @@ -6,4 +6,5 @@ This is an example app that acts as the source of truth for Cal.com Apps credent `yarn dev` starts the server on port 5100. After this open http://localhost:5100 and from there you would be able to manage the tokens for various Apps. ## Endpoints -http://localhost:5100/api/getToken should be set as the value of env variable CALCOM_CREDENTIAL_SYNC_ENDPOINT in Cal.com \ No newline at end of file + +http://localhost:5100/api/getToken should be set as the value of env variable CALCOM_CREDENTIAL_SYNC_ENDPOINT in Cal.com diff --git a/infra/README.md b/infra/README.md index 7911e0b39f..b1a7194a91 100644 --- a/infra/README.md +++ b/infra/README.md @@ -1,3 +1,3 @@ ## Infrastructure Folder -This folder, located within the "infra" directory of our monorepo, is dedicated to managing the infrastructure as code (IaC) and Docker-related files for our project. It plays a critical role in orchestrating, configuring, and maintaining the infrastructure that our applications rely on. +This folder, located within the "infra" directory of our monorepo, is dedicated to managing the infrastructure as code (IaC) and Docker-related files for our project. It plays a critical role in orchestrating, configuring, and maintaining the infrastructure that our applications rely on. diff --git a/packages/app-store/clic/DESCRIPTION.md b/packages/app-store/clic/DESCRIPTION.md index d7fc419730..855c7d1ce7 100644 --- a/packages/app-store/clic/DESCRIPTION.md +++ b/packages/app-store/clic/DESCRIPTION.md @@ -1,6 +1,6 @@ --- items: - - preview.png + - preview.png - previewcheckins.png - previewcontacts.png - previewcreation.png diff --git a/packages/app-store/demodesk/DESCRIPTION.md b/packages/app-store/demodesk/DESCRIPTION.md index ffce664db8..eb4db91a73 100644 --- a/packages/app-store/demodesk/DESCRIPTION.md +++ b/packages/app-store/demodesk/DESCRIPTION.md @@ -12,19 +12,22 @@ items: ### AI superpowers for your sales meetings #### Coach and onboard sellers with AI-based insights + - Automatically record all meetings, GDPR & MiFID compliant - Transcribe and summarize meetings using Demodesk’s AI - Coach teams along conversational metrics and scorecards - Automatically log key information into your CRM #### Schedule more customer meetings, on auto-pilot + - Let customers schedule time without email back-and-forth - Qualify website leads and route them to the right person - Automate and control handoff processes in your team - Automate admin work and sync interactions to your CRM #### Run secure video meetings that convert into revenue + - Host professional, secure video meetings without downloads - Engage customers with interactive screen sharing - Coach sellers in real-time along standardized playbooks -- Automate preparation, follow-up and CRM documentation \ No newline at end of file +- Automate preparation, follow-up and CRM documentation diff --git a/packages/app-store/linear/DESCRIPTION.md b/packages/app-store/linear/DESCRIPTION.md index d7acc4ef6a..c35ec01638 100644 --- a/packages/app-store/linear/DESCRIPTION.md +++ b/packages/app-store/linear/DESCRIPTION.md @@ -6,12 +6,15 @@ items: {DESCRIPTION} ### Overview + The Linear integration with Google calendar allows you to connect your calendar and automate your status. If your teammates need to know whether you’re out of office, now they will. ### How it works + Once connected, your Linear status will detect out of office events in Google calendar and update your status when those events are upcoming or active. ### To Configure + Install Google Calendar from your Linear settings under My Account > Linked accounts. Connect your account and sign into your Google account to allow access. diff --git a/packages/app-store/pipedrive-crm/DESCRIPTION.md b/packages/app-store/pipedrive-crm/DESCRIPTION.md index 1ace85dd67..44bfa5062e 100644 --- a/packages/app-store/pipedrive-crm/DESCRIPTION.md +++ b/packages/app-store/pipedrive-crm/DESCRIPTION.md @@ -1,6 +1,6 @@ --- items: -- pipedrive-banner.jpeg + - pipedrive-banner.jpeg --- {DESCRIPTION} diff --git a/packages/app-store/pipedrive-crm/README.md b/packages/app-store/pipedrive-crm/README.md index ac053cab04..6a1175dd4e 100644 --- a/packages/app-store/pipedrive-crm/README.md +++ b/packages/app-store/pipedrive-crm/README.md @@ -2,18 +2,18 @@ #### Obtaining Pipedrive Client ID and Secret -* Open [Pipedrive Developers Corner](https://developers.pipedrive.com/) and sign in to your account, or create a new one -* Go to Settings > (company name) Developer Hub -* Create a Pipedrive app, using the steps mentioned [here](https://pipedrive.readme.io/docs/marketplace-creating-a-proper-app#create-an-app-in-5-simple-steps) - * You can skip this step and use the default revert Pipedrive app -* Set `https://app.revert.dev/oauth-callback/pipedrive` as a callback url for your app -* **Get your client\_id and client\_secret**: - * Go to the "OAuth & access scopes" tab of your app - * Copy your client\_id and client\_secret +- Open [Pipedrive Developers Corner](https://developers.pipedrive.com/) and sign in to your account, or create a new one +- Go to Settings > (company name) Developer Hub +- Create a Pipedrive app, using the steps mentioned [here](https://pipedrive.readme.io/docs/marketplace-creating-a-proper-app#create-an-app-in-5-simple-steps) + - You can skip this step and use the default revert Pipedrive app +- Set `https://app.revert.dev/oauth-callback/pipedrive` as a callback url for your app +- **Get your client_id and client_secret**: + - Go to the "OAuth & access scopes" tab of your app + - Copy your client_id and client_secret #### Obtaining Revert API keys -* Create an account on Revert if you don't already have one. (https://app.revert.dev/sign-up) -* Login to your revert dashboard (https://app.revert.dev/sign-in) and click on `Customize your apps` - `Pipedrive` -* Enter the `client_id` and `client_secret` you copied in the previous step -* Enter the `client_id` and `client_secret` previously copied to `Settings > Admin > Apps > CRM > Pipedrive` by clicking the `Edit` button on the app settings. +- Create an account on Revert if you don't already have one. (https://app.revert.dev/sign-up) +- Login to your revert dashboard (https://app.revert.dev/sign-in) and click on `Customize your apps` - `Pipedrive` +- Enter the `client_id` and `client_secret` you copied in the previous step +- Enter the `client_id` and `client_secret` previously copied to `Settings > Admin > Apps > CRM > Pipedrive` by clicking the `Edit` button on the app settings. diff --git a/packages/app-store/retell-ai/DESCRIPTION.md b/packages/app-store/retell-ai/DESCRIPTION.md index 40ca3c016b..5f2d8b10e9 100644 --- a/packages/app-store/retell-ai/DESCRIPTION.md +++ b/packages/app-store/retell-ai/DESCRIPTION.md @@ -11,18 +11,22 @@ items: Discover the new way to build, test, deploy, and monitor production-ready AI voice agents at scale. - ## Robust AI agent building platform + Build and test complex workflows in a matter of minutes, then deploy them via phone call, web call, or anywhere else. ## Preset Functions + Ease of use functions like book a meeting at Cal.com, Call transfer, voicemail dection, etc... ## Humanlike Voice Experience + Lifelike AI conversations with just 600ms latency, smooth turn-taking, and natural back-channeling. ## Multi-lingual Support + Support n+ languages, n+ countries phone numbers ## Effortless Prodcution + Effortlessly handle millions of calls with scalable concurrent calling diff --git a/packages/app-store/roam/DESCRIPTION.md b/packages/app-store/roam/DESCRIPTION.md index ac49de471a..86fdcee685 100644 --- a/packages/app-store/roam/DESCRIPTION.md +++ b/packages/app-store/roam/DESCRIPTION.md @@ -3,14 +3,14 @@ items: - 1.jpg - 2.jpg - 3.jpg - --- {DESCRIPTION} Roam makes companies: + - more productive with shorter meetings - more connected with a map that gives a feeling of working together without meeting - & Roam saves companies money with our all-in-one bundle -When the whole company is in one HQ, productivity is high, people feel connected to the company. Calendars are emptied. Culture comes back. And companies using Roam benefit from our all-in-one approach to cut tools and save money. \ No newline at end of file +When the whole company is in one HQ, productivity is high, people feel connected to the company. Calendars are emptied. Culture comes back. And companies using Roam benefit from our all-in-one approach to cut tools and save money. diff --git a/packages/app-store/routing-forms/pages/layout-handler/[...appPages].tsx b/packages/app-store/routing-forms/pages/layout-handler/[...appPages].tsx index c78ef7e389..5d1058cb28 100644 --- a/packages/app-store/routing-forms/pages/layout-handler/[...appPages].tsx +++ b/packages/app-store/routing-forms/pages/layout-handler/[...appPages].tsx @@ -57,4 +57,4 @@ export async function getServerSideProps( ) { const component = getComponent(context.params?.pages?.[0] || ""); return component.getServerSideProps?.(context, ...rest) || { props: {} }; -} \ No newline at end of file +} diff --git a/packages/app-store/synthflow/DESCRIPTION.md b/packages/app-store/synthflow/DESCRIPTION.md index 1365d1a999..c87b199a41 100644 --- a/packages/app-store/synthflow/DESCRIPTION.md +++ b/packages/app-store/synthflow/DESCRIPTION.md @@ -15,4 +15,3 @@ One of the best ways for a service business to create and close more customers i 1. Easily connect Cal.com with Synthflow using Cal.com API key. 2. Set up actions and define specific booking parameters tailored to your needs. 3. Attach the scheduling action to your assistant. Your AI Voice Assistants can now book appointments directly into live calendars and send instant notifications. - diff --git a/packages/app-store/zapier/README.md b/packages/app-store/zapier/README.md index d21fa12d09..e45aa7dbad 100644 --- a/packages/app-store/zapier/README.md +++ b/packages/app-store/zapier/README.md @@ -62,7 +62,7 @@ Create the other triggers (booking rescheduled, booking cancelled and meeting en - Key: ooo_created - Name: Out Of Office Created - Noun: OOO Entry - - Description: Triggers when a new Out Of Office entry is created. + - Description: Triggers when a new Out Of Office entry is created. 2. API Configuration (apiKey is set automatically, leave it like it is): - Trigger Type: REST Hook - Subscribe: POST ``/api/integrations/zapier/addSubscription @@ -76,7 +76,6 @@ Create the other triggers (booking rescheduled, booking cancelled and meeting en 3. Test your API request 4. Note: When creating the ZAP you need to remember that data is stored in the { payload: { oooEntry: { ... } } } - ### Set ZAPIER_INVITE_LINK The invite link can be found under Manage → Sharing. diff --git a/packages/features/ee/organizations/README.md b/packages/features/ee/organizations/README.md index 766f017cfb..7c65e8bd7b 100644 --- a/packages/features/ee/organizations/README.md +++ b/packages/features/ee/organizations/README.md @@ -23,25 +23,25 @@ From the [Original RFC](https://github.com/calcom/cal.com/issues/7142): 1. `sudo npx hostile set localhost app.cal.local` 2. Add it yourself -6. Add `acme.cal.local` to host file given that the org create for it will be `acme`, otherwise do this for whatever slug will be assigned to the org. This is needed to test org-related public URLs, such as sub-teams, members and event-types. +4. Add `acme.cal.local` to host file given that the org create for it will be `acme`, otherwise do this for whatever slug will be assigned to the org. This is needed to test org-related public URLs, such as sub-teams, members and event-types. -7. Be sure to be logged in with any type of user and visit `/settings/organizations/new` and follow setup steps with the slug matching the org slug from step 3 +5. Be sure to be logged in with any type of user and visit `/settings/organizations/new` and follow setup steps with the slug matching the org slug from step 3 -8. Log in as admin and go to Settings and under Organizations you will need to accept the newly created organization in order to be operational +6. Log in as admin and go to Settings and under Organizations you will need to accept the newly created organization in order to be operational -9. After finishing the org creation, you will be automatically logged in as the owner of the organization, and the app will be shown in organization mode +7. After finishing the org creation, you will be automatically logged in as the owner of the organization, and the app will be shown in organization mode ### Note Browsers do not allow camera/mic access on any non-HTTPS hosts except for localhost. To test cal video organization meeting links locally (`app.cal.local/video/[uid]`). You can access the meeting link by replacing app.cal.local with localhost in the URL. -For eg:- Use `http://localhost:3000/video/nAjnkjejuzis99NhN72rGt` instead of `http://app.cal.local:3000/video/nAjnkjejuzis99NhN72rGt`. +For eg:- Use `http://localhost:3000/video/nAjnkjejuzis99NhN72rGt` instead of `http://app.cal.local:3000/video/nAjnkjejuzis99NhN72rGt`. To get an HTTPS URL for localhost, you can use a tunneling tool such as `ngrok` or [Tunnelmole](https://github.com/robbie-cahill/tunnelmole-client) . Alternatively, you can generate an SSL certificate for your local domain using `mkcert`. Turn off any SSL certificate validation in your HTTPS client (be sure to do this for local only, otherwise its a security risk). #### Tunnelmole - Open Source Tunnelling Tool: -To install Tunnelmole, execute the command: +To install Tunnelmole, execute the command: ``` curl -O https://install.tunnelmole.com/8dPBw/install && sudo bash install @@ -59,7 +59,7 @@ View the Tunnelmole [README](https://github.com/robbie-cahill/tunnelmole-client) #### ngrok - Closed Source Tunnelling Tool: -ngrok is a popular closed source tunneling tool. You can run ngrok using the same port, using the format `ngrok http ` replacing `` with your actual port number. For example: +ngrok is a popular closed source tunneling tool. You can run ngrok using the same port, using the format `ngrok http ` replacing `` with your actual port number. For example: ``` ngrok http 8000 @@ -67,7 +67,6 @@ ngrok http 8000 This will generate a public URL that you can use to access your localhost server. - ## DNS setup When a new organization is created, other than not being verified up until the admin accepts it in settings as explained in step 6, a flag gets created that marks the organization as missing DNS setup. That flag get auto-checked by the system upon organization creation when the Cal instance is deployed in Vercel and the subdomain registration was successful. Logging in as admin and going to Settings > Organizations section, you will see that flag as a badge, designed to give admins a glimpe on what is pending in terms of making an organization work. Alongside the mentioned badge, an email gets sent to admins in order to warn them there is a pending action about setting up DNS for the newly created organization to work. diff --git a/packages/platform/constants/README.md b/packages/platform/constants/README.md index ed6a2a20ec..4b7ee51323 100644 --- a/packages/platform/constants/README.md +++ b/packages/platform/constants/README.md @@ -1 +1 @@ -this folder contains the constants for the platform \ No newline at end of file +this folder contains the constants for the platform diff --git a/packages/platform/enums/README.md b/packages/platform/enums/README.md index f68cfe193b..0939e9287a 100644 --- a/packages/platform/enums/README.md +++ b/packages/platform/enums/README.md @@ -2,4 +2,4 @@ Contains enums shared by platform api and packages from api-v2 please import from @calcom/platform-enums -from any other package please import from @calcom/platform-enums/monorepo \ No newline at end of file +from any other package please import from @calcom/platform-enums/monorepo diff --git a/packages/platform/libraries/CHANGELOG.md b/packages/platform/libraries/CHANGELOG.md index 0e770e96e9..3fe0463f79 100644 --- a/packages/platform/libraries/CHANGELOG.md +++ b/packages/platform/libraries/CHANGELOG.md @@ -1,48 +1,59 @@ ## 0.0.36 + Released to support PR https://github.com/calcom/cal.com/pull/16685 -## 0.0.31 +## 0.0.31 + PR https://github.com/calcom/cal.com/pull/16414 fixed issue of deleting and rescheduling recurring events. -## 0.0.30 -• Feature: Added support for recurringEvent in api/v2/event-types. - • Introduced the transformApiEventTypeRecurrence translator in packages/lib/event-types/transformers/api-request.ts. This enables the “recurringEvent” feature in the event-type API. - • Added getResponseEventTypeRecurrence translator in packages/lib/event-types/transformers/api-response.ts to return data in a more human-friendly format. +## 0.0.30 -## 0.0.28 -• Feature: Added support for new event-type limits in the API. - • Introduced the transformApiEventTypeFutureBookingLimits translator in packages/lib/event-types/transformers/api-request.ts. This enables the “Limit future bookings” feature in the event-type API. - • Introduced the transformApiEventTypeIntervalLimits translator in packages/lib/event-types/transformers/api-request.ts. This allows the “Limit total booking duration” and “Limit booking frequency” features in the event-type API. - • Added getResponseEventTypeIntervalLimits translator in packages/lib/event-types/transformers/api-response.ts to return data in a more human-friendly format. - • Added getResponseEventTypeFutureBookingLimits translator in packages/lib/event-types/transformers/api-response.ts to improve the clarity and readability of the response data. +• Feature: Added support for recurringEvent in api/v2/event-types. +• Introduced the transformApiEventTypeRecurrence translator in packages/lib/event-types/transformers/api-request.ts. This enables the “recurringEvent” feature in the event-type API. +• Added getResponseEventTypeRecurrence translator in packages/lib/event-types/transformers/api-response.ts to return data in a more human-friendly format. + +## 0.0.28 + +• Feature: Added support for new event-type limits in the API. +• Introduced the transformApiEventTypeFutureBookingLimits translator in packages/lib/event-types/transformers/api-request.ts. This enables the “Limit future bookings” feature in the event-type API. +• Introduced the transformApiEventTypeIntervalLimits translator in packages/lib/event-types/transformers/api-request.ts. This allows the “Limit total booking duration” and “Limit booking frequency” features in the event-type API. +• Added getResponseEventTypeIntervalLimits translator in packages/lib/event-types/transformers/api-response.ts to return data in a more human-friendly format. +• Added getResponseEventTypeFutureBookingLimits translator in packages/lib/event-types/transformers/api-response.ts to improve the clarity and readability of the response data. ## 0.0.26 + Update `packages/app-store/office365calendar/lib/CalendarService.ts` "translateEvent" content so that in microsoft outlook calendar event the description has newlines instead of being all in 1 line. ## 0.0.25 + Refactor "packages/lib/event-types/transformers/api-request.ts" getResponseEventTypeBookingFields - make sure that booking fields with options don't have undefines options. ## 0.0.24 + Refactor "packages/lib/event-types/transformers/api-request.ts" - we access event-type booking fields in database and then distinguish them as either created by the user or system. Then in v2 api "event-types_2024_06_14/services/output-event-types.service.ts" we first parse them and then filter out only user fields. This is done because when creating an event-type we only store user passed booking fields, but if someone already had created booking-fields using event-types version 2024_04_15, then they contained system fields which is why event-types 2024_06_14 controller was failing. ## 0.0.23 + Update "createBooking" (packages/features/bookings/lib/handleNewBooking/createBooking.ts) that is used by handleNewBooking (packages/features/bookings/lib/handleNewBooking.ts) to correctly handle metadata of a re-scheduled booking. Previously, metadata of original booking was overwriting metadata in the request body of the new booking (rescheduled), but now request body overwrites metadata of the original body so that whatever metadata is newest ends up as the metadata of rescheduled booking. However, only common properties are overwritten, if the original booking has a key that re-schedule booking request body metadata does not have, then it will be persisted in the re-scheduled booking. ## 0.0.22 + Export `updateNewTeamMemberEventTypes` from `"@calcom/lib/server/queries"` so that we can assign newly created organizations teams members to event-types that have been marked as "assign all team members" ## 0.0.20 + In event-types create handler (packages/trpc/server/routers/viewer/eventTypes/create.handler.ts) enable passing scheduleId so that when an event type is created it can be connected to a specific schedule. ## 0.0.19 + Added - create event type handler was [updated](https://github.com/calcom/cal.com/pull/15774) for system admins not to be required -to be part of org team when creating event type for team. Update libraries to include these changes. \ No newline at end of file +to be part of org team when creating event type for team. Update libraries to include these changes. diff --git a/packages/platform/libraries/README.md b/packages/platform/libraries/README.md index 26f3d17325..008b604430 100644 --- a/packages/platform/libraries/README.md +++ b/packages/platform/libraries/README.md @@ -11,13 +11,12 @@ In order to work using the locally built platform libraries you need to: - in packages/platform/libraries/package.json set the version to for example 1.2.3 - in apps/api/v2/package.json add to dependencies: - "@calcom/platform-libraries-1.2.3": "npm:@calcom/platform-libraries@1.2.3" + "@calcom/platform-libraries-1.2.3": "npm:@calcom/platform-libraries@1.2.3" - in api v2 code simply import using the new alias: - import { - getAllUserBookings as getAllUserBookings1.2.3, - } from "@calcom/platform-libraries-1.2.3"; - + import { + getAllUserBookings as getAllUserBookings1.2.3, + } from "@calcom/platform-libraries-1.2.3"; since the versions are matching in both package.json yarn will try to use the locally built code @@ -32,11 +31,12 @@ then go back to /apps/api/v2 and run - yarn dev # Before Merging to main + - Publish Your Version of Libraries on NPM: - - To publish, ensure you are a contributor to the platform libraries' NPM package. - - Authenticate yourself via the CLI using npm auth. - - Increment the version number accordingly. - - Run yarn publish to publish your version. + - To publish, ensure you are a contributor to the platform libraries' NPM package. + - Authenticate yourself via the CLI using npm auth. + - Increment the version number accordingly. + - Run yarn publish to publish your version. - Once it's published, change back the version in packages/platform/libraries/package.json back to 0.0.0 - Run yarn - You should now be using the npm package instead of the locally built version diff --git a/packages/platform/sdk/README.md b/packages/platform/sdk/README.md index ef8942b2b8..c6eff4d7f6 100644 --- a/packages/platform/sdk/README.md +++ b/packages/platform/sdk/README.md @@ -27,12 +27,13 @@ const sdk = new Cal("your_client_id", { ``` ### Authenticating as a User + The SDK is also meant to be used as an authenticated user, to do that, you need to pass the `accessToken` to the `authOptions` in the SDK constructor. ```typescript const authedSdk = new Cal("your_client_id", { clientSecret: "your_client_secret", - accessToken: "your_user_access_token" + accessToken: "your_user_access_token", }); const schedule = await authedSdk.schedules.createSchedule({ @@ -52,6 +53,7 @@ const schedule = await authedSdk.schedules.createSchedule({ You can manually refresh access tokens, or you can let the SDK handle token refreshes via the `handleRefresh` option. To manually update an access token, you can use the following snippet: + ```typescript sdk.secrets().updateAccessToken(oauth.accessToken, oauth.refreshToken); ``` @@ -59,7 +61,7 @@ sdk.secrets().updateAccessToken(oauth.accessToken, oauth.refreshToken); ## Configuration | Option | Required | Description | -|----------------------------|----------|-----------------------------------------------------------------------------------------------------| +| -------------------------- | -------- | --------------------------------------------------------------------------------------------------- | | `authOptions.clientSecret` | `TRUE` | The Client Secret corresponding to the client ID passed as the first parameter. | | `authOptions.accessToken` | `FALSE` | `Optional` Access token when authenticating as a specific user. | | `authOptions.refreshToken` | `FALSE` | `Optional` If provided, the SDK can handle refreshing access tokens automatically when they expire. | diff --git a/packages/platform/types/README.md b/packages/platform/types/README.md index d7dfa254c3..f17f61b034 100644 --- a/packages/platform/types/README.md +++ b/packages/platform/types/README.md @@ -1 +1 @@ -Contains types shared by platform api and packages \ No newline at end of file +Contains types shared by platform api and packages diff --git a/packages/platform/utils/README.md b/packages/platform/utils/README.md index 1fb2d380dc..160c8d451d 100644 --- a/packages/platform/utils/README.md +++ b/packages/platform/utils/README.md @@ -1 +1 @@ -Contains utils shared by platform api and packages \ No newline at end of file +Contains utils shared by platform api and packages diff --git a/packages/trpc/react/trpc.ts b/packages/trpc/react/trpc.ts index a2b9343181..78724a86a1 100644 --- a/packages/trpc/react/trpc.ts +++ b/packages/trpc/react/trpc.ts @@ -73,7 +73,9 @@ export const trpc: CreateTRPCNext = createTRPC // adds pretty logs to your console in development and logs errors in production loggerLink({ enabled: (opts) => - (typeof process.env.NEXT_PUBLIC_LOGGER_LEVEL === 'number' && process.env.NEXT_PUBLIC_LOGGER_LEVEL >= 0) || (opts.direction === "down" && opts.result instanceof Error), + (typeof process.env.NEXT_PUBLIC_LOGGER_LEVEL === "number" && + process.env.NEXT_PUBLIC_LOGGER_LEVEL >= 0) || + (opts.direction === "down" && opts.result instanceof Error), }), splitLink({ // check for context property `skipBatch`