attio-mcp 0.1.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/CHANGELOG.md +62 -0
- package/LICENSE +236 -0
- package/README.md +105 -0
- package/dist/api/attio-client.d.ts +25 -0
- package/dist/api/attio-client.d.ts.map +1 -0
- package/dist/api/attio-client.js +64 -0
- package/dist/api/attio-client.js.map +1 -0
- package/dist/api/attribute-types.d.ts +119 -0
- package/dist/api/attribute-types.d.ts.map +1 -0
- package/dist/api/attribute-types.js +320 -0
- package/dist/api/attribute-types.js.map +1 -0
- package/dist/api/client.d.ts +3 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +61 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/operations/batch.d.ts +55 -0
- package/dist/api/operations/batch.d.ts.map +1 -0
- package/dist/api/operations/batch.js +176 -0
- package/dist/api/operations/batch.js.map +1 -0
- package/dist/api/operations/crud.d.ts +61 -0
- package/dist/api/operations/crud.d.ts.map +1 -0
- package/dist/api/operations/crud.js +192 -0
- package/dist/api/operations/crud.js.map +1 -0
- package/dist/api/operations/index.d.ts +14 -0
- package/dist/api/operations/index.d.ts.map +1 -0
- package/dist/api/operations/index.js +18 -0
- package/dist/api/operations/index.js.map +1 -0
- package/dist/api/operations/lists.d.ts +66 -0
- package/dist/api/operations/lists.d.ts.map +1 -0
- package/dist/api/operations/lists.js +300 -0
- package/dist/api/operations/lists.js.map +1 -0
- package/dist/api/operations/notes.d.ts +29 -0
- package/dist/api/operations/notes.d.ts.map +1 -0
- package/dist/api/operations/notes.js +63 -0
- package/dist/api/operations/notes.js.map +1 -0
- package/dist/api/operations/retry.d.ts +48 -0
- package/dist/api/operations/retry.d.ts.map +1 -0
- package/dist/api/operations/retry.js +98 -0
- package/dist/api/operations/retry.js.map +1 -0
- package/dist/api/operations/search.d.ts +37 -0
- package/dist/api/operations/search.d.ts.map +1 -0
- package/dist/api/operations/search.js +186 -0
- package/dist/api/operations/search.js.map +1 -0
- package/dist/api/operations/tasks.d.ts +20 -0
- package/dist/api/operations/tasks.d.ts.map +1 -0
- package/dist/api/operations/tasks.js +87 -0
- package/dist/api/operations/tasks.js.map +1 -0
- package/dist/api/operations/types.d.ts +61 -0
- package/dist/api/operations/types.d.ts.map +1 -0
- package/dist/api/operations/types.js +10 -0
- package/dist/api/operations/types.js.map +1 -0
- package/dist/cli/commands/attributes.d.ts +34 -0
- package/dist/cli/commands/attributes.d.ts.map +1 -0
- package/dist/cli/commands/attributes.js +171 -0
- package/dist/cli/commands/attributes.js.map +1 -0
- package/dist/cli/discover.d.ts +3 -0
- package/dist/cli/discover.d.ts.map +1 -0
- package/dist/cli/discover.js +72 -0
- package/dist/cli/discover.js.map +1 -0
- package/dist/errors/api-errors.d.ts +191 -0
- package/dist/errors/api-errors.d.ts.map +1 -0
- package/dist/errors/api-errors.js +305 -0
- package/dist/errors/api-errors.js.map +1 -0
- package/dist/errors/company-errors.d.ts +40 -0
- package/dist/errors/company-errors.d.ts.map +1 -0
- package/dist/errors/company-errors.js +62 -0
- package/dist/errors/company-errors.js.map +1 -0
- package/dist/errors/value-match-error.d.ts +15 -0
- package/dist/errors/value-match-error.d.ts.map +1 -0
- package/dist/errors/value-match-error.js +40 -0
- package/dist/errors/value-match-error.js.map +1 -0
- package/dist/handlers/error-interceptor.d.ts +6 -0
- package/dist/handlers/error-interceptor.d.ts.map +1 -0
- package/dist/handlers/error-interceptor.js +17 -0
- package/dist/handlers/error-interceptor.js.map +1 -0
- package/dist/handlers/rate-limited-handler.d.ts +17 -0
- package/dist/handlers/rate-limited-handler.d.ts.map +1 -0
- package/dist/handlers/rate-limited-handler.js +126 -0
- package/dist/handlers/rate-limited-handler.js.map +1 -0
- package/dist/handlers/resources.d.ts +11 -0
- package/dist/handlers/resources.d.ts.map +1 -0
- package/dist/handlers/resources.js +109 -0
- package/dist/handlers/resources.js.map +1 -0
- package/dist/handlers/tool-configs/companies/attributes.d.ts +85 -0
- package/dist/handlers/tool-configs/companies/attributes.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/attributes.js +203 -0
- package/dist/handlers/tool-configs/companies/attributes.js.map +1 -0
- package/dist/handlers/tool-configs/companies/batch.d.ts +145 -0
- package/dist/handlers/tool-configs/companies/batch.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/batch.js +249 -0
- package/dist/handlers/tool-configs/companies/batch.js.map +1 -0
- package/dist/handlers/tool-configs/companies/crud.d.ts +103 -0
- package/dist/handlers/tool-configs/companies/crud.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/crud.js +157 -0
- package/dist/handlers/tool-configs/companies/crud.js.map +1 -0
- package/dist/handlers/tool-configs/companies/definitions.d.ts +5 -0
- package/dist/handlers/tool-configs/companies/definitions.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/definitions.js +9 -0
- package/dist/handlers/tool-configs/companies/definitions.js.map +1 -0
- package/dist/handlers/tool-configs/companies/formatters.d.ts +42 -0
- package/dist/handlers/tool-configs/companies/formatters.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/formatters.js +324 -0
- package/dist/handlers/tool-configs/companies/formatters.js.map +1 -0
- package/dist/handlers/tool-configs/companies/index.d.ts +642 -0
- package/dist/handlers/tool-configs/companies/index.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/index.js +86 -0
- package/dist/handlers/tool-configs/companies/index.js.map +1 -0
- package/dist/handlers/tool-configs/companies/notes.d.ts +61 -0
- package/dist/handlers/tool-configs/companies/notes.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/notes.js +109 -0
- package/dist/handlers/tool-configs/companies/notes.js.map +1 -0
- package/dist/handlers/tool-configs/companies/relationships.d.ts +137 -0
- package/dist/handlers/tool-configs/companies/relationships.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/relationships.js +163 -0
- package/dist/handlers/tool-configs/companies/relationships.js.map +1 -0
- package/dist/handlers/tool-configs/companies/search.d.ts +101 -0
- package/dist/handlers/tool-configs/companies/search.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/search.js +163 -0
- package/dist/handlers/tool-configs/companies/search.js.map +1 -0
- package/dist/handlers/tool-configs/companies/types.d.ts +6 -0
- package/dist/handlers/tool-configs/companies/types.d.ts.map +1 -0
- package/dist/handlers/tool-configs/companies/types.js +2 -0
- package/dist/handlers/tool-configs/companies/types.js.map +1 -0
- package/dist/handlers/tool-configs/index.d.ts +12 -0
- package/dist/handlers/tool-configs/index.d.ts.map +1 -0
- package/dist/handlers/tool-configs/index.js +12 -0
- package/dist/handlers/tool-configs/index.js.map +1 -0
- package/dist/handlers/tool-configs/lists.d.ts +459 -0
- package/dist/handlers/tool-configs/lists.d.ts.map +1 -0
- package/dist/handlers/tool-configs/lists.js +597 -0
- package/dist/handlers/tool-configs/lists.js.map +1 -0
- package/dist/handlers/tool-configs/paginated-people.d.ts +197 -0
- package/dist/handlers/tool-configs/paginated-people.d.ts.map +1 -0
- package/dist/handlers/tool-configs/paginated-people.js +256 -0
- package/dist/handlers/tool-configs/paginated-people.js.map +1 -0
- package/dist/handlers/tool-configs/people/activity-search.d.ts +98 -0
- package/dist/handlers/tool-configs/people/activity-search.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/activity-search.js +113 -0
- package/dist/handlers/tool-configs/people/activity-search.js.map +1 -0
- package/dist/handlers/tool-configs/people/advanced-search.d.ts +62 -0
- package/dist/handlers/tool-configs/people/advanced-search.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/advanced-search.js +74 -0
- package/dist/handlers/tool-configs/people/advanced-search.js.map +1 -0
- package/dist/handlers/tool-configs/people/crud.d.ts +63 -0
- package/dist/handlers/tool-configs/people/crud.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/crud.js +71 -0
- package/dist/handlers/tool-configs/people/crud.js.map +1 -0
- package/dist/handlers/tool-configs/people/date-search.d.ts +42 -0
- package/dist/handlers/tool-configs/people/date-search.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/date-search.js +93 -0
- package/dist/handlers/tool-configs/people/date-search.js.map +1 -0
- package/dist/handlers/tool-configs/people/formatters.d.ts +19 -0
- package/dist/handlers/tool-configs/people/formatters.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/formatters.js +98 -0
- package/dist/handlers/tool-configs/people/formatters.js.map +1 -0
- package/dist/handlers/tool-configs/people/index.d.ts +407 -0
- package/dist/handlers/tool-configs/people/index.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/index.js +30 -0
- package/dist/handlers/tool-configs/people/index.js.map +1 -0
- package/dist/handlers/tool-configs/people/notes.d.ts +38 -0
- package/dist/handlers/tool-configs/people/notes.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/notes.js +57 -0
- package/dist/handlers/tool-configs/people/notes.js.map +1 -0
- package/dist/handlers/tool-configs/people/relationships.d.ts +112 -0
- package/dist/handlers/tool-configs/people/relationships.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/relationships.js +173 -0
- package/dist/handlers/tool-configs/people/relationships.js.map +1 -0
- package/dist/handlers/tool-configs/people/search.d.ts +53 -0
- package/dist/handlers/tool-configs/people/search.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people/search.js +61 -0
- package/dist/handlers/tool-configs/people/search.js.map +1 -0
- package/dist/handlers/tool-configs/people-fix-complete.d.ts +6 -0
- package/dist/handlers/tool-configs/people-fix-complete.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people-fix-complete.js +76 -0
- package/dist/handlers/tool-configs/people-fix-complete.js.map +1 -0
- package/dist/handlers/tool-configs/people-fixed.d.ts +12 -0
- package/dist/handlers/tool-configs/people-fixed.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people-fixed.js +58 -0
- package/dist/handlers/tool-configs/people-fixed.js.map +1 -0
- package/dist/handlers/tool-configs/people-types.d.ts +32 -0
- package/dist/handlers/tool-configs/people-types.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people-types.js +5 -0
- package/dist/handlers/tool-configs/people-types.js.map +1 -0
- package/dist/handlers/tool-configs/people.d.ts +599 -0
- package/dist/handlers/tool-configs/people.d.ts.map +1 -0
- package/dist/handlers/tool-configs/people.js +817 -0
- package/dist/handlers/tool-configs/people.js.map +1 -0
- package/dist/handlers/tool-configs/prompts.d.ts +69 -0
- package/dist/handlers/tool-configs/prompts.d.ts.map +1 -0
- package/dist/handlers/tool-configs/prompts.js +90 -0
- package/dist/handlers/tool-configs/prompts.js.map +1 -0
- package/dist/handlers/tool-configs/rate-limited-people.d.ts +203 -0
- package/dist/handlers/tool-configs/rate-limited-people.d.ts.map +1 -0
- package/dist/handlers/tool-configs/rate-limited-people.js +44 -0
- package/dist/handlers/tool-configs/rate-limited-people.js.map +1 -0
- package/dist/handlers/tool-configs/records/index.d.ts +282 -0
- package/dist/handlers/tool-configs/records/index.d.ts.map +1 -0
- package/dist/handlers/tool-configs/records/index.js +277 -0
- package/dist/handlers/tool-configs/records/index.js.map +1 -0
- package/dist/handlers/tool-configs/records.d.ts +282 -0
- package/dist/handlers/tool-configs/records.d.ts.map +1 -0
- package/dist/handlers/tool-configs/records.js +277 -0
- package/dist/handlers/tool-configs/records.js.map +1 -0
- package/dist/handlers/tool-configs/resource-specific-tools.d.ts +15 -0
- package/dist/handlers/tool-configs/resource-specific-tools.d.ts.map +1 -0
- package/dist/handlers/tool-configs/resource-specific-tools.js +33 -0
- package/dist/handlers/tool-configs/resource-specific-tools.js.map +1 -0
- package/dist/handlers/tool-configs/tasks.d.ts +127 -0
- package/dist/handlers/tool-configs/tasks.d.ts.map +1 -0
- package/dist/handlers/tool-configs/tasks.js +95 -0
- package/dist/handlers/tool-configs/tasks.js.map +1 -0
- package/dist/handlers/tool-types.d.ts +47 -0
- package/dist/handlers/tool-types.d.ts.map +1 -0
- package/dist/handlers/tool-types.js +2 -0
- package/dist/handlers/tool-types.js.map +1 -0
- package/dist/handlers/tools/config-verifier.d.ts +27 -0
- package/dist/handlers/tools/config-verifier.d.ts.map +1 -0
- package/dist/handlers/tools/config-verifier.js +108 -0
- package/dist/handlers/tools/config-verifier.js.map +1 -0
- package/dist/handlers/tools/dispatcher/core.d.ts +12 -0
- package/dist/handlers/tools/dispatcher/core.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/core.js +276 -0
- package/dist/handlers/tools/dispatcher/core.js.map +1 -0
- package/dist/handlers/tools/dispatcher/formatting.d.ts +17 -0
- package/dist/handlers/tools/dispatcher/formatting.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/formatting.js +25 -0
- package/dist/handlers/tools/dispatcher/formatting.js.map +1 -0
- package/dist/handlers/tools/dispatcher/logging.d.ts +63 -0
- package/dist/handlers/tools/dispatcher/logging.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/logging.js +108 -0
- package/dist/handlers/tools/dispatcher/logging.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/batch.d.ts +29 -0
- package/dist/handlers/tools/dispatcher/operations/batch.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/batch.js +137 -0
- package/dist/handlers/tools/dispatcher/operations/batch.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/crud.d.ts +25 -0
- package/dist/handlers/tools/dispatcher/operations/crud.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/crud.js +110 -0
- package/dist/handlers/tools/dispatcher/operations/crud.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/details.d.ts +13 -0
- package/dist/handlers/tools/dispatcher/operations/details.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/details.js +52 -0
- package/dist/handlers/tools/dispatcher/operations/details.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/info.d.ts +25 -0
- package/dist/handlers/tools/dispatcher/operations/info.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/info.js +82 -0
- package/dist/handlers/tools/dispatcher/operations/info.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/lists.d.ts +62 -0
- package/dist/handlers/tools/dispatcher/operations/lists.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/lists.js +283 -0
- package/dist/handlers/tools/dispatcher/operations/lists.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/notes.d.ts +17 -0
- package/dist/handlers/tools/dispatcher/operations/notes.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/notes.js +102 -0
- package/dist/handlers/tools/dispatcher/operations/notes.js.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/search.d.ts +43 -0
- package/dist/handlers/tools/dispatcher/operations/search.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/operations/search.js +190 -0
- package/dist/handlers/tools/dispatcher/operations/search.js.map +1 -0
- package/dist/handlers/tools/dispatcher/validation.d.ts +27 -0
- package/dist/handlers/tools/dispatcher/validation.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher/validation.js +47 -0
- package/dist/handlers/tools/dispatcher/validation.js.map +1 -0
- package/dist/handlers/tools/dispatcher.d.ts +11 -0
- package/dist/handlers/tools/dispatcher.d.ts.map +1 -0
- package/dist/handlers/tools/dispatcher.js +15 -0
- package/dist/handlers/tools/dispatcher.js.map +1 -0
- package/dist/handlers/tools/error-types.d.ts +33 -0
- package/dist/handlers/tools/error-types.d.ts.map +1 -0
- package/dist/handlers/tools/error-types.js +21 -0
- package/dist/handlers/tools/error-types.js.map +1 -0
- package/dist/handlers/tools/formatters.d.ts +43 -0
- package/dist/handlers/tools/formatters.d.ts.map +1 -0
- package/dist/handlers/tools/formatters.js +170 -0
- package/dist/handlers/tools/formatters.js.map +1 -0
- package/dist/handlers/tools/index.d.ts +15 -0
- package/dist/handlers/tools/index.d.ts.map +1 -0
- package/dist/handlers/tools/index.js +34 -0
- package/dist/handlers/tools/index.js.map +1 -0
- package/dist/handlers/tools/registry.d.ts +1874 -0
- package/dist/handlers/tools/registry.d.ts.map +1 -0
- package/dist/handlers/tools/registry.js +103 -0
- package/dist/handlers/tools/registry.js.map +1 -0
- package/dist/health/http-server.d.ts +24 -0
- package/dist/health/http-server.d.ts.map +1 -0
- package/dist/health/http-server.js +106 -0
- package/dist/health/http-server.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +238 -0
- package/dist/index.js.map +1 -0
- package/dist/objects/base-operations.d.ts +41 -0
- package/dist/objects/base-operations.d.ts.map +1 -0
- package/dist/objects/base-operations.js +116 -0
- package/dist/objects/base-operations.js.map +1 -0
- package/dist/objects/batch-companies.d.ts +112 -0
- package/dist/objects/batch-companies.d.ts.map +1 -0
- package/dist/objects/batch-companies.js +347 -0
- package/dist/objects/batch-companies.js.map +1 -0
- package/dist/objects/companies/attributes.d.ts +83 -0
- package/dist/objects/companies/attributes.d.ts.map +1 -0
- package/dist/objects/companies/attributes.js +426 -0
- package/dist/objects/companies/attributes.js.map +1 -0
- package/dist/objects/companies/basic.d.ts +117 -0
- package/dist/objects/companies/basic.d.ts.map +1 -0
- package/dist/objects/companies/basic.js +367 -0
- package/dist/objects/companies/basic.js.map +1 -0
- package/dist/objects/companies/batch.d.ts +6 -0
- package/dist/objects/companies/batch.d.ts.map +1 -0
- package/dist/objects/companies/batch.js +6 -0
- package/dist/objects/companies/batch.js.map +1 -0
- package/dist/objects/companies/index.d.ts +13 -0
- package/dist/objects/companies/index.d.ts.map +1 -0
- package/dist/objects/companies/index.js +17 -0
- package/dist/objects/companies/index.js.map +1 -0
- package/dist/objects/companies/notes.d.ts +26 -0
- package/dist/objects/companies/notes.d.ts.map +1 -0
- package/dist/objects/companies/notes.js +199 -0
- package/dist/objects/companies/notes.js.map +1 -0
- package/dist/objects/companies/relationships.d.ts +41 -0
- package/dist/objects/companies/relationships.d.ts.map +1 -0
- package/dist/objects/companies/relationships.js +142 -0
- package/dist/objects/companies/relationships.js.map +1 -0
- package/dist/objects/companies/search.d.ts +158 -0
- package/dist/objects/companies/search.d.ts.map +1 -0
- package/dist/objects/companies/search.js +463 -0
- package/dist/objects/companies/search.js.map +1 -0
- package/dist/objects/companies/types.d.ts +27 -0
- package/dist/objects/companies/types.d.ts.map +1 -0
- package/dist/objects/companies/types.js +3 -0
- package/dist/objects/companies/types.js.map +1 -0
- package/dist/objects/lists.d.ts +148 -0
- package/dist/objects/lists.d.ts.map +1 -0
- package/dist/objects/lists.js +586 -0
- package/dist/objects/lists.js.map +1 -0
- package/dist/objects/paginated-people.d.ts +50 -0
- package/dist/objects/paginated-people.d.ts.map +1 -0
- package/dist/objects/paginated-people.js +171 -0
- package/dist/objects/paginated-people.js.map +1 -0
- package/dist/objects/people/basic.d.ts +90 -0
- package/dist/objects/people/basic.d.ts.map +1 -0
- package/dist/objects/people/basic.js +157 -0
- package/dist/objects/people/basic.js.map +1 -0
- package/dist/objects/people/batch.d.ts +24 -0
- package/dist/objects/people/batch.d.ts.map +1 -0
- package/dist/objects/people/batch.js +145 -0
- package/dist/objects/people/batch.js.map +1 -0
- package/dist/objects/people/index.d.ts +11 -0
- package/dist/objects/people/index.d.ts.map +1 -0
- package/dist/objects/people/index.js +17 -0
- package/dist/objects/people/index.js.map +1 -0
- package/dist/objects/people/notes.d.ts +20 -0
- package/dist/objects/people/notes.d.ts.map +1 -0
- package/dist/objects/people/notes.js +60 -0
- package/dist/objects/people/notes.js.map +1 -0
- package/dist/objects/people/relationships.d.ts +23 -0
- package/dist/objects/people/relationships.d.ts.map +1 -0
- package/dist/objects/people/relationships.js +116 -0
- package/dist/objects/people/relationships.js.map +1 -0
- package/dist/objects/people/search.d.ts +83 -0
- package/dist/objects/people/search.d.ts.map +1 -0
- package/dist/objects/people/search.js +286 -0
- package/dist/objects/people/search.js.map +1 -0
- package/dist/objects/people/types.d.ts +37 -0
- package/dist/objects/people/types.d.ts.map +1 -0
- package/dist/objects/people/types.js +71 -0
- package/dist/objects/people/types.js.map +1 -0
- package/dist/objects/people-write.d.ts +71 -0
- package/dist/objects/people-write.d.ts.map +1 -0
- package/dist/objects/people-write.js +261 -0
- package/dist/objects/people-write.js.map +1 -0
- package/dist/objects/records/formatters.d.ts +20 -0
- package/dist/objects/records/formatters.d.ts.map +1 -0
- package/dist/objects/records/formatters.js +47 -0
- package/dist/objects/records/formatters.js.map +1 -0
- package/dist/objects/records/index.d.ts +74 -0
- package/dist/objects/records/index.d.ts.map +1 -0
- package/dist/objects/records/index.js +374 -0
- package/dist/objects/records/index.js.map +1 -0
- package/dist/objects/records.d.ts +88 -0
- package/dist/objects/records.d.ts.map +1 -0
- package/dist/objects/records.js +432 -0
- package/dist/objects/records.js.map +1 -0
- package/dist/objects/tasks.d.ts +19 -0
- package/dist/objects/tasks.d.ts.map +1 -0
- package/dist/objects/tasks.js +23 -0
- package/dist/objects/tasks.js.map +1 -0
- package/dist/prompts/error-handler.d.ts +28 -0
- package/dist/prompts/error-handler.d.ts.map +1 -0
- package/dist/prompts/error-handler.js +47 -0
- package/dist/prompts/error-handler.js.map +1 -0
- package/dist/prompts/handlers.d.ts +49 -0
- package/dist/prompts/handlers.d.ts.map +1 -0
- package/dist/prompts/handlers.js +353 -0
- package/dist/prompts/handlers.js.map +1 -0
- package/dist/prompts/index.d.ts +11 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +15 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/templates/companies.d.ts +10 -0
- package/dist/prompts/templates/companies.d.ts.map +1 -0
- package/dist/prompts/templates/companies.js +128 -0
- package/dist/prompts/templates/companies.js.map +1 -0
- package/dist/prompts/templates/index.d.ts +42 -0
- package/dist/prompts/templates/index.d.ts.map +1 -0
- package/dist/prompts/templates/index.js +58 -0
- package/dist/prompts/templates/index.js.map +1 -0
- package/dist/prompts/templates/lists.d.ts +10 -0
- package/dist/prompts/templates/lists.d.ts.map +1 -0
- package/dist/prompts/templates/lists.js +127 -0
- package/dist/prompts/templates/lists.js.map +1 -0
- package/dist/prompts/templates/notes.d.ts +10 -0
- package/dist/prompts/templates/notes.d.ts.map +1 -0
- package/dist/prompts/templates/notes.js +119 -0
- package/dist/prompts/templates/notes.js.map +1 -0
- package/dist/prompts/templates/people.d.ts +10 -0
- package/dist/prompts/templates/people.d.ts.map +1 -0
- package/dist/prompts/templates/people.js +127 -0
- package/dist/prompts/templates/people.js.map +1 -0
- package/dist/prompts/types.d.ts +52 -0
- package/dist/prompts/types.d.ts.map +1 -0
- package/dist/prompts/types.js +5 -0
- package/dist/prompts/types.js.map +1 -0
- package/dist/types/attio.d.ts +424 -0
- package/dist/types/attio.d.ts.map +1 -0
- package/dist/types/attio.js +116 -0
- package/dist/types/attio.js.map +1 -0
- package/dist/types/company-types.d.ts +52 -0
- package/dist/types/company-types.d.ts.map +1 -0
- package/dist/types/company-types.js +5 -0
- package/dist/types/company-types.js.map +1 -0
- package/dist/types/tool-types.d.ts +262 -0
- package/dist/types/tool-types.d.ts.map +1 -0
- package/dist/types/tool-types.js +6 -0
- package/dist/types/tool-types.js.map +1 -0
- package/dist/utils/api-fallback.d.ts +39 -0
- package/dist/utils/api-fallback.d.ts.map +1 -0
- package/dist/utils/api-fallback.js +94 -0
- package/dist/utils/api-fallback.js.map +1 -0
- package/dist/utils/attribute-mapping/attribute-mappers.d.ts +39 -0
- package/dist/utils/attribute-mapping/attribute-mappers.d.ts.map +1 -0
- package/dist/utils/attribute-mapping/attribute-mappers.js +394 -0
- package/dist/utils/attribute-mapping/attribute-mappers.js.map +1 -0
- package/dist/utils/attribute-mapping/filter-translator.d.ts +9 -0
- package/dist/utils/attribute-mapping/filter-translator.d.ts.map +1 -0
- package/dist/utils/attribute-mapping/filter-translator.js +104 -0
- package/dist/utils/attribute-mapping/filter-translator.js.map +1 -0
- package/dist/utils/attribute-mapping/index.d.ts +10 -0
- package/dist/utils/attribute-mapping/index.d.ts.map +1 -0
- package/dist/utils/attribute-mapping/index.js +12 -0
- package/dist/utils/attribute-mapping/index.js.map +1 -0
- package/dist/utils/attribute-mapping/legacy-maps.d.ts +11 -0
- package/dist/utils/attribute-mapping/legacy-maps.d.ts.map +1 -0
- package/dist/utils/attribute-mapping/legacy-maps.js +54 -0
- package/dist/utils/attribute-mapping/legacy-maps.js.map +1 -0
- package/dist/utils/attribute-mapping/mapping-utils.d.ts +90 -0
- package/dist/utils/attribute-mapping/mapping-utils.d.ts.map +1 -0
- package/dist/utils/attribute-mapping/mapping-utils.js +145 -0
- package/dist/utils/attribute-mapping/mapping-utils.js.map +1 -0
- package/dist/utils/auto-discovery.d.ts +22 -0
- package/dist/utils/auto-discovery.d.ts.map +1 -0
- package/dist/utils/auto-discovery.js +143 -0
- package/dist/utils/auto-discovery.js.map +1 -0
- package/dist/utils/cli-colors.d.ts +36 -0
- package/dist/utils/cli-colors.d.ts.map +1 -0
- package/dist/utils/cli-colors.js +35 -0
- package/dist/utils/cli-colors.js.map +1 -0
- package/dist/utils/config-loader.d.ts +41 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +167 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/config-migration.d.ts +140 -0
- package/dist/utils/config-migration.d.ts.map +1 -0
- package/dist/utils/config-migration.js +310 -0
- package/dist/utils/config-migration.js.map +1 -0
- package/dist/utils/date-utils.d.ts +63 -0
- package/dist/utils/date-utils.d.ts.map +1 -0
- package/dist/utils/date-utils.js +329 -0
- package/dist/utils/date-utils.js.map +1 -0
- package/dist/utils/debug-b2b-segment.d.ts +2 -0
- package/dist/utils/debug-b2b-segment.d.ts.map +1 -0
- package/dist/utils/debug-b2b-segment.js +67 -0
- package/dist/utils/debug-b2b-segment.js.map +1 -0
- package/dist/utils/domain-utils.d.ts +46 -0
- package/dist/utils/domain-utils.d.ts.map +1 -0
- package/dist/utils/domain-utils.js +143 -0
- package/dist/utils/domain-utils.js.map +1 -0
- package/dist/utils/dynamic-import.d.ts +33 -0
- package/dist/utils/dynamic-import.d.ts.map +1 -0
- package/dist/utils/dynamic-import.js +41 -0
- package/dist/utils/dynamic-import.js.map +1 -0
- package/dist/utils/error-enhancer.d.ts +23 -0
- package/dist/utils/error-enhancer.d.ts.map +1 -0
- package/dist/utils/error-enhancer.js +188 -0
- package/dist/utils/error-enhancer.js.map +1 -0
- package/dist/utils/error-handler.d.ts +89 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +336 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/filters/builders/activity.d.ts +13 -0
- package/dist/utils/filters/builders/activity.d.ts.map +1 -0
- package/dist/utils/filters/builders/activity.js +65 -0
- package/dist/utils/filters/builders/activity.js.map +1 -0
- package/dist/utils/filters/builders/basic.d.ts +13 -0
- package/dist/utils/filters/builders/basic.d.ts.map +1 -0
- package/dist/utils/filters/builders/basic.js +36 -0
- package/dist/utils/filters/builders/basic.js.map +1 -0
- package/dist/utils/filters/builders/complex.d.ts +31 -0
- package/dist/utils/filters/builders/complex.d.ts.map +1 -0
- package/dist/utils/filters/builders/complex.js +92 -0
- package/dist/utils/filters/builders/complex.js.map +1 -0
- package/dist/utils/filters/builders/date.d.ts +17 -0
- package/dist/utils/filters/builders/date.d.ts.map +1 -0
- package/dist/utils/filters/builders/date.js +51 -0
- package/dist/utils/filters/builders/date.js.map +1 -0
- package/dist/utils/filters/builders/index.d.ts +8 -0
- package/dist/utils/filters/builders/index.d.ts.map +1 -0
- package/dist/utils/filters/builders/index.js +8 -0
- package/dist/utils/filters/builders/index.js.map +1 -0
- package/dist/utils/filters/builders/numeric.d.ts +17 -0
- package/dist/utils/filters/builders/numeric.d.ts.map +1 -0
- package/dist/utils/filters/builders/numeric.js +61 -0
- package/dist/utils/filters/builders/numeric.js.map +1 -0
- package/dist/utils/filters/builders/text.d.ts +17 -0
- package/dist/utils/filters/builders/text.d.ts.map +1 -0
- package/dist/utils/filters/builders/text.js +47 -0
- package/dist/utils/filters/builders/text.js.map +1 -0
- package/dist/utils/filters/builders/types.d.ts +2 -0
- package/dist/utils/filters/builders/types.d.ts.map +1 -0
- package/dist/utils/filters/builders/types.js +2 -0
- package/dist/utils/filters/builders/types.js.map +1 -0
- package/dist/utils/filters/builders.d.ts +2 -0
- package/dist/utils/filters/builders.d.ts.map +1 -0
- package/dist/utils/filters/builders.js +2 -0
- package/dist/utils/filters/builders.js.map +1 -0
- package/dist/utils/filters/cache.d.ts +80 -0
- package/dist/utils/filters/cache.d.ts.map +1 -0
- package/dist/utils/filters/cache.js +212 -0
- package/dist/utils/filters/cache.js.map +1 -0
- package/dist/utils/filters/index.d.ts +51 -0
- package/dist/utils/filters/index.d.ts.map +1 -0
- package/dist/utils/filters/index.js +67 -0
- package/dist/utils/filters/index.js.map +1 -0
- package/dist/utils/filters/operators.d.ts +65 -0
- package/dist/utils/filters/operators.d.ts.map +1 -0
- package/dist/utils/filters/operators.js +214 -0
- package/dist/utils/filters/operators.js.map +1 -0
- package/dist/utils/filters/relationship.d.ts +81 -0
- package/dist/utils/filters/relationship.d.ts.map +1 -0
- package/dist/utils/filters/relationship.js +393 -0
- package/dist/utils/filters/relationship.js.map +1 -0
- package/dist/utils/filters/translators.d.ts +120 -0
- package/dist/utils/filters/translators.d.ts.map +1 -0
- package/dist/utils/filters/translators.js +397 -0
- package/dist/utils/filters/translators.js.map +1 -0
- package/dist/utils/filters/types.d.ts +77 -0
- package/dist/utils/filters/types.d.ts.map +1 -0
- package/dist/utils/filters/types.js +85 -0
- package/dist/utils/filters/types.js.map +1 -0
- package/dist/utils/filters/utils.d.ts +86 -0
- package/dist/utils/filters/utils.d.ts.map +1 -0
- package/dist/utils/filters/utils.js +142 -0
- package/dist/utils/filters/utils.js.map +1 -0
- package/dist/utils/filters/validation-utils.d.ts +123 -0
- package/dist/utils/filters/validation-utils.d.ts.map +1 -0
- package/dist/utils/filters/validation-utils.js +282 -0
- package/dist/utils/filters/validation-utils.js.map +1 -0
- package/dist/utils/filters/validators.d.ts +73 -0
- package/dist/utils/filters/validators.d.ts.map +1 -0
- package/dist/utils/filters/validators.js +311 -0
- package/dist/utils/filters/validators.js.map +1 -0
- package/dist/utils/json-serializer.d.ts +68 -0
- package/dist/utils/json-serializer.d.ts.map +1 -0
- package/dist/utils/json-serializer.js +235 -0
- package/dist/utils/json-serializer.js.map +1 -0
- package/dist/utils/logger.d.ts +226 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +323 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/numeric-utils.d.ts +27 -0
- package/dist/utils/numeric-utils.d.ts.map +1 -0
- package/dist/utils/numeric-utils.js +83 -0
- package/dist/utils/numeric-utils.js.map +1 -0
- package/dist/utils/pagination.d.ts +85 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +169 -0
- package/dist/utils/pagination.js.map +1 -0
- package/dist/utils/person-lookup.d.ts +35 -0
- package/dist/utils/person-lookup.d.ts.map +1 -0
- package/dist/utils/person-lookup.js +67 -0
- package/dist/utils/person-lookup.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +82 -0
- package/dist/utils/rate-limiter.d.ts.map +1 -0
- package/dist/utils/rate-limiter.js +159 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/record-utils.d.ts +74 -0
- package/dist/utils/record-utils.d.ts.map +1 -0
- package/dist/utils/record-utils.js +312 -0
- package/dist/utils/record-utils.js.map +1 -0
- package/dist/utils/relationship-utils.d.ts +61 -0
- package/dist/utils/relationship-utils.d.ts.map +1 -0
- package/dist/utils/relationship-utils.js +242 -0
- package/dist/utils/relationship-utils.js.map +1 -0
- package/dist/utils/response-formatter.d.ts +121 -0
- package/dist/utils/response-formatter.d.ts.map +1 -0
- package/dist/utils/response-formatter.js +188 -0
- package/dist/utils/response-formatter.js.map +1 -0
- package/dist/utils/uri-parser.d.ts +18 -0
- package/dist/utils/uri-parser.d.ts.map +1 -0
- package/dist/utils/uri-parser.js +31 -0
- package/dist/utils/uri-parser.js.map +1 -0
- package/dist/utils/validation.d.ts +59 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +264 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/utils/value-matcher.d.ts +58 -0
- package/dist/utils/value-matcher.d.ts.map +1 -0
- package/dist/utils/value-matcher.js +131 -0
- package/dist/utils/value-matcher.js.map +1 -0
- package/dist/validators/attribute-validator.d.ts +59 -0
- package/dist/validators/attribute-validator.d.ts.map +1 -0
- package/dist/validators/attribute-validator.js +531 -0
- package/dist/validators/attribute-validator.js.map +1 -0
- package/dist/validators/company/field_detector.d.ts +5 -0
- package/dist/validators/company/field_detector.d.ts.map +1 -0
- package/dist/validators/company/field_detector.js +95 -0
- package/dist/validators/company/field_detector.js.map +1 -0
- package/dist/validators/company/index.d.ts +26 -0
- package/dist/validators/company/index.d.ts.map +1 -0
- package/dist/validators/company/index.js +433 -0
- package/dist/validators/company/index.js.map +1 -0
- package/dist/validators/company/type_cache.d.ts +14 -0
- package/dist/validators/company/type_cache.d.ts.map +1 -0
- package/dist/validators/company/type_cache.js +28 -0
- package/dist/validators/company/type_cache.js.map +1 -0
- package/dist/validators/company/types.d.ts +8 -0
- package/dist/validators/company/types.d.ts.map +1 -0
- package/dist/validators/company/types.js +2 -0
- package/dist/validators/company/types.js.map +1 -0
- package/dist/validators/company-validator.d.ts +2 -0
- package/dist/validators/company-validator.d.ts.map +1 -0
- package/dist/validators/company-validator.js +2 -0
- package/dist/validators/company-validator.js.map +1 -0
- package/package.json +167 -0
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common type definitions for Attio API responses and entities
|
|
3
|
+
*/
|
|
4
|
+
import { RetryConfig } from '../api/operations/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Base interface for Attio record values
|
|
7
|
+
*/
|
|
8
|
+
export interface AttioValue<T> {
|
|
9
|
+
value: T;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Valid filter condition types for Attio API
|
|
14
|
+
*/
|
|
15
|
+
export declare enum FilterConditionType {
|
|
16
|
+
EQUALS = "equals",
|
|
17
|
+
NOT_EQUALS = "not_equals",
|
|
18
|
+
CONTAINS = "contains",
|
|
19
|
+
NOT_CONTAINS = "not_contains",
|
|
20
|
+
STARTS_WITH = "starts_with",
|
|
21
|
+
ENDS_WITH = "ends_with",
|
|
22
|
+
GREATER_THAN = "greater_than",
|
|
23
|
+
LESS_THAN = "less_than",
|
|
24
|
+
GREATER_THAN_OR_EQUALS = "greater_than_or_equals",
|
|
25
|
+
LESS_THAN_OR_EQUALS = "less_than_or_equals",
|
|
26
|
+
BEFORE = "before",
|
|
27
|
+
AFTER = "after",
|
|
28
|
+
BETWEEN = "between",
|
|
29
|
+
IS_EMPTY = "is_empty",
|
|
30
|
+
IS_NOT_EMPTY = "is_not_empty",
|
|
31
|
+
IS_SET = "is_set",
|
|
32
|
+
IS_NOT_SET = "is_not_set"
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Type guard to check if a string is a valid filter condition
|
|
36
|
+
*
|
|
37
|
+
* This function validates that a given string represents a valid filter condition
|
|
38
|
+
* type as defined in the FilterConditionType enum. It provides type safety when
|
|
39
|
+
* working with filter conditions from external input.
|
|
40
|
+
*
|
|
41
|
+
* @param condition - The string condition to check
|
|
42
|
+
* @returns True if the condition is a valid FilterConditionType, false otherwise
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const userCondition = "equals";
|
|
47
|
+
*
|
|
48
|
+
* if (isValidFilterCondition(userCondition)) {
|
|
49
|
+
* // TypeScript knows userCondition is a FilterConditionType here
|
|
50
|
+
* // Safe to use in filter operations
|
|
51
|
+
* } else {
|
|
52
|
+
* // Handle invalid condition
|
|
53
|
+
* throw new FilterValidationError(`Invalid filter condition: ${userCondition}`);
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare function isValidFilterCondition(condition: string): condition is FilterConditionType;
|
|
58
|
+
/**
|
|
59
|
+
* Time units for relative date expressions
|
|
60
|
+
*/
|
|
61
|
+
export declare enum RelativeDateUnit {
|
|
62
|
+
DAY = "day",
|
|
63
|
+
WEEK = "week",
|
|
64
|
+
MONTH = "month",
|
|
65
|
+
QUARTER = "quarter",
|
|
66
|
+
YEAR = "year"
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Supported date range preset values
|
|
70
|
+
*/
|
|
71
|
+
export declare enum DateRangePreset {
|
|
72
|
+
TODAY = "today",
|
|
73
|
+
YESTERDAY = "yesterday",
|
|
74
|
+
THIS_WEEK = "this_week",
|
|
75
|
+
LAST_WEEK = "last_week",
|
|
76
|
+
THIS_MONTH = "this_month",
|
|
77
|
+
LAST_MONTH = "last_month",
|
|
78
|
+
THIS_QUARTER = "this_quarter",
|
|
79
|
+
LAST_QUARTER = "last_quarter",
|
|
80
|
+
THIS_YEAR = "this_year",
|
|
81
|
+
LAST_YEAR = "last_year"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Representation of a relative date (e.g., "last 7 days")
|
|
85
|
+
*/
|
|
86
|
+
export interface RelativeDate {
|
|
87
|
+
unit: RelativeDateUnit;
|
|
88
|
+
value: number;
|
|
89
|
+
direction: 'past' | 'future';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Date range specification for filtering
|
|
93
|
+
*/
|
|
94
|
+
export interface DateRange {
|
|
95
|
+
start?: string | RelativeDate;
|
|
96
|
+
end?: string | RelativeDate;
|
|
97
|
+
preset?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Numeric range specification for filtering
|
|
101
|
+
*/
|
|
102
|
+
export interface NumericRange {
|
|
103
|
+
min?: number;
|
|
104
|
+
max?: number;
|
|
105
|
+
equals?: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Interaction types for activity filtering
|
|
109
|
+
*/
|
|
110
|
+
export declare enum InteractionType {
|
|
111
|
+
ANY = "any",
|
|
112
|
+
EMAIL = "email",
|
|
113
|
+
CALENDAR = "calendar",
|
|
114
|
+
PHONE = "phone",
|
|
115
|
+
MEETING = "meeting",
|
|
116
|
+
CUSTOM = "custom"
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Activity history related filtering options
|
|
120
|
+
*/
|
|
121
|
+
export interface ActivityFilter {
|
|
122
|
+
dateRange: DateRange;
|
|
123
|
+
interactionType?: InteractionType;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Base interface for Attio records (common between people and companies)
|
|
127
|
+
*/
|
|
128
|
+
export interface AttioRecord {
|
|
129
|
+
id: {
|
|
130
|
+
record_id: string;
|
|
131
|
+
[key: string]: unknown;
|
|
132
|
+
};
|
|
133
|
+
values: {
|
|
134
|
+
name?: Array<AttioValue<string>>;
|
|
135
|
+
email?: Array<AttioValue<string>>;
|
|
136
|
+
phone?: Array<AttioValue<string>>;
|
|
137
|
+
industry?: Array<AttioValue<string>>;
|
|
138
|
+
website?: Array<AttioValue<string>>;
|
|
139
|
+
[key: string]: unknown;
|
|
140
|
+
};
|
|
141
|
+
[key: string]: unknown;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Interface for a batch request item
|
|
145
|
+
*/
|
|
146
|
+
export interface BatchRequestItem<T> {
|
|
147
|
+
params: T;
|
|
148
|
+
id?: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Interface for a batch operation result item
|
|
152
|
+
*/
|
|
153
|
+
export interface BatchItemResult<R> {
|
|
154
|
+
id?: string;
|
|
155
|
+
success: boolean;
|
|
156
|
+
data?: R;
|
|
157
|
+
error?: unknown;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Interface for a batch operation response
|
|
161
|
+
*/
|
|
162
|
+
export interface BatchResponse<R> {
|
|
163
|
+
results: BatchItemResult<R>[];
|
|
164
|
+
summary: {
|
|
165
|
+
total: number;
|
|
166
|
+
succeeded: number;
|
|
167
|
+
failed: number;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Configuration options for batch operations
|
|
172
|
+
*/
|
|
173
|
+
export interface BatchConfig {
|
|
174
|
+
maxBatchSize: number;
|
|
175
|
+
continueOnError: boolean;
|
|
176
|
+
retryConfig?: RetryConfig;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Note record type
|
|
180
|
+
*/
|
|
181
|
+
export interface AttioNote {
|
|
182
|
+
id: {
|
|
183
|
+
note_id: string;
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
};
|
|
186
|
+
title: string;
|
|
187
|
+
content: string;
|
|
188
|
+
format: string;
|
|
189
|
+
parent_object: string;
|
|
190
|
+
parent_record_id: string;
|
|
191
|
+
created_at: string;
|
|
192
|
+
updated_at: string;
|
|
193
|
+
[key: string]: unknown;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* List record type
|
|
197
|
+
*/
|
|
198
|
+
export interface AttioList {
|
|
199
|
+
id: {
|
|
200
|
+
list_id: string;
|
|
201
|
+
[key: string]: unknown;
|
|
202
|
+
};
|
|
203
|
+
title: string;
|
|
204
|
+
name?: string;
|
|
205
|
+
description?: string;
|
|
206
|
+
object_slug: string;
|
|
207
|
+
workspace_id: string;
|
|
208
|
+
created_at: string;
|
|
209
|
+
updated_at: string;
|
|
210
|
+
entry_count?: number;
|
|
211
|
+
[key: string]: unknown;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* List entry record type
|
|
215
|
+
*/
|
|
216
|
+
export interface AttioListEntry {
|
|
217
|
+
id?: {
|
|
218
|
+
entry_id?: string;
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
};
|
|
221
|
+
list_id?: string;
|
|
222
|
+
record_id?: string;
|
|
223
|
+
parent_record_id?: string;
|
|
224
|
+
reference_id?: string;
|
|
225
|
+
object_id?: string;
|
|
226
|
+
created_at?: string;
|
|
227
|
+
updated_at?: string;
|
|
228
|
+
record?: {
|
|
229
|
+
id?: {
|
|
230
|
+
record_id?: string;
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
};
|
|
233
|
+
record_id?: string;
|
|
234
|
+
reference_id?: string;
|
|
235
|
+
values?: Record<string, any>;
|
|
236
|
+
object_slug?: string;
|
|
237
|
+
uri?: string;
|
|
238
|
+
[key: string]: unknown;
|
|
239
|
+
};
|
|
240
|
+
values?: Record<string, any>;
|
|
241
|
+
[key: string]: unknown;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Task record type
|
|
245
|
+
*/
|
|
246
|
+
export interface AttioTask {
|
|
247
|
+
id: {
|
|
248
|
+
task_id: string;
|
|
249
|
+
[key: string]: unknown;
|
|
250
|
+
};
|
|
251
|
+
content: string;
|
|
252
|
+
status: string;
|
|
253
|
+
assignee?: {
|
|
254
|
+
id: string;
|
|
255
|
+
type: string;
|
|
256
|
+
name?: string;
|
|
257
|
+
email?: string;
|
|
258
|
+
avatar_url?: string;
|
|
259
|
+
[key: string]: unknown;
|
|
260
|
+
};
|
|
261
|
+
due_date?: string;
|
|
262
|
+
linked_records?: Array<{
|
|
263
|
+
id: string;
|
|
264
|
+
object_id?: string;
|
|
265
|
+
object_slug?: string;
|
|
266
|
+
title?: string;
|
|
267
|
+
[key: string]: unknown;
|
|
268
|
+
}>;
|
|
269
|
+
created_at: string;
|
|
270
|
+
updated_at: string;
|
|
271
|
+
[key: string]: unknown;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Resource type enum for better type safety
|
|
275
|
+
*/
|
|
276
|
+
export declare enum ResourceType {
|
|
277
|
+
PEOPLE = "people",
|
|
278
|
+
COMPANIES = "companies",
|
|
279
|
+
LISTS = "lists",
|
|
280
|
+
RECORDS = "records",
|
|
281
|
+
TASKS = "tasks"
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Relationship types in Attio
|
|
285
|
+
* Defines the types of relationships between different record types
|
|
286
|
+
*/
|
|
287
|
+
export declare enum RelationshipType {
|
|
288
|
+
WORKS_AT = "works_at",// Person to Company relationship
|
|
289
|
+
EMPLOYS = "employs",// Company to Person relationship
|
|
290
|
+
BELONGS_TO_LIST = "in_list",// Any record to List relationship
|
|
291
|
+
HAS_NOTE = "has_note"
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* API error response shape
|
|
295
|
+
*/
|
|
296
|
+
export interface AttioErrorResponse {
|
|
297
|
+
status?: number;
|
|
298
|
+
data?: unknown;
|
|
299
|
+
headers?: Record<string, string>;
|
|
300
|
+
error?: string;
|
|
301
|
+
message?: string;
|
|
302
|
+
details?: unknown;
|
|
303
|
+
[key: string]: unknown;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* API response containing a list of records
|
|
307
|
+
*/
|
|
308
|
+
export interface AttioListResponse<T> {
|
|
309
|
+
data: T[];
|
|
310
|
+
pagination?: {
|
|
311
|
+
total_count: number;
|
|
312
|
+
next_cursor?: string;
|
|
313
|
+
[key: string]: unknown;
|
|
314
|
+
};
|
|
315
|
+
has_more?: boolean;
|
|
316
|
+
next_cursor?: string;
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* API response containing a single record
|
|
321
|
+
*/
|
|
322
|
+
export interface AttioSingleResponse<T> {
|
|
323
|
+
data: T;
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
}
|
|
326
|
+
export interface Person extends AttioRecord {
|
|
327
|
+
values: {
|
|
328
|
+
name?: Array<{
|
|
329
|
+
value: string;
|
|
330
|
+
}>;
|
|
331
|
+
email?: Array<{
|
|
332
|
+
value: string;
|
|
333
|
+
}>;
|
|
334
|
+
phone?: Array<{
|
|
335
|
+
value: string;
|
|
336
|
+
}>;
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Attributes for creating a person via MCP tools
|
|
342
|
+
*/
|
|
343
|
+
export interface PersonCreateAttributes {
|
|
344
|
+
name?: string;
|
|
345
|
+
email_addresses?: string[];
|
|
346
|
+
phone_numbers?: string[];
|
|
347
|
+
job_title?: string;
|
|
348
|
+
company?: string;
|
|
349
|
+
[key: string]: unknown;
|
|
350
|
+
}
|
|
351
|
+
export interface Company extends AttioRecord {
|
|
352
|
+
values: {
|
|
353
|
+
name?: Array<{
|
|
354
|
+
value: string;
|
|
355
|
+
}>;
|
|
356
|
+
website?: Array<{
|
|
357
|
+
value: string;
|
|
358
|
+
}>;
|
|
359
|
+
industry?: Array<{
|
|
360
|
+
value: string;
|
|
361
|
+
}>;
|
|
362
|
+
[key: string]: unknown;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Record attribute types
|
|
367
|
+
*/
|
|
368
|
+
export interface RecordAttributes {
|
|
369
|
+
[key: string]: unknown;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Parameters for creating a record
|
|
373
|
+
*/
|
|
374
|
+
export interface RecordCreateParams {
|
|
375
|
+
objectSlug: string;
|
|
376
|
+
objectId?: string;
|
|
377
|
+
attributes: RecordAttributes;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Parameters for updating a record
|
|
381
|
+
*/
|
|
382
|
+
export interface RecordUpdateParams {
|
|
383
|
+
objectSlug: string;
|
|
384
|
+
objectId?: string;
|
|
385
|
+
recordId: string;
|
|
386
|
+
attributes: RecordAttributes;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Parameters for listing records
|
|
390
|
+
*/
|
|
391
|
+
export interface RecordListParams {
|
|
392
|
+
objectSlug: string;
|
|
393
|
+
objectId?: string;
|
|
394
|
+
page?: number;
|
|
395
|
+
pageSize?: number;
|
|
396
|
+
query?: string;
|
|
397
|
+
attributes?: string[];
|
|
398
|
+
sort?: string;
|
|
399
|
+
direction?: 'asc' | 'desc';
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Record item for batch operations
|
|
403
|
+
*/
|
|
404
|
+
export interface BatchRecordItem {
|
|
405
|
+
id?: string;
|
|
406
|
+
attributes: RecordAttributes;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Parameters for batch creating records
|
|
410
|
+
*/
|
|
411
|
+
export interface RecordBatchCreateParams {
|
|
412
|
+
objectSlug: string;
|
|
413
|
+
objectId?: string;
|
|
414
|
+
records: Omit<BatchRecordItem, 'id'>[];
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Parameters for batch updating records
|
|
418
|
+
*/
|
|
419
|
+
export interface RecordBatchUpdateParams {
|
|
420
|
+
objectSlug: string;
|
|
421
|
+
objectId?: string;
|
|
422
|
+
records: BatchRecordItem[];
|
|
423
|
+
}
|
|
424
|
+
//# sourceMappingURL=attio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio.d.ts","sourceRoot":"","sources":["../../src/types/attio.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;IACT,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAE7B,MAAM,WAAW;IACjB,UAAU,eAAe;IAGzB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IAGvB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAG3C,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IAGnB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,GAChB,SAAS,IAAI,mBAAmB,CAIlC;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,GAAG,QA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AAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,eAAe,EAAE,CAAC;CAC5B"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valid filter condition types for Attio API
|
|
3
|
+
*/
|
|
4
|
+
export var FilterConditionType;
|
|
5
|
+
(function (FilterConditionType) {
|
|
6
|
+
// Equality conditions
|
|
7
|
+
FilterConditionType["EQUALS"] = "equals";
|
|
8
|
+
FilterConditionType["NOT_EQUALS"] = "not_equals";
|
|
9
|
+
// String conditions
|
|
10
|
+
FilterConditionType["CONTAINS"] = "contains";
|
|
11
|
+
FilterConditionType["NOT_CONTAINS"] = "not_contains";
|
|
12
|
+
FilterConditionType["STARTS_WITH"] = "starts_with";
|
|
13
|
+
FilterConditionType["ENDS_WITH"] = "ends_with";
|
|
14
|
+
// Numeric/Date conditions
|
|
15
|
+
FilterConditionType["GREATER_THAN"] = "greater_than";
|
|
16
|
+
FilterConditionType["LESS_THAN"] = "less_than";
|
|
17
|
+
FilterConditionType["GREATER_THAN_OR_EQUALS"] = "greater_than_or_equals";
|
|
18
|
+
FilterConditionType["LESS_THAN_OR_EQUALS"] = "less_than_or_equals";
|
|
19
|
+
// Date range specific conditions
|
|
20
|
+
FilterConditionType["BEFORE"] = "before";
|
|
21
|
+
FilterConditionType["AFTER"] = "after";
|
|
22
|
+
FilterConditionType["BETWEEN"] = "between";
|
|
23
|
+
// Existence conditions
|
|
24
|
+
FilterConditionType["IS_EMPTY"] = "is_empty";
|
|
25
|
+
FilterConditionType["IS_NOT_EMPTY"] = "is_not_empty";
|
|
26
|
+
FilterConditionType["IS_SET"] = "is_set";
|
|
27
|
+
FilterConditionType["IS_NOT_SET"] = "is_not_set";
|
|
28
|
+
})(FilterConditionType || (FilterConditionType = {}));
|
|
29
|
+
/**
|
|
30
|
+
* Type guard to check if a string is a valid filter condition
|
|
31
|
+
*
|
|
32
|
+
* This function validates that a given string represents a valid filter condition
|
|
33
|
+
* type as defined in the FilterConditionType enum. It provides type safety when
|
|
34
|
+
* working with filter conditions from external input.
|
|
35
|
+
*
|
|
36
|
+
* @param condition - The string condition to check
|
|
37
|
+
* @returns True if the condition is a valid FilterConditionType, false otherwise
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* const userCondition = "equals";
|
|
42
|
+
*
|
|
43
|
+
* if (isValidFilterCondition(userCondition)) {
|
|
44
|
+
* // TypeScript knows userCondition is a FilterConditionType here
|
|
45
|
+
* // Safe to use in filter operations
|
|
46
|
+
* } else {
|
|
47
|
+
* // Handle invalid condition
|
|
48
|
+
* throw new FilterValidationError(`Invalid filter condition: ${userCondition}`);
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export function isValidFilterCondition(condition) {
|
|
53
|
+
return Object.values(FilterConditionType).includes(condition);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Time units for relative date expressions
|
|
57
|
+
*/
|
|
58
|
+
export var RelativeDateUnit;
|
|
59
|
+
(function (RelativeDateUnit) {
|
|
60
|
+
RelativeDateUnit["DAY"] = "day";
|
|
61
|
+
RelativeDateUnit["WEEK"] = "week";
|
|
62
|
+
RelativeDateUnit["MONTH"] = "month";
|
|
63
|
+
RelativeDateUnit["QUARTER"] = "quarter";
|
|
64
|
+
RelativeDateUnit["YEAR"] = "year";
|
|
65
|
+
})(RelativeDateUnit || (RelativeDateUnit = {}));
|
|
66
|
+
/**
|
|
67
|
+
* Supported date range preset values
|
|
68
|
+
*/
|
|
69
|
+
export var DateRangePreset;
|
|
70
|
+
(function (DateRangePreset) {
|
|
71
|
+
DateRangePreset["TODAY"] = "today";
|
|
72
|
+
DateRangePreset["YESTERDAY"] = "yesterday";
|
|
73
|
+
DateRangePreset["THIS_WEEK"] = "this_week";
|
|
74
|
+
DateRangePreset["LAST_WEEK"] = "last_week";
|
|
75
|
+
DateRangePreset["THIS_MONTH"] = "this_month";
|
|
76
|
+
DateRangePreset["LAST_MONTH"] = "last_month";
|
|
77
|
+
DateRangePreset["THIS_QUARTER"] = "this_quarter";
|
|
78
|
+
DateRangePreset["LAST_QUARTER"] = "last_quarter";
|
|
79
|
+
DateRangePreset["THIS_YEAR"] = "this_year";
|
|
80
|
+
DateRangePreset["LAST_YEAR"] = "last_year";
|
|
81
|
+
})(DateRangePreset || (DateRangePreset = {}));
|
|
82
|
+
/**
|
|
83
|
+
* Interaction types for activity filtering
|
|
84
|
+
*/
|
|
85
|
+
export var InteractionType;
|
|
86
|
+
(function (InteractionType) {
|
|
87
|
+
InteractionType["ANY"] = "any";
|
|
88
|
+
InteractionType["EMAIL"] = "email";
|
|
89
|
+
InteractionType["CALENDAR"] = "calendar";
|
|
90
|
+
InteractionType["PHONE"] = "phone";
|
|
91
|
+
InteractionType["MEETING"] = "meeting";
|
|
92
|
+
InteractionType["CUSTOM"] = "custom";
|
|
93
|
+
})(InteractionType || (InteractionType = {}));
|
|
94
|
+
/**
|
|
95
|
+
* Resource type enum for better type safety
|
|
96
|
+
*/
|
|
97
|
+
export var ResourceType;
|
|
98
|
+
(function (ResourceType) {
|
|
99
|
+
ResourceType["PEOPLE"] = "people";
|
|
100
|
+
ResourceType["COMPANIES"] = "companies";
|
|
101
|
+
ResourceType["LISTS"] = "lists";
|
|
102
|
+
ResourceType["RECORDS"] = "records";
|
|
103
|
+
ResourceType["TASKS"] = "tasks";
|
|
104
|
+
})(ResourceType || (ResourceType = {}));
|
|
105
|
+
/**
|
|
106
|
+
* Relationship types in Attio
|
|
107
|
+
* Defines the types of relationships between different record types
|
|
108
|
+
*/
|
|
109
|
+
export var RelationshipType;
|
|
110
|
+
(function (RelationshipType) {
|
|
111
|
+
RelationshipType["WORKS_AT"] = "works_at";
|
|
112
|
+
RelationshipType["EMPLOYS"] = "employs";
|
|
113
|
+
RelationshipType["BELONGS_TO_LIST"] = "in_list";
|
|
114
|
+
RelationshipType["HAS_NOTE"] = "has_note";
|
|
115
|
+
})(RelationshipType || (RelationshipType = {}));
|
|
116
|
+
//# sourceMappingURL=attio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attio.js","sourceRoot":"","sources":["../../src/types/attio.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,MAAM,CAAN,IAAY,mBA2BX;AA3BD,WAAY,mBAAmB;IAC7B,sBAAsB;IACtB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IAEzB,oBAAoB;IACpB,4CAAqB,CAAA;IACrB,oDAA6B,CAAA;IAC7B,kDAA2B,CAAA;IAC3B,8CAAuB,CAAA;IAEvB,0BAA0B;IAC1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,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;IAC3B,yCAAqB,CAAA;AACvB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for company operations
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Input type for creating a company
|
|
6
|
+
*/
|
|
7
|
+
export interface CompanyCreateInput {
|
|
8
|
+
name: string;
|
|
9
|
+
website?: string;
|
|
10
|
+
industry?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
domain?: string;
|
|
13
|
+
size?: string;
|
|
14
|
+
linkedin_url?: string;
|
|
15
|
+
location?: {
|
|
16
|
+
street?: string;
|
|
17
|
+
city?: string;
|
|
18
|
+
state?: string;
|
|
19
|
+
postal_code?: string;
|
|
20
|
+
country?: string;
|
|
21
|
+
};
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Input type for updating a company
|
|
26
|
+
*/
|
|
27
|
+
export interface CompanyUpdateInput {
|
|
28
|
+
name?: string;
|
|
29
|
+
website?: string;
|
|
30
|
+
industry?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
domain?: string;
|
|
33
|
+
size?: string;
|
|
34
|
+
linkedin_url?: string;
|
|
35
|
+
location?: {
|
|
36
|
+
street?: string;
|
|
37
|
+
city?: string;
|
|
38
|
+
state?: string;
|
|
39
|
+
postal_code?: string;
|
|
40
|
+
country?: string;
|
|
41
|
+
};
|
|
42
|
+
[key: string]: unknown;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Type for a company attribute update
|
|
46
|
+
*/
|
|
47
|
+
export interface CompanyAttributeUpdate {
|
|
48
|
+
companyId: string;
|
|
49
|
+
attributeName: string;
|
|
50
|
+
attributeValue: string | number | boolean | object | null;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=company-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-types.d.ts","sourceRoot":"","sources":["../../src/types/company-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;CAC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-types.js","sourceRoot":"","sources":["../../src/types/company-types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|