Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Introduce crmManager #14272

Merged
merged 182 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from 178 commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
bad017a
fix timezone display on booking page to reflect event availability ti…
Mar 18, 2024
e4f9679
migrate fetching event owner's schedule to server side
Mar 19, 2024
2dc2272
migrate fetching event owner's schedule to server side
Mar 19, 2024
12f228f
fix e2e test errors
Mar 19, 2024
df6672e
Merge branch 'calcom:main' into main
Shaik-Sirajuddin Mar 19, 2024
5f274fc
Merge branch 'main' of https://github.com/Shaik-Sirajuddin/cal.com
Mar 19, 2024
4cd9236
Merge branch 'main' into main
joeauyeung Mar 19, 2024
dc45e8c
Merge branch 'calcom:main' into main
Shaik-Sirajuddin Mar 19, 2024
046a3a0
Add WEBAPP_URL_FOR_OAUTH to salesforce auth
joeauyeung Mar 19, 2024
2f19c18
In event manager constructor include "_crm" credentials as calendar c…
joeauyeung Mar 19, 2024
58eb841
Change crm apps to type to end with `_crm`
joeauyeung Mar 19, 2024
4ce8a85
Move sendgrid out of CRM
joeauyeung Mar 19, 2024
288915e
Add zoho bigin to CRM apps
joeauyeung Mar 20, 2024
1777a3a
When getting apps, use slug
joeauyeung Mar 20, 2024
a9bb57f
Add `crm` variants
joeauyeung Mar 20, 2024
698d41e
Hubspot Oauth use `WEBAPP_URL_FOR_OAUTH`
joeauyeung Mar 20, 2024
d40835e
Refactor creating credentials
joeauyeung Mar 20, 2024
bbc068f
Fix empty CRM page
joeauyeung Mar 20, 2024
747c71a
Use credentials with `_crm`
joeauyeung Mar 20, 2024
be2f2b1
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 20, 2024
11b6c7f
Merge branch 'add-crm-app-type' of https://github.com/calcom/cal.com …
joeauyeung Mar 20, 2024
7f5fdb4
Abstract getAppCategoryTitle
joeauyeung Mar 20, 2024
9cff361
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 20, 2024
1db94c8
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 20, 2024
9986bb4
Merge branch 'add-crm-app-type' of https://github.com/calcom/cal.com …
joeauyeung Mar 20, 2024
db8f38e
Add integration.handler changes
joeauyeung Mar 20, 2024
0a71a98
Init crmManager
joeauyeung Mar 20, 2024
ca86484
Change salesforce to CrmService
joeauyeung Mar 21, 2024
e24279f
Create crmManager
joeauyeung Mar 21, 2024
f568c3e
Merge branch 'main' into add-crm-app-type
sean-brydon Mar 25, 2024
b07473d
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 26, 2024
7f39dcf
Merge branch 'add-crm-app-type' into crm-manager
joeauyeung Mar 26, 2024
16b32e7
Create contact on new event
joeauyeung Mar 26, 2024
55e1ef6
Create event
joeauyeung Mar 26, 2024
e75af32
Create new CRM reference
joeauyeung Mar 27, 2024
58836b6
- Fix create new contact for salesforce
joeauyeung Mar 27, 2024
f068be4
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 29, 2024
50b41ac
Merge branch 'add-crm-app-type' into crm-manager
joeauyeung Mar 29, 2024
5d69c61
Create deleteAllCRMEvents
joeauyeung Mar 29, 2024
bd65dad
When searching for credential, look for current credentials in class
joeauyeung Mar 29, 2024
8e12836
On cancel, delete 3rd party events
joeauyeung Mar 29, 2024
216342a
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Mar 29, 2024
bbdfa11
Add delete method
joeauyeung Mar 29, 2024
8f19358
Merge branch 'main' into add-crm-app-type
joeauyeung Mar 29, 2024
b000445
Type fix
joeauyeung Mar 30, 2024
2c49c08
Type fix
joeauyeung Mar 30, 2024
70d0d30
Convert Close.com to CrmService
joeauyeung Mar 30, 2024
2b74a01
Convert Close.com to CrmService
joeauyeung Mar 30, 2024
5190290
Merge branch 'crm-manager' of github.com:calcom/cal.com into crm-manager
joeauyeung Mar 30, 2024
73384c3
Move hubspot to CrmService
joeauyeung Apr 2, 2024
5d465e5
Convert Pipedrive to CrmService
joeauyeung Apr 3, 2024
01b9d6e
Rename classes to CrmService
joeauyeung Apr 3, 2024
6f2c459
Move ZohoCrm to CrmService
joeauyeung Apr 3, 2024
cee5754
Move Bigin to CrmService
joeauyeung Apr 3, 2024
1125cfa
Type return for CrmServices
joeauyeung Apr 3, 2024
4e2a2ac
Fix type errors
joeauyeung Apr 4, 2024
4ba899a
Merge branch 'add-crm-app-type' into event-manager-add-cancel-method
joeauyeung Apr 4, 2024
666dcb3
Merge branch 'main' into add-crm-app-type
joeauyeung Apr 4, 2024
02339c2
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 4, 2024
db36cbf
Merge branch 'main' into add-crm-app-type
joeauyeung Apr 4, 2024
3661718
Close.com create leads and contacts
joeauyeung Apr 4, 2024
5a3bd9a
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung Apr 4, 2024
8b1b206
Merge branch 'main' into add-crm-app-type
joeauyeung Apr 5, 2024
9c2cb92
Fix tests
joeauyeung Apr 5, 2024
de1c55d
Type fix
joeauyeung Apr 5, 2024
d9368a6
Merge branch 'main' into add-crm-app-type
joeauyeung Apr 5, 2024
db7ef81
Merge branch 'add-crm-app-type' into event-manager-add-cancel-method
joeauyeung Apr 5, 2024
6b9cf40
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 5, 2024
1870fcf
Merge branch 'main' into event-manager-add-cancel-method
zomars Apr 10, 2024
cbb0119
Zoho bug fixes
joeauyeung Apr 11, 2024
55adcd8
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung Apr 11, 2024
c08dd01
Clean up
joeauyeung Apr 11, 2024
c8674af
Merge branch 'event-manager-add-cancel-method' into crm-manager
sean-brydon Apr 12, 2024
9d610ac
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 12, 2024
f0139fc
Type fixes
joeauyeung Apr 12, 2024
541eb8b
Remove apiDeletes
joeauyeung Apr 12, 2024
375c6a4
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 12, 2024
022df0f
Type fixes
joeauyeung Apr 12, 2024
1cd2955
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 12, 2024
95d333f
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 12, 2024
b35869e
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 12, 2024
73898ce
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 12, 2024
30cac3f
Specific typing
joeauyeung Apr 12, 2024
ec759ce
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 12, 2024
a9c310f
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 15, 2024
cf7c15f
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 15, 2024
bbf4648
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 15, 2024
707fca8
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 15, 2024
43cfd58
Merge branch 'main' into event-manager-add-cancel-method
sean-brydon Apr 17, 2024
09a1c05
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 18, 2024
9ef46d7
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 19, 2024
b06d24d
Merge branch 'main' into event-manager-add-cancel-method
joeauyeung Apr 22, 2024
82bc930
Merge branch 'event-manager-add-cancel-method' into crm-manager
joeauyeung Apr 22, 2024
45355d3
Merge with `main`
joeauyeung Apr 24, 2024
bdf8a92
Merge branch 'main' into crm-manager
zomars Apr 24, 2024
de0c15d
Type fix
joeauyeung Apr 24, 2024
26b0e6d
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung Apr 24, 2024
159cc4f
Type fix
joeauyeung Apr 24, 2024
6ffb279
Merge branch 'main' into crm-manager
joeauyeung Apr 24, 2024
f24c73c
Type fix
joeauyeung Apr 25, 2024
7114962
Merge remote-tracking branch 'origin/crm-manager' into crm-manager
joeauyeung Apr 25, 2024
74ffe78
Merge branch 'main' into crm-manager
joeauyeung Apr 26, 2024
709a470
Type fix
joeauyeung Apr 26, 2024
db16343
Type fix
joeauyeung Apr 26, 2024
5f4f67a
Merge branch 'main' into crm-manager
joeauyeung Apr 29, 2024
0e319a5
Merge branch 'main' into crm-manager
joeauyeung Apr 29, 2024
a63b957
feat: Enable CRM apps on a per event type basis (#14450)
joeauyeung Apr 29, 2024
aace350
Merge branch 'main' into crm-manager
joeauyeung Apr 29, 2024
3e73de1
Type fixes
joeauyeung Apr 30, 2024
aa4c774
Merge branch 'main' into crm-manager
joeauyeung Apr 30, 2024
c13cb65
Type fixes
joeauyeung Apr 30, 2024
d068d6c
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung Apr 30, 2024
1b5d10e
Type fix
joeauyeung Apr 30, 2024
817f7f9
Type fix
joeauyeung Apr 30, 2024
e3aa89f
Remove console.log
joeauyeung Apr 30, 2024
792e390
Merge branch 'main' into crm-manager
joeauyeung Apr 30, 2024
e17bcab
Merge branch 'main' into crm-manager
joeauyeung Apr 30, 2024
8e9f101
Merge branch 'main' into crm-manager
joeauyeung Apr 30, 2024
1758ccc
Test fix
joeauyeung Apr 30, 2024
9c88e02
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung Apr 30, 2024
006c4f3
Merge branch 'main' into crm-manager
joeauyeung May 1, 2024
11b93b5
Merge branch 'main' into crm-manager
joeauyeung May 2, 2024
de32f6c
Merge branch 'main' into crm-manager
joeauyeung May 2, 2024
365f7ec
Merge branch 'main' into crm-manager
joeauyeung May 2, 2024
9f5d930
Merge branch 'main' into crm-manager
joeauyeung May 2, 2024
752165b
Merge branch 'main' into crm-manager
joeauyeung May 2, 2024
b1b759d
Upgrade embed-react vite version - dev
joeauyeung May 2, 2024
cc98bed
Change build can't find error message
joeauyeung May 2, 2024
45fe2a7
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 2, 2024
67d9fda
Merge branch 'main' into crm-manager
joeauyeung May 3, 2024
8401142
Merge branch 'main' into crm-manager
joeauyeung May 3, 2024
5d4ea0f
Add back omni install prop
joeauyeung May 3, 2024
cacb45a
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 3, 2024
25a0a15
Clean up
joeauyeung May 3, 2024
955cde0
Refactor `writeAppDataToEventType`
joeauyeung May 3, 2024
7e69d2c
Use eventType repository in writeAppDataToEventType
joeauyeung May 5, 2024
18708a6
Clean up old comments
joeauyeung May 5, 2024
c704cc5
Add error logging
joeauyeung May 6, 2024
bf1b0ac
createCRMEvents pass event uid as created event uid
joeauyeung May 6, 2024
04f8ddb
Use `getUid`
joeauyeung May 6, 2024
1a64ce4
Clean up props in create crm event
joeauyeung May 6, 2024
e020172
Small changes to `crmManager`
joeauyeung May 6, 2024
f97a0a4
Merge branch 'main' into crm-manager
joeauyeung May 6, 2024
19fd508
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 6, 2024
e1df6d5
Fix zoho CRM
joeauyeung May 6, 2024
a13442a
refactor crmManager
joeauyeung May 6, 2024
a6c140c
Undo vite config change
joeauyeung May 7, 2024
828de05
Merge branch 'main' into crm-manager
joeauyeung May 7, 2024
168b270
Fix teamId query
joeauyeung May 7, 2024
f3c8984
Fix bigin error
joeauyeung May 7, 2024
7a3d2af
Remove need for `writeAppDataToEventType`
joeauyeung May 7, 2024
4e34a22
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 7, 2024
4f46a9a
Add `getAllCredentials` test
joeauyeung May 7, 2024
dff807d
Add crmManager tests
joeauyeung May 8, 2024
2bc2561
Merge branch 'main' into crm-manager
joeauyeung May 8, 2024
00b25a5
Type fixes
joeauyeung May 8, 2024
71416b5
Merge branch 'main' into crm-manager
joeauyeung May 8, 2024
a12d178
Merge branch 'main' into crm-manager
joeauyeung May 8, 2024
30474c1
Fix type errors
joeauyeung May 8, 2024
387f3f3
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 8, 2024
35b7901
Fix getAllCredentials test
joeauyeung May 8, 2024
7ce7b07
Fix tests
joeauyeung May 8, 2024
bc64eb4
Skip CRM manager tests for now
joeauyeung May 8, 2024
443a484
Merge branch 'crm-manager' of https://github.com/calcom/cal.com into …
joeauyeung May 8, 2024
d1f2ea5
Merge branch 'main' into crm-manager
joeauyeung May 9, 2024
c585df0
Merge branch 'main' into crm-manager
joeauyeung May 9, 2024
1a9fd18
Merge branch 'main' into crm-manager
joeauyeung May 9, 2024
90898f9
Merge branch 'main' into crm-manager
joeauyeung May 13, 2024
9ce3b70
feat: Skip RR Assignment if Contact Exists In Salesforce (#14556)
joeauyeung May 21, 2024
c51b649
Merge branch 'main' into crm-manager
zomars May 21, 2024
8f3b733
Update yarn.lock
zomars May 21, 2024
080a5ea
@zomars feedback - use new URL for state params
sean-brydon May 21, 2024
eb44004
fix: update hook to not produce enabled === undefined
sean-brydon May 21, 2024
f532dff
fix: update app card interfaces to use the new enabled from useIsAppE…
sean-brydon May 21, 2024
62b3332
fix: feedback for crm RR skip (#15160)
CarinaWolli May 27, 2024
047c0fa
Merge branch 'main' into crm-manager
May 28, 2024
ab529e4
fix type error
May 28, 2024
b4ac974
Merge branch 'main' into crm-manager
SomayChauhan May 29, 2024
6890dde
fix: remove app metadata from all eventTypes on deleting the app
SomayChauhan May 30, 2024
74cd3fb
Merge branch 'main' into crm-manager
SomayChauhan May 30, 2024
a0e654f
fix: update hook to not produce enabled === undefined (default to false)
SomayChauhan May 30, 2024
d131b78
Merge branch 'main' into crm-manager
sean-brydon May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/web/public/static/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,8 @@
"disconnect_account_hint": "Disconnecting your connected account will change the way you log in. You will only be able to login to your account using email + password",
"cookie_consent_checkbox": "I consent to our privacy policy and cookie usage",
"make_a_call": "Make a Call",
"skip_rr_assignment_label": "Skip round robin assignment if contact exists in Salesforce",
"skip_rr_description": "URL must contain the contacts email as a parameter ex. ?email=contactEmail",
"select_account_header": "Select Account",
"select_account_description": "Install {{appName}} on your personal account or on a team account.",
"select_event_types_header": "Select Event Types",
Expand Down
285 changes: 285 additions & 0 deletions apps/web/test/lib/getSchedule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
getScenarioData,
Timezones,
TestData,
createCredentials,
mockCrmApp,
} from "../utils/bookingScenario/bookingScenario";

import { describe, vi, test } from "vitest";
Expand Down Expand Up @@ -86,6 +88,289 @@ describe("getSchedule", () => {
});
});

