The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Use record pickers for People Data Labs enrichment workflow inputs (#22596)
Raphaël Bosi1d3f6176b295
diff --git a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-companies.function.ts b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-companies.function.tsindex ce8ce28eb84..a47594508d5 100644--- a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-companies.function.ts+++ b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-companies.function.ts@@ -1,4 +1,4 @@-import { defineLogicFunction } from 'twenty-sdk/define';+import { defineLogicFunction, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';import { UPDATE_FIELDS_OPTION_VALUES } from 'src/constants/update-fields-option-values';import { PDL_LOGIC_FUNCTION_CONSTANTS } from 'src/constants/universal-identifiers';@@ -28,8 +28,9 @@ export default defineLogicFunction({type: 'object',properties: {records: {- type: 'array',- items: { type: 'object' },+ type: 'records',+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,label: 'Records',},updateFields: {diff --git a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-company.function.ts b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-company.function.tsindex cd5ebb6d985..d0de5b5419c 100644--- a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-company.function.ts+++ b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-company.function.ts@@ -1,4 +1,4 @@-import { defineLogicFunction } from 'twenty-sdk/define';+import { defineLogicFunction, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';import { UPDATE_FIELDS_OPTION_VALUES } from 'src/constants/update-fields-option-values';import { PDL_LOGIC_FUNCTION_CONSTANTS } from 'src/constants/universal-identifiers';@@ -22,7 +22,9 @@ export default defineLogicFunction({type: 'object',properties: {recordId: {- type: 'string',+ type: 'record',+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,label: 'Record',},updateFields: {diff --git a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-people.function.ts b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-people.function.tsindex 3028ac1e783..734c02b48d9 100644--- a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-people.function.ts+++ b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-people.function.ts@@ -1,4 +1,4 @@-import { defineLogicFunction } from 'twenty-sdk/define';+import { defineLogicFunction, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';import { UPDATE_FIELDS_OPTION_VALUES } from 'src/constants/update-fields-option-values';import { PDL_LOGIC_FUNCTION_CONSTANTS } from 'src/constants/universal-identifiers';@@ -28,8 +28,9 @@ export default defineLogicFunction({type: 'object',properties: {records: {- type: 'array',- items: { type: 'object' },+ type: 'records',+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person.universalIdentifier,label: 'Records',},updateFields: {diff --git a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-person.function.ts b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-person.function.tsindex f2c97c272aa..0b3d4170d39 100644--- a/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-person.function.ts+++ b/packages/twenty-apps/public/people-data-labs/src/logic-functions/enrich-person.function.ts@@ -1,4 +1,4 @@-import { defineLogicFunction } from 'twenty-sdk/define';+import { defineLogicFunction, STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from 'twenty-sdk/define';import { UPDATE_FIELDS_OPTION_VALUES } from 'src/constants/update-fields-option-values';import { PDL_LOGIC_FUNCTION_CONSTANTS } from 'src/constants/universal-identifiers';@@ -22,7 +22,9 @@ export default defineLogicFunction({type: 'object',properties: {recordId: {- type: 'string',+ type: 'record',+ objectUniversalIdentifier:+ STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.person.universalIdentifier,label: 'Record',},updateFields: {