@twentyhq/people-data-labs 1.0.2 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import { defineFrontComponent } from 'twenty-sdk/define';
2
+ import { Command, useSelectedRecordIds } from 'twenty-sdk/front-component';
3
+ import {
4
+ PDL_FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS,
5
+ PDL_LOGIC_FUNCTION_CONSTANTS
6
+ } from 'src/constants/universal-identifiers';
7
+ import { execute } from 'src/front-components/utils/call-enrich-logic-function.utils';
8
+
9
+
10
+ const Enrich = () => {
11
+ const recordIds = useSelectedRecordIds();
12
+ return <Command execute={() => execute({ path: PDL_LOGIC_FUNCTION_CONSTANTS.enrichCompanies.path, recordIds })} />;
13
+ };
14
+
15
+ export default defineFrontComponent({
16
+ universalIdentifier: PDL_FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS.enrichCompanies,
17
+ name: 'enrich-companies-effect',
18
+ description: 'Enrich companies effect',
19
+ component: Enrich,
20
+ isHeadless: true
21
+ });