Wording change "BLS cal"
This commit is contained in:
@@ -58,7 +58,7 @@ export async function getCustomActivityTypeInstanceData(
|
||||
customFields: CloseComFieldOptions,
|
||||
closeCom: CloseCom
|
||||
): Promise<CloseComCustomActivityCreate> {
|
||||
// Get Cal.com generic Lead
|
||||
// Get BLS cal generic Lead
|
||||
const leadFromCalComId = await getCloseComLeadId(closeCom);
|
||||
// Get Contacts ids
|
||||
const contactsIds = await getCloseComContactIds(event.attendees, closeCom, leadFromCalComId);
|
||||
@@ -157,7 +157,7 @@ export async function getCloseComCustomActivityTypeFieldsIds(
|
||||
const customActivities = await closeCom.customActivity.type.get();
|
||||
const calComCustomActivity = customActivities.data.filter((act) => act.name === `${APP_NAME} Activity`);
|
||||
if (calComCustomActivity.length > 0) {
|
||||
// Cal.com Custom Activity type exist
|
||||
// BLS cal Custom Activity type exist
|
||||
// Get Custom Activity Type fields ids
|
||||
const fields = await getCustomFieldsIds("activity", customFields, closeCom, calComCustomActivity[0].id);
|
||||
return {
|
||||
@@ -165,7 +165,7 @@ export async function getCloseComCustomActivityTypeFieldsIds(
|
||||
fields,
|
||||
};
|
||||
} else {
|
||||
// Cal.com Custom Activity type doesn't exist
|
||||
// BLS cal Custom Activity type doesn't exist
|
||||
// Create Custom Activity Type
|
||||
const { id: activityType } = await closeCom.customActivity.type.create({
|
||||
name: `${APP_NAME} Activity`,
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { ConsoleUserInfoType, WebUserInfoType } from "@calcom/lib/sync/ISyn
|
||||
import type ISyncService from "@calcom/lib/sync/ISyncService";
|
||||
import { MembershipRole } from "@calcom/prisma/enums";
|
||||
|
||||
// Cal.com Custom Contact Fields
|
||||
// BLS cal Custom Contact Fields
|
||||
const calComCustomContactFields: CloseComFieldOptions = [
|
||||
// Field name, field type, required?, multiple values?
|
||||
["Username", "text", false, false],
|
||||
@@ -34,7 +34,7 @@ export default class CloseComService extends SyncServiceCore implements ISyncSer
|
||||
role?: string
|
||||
) => {
|
||||
this.log.debug("sync:closecom:user", { user });
|
||||
// Get Cal.com Lead
|
||||
// Get BLS cal Lead
|
||||
const leadId = await getCloseComLeadId(this.service, leadInfo);
|
||||
this.log.debug("sync:closecom:user:leadId", { leadId });
|
||||
// Get Contacts ids: already creates contacts
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { ConsoleUserInfoType, WebUserInfoType } from "../ISyncService";
|
||||
import type ISyncService from "../ISyncService";
|
||||
import SyncServiceCore from "../ISyncService";
|
||||
|
||||
// Cal.com Custom Contact Fields
|
||||
// BLS cal Custom Contact Fields
|
||||
const calComCustomContactFields: SendgridFieldOptions = [
|
||||
// Field name, field type
|
||||
["username", "Text"],
|
||||
|
||||
@@ -11,7 +11,7 @@ import { buildCalendarEvent, buildVideoCallData } from "./builder";
|
||||
|
||||
vi.mock("@calcom/lib/constants", () => ({
|
||||
WEBAPP_URL: "http://localhost:3000",
|
||||
APP_NAME: "Cal.com",
|
||||
APP_NAME: "BLS cal",
|
||||
}));
|
||||
|
||||
vi.mock("short-uuid", () => ({
|
||||
@@ -30,7 +30,7 @@ describe("getLocation", () => {
|
||||
expect(getLocation(calEvent)).toEqual(getVideoCallUrlFromCalEvent(calEvent));
|
||||
});
|
||||
it("should return an integration provider name from event", () => {
|
||||
const provideName = "Cal.com";
|
||||
const provideName = "BLS cal";
|
||||
const calEvent = buildCalendarEvent({
|
||||
videoCallData: undefined,
|
||||
location: `integrations:${provideName}`,
|
||||
|
||||
Reference in New Issue
Block a user