Skip to content

Commit 402ce6d

Browse files
committed
🏷️ add salesforce specific values to IntegrationEntityType
1 parent 29b8408 commit 402ce6d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/models/contact.model.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { IntegrationEntity } from "./integration-entity.model";
1+
import {
2+
IntegrationEntity,
3+
IntegrationEntityType,
4+
} from "./integration-entity.model";
25

36
export enum PhoneNumberLabel {
47
WORK = "WORK",
@@ -39,6 +42,7 @@ export type ContactResult = {
3942
contactUrl: string | null;
4043
avatarUrl: string | null;
4144
readonly?: boolean;
45+
type?: IntegrationEntityType;
4246
relatesTo?: IntegrationEntity[];
4347
};
4448

src/models/integration-entity.model.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ export type LabeledIntegrationEntity = IntegrationEntity & {
99
};
1010

1111
export enum IntegrationEntityType {
12+
CONTACTS = "contacts",
13+
// hubspot specific
1214
DEALS = "deals",
1315
COMPANIES = "companies",
16+
// salesforces specific
17+
LEADS = "leads",
18+
ACCOUNTS = "accounts",
19+
OPPORTUNITIES = "opportunities",
1420
}

0 commit comments

Comments
 (0)