featurebase-node 0.14.3 → 0.15.1
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 +16 -0
- package/client.d.mts +11 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -5
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs.d.mts +3 -3
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +3 -3
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.d.mts +116 -116
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +116 -116
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/subscribers.d.mts +3 -3
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts +3 -3
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/conversation-attributes.d.mts +22 -17
- package/resources/conversation-attributes.d.mts.map +1 -1
- package/resources/conversation-attributes.d.ts +22 -17
- package/resources/conversation-attributes.d.ts.map +1 -1
- package/resources/conversation-attributes.js +19 -19
- package/resources/conversation-attributes.js.map +1 -1
- package/resources/conversation-attributes.mjs +19 -19
- package/resources/conversation-attributes.mjs.map +1 -1
- package/resources/feedback/boards.d.mts +19 -19
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +19 -19
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +113 -113
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +113 -113
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +36 -36
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +36 -36
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +5 -5
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +5 -5
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/post-statuses.d.mts +20 -20
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +20 -20
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/posts.d.mts +132 -132
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +132 -132
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +107 -107
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +107 -107
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +3 -3
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +3 -3
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/help-center/articles.d.mts +213 -97
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +213 -97
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +158 -71
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +158 -71
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +4 -4
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +4 -4
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-centers.d.mts +77 -48
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +77 -48
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +124 -124
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +124 -124
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +6 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +26 -26
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +26 -26
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +25 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +25 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +52 -52
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +52 -52
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/teams.d.mts +47 -47
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +47 -47
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/reports.d.mts +339 -223
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +339 -223
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +114 -107
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +114 -107
- package/resources/reports.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +43 -43
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +43 -43
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +363 -332
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +363 -332
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +293 -283
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +293 -283
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/participants.d.mts +2 -2
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts +2 -2
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/support.d.mts +3 -3
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +3 -3
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/tickets/categories.d.mts +20 -20
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +20 -20
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +22 -22
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +22 -22
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/statuses.d.mts +19 -19
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +19 -19
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +75 -75
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +75 -75
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/surveys.d.mts +43 -43
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +43 -43
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/training-data/files.d.mts +292 -0
- package/resources/training-data/files.d.mts.map +1 -0
- package/resources/training-data/files.d.ts +292 -0
- package/resources/training-data/files.d.ts.map +1 -0
- package/resources/training-data/files.js +171 -0
- package/resources/training-data/files.js.map +1 -0
- package/resources/training-data/files.mjs +167 -0
- package/resources/training-data/files.mjs.map +1 -0
- package/resources/training-data/index.d.mts +4 -0
- package/resources/training-data/index.d.mts.map +1 -0
- package/resources/training-data/index.d.ts +4 -0
- package/resources/training-data/index.d.ts.map +1 -0
- package/resources/training-data/index.js +11 -0
- package/resources/training-data/index.js.map +1 -0
- package/resources/training-data/index.mjs +5 -0
- package/resources/training-data/index.mjs.map +1 -0
- package/resources/training-data/qna.d.mts +370 -0
- package/resources/training-data/qna.d.mts.map +1 -0
- package/resources/training-data/qna.d.ts +370 -0
- package/resources/training-data/qna.d.ts.map +1 -0
- package/resources/training-data/qna.js +177 -0
- package/resources/training-data/qna.js.map +1 -0
- package/resources/training-data/qna.mjs +173 -0
- package/resources/training-data/qna.mjs.map +1 -0
- package/resources/training-data/training-data.d.mts +442 -0
- package/resources/training-data/training-data.d.mts.map +1 -0
- package/resources/training-data/training-data.d.ts +442 -0
- package/resources/training-data/training-data.d.ts.map +1 -0
- package/resources/training-data/training-data.js +105 -0
- package/resources/training-data/training-data.js.map +1 -0
- package/resources/training-data/training-data.mjs +100 -0
- package/resources/training-data/training-data.mjs.map +1 -0
- package/resources/training-data.d.mts +2 -0
- package/resources/training-data.d.mts.map +1 -0
- package/resources/training-data.d.ts +2 -0
- package/resources/training-data.d.ts.map +1 -0
- package/resources/training-data.js +6 -0
- package/resources/training-data.js.map +1 -0
- package/resources/training-data.mjs +3 -0
- package/resources/training-data.mjs.map +1 -0
- package/resources/users/companies/companies.d.mts +121 -130
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +121 -130
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +3 -3
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +3 -3
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/contacts.d.mts +249 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +249 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +211 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +211 -184
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts +2 -2
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts +2 -2
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/webhooks.d.mts +83 -83
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +83 -83
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +77 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +77 -77
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +26 -6
- package/src/resources/audit-logs.ts +19 -1
- package/src/resources/changelogs/changelogs.ts +320 -175
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/changelogs/subscribers.ts +31 -2
- package/src/resources/conversation-attributes.ts +40 -34
- package/src/resources/feedback/boards.ts +30 -30
- package/src/resources/feedback/comments.ts +137 -137
- package/src/resources/feedback/custom-fields.ts +46 -46
- package/src/resources/feedback/feedback.ts +6 -6
- package/src/resources/feedback/index.ts +6 -6
- package/src/resources/feedback/post-statuses.ts +33 -33
- package/src/resources/feedback/posts/index.ts +2 -2
- package/src/resources/feedback/posts/posts.ts +176 -176
- package/src/resources/feedback/posts/voters.ts +3 -3
- package/src/resources/help-center/articles.ts +631 -109
- package/src/resources/help-center/collections.ts +349 -88
- package/src/resources/help-center/help-center.ts +5 -5
- package/src/resources/help-center/help-centers.ts +202 -57
- package/src/resources/help-center/index.ts +5 -5
- package/src/resources/help-center/redirect-rules.ts +294 -178
- package/src/resources/index.ts +13 -6
- package/src/resources/organization/admins.ts +36 -36
- package/src/resources/organization/brands.ts +68 -68
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +54 -54
- package/src/resources/reports.ts +462 -272
- package/src/resources/support/conversation-tags.ts +62 -62
- package/src/resources/support/conversations/conversations.ts +453 -417
- package/src/resources/support/conversations/index.ts +4 -4
- package/src/resources/support/conversations/participants.ts +2 -2
- package/src/resources/support/index.ts +7 -7
- package/src/resources/support/support.ts +7 -7
- package/src/resources/support/tickets/categories.ts +35 -35
- package/src/resources/support/tickets/custom-fields.ts +29 -29
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +31 -31
- package/src/resources/support/tickets/tickets.ts +101 -101
- package/src/resources/surveys.ts +60 -60
- package/src/resources/training-data/files.ts +431 -0
- package/src/resources/training-data/index.ts +31 -0
- package/src/resources/training-data/qna.ts +514 -0
- package/src/resources/training-data/training-data.ts +603 -0
- package/src/resources/training-data.ts +3 -0
- package/src/resources/users/companies/companies.ts +158 -172
- package/src/resources/users/companies/contacts.ts +3 -3
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
- package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +284 -280
- package/src/resources/users/contacts/email-preferences.ts +2 -2
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +106 -100
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,sCAAmC;AACvD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,UAAU,EAAE,KAAK,gB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,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -17,6 +17,81 @@ class Companies extends resource_1.APIResource {
|
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.contacts = new ContactsAPI.Contacts(this._client);
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a single company by its Featurebase ID.
|
|
22
|
+
*
|
|
23
|
+
* ### Path Parameters
|
|
24
|
+
*
|
|
25
|
+
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
26
|
+
*
|
|
27
|
+
* ### Response
|
|
28
|
+
*
|
|
29
|
+
* Returns a company object with:
|
|
30
|
+
*
|
|
31
|
+
* - `id` - Featurebase internal ID
|
|
32
|
+
* - `companyId` - External company ID from your system
|
|
33
|
+
* - `name` - Company name
|
|
34
|
+
* - `monthlySpend` - Monthly spend/revenue
|
|
35
|
+
* - `industry` - Industry
|
|
36
|
+
* - `website` - Company website URL
|
|
37
|
+
* - `plan` - Plan/tier name
|
|
38
|
+
* - `linkedUsers` - Number of users linked to this company
|
|
39
|
+
* - `companySize` - Employee headcount
|
|
40
|
+
* - `lastActivity` - Last activity timestamp
|
|
41
|
+
* - `customFields` - Custom field values
|
|
42
|
+
* - `createdAt` - Creation timestamp
|
|
43
|
+
* - `updatedAt` - Last update timestamp
|
|
44
|
+
*
|
|
45
|
+
* ### Example Response
|
|
46
|
+
*
|
|
47
|
+
* ```json
|
|
48
|
+
* {
|
|
49
|
+
* "object": "company",
|
|
50
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
51
|
+
* "companyId": "comp_12345",
|
|
52
|
+
* "name": "Acme Inc",
|
|
53
|
+
* "monthlySpend": 5000,
|
|
54
|
+
* "industry": "Technology",
|
|
55
|
+
* "website": "https://acme.com",
|
|
56
|
+
* "plan": "enterprise",
|
|
57
|
+
* "linkedUsers": 15,
|
|
58
|
+
* "companySize": 250,
|
|
59
|
+
* "lastActivity": "2025-01-15T00:00:00.000Z",
|
|
60
|
+
* "customFields": { "location": "Europe" },
|
|
61
|
+
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
62
|
+
* "updatedAt": "2025-01-10T15:30:00.000Z"
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ### Error Responses
|
|
67
|
+
*
|
|
68
|
+
* - **404 Not Found** - Company with the specified ID does not exist
|
|
69
|
+
*
|
|
70
|
+
* ### Version Availability
|
|
71
|
+
*
|
|
72
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const company = await client.users.companies.retrieve(
|
|
77
|
+
* '507f1f77bcf86cd799439011',
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
retrieve(id, params = {}, options) {
|
|
82
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
83
|
+
return this._client.get((0, path_1.path) `/v2/companies/${id}`, {
|
|
84
|
+
...options,
|
|
85
|
+
headers: (0, headers_1.buildHeaders)([
|
|
86
|
+
{
|
|
87
|
+
...(featurebaseVersion?.toString() != null ?
|
|
88
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
89
|
+
: undefined),
|
|
90
|
+
},
|
|
91
|
+
options?.headers,
|
|
92
|
+
]),
|
|
93
|
+
});
|
|
94
|
+
}
|
|
20
95
|
/**
|
|
21
96
|
* Returns all companies in your organization with cursor-based pagination.
|
|
22
97
|
*
|
|
@@ -105,6 +180,56 @@ class Companies extends resource_1.APIResource {
|
|
|
105
180
|
]),
|
|
106
181
|
});
|
|
107
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Deletes a company by its Featurebase ID.
|
|
185
|
+
*
|
|
186
|
+
* This will also remove the company from all linked users' associations.
|
|
187
|
+
*
|
|
188
|
+
* ### Path Parameters
|
|
189
|
+
*
|
|
190
|
+
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
191
|
+
*
|
|
192
|
+
* ### Response
|
|
193
|
+
*
|
|
194
|
+
* Returns a deletion confirmation object:
|
|
195
|
+
*
|
|
196
|
+
* ```json
|
|
197
|
+
* {
|
|
198
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
199
|
+
* "object": "company",
|
|
200
|
+
* "deleted": true
|
|
201
|
+
* }
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* ### Error Responses
|
|
205
|
+
*
|
|
206
|
+
* - **404 Not Found** - Company with the specified ID does not exist
|
|
207
|
+
*
|
|
208
|
+
* ### Version Availability
|
|
209
|
+
*
|
|
210
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* const deletedCompany = await client.users.companies.delete(
|
|
215
|
+
* '507f1f77bcf86cd799439011',
|
|
216
|
+
* );
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
delete(id, params = {}, options) {
|
|
220
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
221
|
+
return this._client.delete((0, path_1.path) `/v2/companies/${id}`, {
|
|
222
|
+
...options,
|
|
223
|
+
headers: (0, headers_1.buildHeaders)([
|
|
224
|
+
{
|
|
225
|
+
...(featurebaseVersion?.toString() != null ?
|
|
226
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
227
|
+
: undefined),
|
|
228
|
+
},
|
|
229
|
+
options?.headers,
|
|
230
|
+
]),
|
|
231
|
+
});
|
|
232
|
+
}
|
|
108
233
|
/**
|
|
109
234
|
* Creates a new company or updates an existing one.
|
|
110
235
|
*
|
|
@@ -195,131 +320,6 @@ class Companies extends resource_1.APIResource {
|
|
|
195
320
|
]),
|
|
196
321
|
});
|
|
197
322
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Retrieves a single company by its Featurebase ID.
|
|
200
|
-
*
|
|
201
|
-
* ### Path Parameters
|
|
202
|
-
*
|
|
203
|
-
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
204
|
-
*
|
|
205
|
-
* ### Response
|
|
206
|
-
*
|
|
207
|
-
* Returns a company object with:
|
|
208
|
-
*
|
|
209
|
-
* - `id` - Featurebase internal ID
|
|
210
|
-
* - `companyId` - External company ID from your system
|
|
211
|
-
* - `name` - Company name
|
|
212
|
-
* - `monthlySpend` - Monthly spend/revenue
|
|
213
|
-
* - `industry` - Industry
|
|
214
|
-
* - `website` - Company website URL
|
|
215
|
-
* - `plan` - Plan/tier name
|
|
216
|
-
* - `linkedUsers` - Number of users linked to this company
|
|
217
|
-
* - `companySize` - Employee headcount
|
|
218
|
-
* - `lastActivity` - Last activity timestamp
|
|
219
|
-
* - `customFields` - Custom field values
|
|
220
|
-
* - `createdAt` - Creation timestamp
|
|
221
|
-
* - `updatedAt` - Last update timestamp
|
|
222
|
-
*
|
|
223
|
-
* ### Example Response
|
|
224
|
-
*
|
|
225
|
-
* ```json
|
|
226
|
-
* {
|
|
227
|
-
* "object": "company",
|
|
228
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
229
|
-
* "companyId": "comp_12345",
|
|
230
|
-
* "name": "Acme Inc",
|
|
231
|
-
* "monthlySpend": 5000,
|
|
232
|
-
* "industry": "Technology",
|
|
233
|
-
* "website": "https://acme.com",
|
|
234
|
-
* "plan": "enterprise",
|
|
235
|
-
* "linkedUsers": 15,
|
|
236
|
-
* "companySize": 250,
|
|
237
|
-
* "lastActivity": "2025-01-15T00:00:00.000Z",
|
|
238
|
-
* "customFields": { "location": "Europe" },
|
|
239
|
-
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
240
|
-
* "updatedAt": "2025-01-10T15:30:00.000Z"
|
|
241
|
-
* }
|
|
242
|
-
* ```
|
|
243
|
-
*
|
|
244
|
-
* ### Error Responses
|
|
245
|
-
*
|
|
246
|
-
* - **404 Not Found** - Company with the specified ID does not exist
|
|
247
|
-
*
|
|
248
|
-
* ### Version Availability
|
|
249
|
-
*
|
|
250
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* ```ts
|
|
254
|
-
* const company = await client.users.companies.retrieve(
|
|
255
|
-
* '507f1f77bcf86cd799439011',
|
|
256
|
-
* );
|
|
257
|
-
* ```
|
|
258
|
-
*/
|
|
259
|
-
retrieve(id, params = {}, options) {
|
|
260
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
261
|
-
return this._client.get((0, path_1.path) `/v2/companies/${id}`, {
|
|
262
|
-
...options,
|
|
263
|
-
headers: (0, headers_1.buildHeaders)([
|
|
264
|
-
{
|
|
265
|
-
...(featurebaseVersion?.toString() != null ?
|
|
266
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
267
|
-
: undefined),
|
|
268
|
-
},
|
|
269
|
-
options?.headers,
|
|
270
|
-
]),
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* Deletes a company by its Featurebase ID.
|
|
275
|
-
*
|
|
276
|
-
* This will also remove the company from all linked users' associations.
|
|
277
|
-
*
|
|
278
|
-
* ### Path Parameters
|
|
279
|
-
*
|
|
280
|
-
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
281
|
-
*
|
|
282
|
-
* ### Response
|
|
283
|
-
*
|
|
284
|
-
* Returns a deletion confirmation object:
|
|
285
|
-
*
|
|
286
|
-
* ```json
|
|
287
|
-
* {
|
|
288
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
289
|
-
* "object": "company",
|
|
290
|
-
* "deleted": true
|
|
291
|
-
* }
|
|
292
|
-
* ```
|
|
293
|
-
*
|
|
294
|
-
* ### Error Responses
|
|
295
|
-
*
|
|
296
|
-
* - **404 Not Found** - Company with the specified ID does not exist
|
|
297
|
-
*
|
|
298
|
-
* ### Version Availability
|
|
299
|
-
*
|
|
300
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
301
|
-
*
|
|
302
|
-
* @example
|
|
303
|
-
* ```ts
|
|
304
|
-
* const deletedCompany = await client.users.companies.delete(
|
|
305
|
-
* '507f1f77bcf86cd799439011',
|
|
306
|
-
* );
|
|
307
|
-
* ```
|
|
308
|
-
*/
|
|
309
|
-
delete(id, params = {}, options) {
|
|
310
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
311
|
-
return this._client.delete((0, path_1.path) `/v2/companies/${id}`, {
|
|
312
|
-
...options,
|
|
313
|
-
headers: (0, headers_1.buildHeaders)([
|
|
314
|
-
{
|
|
315
|
-
...(featurebaseVersion?.toString() != null ?
|
|
316
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
317
|
-
: undefined),
|
|
318
|
-
},
|
|
319
|
-
options?.headers,
|
|
320
|
-
]),
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
323
|
/**
|
|
324
324
|
* Permanently deletes a company by its external company ID (the `companyId` from
|
|
325
325
|
* your system).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAOoB;AAEpB,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC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,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAlfD,8BAkfC;AA0UD,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -13,6 +13,81 @@ export class Companies extends APIResource {
|
|
|
13
13
|
super(...arguments);
|
|
14
14
|
this.contacts = new ContactsAPI.Contacts(this._client);
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a single company by its Featurebase ID.
|
|
18
|
+
*
|
|
19
|
+
* ### Path Parameters
|
|
20
|
+
*
|
|
21
|
+
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
22
|
+
*
|
|
23
|
+
* ### Response
|
|
24
|
+
*
|
|
25
|
+
* Returns a company object with:
|
|
26
|
+
*
|
|
27
|
+
* - `id` - Featurebase internal ID
|
|
28
|
+
* - `companyId` - External company ID from your system
|
|
29
|
+
* - `name` - Company name
|
|
30
|
+
* - `monthlySpend` - Monthly spend/revenue
|
|
31
|
+
* - `industry` - Industry
|
|
32
|
+
* - `website` - Company website URL
|
|
33
|
+
* - `plan` - Plan/tier name
|
|
34
|
+
* - `linkedUsers` - Number of users linked to this company
|
|
35
|
+
* - `companySize` - Employee headcount
|
|
36
|
+
* - `lastActivity` - Last activity timestamp
|
|
37
|
+
* - `customFields` - Custom field values
|
|
38
|
+
* - `createdAt` - Creation timestamp
|
|
39
|
+
* - `updatedAt` - Last update timestamp
|
|
40
|
+
*
|
|
41
|
+
* ### Example Response
|
|
42
|
+
*
|
|
43
|
+
* ```json
|
|
44
|
+
* {
|
|
45
|
+
* "object": "company",
|
|
46
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
47
|
+
* "companyId": "comp_12345",
|
|
48
|
+
* "name": "Acme Inc",
|
|
49
|
+
* "monthlySpend": 5000,
|
|
50
|
+
* "industry": "Technology",
|
|
51
|
+
* "website": "https://acme.com",
|
|
52
|
+
* "plan": "enterprise",
|
|
53
|
+
* "linkedUsers": 15,
|
|
54
|
+
* "companySize": 250,
|
|
55
|
+
* "lastActivity": "2025-01-15T00:00:00.000Z",
|
|
56
|
+
* "customFields": { "location": "Europe" },
|
|
57
|
+
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
58
|
+
* "updatedAt": "2025-01-10T15:30:00.000Z"
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ### Error Responses
|
|
63
|
+
*
|
|
64
|
+
* - **404 Not Found** - Company with the specified ID does not exist
|
|
65
|
+
*
|
|
66
|
+
* ### Version Availability
|
|
67
|
+
*
|
|
68
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const company = await client.users.companies.retrieve(
|
|
73
|
+
* '507f1f77bcf86cd799439011',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
retrieve(id, params = {}, options) {
|
|
78
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
79
|
+
return this._client.get(path `/v2/companies/${id}`, {
|
|
80
|
+
...options,
|
|
81
|
+
headers: buildHeaders([
|
|
82
|
+
{
|
|
83
|
+
...(featurebaseVersion?.toString() != null ?
|
|
84
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
85
|
+
: undefined),
|
|
86
|
+
},
|
|
87
|
+
options?.headers,
|
|
88
|
+
]),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
16
91
|
/**
|
|
17
92
|
* Returns all companies in your organization with cursor-based pagination.
|
|
18
93
|
*
|
|
@@ -101,6 +176,56 @@ export class Companies extends APIResource {
|
|
|
101
176
|
]),
|
|
102
177
|
});
|
|
103
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Deletes a company by its Featurebase ID.
|
|
181
|
+
*
|
|
182
|
+
* This will also remove the company from all linked users' associations.
|
|
183
|
+
*
|
|
184
|
+
* ### Path Parameters
|
|
185
|
+
*
|
|
186
|
+
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
187
|
+
*
|
|
188
|
+
* ### Response
|
|
189
|
+
*
|
|
190
|
+
* Returns a deletion confirmation object:
|
|
191
|
+
*
|
|
192
|
+
* ```json
|
|
193
|
+
* {
|
|
194
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
195
|
+
* "object": "company",
|
|
196
|
+
* "deleted": true
|
|
197
|
+
* }
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* ### Error Responses
|
|
201
|
+
*
|
|
202
|
+
* - **404 Not Found** - Company with the specified ID does not exist
|
|
203
|
+
*
|
|
204
|
+
* ### Version Availability
|
|
205
|
+
*
|
|
206
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* ```ts
|
|
210
|
+
* const deletedCompany = await client.users.companies.delete(
|
|
211
|
+
* '507f1f77bcf86cd799439011',
|
|
212
|
+
* );
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
delete(id, params = {}, options) {
|
|
216
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
217
|
+
return this._client.delete(path `/v2/companies/${id}`, {
|
|
218
|
+
...options,
|
|
219
|
+
headers: buildHeaders([
|
|
220
|
+
{
|
|
221
|
+
...(featurebaseVersion?.toString() != null ?
|
|
222
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
223
|
+
: undefined),
|
|
224
|
+
},
|
|
225
|
+
options?.headers,
|
|
226
|
+
]),
|
|
227
|
+
});
|
|
228
|
+
}
|
|
104
229
|
/**
|
|
105
230
|
* Creates a new company or updates an existing one.
|
|
106
231
|
*
|
|
@@ -191,131 +316,6 @@ export class Companies extends APIResource {
|
|
|
191
316
|
]),
|
|
192
317
|
});
|
|
193
318
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Retrieves a single company by its Featurebase ID.
|
|
196
|
-
*
|
|
197
|
-
* ### Path Parameters
|
|
198
|
-
*
|
|
199
|
-
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
200
|
-
*
|
|
201
|
-
* ### Response
|
|
202
|
-
*
|
|
203
|
-
* Returns a company object with:
|
|
204
|
-
*
|
|
205
|
-
* - `id` - Featurebase internal ID
|
|
206
|
-
* - `companyId` - External company ID from your system
|
|
207
|
-
* - `name` - Company name
|
|
208
|
-
* - `monthlySpend` - Monthly spend/revenue
|
|
209
|
-
* - `industry` - Industry
|
|
210
|
-
* - `website` - Company website URL
|
|
211
|
-
* - `plan` - Plan/tier name
|
|
212
|
-
* - `linkedUsers` - Number of users linked to this company
|
|
213
|
-
* - `companySize` - Employee headcount
|
|
214
|
-
* - `lastActivity` - Last activity timestamp
|
|
215
|
-
* - `customFields` - Custom field values
|
|
216
|
-
* - `createdAt` - Creation timestamp
|
|
217
|
-
* - `updatedAt` - Last update timestamp
|
|
218
|
-
*
|
|
219
|
-
* ### Example Response
|
|
220
|
-
*
|
|
221
|
-
* ```json
|
|
222
|
-
* {
|
|
223
|
-
* "object": "company",
|
|
224
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
225
|
-
* "companyId": "comp_12345",
|
|
226
|
-
* "name": "Acme Inc",
|
|
227
|
-
* "monthlySpend": 5000,
|
|
228
|
-
* "industry": "Technology",
|
|
229
|
-
* "website": "https://acme.com",
|
|
230
|
-
* "plan": "enterprise",
|
|
231
|
-
* "linkedUsers": 15,
|
|
232
|
-
* "companySize": 250,
|
|
233
|
-
* "lastActivity": "2025-01-15T00:00:00.000Z",
|
|
234
|
-
* "customFields": { "location": "Europe" },
|
|
235
|
-
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
236
|
-
* "updatedAt": "2025-01-10T15:30:00.000Z"
|
|
237
|
-
* }
|
|
238
|
-
* ```
|
|
239
|
-
*
|
|
240
|
-
* ### Error Responses
|
|
241
|
-
*
|
|
242
|
-
* - **404 Not Found** - Company with the specified ID does not exist
|
|
243
|
-
*
|
|
244
|
-
* ### Version Availability
|
|
245
|
-
*
|
|
246
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
247
|
-
*
|
|
248
|
-
* @example
|
|
249
|
-
* ```ts
|
|
250
|
-
* const company = await client.users.companies.retrieve(
|
|
251
|
-
* '507f1f77bcf86cd799439011',
|
|
252
|
-
* );
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
|
-
retrieve(id, params = {}, options) {
|
|
256
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
257
|
-
return this._client.get(path `/v2/companies/${id}`, {
|
|
258
|
-
...options,
|
|
259
|
-
headers: buildHeaders([
|
|
260
|
-
{
|
|
261
|
-
...(featurebaseVersion?.toString() != null ?
|
|
262
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
263
|
-
: undefined),
|
|
264
|
-
},
|
|
265
|
-
options?.headers,
|
|
266
|
-
]),
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Deletes a company by its Featurebase ID.
|
|
271
|
-
*
|
|
272
|
-
* This will also remove the company from all linked users' associations.
|
|
273
|
-
*
|
|
274
|
-
* ### Path Parameters
|
|
275
|
-
*
|
|
276
|
-
* - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
|
|
277
|
-
*
|
|
278
|
-
* ### Response
|
|
279
|
-
*
|
|
280
|
-
* Returns a deletion confirmation object:
|
|
281
|
-
*
|
|
282
|
-
* ```json
|
|
283
|
-
* {
|
|
284
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
285
|
-
* "object": "company",
|
|
286
|
-
* "deleted": true
|
|
287
|
-
* }
|
|
288
|
-
* ```
|
|
289
|
-
*
|
|
290
|
-
* ### Error Responses
|
|
291
|
-
*
|
|
292
|
-
* - **404 Not Found** - Company with the specified ID does not exist
|
|
293
|
-
*
|
|
294
|
-
* ### Version Availability
|
|
295
|
-
*
|
|
296
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* ```ts
|
|
300
|
-
* const deletedCompany = await client.users.companies.delete(
|
|
301
|
-
* '507f1f77bcf86cd799439011',
|
|
302
|
-
* );
|
|
303
|
-
* ```
|
|
304
|
-
*/
|
|
305
|
-
delete(id, params = {}, options) {
|
|
306
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
307
|
-
return this._client.delete(path `/v2/companies/${id}`, {
|
|
308
|
-
...options,
|
|
309
|
-
headers: buildHeaders([
|
|
310
|
-
{
|
|
311
|
-
...(featurebaseVersion?.toString() != null ?
|
|
312
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
313
|
-
: undefined),
|
|
314
|
-
},
|
|
315
|
-
options?.headers,
|
|
316
|
-
]),
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
319
|
/**
|
|
320
320
|
* Permanently deletes a company by its external company ID (the `companyId` from
|
|
321
321
|
* your system).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAML,QAAQ,GACT,uBAAmB;AAEpB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAC1F,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,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AE,OAAwB;QAC1D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA0UD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -202,7 +202,7 @@ export interface ContactListParams extends CursorPageParams {
|
|
|
202
202
|
* Header param: API version for this request. Defaults to your organization's
|
|
203
203
|
* configured API version if not specified.
|
|
204
204
|
*/
|
|
205
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
205
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
206
206
|
}
|
|
207
207
|
export interface ContactAttachParams {
|
|
208
208
|
/**
|
|
@@ -214,7 +214,7 @@ export interface ContactAttachParams {
|
|
|
214
214
|
* Header param: API version for this request. Defaults to your organization's
|
|
215
215
|
* configured API version if not specified.
|
|
216
216
|
*/
|
|
217
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
217
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
218
218
|
}
|
|
219
219
|
export interface ContactRemoveParams {
|
|
220
220
|
/**
|
|
@@ -225,7 +225,7 @@ export interface ContactRemoveParams {
|
|
|
225
225
|
* Header param: API version for this request. Defaults to your organization's
|
|
226
226
|
* configured API version if not specified.
|
|
227
227
|
*/
|
|
228
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
228
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
229
229
|
}
|
|
230
230
|
export declare namespace Contacts {
|
|
231
231
|
export { type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,gBAAgB,iCAA6B;AACzD,OAAO,EAAE,yBAAyB,EAAE,iCAA6B;AACjE,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE,qCAAiC;AAE1F,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC;IAoB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAgBpC;;;;;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AAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,yBAAyB,EAAE,CAAC"}
|
|
@@ -202,7 +202,7 @@ export interface ContactListParams extends CursorPageParams {
|
|
|
202
202
|
* Header param: API version for this request. Defaults to your organization's
|
|
203
203
|
* configured API version if not specified.
|
|
204
204
|
*/
|
|
205
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
205
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
206
206
|
}
|
|
207
207
|
export interface ContactAttachParams {
|
|
208
208
|
/**
|
|
@@ -214,7 +214,7 @@ export interface ContactAttachParams {
|
|
|
214
214
|
* Header param: API version for this request. Defaults to your organization's
|
|
215
215
|
* configured API version if not specified.
|
|
216
216
|
*/
|
|
217
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
217
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
218
218
|
}
|
|
219
219
|
export interface ContactRemoveParams {
|
|
220
220
|
/**
|
|
@@ -225,7 +225,7 @@ export interface ContactRemoveParams {
|
|
|
225
225
|
* Header param: API version for this request. Defaults to your organization's
|
|
226
226
|
* configured API version if not specified.
|
|
227
227
|
*/
|
|
228
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
228
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
229
229
|
}
|
|
230
230
|
export declare namespace Contacts {
|
|
231
231
|
export { type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|