describe("Round robin lead skip - CRM", async () => {
test("correctly get slots for event with only round robin hosts", async () => {
vi.setSystemTime("2024-05-21T00:00:13Z");

const plus1DateString = "2024-05-22";
const plus2DateString = "2024-05-23";

const crmCredential = {
id: 1,
type: "salesforce_crm",
key: {
clientId: "test-client-id",
},
userId: 1,
teamId: null,
appId: "salesforce",
invalid: false,
user: { email: "test@test.com" },
};

await createCredentials([crmCredential]);

mockCrmApp("salesforce", {
getContacts: [
{
id: "contact-id",
email: "test@test.com",
ownerEmail: "example@example.com",
},
],
createContacts: [{ id: "contact-id", email: "test@test.com" }],
});

await createBookingScenario({
eventTypes: [
{
id: 1,
slotInterval: 60,
length: 60,
hosts: [
{
userId: 101,
isFixed: false,
},
{
userId: 102,
isFixed: false,
},
],
schedulingType: "ROUND_ROBIN",
metadata: {
apps: {
salesforce: {
enabled: true,
appCategories: ["crm"],
roundRobinLeadSkip: true,
},
},
},
},
],
users: [
{
...TestData.users.example,
email: "example@example.com",
id: 101,
schedules: [TestData.schedules.IstEveningShift],
},
{
...TestData.users.example,
email: "example1@example.com",
id: 102,
schedules: [TestData.schedules.IstMorningShift],
defaultScheduleId: 2,
},
],
bookings: [],
});

const scheduleWithLeadSkip = await getSchedule({
input: {
eventTypeId: 1,
eventTypeSlug: "",
startTime: `${plus1DateString}T18:30:00.000Z`,
endTime: `${plus2DateString}T18:29:59.999Z`,
timeZone: Timezones["+5:30"],
isTeamEvent: true,
bookerEmail: "test@test.com",
},
});

expect(scheduleWithLeadSkip.teamMember).toBe("example@example.com");

// only slots where example@example.com is available
expect(scheduleWithLeadSkip).toHaveTimeSlots(
[`11:30:00.000Z`, `12:30:00.000Z`, `13:30:00.000Z`, `14:30:00.000Z`, `15:30:00.000Z`],
{
dateString: plus2DateString,
}
);

const scheduleWithoutLeadSkip = await getSchedule({
input: {
eventTypeId: 1,
eventTypeSlug: "",
startTime: `${plus1DateString}T18:30:00.000Z`,
endTime: `${plus2DateString}T18:29:59.999Z`,
timeZone: Timezones["+5:30"],
isTeamEvent: true,
bookerEmail: "testtest@test.com",
},
});

expect(scheduleWithoutLeadSkip.teamMember).toBe(undefined);

// slots where either one of the rr hosts is available
expect(scheduleWithoutLeadSkip).toHaveTimeSlots(
[
`04:30:00.000Z`,
`05:30:00.000Z`,
`06:30:00.000Z`,
`07:30:00.000Z`,
`08:30:00.000Z`,
`09:30:00.000Z`,
`10:30:00.000Z`,
`11:30:00.000Z`,
`12:30:00.000Z`,
`13:30:00.000Z`,
`14:30:00.000Z`,
`15:30:00.000Z`,
],
{
dateString: plus2DateString,
}
);
});
test("correctly get slots for event with round robin and fixed hosts", async () => {
const { dateString: plus1DateString } = getDate({ dateIncrement: 1 });
const { dateString: plus2DateString } = getDate({ dateIncrement: 2 });

const crmCredential = {
id: 1,
type: "salesforce_crm",
key: {
clientId: "test-client-id",
},
userId: 1,
teamId: null,
appId: "salesforce",
invalid: false,
user: { email: "test@test.com" },
};

await createCredentials([crmCredential]);

mockCrmApp("salesforce", {
getContacts: [
{
id: "contact-id",
email: "test@test.com",
ownerEmail: "example@example.com",
},
{
id: "contact-id-1",
email: "test1@test.com",
ownerEmail: "example1@example.com",
},
],
createContacts: [{ id: "contact-id", email: "test@test.com" }],
});

await createBookingScenario({
eventTypes: [
{
id: 1,
slotInterval: 60,
length: 60,
hosts: [
{
userId: 101,
isFixed: true,
},
{
userId: 102,
isFixed: false,
},
{
userId: 103,
isFixed: false,
},
],
schedulingType: "ROUND_ROBIN",
metadata: {
apps: {
salesforce: {
enabled: true,
appCategories: ["crm"],
roundRobinLeadSkip: true,
},
},
},
},
],
users: [
{
...TestData.users.example,
email: "example@example.com",
id: 101,
schedules: [TestData.schedules.IstMidShift],
},
{
...TestData.users.example,
email: "example1@example.com",
id: 102,
schedules: [TestData.schedules.IstMorningShift],
defaultScheduleId: 2,
},
{
...TestData.users.example,
email: "example2@example.com",
id: 103,
schedules: [TestData.schedules.IstEveningShift],

defaultScheduleId: 3,
},
],
bookings: [],
});

const scheduleFixedHostLead = await getSchedule({
input: {
eventTypeId: 1,
eventTypeSlug: "",
startTime: `${plus1DateString}T18:30:00.000Z`,
endTime: `${plus2DateString}T18:29:59.999Z`,
timeZone: Timezones["+5:30"],
isTeamEvent: true,
bookerEmail: "test@test.com",
},
});

expect(scheduleFixedHostLead.teamMember).toBe("example@example.com");

// show normal slots, example@example + one RR host needs to be available
expect(scheduleFixedHostLead).toHaveTimeSlots(
[
`07:30:00.000Z`,
`08:30:00.000Z`,
`09:30:00.000Z`,
`10:30:00.000Z`,
`11:30:00.000Z`,
`12:30:00.000Z`,
`13:30:00.000Z`,
],
{
dateString: plus2DateString,
}
);

const scheduleRRHostLead = await getSchedule({
input: {
eventTypeId: 1,
eventTypeSlug: "",
startTime: `${plus1DateString}T18:30:00.000Z`,
endTime: `${plus2DateString}T18:29:59.999Z`,
timeZone: Timezones["+5:30"],
isTeamEvent: true,
bookerEmail: "test1@test.com",
},
});

expect(scheduleRRHostLead.teamMember).toBe("example1@example.com");

// slots where example@example (fixed host) + example1@example.com are available together
expect(scheduleRRHostLead).toHaveTimeSlots(
[`07:30:00.000Z`, `08:30:00.000Z`, `09:30:00.000Z`, `10:30:00.000Z`, `11:30:00.000Z`],
{
dateString: plus2DateString,
}
);
});
});

describe("User Event", () => {
test("correctly identifies unavailable slots from Cal Bookings in different status", async () => {
const { dateString: plus1DateString } = getDate({ dateIncrement: 1 });
Expand Down
Loading
Loading