chore: fix formatting (#16750)
This commit is contained in:
1 parent
9749ba1cd0
commit
8e76d7bd10
26 files changed
+124
-94
No files matched your search
@@ -1 +1 @@
|
||||
this folder contains the constants for the platform
|
||||
this folder contains the constants for the platform
|
||||
@@ -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
|
||||
from any other package please import from @calcom/platform-enums/monorepo
|
||||
@@ -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.
|
||||
to be part of org team when creating event type for team. Update libraries to include these changes.
|
||||
@@ -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
|
||||
@@ -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. |
|
||||
|
||||
@@ -1 +1 @@
|
||||
Contains types shared by platform api and packages
|
||||
Contains types shared by platform api and packages
|
||||
@@ -1 +1 @@
|
||||
Contains utils shared by platform api and packages
|
||||
Contains utils shared by platform api and packages
|
||||
Reference in new issue
Block a user