-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds event hooks that a company can extend when a link is created or unlinked. We are using this with our custom Kusto/Azure Data Explorer integration where we are more actively ingesting changes to link data.
- Loading branch information
1 parent
cc2b07f
commit 36cd598
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// Copyright (c) Microsoft. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
import type { ICompanySpecificEventsLinking } from './linking'; | ||
|
||
export * from './linking'; | ||
|
||
export interface ICompanySpecificEvents { | ||
linking?: ICompanySpecificEventsLinking; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// Copyright (c) Microsoft. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
import type { ICorporateLink, IProviders } from '../..'; | ||
|
||
export interface ICompanySpecificEventsLinking { | ||
onLink?: (providers: IProviders, link: ICorporateLink) => Promise<void>; | ||
onUnlink?: (providers: IProviders, corporateId: string) => Promise<void>; | ||
} |