@twentyhq/people-data-labs 1.0.0
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.
- package/.claude/settings.local.json +7 -0
- package/.nvmrc +1 -0
- package/.oxlintrc.json +58 -0
- package/.yarnrc.yml +1 -0
- package/README.md +16 -0
- package/package.json +37 -0
- package/public/gallery/cover.png +0 -0
- package/public/people-data-labs-icon.png +0 -0
- package/src/__tests__/global-setup.ts +87 -0
- package/src/__tests__/people-data-labs.integration-test.ts +25 -0
- package/src/application-config.ts +18 -0
- package/src/command-menu-items/enrich-companies.ts +14 -0
- package/src/command-menu-items/enrich-people.ts +14 -0
- package/src/constants/__tests__/select-option-constants.spec.ts +142 -0
- package/src/constants/billing-margin-multiplier.ts +1 -0
- package/src/constants/company-match-cost-dollars.ts +1 -0
- package/src/constants/company-type-options.ts +46 -0
- package/src/constants/enrichment-status-options.ts +19 -0
- package/src/constants/enrichment-workflow-seeds.ts +27 -0
- package/src/constants/funding-stage-options.ts +195 -0
- package/src/constants/industry-options.ts +1033 -0
- package/src/constants/inferred-salary-options.ts +81 -0
- package/src/constants/job-role-options.ts +172 -0
- package/src/constants/job-title-class-options.ts +39 -0
- package/src/constants/job-title-sub-role-options.ts +746 -0
- package/src/constants/location-continent-options.ts +53 -0
- package/src/constants/metro-options.ts +2692 -0
- package/src/constants/mic-exchange-options.ts +494 -0
- package/src/constants/micro-credits-per-dollar.ts +1 -0
- package/src/constants/pdl-base-url.ts +1 -0
- package/src/constants/person-match-cost-dollars.ts +1 -0
- package/src/constants/seniority-options.ts +74 -0
- package/src/constants/sex-options.ts +18 -0
- package/src/constants/size-options.ts +60 -0
- package/src/constants/universal-identifiers.ts +1516 -0
- package/src/constants/update-fields-option-values.ts +5 -0
- package/src/constants/update-fields-options.ts +7 -0
- package/src/fields/company/pdl-affiliated-profiles.field.ts +20 -0
- package/src/fields/company/pdl-alternative-domains.field.ts +20 -0
- package/src/fields/company/pdl-alternative-names.field.ts +20 -0
- package/src/fields/company/pdl-company-type.field.ts +28 -0
- package/src/fields/company/pdl-employee-count-by-country.field.ts +21 -0
- package/src/fields/company/pdl-employee-count.field.ts +19 -0
- package/src/fields/company/pdl-enrichment-status.field.ts +29 -0
- package/src/fields/company/pdl-facebook-url.field.ts +19 -0
- package/src/fields/company/pdl-founded-year.field.ts +19 -0
- package/src/fields/company/pdl-funding-stages.field.ts +28 -0
- package/src/fields/company/pdl-headline.field.ts +19 -0
- package/src/fields/company/pdl-id.field.ts +19 -0
- package/src/fields/company/pdl-industry-detail.field.ts +20 -0
- package/src/fields/company/pdl-industry.field.ts +28 -0
- package/src/fields/company/pdl-last-enriched-at.field.ts +20 -0
- package/src/fields/company/pdl-last-funding-date.field.ts +20 -0
- package/src/fields/company/pdl-latest-funding-stage.field.ts +29 -0
- package/src/fields/company/pdl-legal-name.field.ts +19 -0
- package/src/fields/company/pdl-linkedin-id.field.ts +19 -0
- package/src/fields/company/pdl-location-continent.field.ts +29 -0
- package/src/fields/company/pdl-location-metro.field.ts +28 -0
- package/src/fields/company/pdl-mic-exchange.field.ts +28 -0
- package/src/fields/company/pdl-naics.field.ts +19 -0
- package/src/fields/company/pdl-number-funding-rounds.field.ts +20 -0
- package/src/fields/company/pdl-raw-payload.field.ts +19 -0
- package/src/fields/company/pdl-sic.field.ts +19 -0
- package/src/fields/company/pdl-size-range.field.ts +28 -0
- package/src/fields/company/pdl-summary.field.ts +19 -0
- package/src/fields/company/pdl-tags.field.ts +19 -0
- package/src/fields/company/pdl-ticker.field.ts +19 -0
- package/src/fields/company/pdl-total-funding.field.ts +19 -0
- package/src/fields/company/pdl-twitter-url.field.ts +19 -0
- package/src/fields/person/pdl-birth-date.field.ts +19 -0
- package/src/fields/person/pdl-birth-year.field.ts +19 -0
- package/src/fields/person/pdl-certifications.field.ts +19 -0
- package/src/fields/person/pdl-education.field.ts +19 -0
- package/src/fields/person/pdl-enrichment-status.field.ts +29 -0
- package/src/fields/person/pdl-experience.field.ts +19 -0
- package/src/fields/person/pdl-facebook-url.field.ts +19 -0
- package/src/fields/person/pdl-github-url.field.ts +19 -0
- package/src/fields/person/pdl-headline.field.ts +19 -0
- package/src/fields/person/pdl-id.field.ts +19 -0
- package/src/fields/person/pdl-industry.field.ts +28 -0
- package/src/fields/person/pdl-inferred-salary.field.ts +28 -0
- package/src/fields/person/pdl-interests.field.ts +19 -0
- package/src/fields/person/pdl-job-onet-code.field.ts +19 -0
- package/src/fields/person/pdl-job-role.field.ts +28 -0
- package/src/fields/person/pdl-job-start-date.field.ts +19 -0
- package/src/fields/person/pdl-job-summary.field.ts +19 -0
- package/src/fields/person/pdl-job-title-class.field.ts +28 -0
- package/src/fields/person/pdl-job-title-sub-role.field.ts +29 -0
- package/src/fields/person/pdl-languages.field.ts +19 -0
- package/src/fields/person/pdl-last-enriched-at.field.ts +19 -0
- package/src/fields/person/pdl-likelihood.field.ts +19 -0
- package/src/fields/person/pdl-linkedin-connections.field.ts +20 -0
- package/src/fields/person/pdl-linkedin-username.field.ts +20 -0
- package/src/fields/person/pdl-location-metro.field.ts +28 -0
- package/src/fields/person/pdl-location.field.ts +19 -0
- package/src/fields/person/pdl-name-aliases.field.ts +19 -0
- package/src/fields/person/pdl-profiles.field.ts +19 -0
- package/src/fields/person/pdl-raw-payload.field.ts +19 -0
- package/src/fields/person/pdl-seniority.field.ts +28 -0
- package/src/fields/person/pdl-sex.field.ts +28 -0
- package/src/fields/person/pdl-skills.field.ts +19 -0
- package/src/fields/person/pdl-summary.field.ts +19 -0
- package/src/fields/person/pdl-twitter-url.field.ts +19 -0
- package/src/fields/person/pdl-years-experience.field.ts +21 -0
- package/src/front-components/enrich-companies-component-effect.tsx +21 -0
- package/src/front-components/enrich-people-component-effect.tsx +21 -0
- package/src/front-components/utils/call-enrich-logic-function.utils.ts +21 -0
- package/src/logic-functions/__mocks__/company-node.mock.ts +11 -0
- package/src/logic-functions/__mocks__/create-core-api-client-mock.ts +35 -0
- package/src/logic-functions/__mocks__/pdl-company-data.mock.ts +27 -0
- package/src/logic-functions/__mocks__/pdl-person-data.mock.ts +23 -0
- package/src/logic-functions/__mocks__/person-node.mock.ts +12 -0
- package/src/logic-functions/enrich-companies.function.ts +76 -0
- package/src/logic-functions/enrich-company.function.ts +73 -0
- package/src/logic-functions/enrich-people.function.ts +76 -0
- package/src/logic-functions/enrich-person.function.ts +73 -0
- package/src/logic-functions/errors/__tests__/pdl-config-error.spec.ts +16 -0
- package/src/logic-functions/errors/__tests__/pdl-invalid-input-error.spec.ts +16 -0
- package/src/logic-functions/errors/__tests__/pdl-operation-error.spec.ts +16 -0
- package/src/logic-functions/errors/__tests__/pdl-record-not-found-error.spec.ts +21 -0
- package/src/logic-functions/errors/pdl-config-error.ts +8 -0
- package/src/logic-functions/errors/pdl-error-code.ts +8 -0
- package/src/logic-functions/errors/pdl-error.ts +12 -0
- package/src/logic-functions/errors/pdl-invalid-input-error.ts +8 -0
- package/src/logic-functions/errors/pdl-operation-error.ts +8 -0
- package/src/logic-functions/errors/pdl-record-not-found-error.ts +22 -0
- package/src/logic-functions/handlers/__tests__/enrich-companies.spec.ts +159 -0
- package/src/logic-functions/handlers/__tests__/enrich-company.spec.ts +147 -0
- package/src/logic-functions/handlers/__tests__/enrich-people.spec.ts +313 -0
- package/src/logic-functions/handlers/__tests__/enrich-person.spec.ts +198 -0
- package/src/logic-functions/handlers/__tests__/post-install.spec.ts +153 -0
- package/src/logic-functions/handlers/company-enrichment-adapter.ts +42 -0
- package/src/logic-functions/handlers/company-single-enrichment-adapter.ts +15 -0
- package/src/logic-functions/handlers/enrich-companies.ts +15 -0
- package/src/logic-functions/handlers/enrich-company.ts +19 -0
- package/src/logic-functions/handlers/enrich-people.ts +15 -0
- package/src/logic-functions/handlers/enrich-person.ts +19 -0
- package/src/logic-functions/handlers/person-enrichment-adapter.ts +29 -0
- package/src/logic-functions/handlers/person-single-enrichment-adapter.ts +15 -0
- package/src/logic-functions/handlers/post-install.ts +69 -0
- package/src/logic-functions/post-install.function.ts +17 -0
- package/src/logic-functions/utils/__tests__/aggregate-bulk-enrich-result.spec.ts +52 -0
- package/src/logic-functions/utils/__tests__/build-address.spec.ts +30 -0
- package/src/logic-functions/utils/__tests__/build-allowed-values.spec.ts +16 -0
- package/src/logic-functions/utils/__tests__/build-bulk-records-trigger.spec.ts +26 -0
- package/src/logic-functions/utils/__tests__/build-company-create-data.spec.ts +37 -0
- package/src/logic-functions/utils/__tests__/build-company-match-keys.spec.ts +35 -0
- package/src/logic-functions/utils/__tests__/build-company-matched-data.spec.ts +56 -0
- package/src/logic-functions/utils/__tests__/build-currency-from-usd.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/build-emails.spec.ts +23 -0
- package/src/logic-functions/utils/__tests__/build-error-result.spec.ts +16 -0
- package/src/logic-functions/utils/__tests__/build-full-name.spec.ts +64 -0
- package/src/logic-functions/utils/__tests__/build-links.spec.ts +25 -0
- package/src/logic-functions/utils/__tests__/build-logic-function-step.spec.ts +33 -0
- package/src/logic-functions/utils/__tests__/build-matched-result.spec.ts +33 -0
- package/src/logic-functions/utils/__tests__/build-not-found-result.spec.ts +15 -0
- package/src/logic-functions/utils/__tests__/build-person-matched-data.spec.ts +117 -0
- package/src/logic-functions/utils/__tests__/build-person-name-param.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/build-phones.spec.ts +32 -0
- package/src/logic-functions/utils/__tests__/build-skipped-result.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/capitalize-name.spec.ts +26 -0
- package/src/logic-functions/utils/__tests__/capitalize-name.test.ts +17 -0
- package/src/logic-functions/utils/__tests__/charge-matched-enrichments.spec.ts +56 -0
- package/src/logic-functions/utils/__tests__/chunk.spec.ts +25 -0
- package/src/logic-functions/utils/__tests__/enrich-companies.spec.ts +26 -0
- package/src/logic-functions/utils/__tests__/enrich-company.spec.ts +54 -0
- package/src/logic-functions/utils/__tests__/enrich-people.spec.ts +32 -0
- package/src/logic-functions/utils/__tests__/enrich-person.spec.ts +62 -0
- package/src/logic-functions/utils/__tests__/extract-company-match-params.spec.ts +86 -0
- package/src/logic-functions/utils/__tests__/extract-pdl-error-message.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/extract-person-match-params.spec.ts +75 -0
- package/src/logic-functions/utils/__tests__/extract-record-ids.spec.ts +32 -0
- package/src/logic-functions/utils/__tests__/find-company-id-by-filter.spec.ts +42 -0
- package/src/logic-functions/utils/__tests__/find-company-id.spec.ts +118 -0
- package/src/logic-functions/utils/__tests__/find-existing-workflow-id.spec.ts +26 -0
- package/src/logic-functions/utils/__tests__/find-or-create-current-company.spec.ts +203 -0
- package/src/logic-functions/utils/__tests__/get-pdl-api-key.spec.ts +38 -0
- package/src/logic-functions/utils/__tests__/is-empty-address.spec.ts +20 -0
- package/src/logic-functions/utils/__tests__/is-empty-emails.spec.ts +14 -0
- package/src/logic-functions/utils/__tests__/is-empty-full-name.spec.ts +14 -0
- package/src/logic-functions/utils/__tests__/is-empty-links.spec.ts +14 -0
- package/src/logic-functions/utils/__tests__/is-empty-phones.spec.ts +14 -0
- package/src/logic-functions/utils/__tests__/is-empty-text.spec.ts +15 -0
- package/src/logic-functions/utils/__tests__/map-company.spec.ts +48 -0
- package/src/logic-functions/utils/__tests__/map-person.spec.ts +81 -0
- package/src/logic-functions/utils/__tests__/normalize-domain.spec.ts +19 -0
- package/src/logic-functions/utils/__tests__/normalize-linkedin-url.spec.ts +22 -0
- package/src/logic-functions/utils/__tests__/now-iso.spec.ts +9 -0
- package/src/logic-functions/utils/__tests__/parse-geo.spec.ts +21 -0
- package/src/logic-functions/utils/__tests__/parse-partial-date.spec.ts +29 -0
- package/src/logic-functions/utils/__tests__/parse-pdl-item.spec.ts +88 -0
- package/src/logic-functions/utils/__tests__/pick-multi-select.spec.ts +28 -0
- package/src/logic-functions/utils/__tests__/pick-select.spec.ts +38 -0
- package/src/logic-functions/utils/__tests__/pick-writable-standard.spec.ts +37 -0
- package/src/logic-functions/utils/__tests__/post-pdl-enrich.spec.ts +192 -0
- package/src/logic-functions/utils/__tests__/post-pdl-single-enrich.spec.ts +172 -0
- package/src/logic-functions/utils/__tests__/read-companies.spec.ts +39 -0
- package/src/logic-functions/utils/__tests__/read-people.spec.ts +40 -0
- package/src/logic-functions/utils/__tests__/resolve-logic-function-id.spec.ts +25 -0
- package/src/logic-functions/utils/__tests__/resolve-update-fields-mode.spec.ts +34 -0
- package/src/logic-functions/utils/__tests__/run-batch-enrichment.spec.ts +524 -0
- package/src/logic-functions/utils/__tests__/salary-transform.spec.ts +15 -0
- package/src/logic-functions/utils/__tests__/seed-enrichment-workflow.spec.ts +136 -0
- package/src/logic-functions/utils/__tests__/size-transform.spec.ts +18 -0
- package/src/logic-functions/utils/__tests__/to-json-array.spec.ts +16 -0
- package/src/logic-functions/utils/__tests__/to-json-object.spec.ts +18 -0
- package/src/logic-functions/utils/__tests__/to-number.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/to-string-array.spec.ts +17 -0
- package/src/logic-functions/utils/__tests__/to-text.spec.ts +20 -0
- package/src/logic-functions/utils/__tests__/update-companies-status.spec.ts +32 -0
- package/src/logic-functions/utils/__tests__/update-company-record.spec.ts +25 -0
- package/src/logic-functions/utils/__tests__/update-people-status.spec.ts +32 -0
- package/src/logic-functions/utils/__tests__/update-person-record.spec.ts +25 -0
- package/src/logic-functions/utils/aggregate-bulk-enrich-result.ts +21 -0
- package/src/logic-functions/utils/build-address.ts +40 -0
- package/src/logic-functions/utils/build-allowed-values.ts +5 -0
- package/src/logic-functions/utils/build-bulk-records-trigger.ts +25 -0
- package/src/logic-functions/utils/build-company-create-data.ts +35 -0
- package/src/logic-functions/utils/build-company-match-keys.ts +16 -0
- package/src/logic-functions/utils/build-company-matched-data.ts +56 -0
- package/src/logic-functions/utils/build-currency-from-usd.ts +16 -0
- package/src/logic-functions/utils/build-emails.ts +34 -0
- package/src/logic-functions/utils/build-error-result.ts +18 -0
- package/src/logic-functions/utils/build-full-name.ts +38 -0
- package/src/logic-functions/utils/build-links.ts +23 -0
- package/src/logic-functions/utils/build-logic-function-step.ts +30 -0
- package/src/logic-functions/utils/build-matched-result.ts +21 -0
- package/src/logic-functions/utils/build-not-found-result.ts +9 -0
- package/src/logic-functions/utils/build-person-matched-data.ts +78 -0
- package/src/logic-functions/utils/build-person-name-param.ts +19 -0
- package/src/logic-functions/utils/build-phones.ts +40 -0
- package/src/logic-functions/utils/build-skipped-result.ts +15 -0
- package/src/logic-functions/utils/capitalize-name.ts +8 -0
- package/src/logic-functions/utils/charge-matched-enrichments.ts +29 -0
- package/src/logic-functions/utils/chunk.ts +18 -0
- package/src/logic-functions/utils/enrich-chunk.ts +361 -0
- package/src/logic-functions/utils/enrich-companies.ts +21 -0
- package/src/logic-functions/utils/enrich-company.ts +23 -0
- package/src/logic-functions/utils/enrich-people.ts +22 -0
- package/src/logic-functions/utils/enrich-person.ts +24 -0
- package/src/logic-functions/utils/extract-company-match-params.ts +52 -0
- package/src/logic-functions/utils/extract-pdl-error-message.ts +47 -0
- package/src/logic-functions/utils/extract-person-match-params.ts +59 -0
- package/src/logic-functions/utils/extract-record-ids.ts +18 -0
- package/src/logic-functions/utils/find-company-id-by-filter.ts +28 -0
- package/src/logic-functions/utils/find-company-id.ts +59 -0
- package/src/logic-functions/utils/find-existing-workflow-id.ts +18 -0
- package/src/logic-functions/utils/find-or-create-current-company.ts +108 -0
- package/src/logic-functions/utils/get-pdl-api-key.ts +15 -0
- package/src/logic-functions/utils/internal-field-names.ts +6 -0
- package/src/logic-functions/utils/is-empty-address.ts +20 -0
- package/src/logic-functions/utils/is-empty-emails.ts +13 -0
- package/src/logic-functions/utils/is-empty-full-name.ts +13 -0
- package/src/logic-functions/utils/is-empty-links.ts +13 -0
- package/src/logic-functions/utils/is-empty-phones.ts +13 -0
- package/src/logic-functions/utils/is-empty-text.ts +4 -0
- package/src/logic-functions/utils/map-company.ts +115 -0
- package/src/logic-functions/utils/map-person.ts +136 -0
- package/src/logic-functions/utils/normalize-domain.ts +22 -0
- package/src/logic-functions/utils/normalize-linkedin-url.ts +23 -0
- package/src/logic-functions/utils/now-iso.ts +1 -0
- package/src/logic-functions/utils/parse-geo.ts +33 -0
- package/src/logic-functions/utils/parse-partial-date.ts +33 -0
- package/src/logic-functions/utils/parse-pdl-item.ts +82 -0
- package/src/logic-functions/utils/pick-multi-select.ts +32 -0
- package/src/logic-functions/utils/pick-select.ts +30 -0
- package/src/logic-functions/utils/pick-writable-standard.ts +27 -0
- package/src/logic-functions/utils/post-pdl-enrich.ts +89 -0
- package/src/logic-functions/utils/post-pdl-single-enrich.ts +59 -0
- package/src/logic-functions/utils/read-companies.ts +53 -0
- package/src/logic-functions/utils/read-people.ts +48 -0
- package/src/logic-functions/utils/resolve-logic-function-id.ts +11 -0
- package/src/logic-functions/utils/resolve-min-likelihood.ts +12 -0
- package/src/logic-functions/utils/resolve-update-fields-mode.ts +16 -0
- package/src/logic-functions/utils/run-batch-enrichment.ts +50 -0
- package/src/logic-functions/utils/run-single-enrichment.ts +44 -0
- package/src/logic-functions/utils/salary-transform.ts +18 -0
- package/src/logic-functions/utils/seed-enrichment-workflow.ts +131 -0
- package/src/logic-functions/utils/size-transform.ts +15 -0
- package/src/logic-functions/utils/to-bulk-enrich-input.ts +14 -0
- package/src/logic-functions/utils/to-json-array.ts +4 -0
- package/src/logic-functions/utils/to-json-object.ts +22 -0
- package/src/logic-functions/utils/to-number.ts +4 -0
- package/src/logic-functions/utils/to-string-array.ts +28 -0
- package/src/logic-functions/utils/to-text.ts +11 -0
- package/src/logic-functions/utils/update-companies-status.ts +18 -0
- package/src/logic-functions/utils/update-company-record.ts +15 -0
- package/src/logic-functions/utils/update-people-status.ts +18 -0
- package/src/logic-functions/utils/update-person-record.ts +15 -0
- package/src/roles/default-function.role.ts +41 -0
- package/src/types/address-parts.ts +9 -0
- package/src/types/address-value.ts +10 -0
- package/src/types/batch-enrichment-adapter.ts +43 -0
- package/src/types/bulk-enrich-input.ts +9 -0
- package/src/types/bulk-enrich-result.ts +11 -0
- package/src/types/company-id-by-match-key-cache.ts +1 -0
- package/src/types/company-match-keys.ts +6 -0
- package/src/types/company-node.ts +16 -0
- package/src/types/currency-value.ts +4 -0
- package/src/types/emails-value.ts +4 -0
- package/src/types/enrich-result.ts +11 -0
- package/src/types/enrich-status.ts +1 -0
- package/src/types/enrichment-workflow-seed.ts +9 -0
- package/src/types/full-name-value.ts +4 -0
- package/src/types/links-value.ts +5 -0
- package/src/types/mapped-record.ts +4 -0
- package/src/types/pdl-company-data.ts +50 -0
- package/src/types/pdl-company-enrich-params.ts +7 -0
- package/src/types/pdl-enrich-result.ts +4 -0
- package/src/types/pdl-person-data.ts +65 -0
- package/src/types/pdl-person-enrich-params.ts +8 -0
- package/src/types/person-node.ts +11 -0
- package/src/types/phones-value.ts +12 -0
- package/src/types/post-install-result.ts +5 -0
- package/src/types/seed-enrichment-workflow-result.ts +7 -0
- package/src/types/select-option-meta.ts +9 -0
- package/src/types/single-enrich-input.ts +7 -0
- package/src/types/tag-color.ts +26 -0
- package/src/types/update-fields-option.ts +4 -0
- package/src/types/workflow-bulk-records-trigger.ts +15 -0
- package/src/types/workflow-logic-function-step.ts +18 -0
- package/src/utils/__tests__/build-select-options.spec.ts +20 -0
- package/src/utils/__tests__/is-defined.spec.ts +16 -0
- package/src/utils/__tests__/is-unique-violation-error.spec.ts +71 -0
- package/src/utils/__tests__/normalize-enum-value.spec.ts +28 -0
- package/src/utils/__tests__/prune-undefined.spec.ts +22 -0
- package/src/utils/__tests__/strip-separators.spec.ts +13 -0
- package/src/utils/__tests__/to-error-message.spec.ts +13 -0
- package/src/utils/build-select-options.ts +16 -0
- package/src/utils/is-defined.ts +5 -0
- package/src/utils/is-unique-violation-error.ts +74 -0
- package/src/utils/normalize-enum-value.ts +15 -0
- package/src/utils/prune-undefined.ts +15 -0
- package/src/utils/strip-separators.ts +4 -0
- package/src/utils/to-error-message.ts +2 -0
- package/src/views/enriched-companies.view.ts +69 -0
- package/src/views/enriched-people.view.ts +74 -0
- package/tsconfig.json +42 -0
- package/tsconfig.spec.json +9 -0
- package/vitest.config.ts +31 -0
- package/vitest.unit.config.ts +14 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlAffiliatedProfiles,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.ARRAY,
|
|
15
|
+
name: 'pdlAffiliatedProfiles',
|
|
16
|
+
label: 'Profiles',
|
|
17
|
+
description: 'Web and social profile URLs returned by People Data Labs.',
|
|
18
|
+
icon: 'IconWorldWww',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlAlternativeDomains,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.ARRAY,
|
|
15
|
+
name: 'pdlAlternativeDomains',
|
|
16
|
+
label: 'Alternative Domains',
|
|
17
|
+
description: 'Alternative domains returned by People Data Labs.',
|
|
18
|
+
icon: 'IconWorldWww',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlAlternativeNames,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.ARRAY,
|
|
15
|
+
name: 'pdlAlternativeNames',
|
|
16
|
+
label: 'Alternative Names',
|
|
17
|
+
description: 'Alternative names returned by People Data Labs.',
|
|
18
|
+
icon: 'IconSignature',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { COMPANY_TYPE_OPTIONS } from 'src/constants/company-type-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlCompanyType,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.SELECT,
|
|
19
|
+
name: 'pdlCompanyType',
|
|
20
|
+
label: 'Company Type',
|
|
21
|
+
description: 'People Data Labs canonical company type.',
|
|
22
|
+
icon: 'IconBuildingCommunity',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: COMPANY_TYPE_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyType,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlEmployeeCountByCountry,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.RAW_JSON,
|
|
15
|
+
name: 'pdlEmployeeCountByCountry',
|
|
16
|
+
label: 'Employee Count by Country',
|
|
17
|
+
description:
|
|
18
|
+
'Employee count broken down by country returned by People Data Labs.',
|
|
19
|
+
icon: 'IconMapPins',
|
|
20
|
+
isNullable: true,
|
|
21
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlEmployeeCount,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.NUMBER,
|
|
14
|
+
name: 'pdlEmployeeCount',
|
|
15
|
+
label: 'Employees',
|
|
16
|
+
description: 'Exact employee count returned by People Data Labs.',
|
|
17
|
+
icon: 'IconUsersGroup',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { ENRICHMENT_STATUS_OPTIONS } from 'src/constants/enrichment-status-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier:
|
|
16
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlEnrichmentStatus,
|
|
17
|
+
objectUniversalIdentifier:
|
|
18
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
19
|
+
type: FieldType.SELECT,
|
|
20
|
+
name: 'pdlEnrichmentStatus',
|
|
21
|
+
label: 'Enrichment Status',
|
|
22
|
+
description: 'Outcome of the latest People Data Labs enrichment attempt.',
|
|
23
|
+
icon: 'IconProgressCheck',
|
|
24
|
+
isNullable: true,
|
|
25
|
+
options: buildSelectOptions({
|
|
26
|
+
meta: ENRICHMENT_STATUS_OPTIONS,
|
|
27
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyEnrichmentStatus,
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlFacebookUrl,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.LINKS,
|
|
14
|
+
name: 'pdlFacebookUrl',
|
|
15
|
+
label: 'Facebook',
|
|
16
|
+
description: 'Facebook page returned by People Data Labs.',
|
|
17
|
+
icon: 'IconBrandFacebook',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlFoundedYear,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.NUMBER,
|
|
14
|
+
name: 'pdlFoundedYear',
|
|
15
|
+
label: 'Founded Year',
|
|
16
|
+
description: 'Founding year returned by People Data Labs.',
|
|
17
|
+
icon: 'IconFlag',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { FUNDING_STAGE_OPTIONS } from 'src/constants/funding-stage-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlFundingStages,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.MULTI_SELECT,
|
|
19
|
+
name: 'pdlFundingStages',
|
|
20
|
+
label: 'Funding Stages',
|
|
21
|
+
description: 'People Data Labs canonical funding stages.',
|
|
22
|
+
icon: 'IconChartArrowsVertical',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: FUNDING_STAGE_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyFundingStages,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlHeadline,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.TEXT,
|
|
14
|
+
name: 'pdlHeadline',
|
|
15
|
+
label: 'Headline',
|
|
16
|
+
description: 'People Data Labs company headline or summary.',
|
|
17
|
+
icon: 'IconQuote',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlId,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.TEXT,
|
|
14
|
+
name: 'pdlId',
|
|
15
|
+
label: 'PDL ID',
|
|
16
|
+
description: 'People Data Labs company identifier.',
|
|
17
|
+
icon: 'IconId',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlIndustryDetail,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.TEXT,
|
|
15
|
+
name: 'pdlIndustryDetail',
|
|
16
|
+
label: 'Industry (detailed)',
|
|
17
|
+
description: 'Detailed People Data Labs industry v2 value.',
|
|
18
|
+
icon: 'IconBuildingFactory',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { INDUSTRY_OPTIONS } from 'src/constants/industry-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlIndustry,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.SELECT,
|
|
19
|
+
name: 'pdlIndustry',
|
|
20
|
+
label: 'Industry',
|
|
21
|
+
description: 'People Data Labs canonical industry.',
|
|
22
|
+
icon: 'IconBuildingFactory2',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: INDUSTRY_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyIndustry,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLastEnrichedAt,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.DATE_TIME,
|
|
15
|
+
name: 'pdlLastEnrichedAt',
|
|
16
|
+
label: 'Last Enriched At',
|
|
17
|
+
description: 'Timestamp of the latest People Data Labs enrichment.',
|
|
18
|
+
icon: 'IconClock',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLastFundingDate,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.DATE,
|
|
15
|
+
name: 'pdlLastFundingDate',
|
|
16
|
+
label: 'Last Funding Date',
|
|
17
|
+
description: 'Date of the latest funding round returned by People Data Labs.',
|
|
18
|
+
icon: 'IconCalendar',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { FUNDING_STAGE_OPTIONS } from 'src/constants/funding-stage-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier:
|
|
16
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLatestFundingStage,
|
|
17
|
+
objectUniversalIdentifier:
|
|
18
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
19
|
+
type: FieldType.SELECT,
|
|
20
|
+
name: 'pdlLatestFundingStage',
|
|
21
|
+
label: 'Latest Funding Stage',
|
|
22
|
+
description: 'People Data Labs canonical latest funding stage.',
|
|
23
|
+
icon: 'IconTrendingUp',
|
|
24
|
+
isNullable: true,
|
|
25
|
+
options: buildSelectOptions({
|
|
26
|
+
meta: FUNDING_STAGE_OPTIONS,
|
|
27
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyLatestFundingStage,
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLegalName,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.TEXT,
|
|
14
|
+
name: 'pdlLegalName',
|
|
15
|
+
label: 'Legal Name',
|
|
16
|
+
description: 'Registered legal entity name returned by People Data Labs.',
|
|
17
|
+
icon: 'IconBuildingBank',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLinkedinId,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.TEXT,
|
|
14
|
+
name: 'pdlLinkedinId',
|
|
15
|
+
label: 'LinkedIn ID',
|
|
16
|
+
description: 'LinkedIn identifier returned by People Data Labs.',
|
|
17
|
+
icon: 'IconBrandLinkedin',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { LOCATION_CONTINENT_OPTIONS } from 'src/constants/location-continent-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier:
|
|
16
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLocationContinent,
|
|
17
|
+
objectUniversalIdentifier:
|
|
18
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
19
|
+
type: FieldType.SELECT,
|
|
20
|
+
name: 'pdlLocationContinent',
|
|
21
|
+
label: 'Continent',
|
|
22
|
+
description: 'People Data Labs canonical continent.',
|
|
23
|
+
icon: 'IconGlobe',
|
|
24
|
+
isNullable: true,
|
|
25
|
+
options: buildSelectOptions({
|
|
26
|
+
meta: LOCATION_CONTINENT_OPTIONS,
|
|
27
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyLocationContinent,
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { METRO_OPTIONS } from 'src/constants/metro-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlLocationMetro,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.SELECT,
|
|
19
|
+
name: 'pdlLocationMetro',
|
|
20
|
+
label: 'Metro Area',
|
|
21
|
+
description: 'People Data Labs canonical metro area.',
|
|
22
|
+
icon: 'IconMap2',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: METRO_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyLocationMetro,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { MIC_EXCHANGE_OPTIONS } from 'src/constants/mic-exchange-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlMicExchange,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.SELECT,
|
|
19
|
+
name: 'pdlMicExchange',
|
|
20
|
+
label: 'Stock Exchange (MIC)',
|
|
21
|
+
description: 'People Data Labs canonical market identifier code.',
|
|
22
|
+
icon: 'IconBuildingBank',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: MIC_EXCHANGE_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.companyMicExchange,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlNaics,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.RAW_JSON,
|
|
14
|
+
name: 'pdlNaics',
|
|
15
|
+
label: 'NAICS Codes',
|
|
16
|
+
description: 'NAICS classification codes returned by People Data Labs.',
|
|
17
|
+
icon: 'IconNumbers',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier:
|
|
11
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlNumberFundingRounds,
|
|
12
|
+
objectUniversalIdentifier:
|
|
13
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
14
|
+
type: FieldType.NUMBER,
|
|
15
|
+
name: 'pdlNumberFundingRounds',
|
|
16
|
+
label: 'Number of Funding Rounds',
|
|
17
|
+
description: 'Number of funding rounds returned by People Data Labs.',
|
|
18
|
+
icon: 'IconCoins',
|
|
19
|
+
isNullable: true,
|
|
20
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlRawPayload,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.RAW_JSON,
|
|
14
|
+
name: 'pdlRawPayload',
|
|
15
|
+
label: 'PDL Raw Payload',
|
|
16
|
+
description: 'Full People Data Labs company enrichment response.',
|
|
17
|
+
icon: 'IconBraces',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { PDL_FIELD_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';
|
|
8
|
+
|
|
9
|
+
export default defineField({
|
|
10
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlSic,
|
|
11
|
+
objectUniversalIdentifier:
|
|
12
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
13
|
+
type: FieldType.RAW_JSON,
|
|
14
|
+
name: 'pdlSic',
|
|
15
|
+
label: 'SIC Codes',
|
|
16
|
+
description: 'SIC classification codes returned by People Data Labs.',
|
|
17
|
+
icon: 'IconHash',
|
|
18
|
+
isNullable: true,
|
|
19
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineField,
|
|
3
|
+
FieldType,
|
|
4
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
5
|
+
} from 'twenty-sdk/define';
|
|
6
|
+
|
|
7
|
+
import { SIZE_OPTIONS } from 'src/constants/size-options';
|
|
8
|
+
import {
|
|
9
|
+
PDL_FIELD_UNIVERSAL_IDENTIFIERS,
|
|
10
|
+
PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS,
|
|
11
|
+
} from 'src/constants/universal-identifiers';
|
|
12
|
+
import { buildSelectOptions } from 'src/utils/build-select-options';
|
|
13
|
+
|
|
14
|
+
export default defineField({
|
|
15
|
+
universalIdentifier: PDL_FIELD_UNIVERSAL_IDENTIFIERS.company.pdlSizeRange,
|
|
16
|
+
objectUniversalIdentifier:
|
|
17
|
+
STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS.company.universalIdentifier,
|
|
18
|
+
type: FieldType.SELECT,
|
|
19
|
+
name: 'pdlSizeRange',
|
|
20
|
+
label: 'Employee Range',
|
|
21
|
+
description: 'People Data Labs canonical self-reported employee range.',
|
|
22
|
+
icon: 'IconChartBar',
|
|
23
|
+
isNullable: true,
|
|
24
|
+
options: buildSelectOptions({
|
|
25
|
+
meta: SIZE_OPTIONS,
|
|
26
|
+
ids: PDL_SELECT_OPTION_UNIVERSAL_IDENTIFIERS.sizeRange,
|
|
27
|
+
}),
|
|
28
|
+
});
|