featurebase-node 0.3.0 → 0.5.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 +17 -0
- package/README.md +31 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +10 -0
- package/client.js.map +1 -1
- package/client.mjs +10 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +16 -60
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +16 -60
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +41 -9
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +41 -9
- 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 +2 -2
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts +2 -2
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.js +10 -2
- package/resources/changelogs/subscribers.js.map +1 -1
- package/resources/changelogs/subscribers.mjs +10 -2
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/feedback/boards.d.mts +2 -2
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +2 -2
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +10 -2
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +10 -2
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +15 -59
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +15 -59
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +36 -8
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +36 -8
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +2 -2
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +2 -2
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +10 -2
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +10 -2
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +4 -4
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +4 -4
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +2 -2
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +2 -2
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/post-statuses.d.mts +2 -2
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +2 -2
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +10 -2
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +10 -2
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +2 -2
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +2 -2
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +16 -61
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +16 -61
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +31 -7
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +31 -7
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +82 -127
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +82 -127
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.js +22 -6
- package/resources/feedback/posts/voters.js.map +1 -1
- package/resources/feedback/posts/voters.mjs +22 -6
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +14 -32
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +14 -32
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +31 -7
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +31 -7
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +14 -33
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +14 -33
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +31 -8
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +31 -8
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +8 -8
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +8 -8
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +11 -30
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +11 -30
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +16 -5
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +16 -5
- 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 +15 -34
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +15 -34
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +36 -9
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +36 -9
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +3 -3
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +3 -3
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +15 -3
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +15 -3
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +7 -28
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +7 -28
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +12 -3
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +12 -3
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +1 -1
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -1
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +2 -2
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +2 -2
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +10 -2
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +10 -2
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +4 -4
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +4 -4
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +20 -4
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +20 -4
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +17 -36
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +17 -36
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +41 -10
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +41 -10
- 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/conversations/participants.js +10 -2
- package/resources/support/conversations/participants.js.map +1 -1
- package/resources/support/conversations/participants.mjs +10 -2
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations/tags.d.mts +2 -2
- package/resources/support/conversations/tags.d.mts.map +1 -1
- package/resources/support/conversations/tags.d.ts +2 -2
- package/resources/support/conversations/tags.d.ts.map +1 -1
- package/resources/support/conversations/tags.js +10 -2
- package/resources/support/conversations/tags.js.map +1 -1
- package/resources/support/conversations/tags.mjs +10 -2
- package/resources/support/conversations/tags.mjs.map +1 -1
- package/resources/support/index.d.mts +2 -2
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +2 -2
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +2 -2
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +2 -2
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +10 -2
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +10 -2
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +2 -2
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +2 -2
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +10 -2
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +10 -2
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +1 -1
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +1 -1
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/statuses.d.mts +2 -2
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +2 -2
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +10 -2
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +10 -2
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +16 -34
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +16 -34
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +36 -8
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +36 -8
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/surveys.d.mts +37 -82
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +37 -82
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +19 -6
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +19 -6
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +14 -33
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +14 -33
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +31 -7
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +31 -7
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +14 -19
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +14 -19
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.js +23 -8
- package/resources/users/companies/contacts.js.map +1 -1
- package/resources/users/companies/contacts.mjs +23 -8
- package/resources/users/companies/contacts.mjs.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/by-user-id.js +10 -2
- package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs +10 -2
- package/resources/users/contacts/by-user-id/by-user-id.mjs.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/by-user-id/email-preferences.js +10 -2
- package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs +10 -2
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +15 -19
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +15 -19
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +36 -8
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +36 -8
- 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/email-preferences.js +10 -2
- package/resources/users/contacts/email-preferences.js.map +1 -1
- package/resources/users/contacts/email-preferences.mjs +10 -2
- package/resources/users/contacts/email-preferences.mjs.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/contacts/index.js.map +1 -1
- package/resources/users/contacts/index.mjs.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/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +15 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +15 -33
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +36 -8
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +36 -8
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +41 -10
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +53 -78
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/changelogs/subscribers.ts +12 -4
- package/src/resources/feedback/boards.ts +12 -4
- package/src/resources/feedback/comments.ts +47 -76
- package/src/resources/feedback/custom-fields.ts +12 -4
- package/src/resources/feedback/feedback.ts +4 -4
- package/src/resources/feedback/index.ts +2 -2
- package/src/resources/feedback/post-statuses.ts +12 -4
- package/src/resources/feedback/posts/index.ts +2 -1
- package/src/resources/feedback/posts/posts.ts +43 -75
- package/src/resources/feedback/posts/voters.ts +105 -146
- package/src/resources/help-center/articles.ts +41 -43
- package/src/resources/help-center/collections.ts +41 -44
- package/src/resources/help-center/help-center.ts +8 -8
- package/src/resources/help-center/help-centers.ts +23 -38
- package/src/resources/help-center/index.ts +4 -4
- package/src/resources/help-center/redirect-rules.ts +47 -46
- package/src/resources/index.ts +6 -5
- package/src/resources/organization/admins.ts +18 -6
- package/src/resources/organization/brands.ts +19 -36
- package/src/resources/organization/index.ts +1 -1
- package/src/resources/organization/organization.ts +2 -2
- package/src/resources/organization/teams.ts +12 -4
- package/src/resources/support/conversation-tags.ts +24 -8
- package/src/resources/support/conversations/conversations.ts +54 -49
- package/src/resources/support/conversations/index.ts +1 -1
- package/src/resources/support/conversations/participants.ts +12 -4
- package/src/resources/support/conversations/tags.ts +12 -4
- package/src/resources/support/index.ts +2 -2
- package/src/resources/support/support.ts +4 -4
- package/src/resources/support/tickets/categories.ts +12 -4
- package/src/resources/support/tickets/custom-fields.ts +12 -4
- package/src/resources/support/tickets/index.ts +1 -1
- package/src/resources/support/tickets/statuses.ts +12 -4
- package/src/resources/support/tickets/tickets.ts +48 -46
- package/src/resources/surveys.ts +71 -107
- package/src/resources/users/companies/companies.ts +41 -44
- package/src/resources/users/companies/contacts.ts +41 -31
- package/src/resources/users/companies/index.ts +1 -1
- package/src/resources/users/contacts/by-user-id/by-user-id.ts +12 -4
- package/src/resources/users/contacts/by-user-id/email-preferences.ts +12 -4
- package/src/resources/users/contacts/contacts.ts +50 -27
- package/src/resources/users/contacts/email-preferences.ts +12 -4
- package/src/resources/users/contacts/index.ts +1 -0
- package/src/resources/users/index.ts +2 -1
- package/src/resources/users/users.ts +4 -2
- package/src/resources/webhooks.ts +47 -45
- 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
|
@@ -2,6 +2,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import * as ContactsAPI from "./contacts.mjs";
|
|
3
3
|
import { ContactAttachParams, ContactAttachResponse, ContactListParams, ContactRemoveParams, ContactRemoveResponse, Contacts } from "./contacts.mjs";
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
7
|
/**
|
|
7
8
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
@@ -137,10 +138,13 @@ export declare class Companies extends APIResource {
|
|
|
137
138
|
*
|
|
138
139
|
* @example
|
|
139
140
|
* ```ts
|
|
140
|
-
*
|
|
141
|
+
* // Automatically fetches more pages as needed.
|
|
142
|
+
* for await (const company of client.users.companies.list()) {
|
|
143
|
+
* // ...
|
|
144
|
+
* }
|
|
141
145
|
* ```
|
|
142
146
|
*/
|
|
143
|
-
list(params?: CompanyListParams | null | undefined, options?: RequestOptions):
|
|
147
|
+
list(params?: CompanyListParams | null | undefined, options?: RequestOptions): PagePromise<CompaniesCursorPage, Company>;
|
|
144
148
|
/**
|
|
145
149
|
* Deletes a company by its Featurebase ID.
|
|
146
150
|
*
|
|
@@ -309,6 +313,7 @@ export declare class Companies extends APIResource {
|
|
|
309
313
|
*/
|
|
310
314
|
deleteByCompanyID(companyID: string, params?: CompanyDeleteByCompanyIDParams | null | undefined, options?: RequestOptions): APIPromise<DeletedCompany>;
|
|
311
315
|
}
|
|
316
|
+
export type CompaniesCursorPage = CursorPage<Company>;
|
|
312
317
|
export interface Company {
|
|
313
318
|
/**
|
|
314
319
|
* Featurebase internal ID
|
|
@@ -383,50 +388,26 @@ export interface DeletedCompany {
|
|
|
383
388
|
*/
|
|
384
389
|
object: 'company';
|
|
385
390
|
}
|
|
386
|
-
export interface CompanyListResponse {
|
|
387
|
-
/**
|
|
388
|
-
* Array of companies
|
|
389
|
-
*/
|
|
390
|
-
data: Array<Company>;
|
|
391
|
-
/**
|
|
392
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
393
|
-
*/
|
|
394
|
-
nextCursor: string | null;
|
|
395
|
-
/**
|
|
396
|
-
* Object type identifier
|
|
397
|
-
*/
|
|
398
|
-
object: 'list';
|
|
399
|
-
}
|
|
400
391
|
export interface CompanyRetrieveParams {
|
|
401
392
|
/**
|
|
402
393
|
* API version for this request. Defaults to your organization's configured API
|
|
403
394
|
* version if not specified.
|
|
404
395
|
*/
|
|
405
|
-
'Featurebase-Version'?:
|
|
396
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
406
397
|
}
|
|
407
|
-
export interface CompanyListParams {
|
|
408
|
-
/**
|
|
409
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
410
|
-
* previous response to fetch the next page of results.
|
|
411
|
-
*/
|
|
412
|
-
cursor?: string;
|
|
413
|
-
/**
|
|
414
|
-
* Query param: A limit on the number of companies to be returned, between 1
|
|
415
|
-
* and 100.
|
|
416
|
-
*/
|
|
417
|
-
limit?: number;
|
|
398
|
+
export interface CompanyListParams extends CursorPageParams {
|
|
418
399
|
/**
|
|
419
400
|
* Header param: API version for this request. Defaults to your organization's
|
|
420
401
|
* configured API version if not specified.
|
|
421
402
|
*/
|
|
422
|
-
'Featurebase-Version'?:
|
|
403
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
423
404
|
}
|
|
424
405
|
export interface CompanyDeleteParams {
|
|
425
406
|
/**
|
|
426
407
|
* API version for this request. Defaults to your organization's configured API
|
|
427
408
|
* version if not specified.
|
|
428
409
|
*/
|
|
429
|
-
'Featurebase-Version'?:
|
|
410
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
430
411
|
}
|
|
431
412
|
export interface CompanyCreateOrUpdateParams {
|
|
432
413
|
/**
|
|
@@ -471,7 +452,7 @@ export interface CompanyCreateOrUpdateParams {
|
|
|
471
452
|
* Header param: API version for this request. Defaults to your organization's
|
|
472
453
|
* configured API version if not specified.
|
|
473
454
|
*/
|
|
474
|
-
'Featurebase-Version'?:
|
|
455
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
475
456
|
}
|
|
476
457
|
export declare namespace CompanyCreateOrUpdateParams {
|
|
477
458
|
/**
|
|
@@ -489,10 +470,10 @@ export interface CompanyDeleteByCompanyIDParams {
|
|
|
489
470
|
* API version for this request. Defaults to your organization's configured API
|
|
490
471
|
* version if not specified.
|
|
491
472
|
*/
|
|
492
|
-
'Featurebase-Version'?:
|
|
473
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
493
474
|
}
|
|
494
475
|
export declare namespace Companies {
|
|
495
|
-
export { type Company as Company, type DeletedCompany as DeletedCompany, type
|
|
476
|
+
export { type Company as Company, type DeletedCompany as DeletedCompany, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, };
|
|
496
477
|
export { Contacts as Contacts, type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|
|
497
478
|
}
|
|
498
479
|
//# sourceMappingURL=companies.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"companies.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"OA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,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,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"}
|
|
@@ -2,6 +2,7 @@ import { APIResource } from "../../../core/resource.js";
|
|
|
2
2
|
import * as ContactsAPI from "./contacts.js";
|
|
3
3
|
import { ContactAttachParams, ContactAttachResponse, ContactListParams, ContactRemoveParams, ContactRemoveResponse, Contacts } from "./contacts.js";
|
|
4
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js";
|
|
5
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
7
|
/**
|
|
7
8
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
@@ -137,10 +138,13 @@ export declare class Companies extends APIResource {
|
|
|
137
138
|
*
|
|
138
139
|
* @example
|
|
139
140
|
* ```ts
|
|
140
|
-
*
|
|
141
|
+
* // Automatically fetches more pages as needed.
|
|
142
|
+
* for await (const company of client.users.companies.list()) {
|
|
143
|
+
* // ...
|
|
144
|
+
* }
|
|
141
145
|
* ```
|
|
142
146
|
*/
|
|
143
|
-
list(params?: CompanyListParams | null | undefined, options?: RequestOptions):
|
|
147
|
+
list(params?: CompanyListParams | null | undefined, options?: RequestOptions): PagePromise<CompaniesCursorPage, Company>;
|
|
144
148
|
/**
|
|
145
149
|
* Deletes a company by its Featurebase ID.
|
|
146
150
|
*
|
|
@@ -309,6 +313,7 @@ export declare class Companies extends APIResource {
|
|
|
309
313
|
*/
|
|
310
314
|
deleteByCompanyID(companyID: string, params?: CompanyDeleteByCompanyIDParams | null | undefined, options?: RequestOptions): APIPromise<DeletedCompany>;
|
|
311
315
|
}
|
|
316
|
+
export type CompaniesCursorPage = CursorPage<Company>;
|
|
312
317
|
export interface Company {
|
|
313
318
|
/**
|
|
314
319
|
* Featurebase internal ID
|
|
@@ -383,50 +388,26 @@ export interface DeletedCompany {
|
|
|
383
388
|
*/
|
|
384
389
|
object: 'company';
|
|
385
390
|
}
|
|
386
|
-
export interface CompanyListResponse {
|
|
387
|
-
/**
|
|
388
|
-
* Array of companies
|
|
389
|
-
*/
|
|
390
|
-
data: Array<Company>;
|
|
391
|
-
/**
|
|
392
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
393
|
-
*/
|
|
394
|
-
nextCursor: string | null;
|
|
395
|
-
/**
|
|
396
|
-
* Object type identifier
|
|
397
|
-
*/
|
|
398
|
-
object: 'list';
|
|
399
|
-
}
|
|
400
391
|
export interface CompanyRetrieveParams {
|
|
401
392
|
/**
|
|
402
393
|
* API version for this request. Defaults to your organization's configured API
|
|
403
394
|
* version if not specified.
|
|
404
395
|
*/
|
|
405
|
-
'Featurebase-Version'?:
|
|
396
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
406
397
|
}
|
|
407
|
-
export interface CompanyListParams {
|
|
408
|
-
/**
|
|
409
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
410
|
-
* previous response to fetch the next page of results.
|
|
411
|
-
*/
|
|
412
|
-
cursor?: string;
|
|
413
|
-
/**
|
|
414
|
-
* Query param: A limit on the number of companies to be returned, between 1
|
|
415
|
-
* and 100.
|
|
416
|
-
*/
|
|
417
|
-
limit?: number;
|
|
398
|
+
export interface CompanyListParams extends CursorPageParams {
|
|
418
399
|
/**
|
|
419
400
|
* Header param: API version for this request. Defaults to your organization's
|
|
420
401
|
* configured API version if not specified.
|
|
421
402
|
*/
|
|
422
|
-
'Featurebase-Version'?:
|
|
403
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
423
404
|
}
|
|
424
405
|
export interface CompanyDeleteParams {
|
|
425
406
|
/**
|
|
426
407
|
* API version for this request. Defaults to your organization's configured API
|
|
427
408
|
* version if not specified.
|
|
428
409
|
*/
|
|
429
|
-
'Featurebase-Version'?:
|
|
410
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
430
411
|
}
|
|
431
412
|
export interface CompanyCreateOrUpdateParams {
|
|
432
413
|
/**
|
|
@@ -471,7 +452,7 @@ export interface CompanyCreateOrUpdateParams {
|
|
|
471
452
|
* Header param: API version for this request. Defaults to your organization's
|
|
472
453
|
* configured API version if not specified.
|
|
473
454
|
*/
|
|
474
|
-
'Featurebase-Version'?:
|
|
455
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
475
456
|
}
|
|
476
457
|
export declare namespace CompanyCreateOrUpdateParams {
|
|
477
458
|
/**
|
|
@@ -489,10 +470,10 @@ export interface CompanyDeleteByCompanyIDParams {
|
|
|
489
470
|
* API version for this request. Defaults to your organization's configured API
|
|
490
471
|
* version if not specified.
|
|
491
472
|
*/
|
|
492
|
-
'Featurebase-Version'?:
|
|
473
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
493
474
|
}
|
|
494
475
|
export declare namespace Companies {
|
|
495
|
-
export { type Company as Company, type DeletedCompany as DeletedCompany, type
|
|
476
|
+
export { type Company as Company, type DeletedCompany as DeletedCompany, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, };
|
|
496
477
|
export { Contacts as Contacts, type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|
|
497
478
|
}
|
|
498
479
|
//# sourceMappingURL=companies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAetB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,UAAiB,YAAY;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,8BAA8B;IAC7C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,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"}
|
|
@@ -6,6 +6,7 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const ContactsAPI = tslib_1.__importStar(require("./contacts.js"));
|
|
8
8
|
const contacts_1 = require("./contacts.js");
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
9
10
|
const headers_1 = require("../../../internal/headers.js");
|
|
10
11
|
const path_1 = require("../../../internal/utils/path.js");
|
|
11
12
|
/**
|
|
@@ -82,7 +83,11 @@ class Companies extends resource_1.APIResource {
|
|
|
82
83
|
return this._client.get((0, path_1.path) `/v2/companies/${id}`, {
|
|
83
84
|
...options,
|
|
84
85
|
headers: (0, headers_1.buildHeaders)([
|
|
85
|
-
{
|
|
86
|
+
{
|
|
87
|
+
...(featurebaseVersion?.toString() != null ?
|
|
88
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
89
|
+
: undefined),
|
|
90
|
+
},
|
|
86
91
|
options?.headers,
|
|
87
92
|
]),
|
|
88
93
|
});
|
|
@@ -154,16 +159,23 @@ class Companies extends resource_1.APIResource {
|
|
|
154
159
|
*
|
|
155
160
|
* @example
|
|
156
161
|
* ```ts
|
|
157
|
-
*
|
|
162
|
+
* // Automatically fetches more pages as needed.
|
|
163
|
+
* for await (const company of client.users.companies.list()) {
|
|
164
|
+
* // ...
|
|
165
|
+
* }
|
|
158
166
|
* ```
|
|
159
167
|
*/
|
|
160
168
|
list(params = {}, options) {
|
|
161
169
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
162
|
-
return this._client.
|
|
170
|
+
return this._client.getAPIList('/v2/companies', (pagination_1.CursorPage), {
|
|
163
171
|
query,
|
|
164
172
|
...options,
|
|
165
173
|
headers: (0, headers_1.buildHeaders)([
|
|
166
|
-
{
|
|
174
|
+
{
|
|
175
|
+
...(featurebaseVersion?.toString() != null ?
|
|
176
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
177
|
+
: undefined),
|
|
178
|
+
},
|
|
167
179
|
options?.headers,
|
|
168
180
|
]),
|
|
169
181
|
});
|
|
@@ -209,7 +221,11 @@ class Companies extends resource_1.APIResource {
|
|
|
209
221
|
return this._client.delete((0, path_1.path) `/v2/companies/${id}`, {
|
|
210
222
|
...options,
|
|
211
223
|
headers: (0, headers_1.buildHeaders)([
|
|
212
|
-
{
|
|
224
|
+
{
|
|
225
|
+
...(featurebaseVersion?.toString() != null ?
|
|
226
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
227
|
+
: undefined),
|
|
228
|
+
},
|
|
213
229
|
options?.headers,
|
|
214
230
|
]),
|
|
215
231
|
});
|
|
@@ -295,7 +311,11 @@ class Companies extends resource_1.APIResource {
|
|
|
295
311
|
body,
|
|
296
312
|
...options,
|
|
297
313
|
headers: (0, headers_1.buildHeaders)([
|
|
298
|
-
{
|
|
314
|
+
{
|
|
315
|
+
...(featurebaseVersion?.toString() != null ?
|
|
316
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
317
|
+
: undefined),
|
|
318
|
+
},
|
|
299
319
|
options?.headers,
|
|
300
320
|
]),
|
|
301
321
|
});
|
|
@@ -358,7 +378,11 @@ class Companies extends resource_1.APIResource {
|
|
|
358
378
|
return this._client.delete((0, path_1.path) `/v2/companies/by-company-id/${companyID}`, {
|
|
359
379
|
...options,
|
|
360
380
|
headers: (0, headers_1.buildHeaders)([
|
|
361
|
-
{
|
|
381
|
+
{
|
|
382
|
+
...(featurebaseVersion?.toString() != null ?
|
|
383
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
384
|
+
: undefined),
|
|
385
|
+
},
|
|
362
386
|
options?.headers,
|
|
363
387
|
]),
|
|
364
388
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAOoB;AAEpB,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,I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C,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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,iBAAiB,CACf,SAAiB,EACjB,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,+BAA+B,SAAS,EAAE,EAAE;YACzE,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;AAxYD,8BAwYC;AAkMD,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ContactsAPI from "./contacts.mjs";
|
|
4
4
|
import { Contacts, } from "./contacts.mjs";
|
|
5
|
+
import { CursorPage } from "../../../core/pagination.mjs";
|
|
5
6
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
7
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
8
|
/**
|
|
@@ -78,7 +79,11 @@ export class Companies extends APIResource {
|
|
|
78
79
|
return this._client.get(path `/v2/companies/${id}`, {
|
|
79
80
|
...options,
|
|
80
81
|
headers: buildHeaders([
|
|
81
|
-
{
|
|
82
|
+
{
|
|
83
|
+
...(featurebaseVersion?.toString() != null ?
|
|
84
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
85
|
+
: undefined),
|
|
86
|
+
},
|
|
82
87
|
options?.headers,
|
|
83
88
|
]),
|
|
84
89
|
});
|
|
@@ -150,16 +155,23 @@ export class Companies extends APIResource {
|
|
|
150
155
|
*
|
|
151
156
|
* @example
|
|
152
157
|
* ```ts
|
|
153
|
-
*
|
|
158
|
+
* // Automatically fetches more pages as needed.
|
|
159
|
+
* for await (const company of client.users.companies.list()) {
|
|
160
|
+
* // ...
|
|
161
|
+
* }
|
|
154
162
|
* ```
|
|
155
163
|
*/
|
|
156
164
|
list(params = {}, options) {
|
|
157
165
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
158
|
-
return this._client.
|
|
166
|
+
return this._client.getAPIList('/v2/companies', (CursorPage), {
|
|
159
167
|
query,
|
|
160
168
|
...options,
|
|
161
169
|
headers: buildHeaders([
|
|
162
|
-
{
|
|
170
|
+
{
|
|
171
|
+
...(featurebaseVersion?.toString() != null ?
|
|
172
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
173
|
+
: undefined),
|
|
174
|
+
},
|
|
163
175
|
options?.headers,
|
|
164
176
|
]),
|
|
165
177
|
});
|
|
@@ -205,7 +217,11 @@ export class Companies extends APIResource {
|
|
|
205
217
|
return this._client.delete(path `/v2/companies/${id}`, {
|
|
206
218
|
...options,
|
|
207
219
|
headers: buildHeaders([
|
|
208
|
-
{
|
|
220
|
+
{
|
|
221
|
+
...(featurebaseVersion?.toString() != null ?
|
|
222
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
223
|
+
: undefined),
|
|
224
|
+
},
|
|
209
225
|
options?.headers,
|
|
210
226
|
]),
|
|
211
227
|
});
|
|
@@ -291,7 +307,11 @@ export class Companies extends APIResource {
|
|
|
291
307
|
body,
|
|
292
308
|
...options,
|
|
293
309
|
headers: buildHeaders([
|
|
294
|
-
{
|
|
310
|
+
{
|
|
311
|
+
...(featurebaseVersion?.toString() != null ?
|
|
312
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
313
|
+
: undefined),
|
|
314
|
+
},
|
|
295
315
|
options?.headers,
|
|
296
316
|
]),
|
|
297
317
|
});
|
|
@@ -354,7 +374,11 @@ export class Companies extends APIResource {
|
|
|
354
374
|
return this._client.delete(path `/v2/companies/by-company-id/${companyID}`, {
|
|
355
375
|
...options,
|
|
356
376
|
headers: buildHeaders([
|
|
357
|
-
{
|
|
377
|
+
{
|
|
378
|
+
...(featurebaseVersion?.toString() != null ?
|
|
379
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
380
|
+
: undefined),
|
|
381
|
+
},
|
|
358
382
|
options?.headers,
|
|
359
383
|
]),
|
|
360
384
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAML,QAAQ,GACT;OAEM,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAML,QAAQ,GACT;OAEM,EA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EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,iBAAiB,CACf,SAAiB,EACjB,SAA4D,EAAE,EAC9D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,+BAA+B,SAAS,EAAE,EAAE;YACzE,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;AAkMD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as UsersContactsAPI from "../contacts/contacts.mjs";
|
|
3
|
+
import { ContactListDataCursorPage } from "../contacts/contacts.mjs";
|
|
3
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { type CursorPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
4
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
7
|
/**
|
|
6
8
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
@@ -60,13 +62,15 @@ export declare class Contacts extends APIResource {
|
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* ```ts
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* // Automatically fetches more pages as needed.
|
|
66
|
+
* for await (const contact of client.users.companies.contacts.list(
|
|
67
|
+
* '507f1f77bcf86cd799439011',
|
|
68
|
+
* )) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
67
71
|
* ```
|
|
68
72
|
*/
|
|
69
|
-
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions):
|
|
73
|
+
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactListDataCursorPage, UsersContactsAPI.ContactList.Data>;
|
|
70
74
|
/**
|
|
71
75
|
* Attaches a contact (customer) to a company.
|
|
72
76
|
*
|
|
@@ -193,22 +197,12 @@ export type ContactAttachResponse = UsersContactsAPI.Contact | (null & {});
|
|
|
193
197
|
* User who submitted the response
|
|
194
198
|
*/
|
|
195
199
|
export type ContactRemoveResponse = UsersContactsAPI.Contact | (null & {});
|
|
196
|
-
export interface ContactListParams {
|
|
197
|
-
/**
|
|
198
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
199
|
-
* previous response to fetch the next page of results.
|
|
200
|
-
*/
|
|
201
|
-
cursor?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Query param: A limit on the number of contacts to be returned, between 1
|
|
204
|
-
* and 100.
|
|
205
|
-
*/
|
|
206
|
-
limit?: number;
|
|
200
|
+
export interface ContactListParams extends CursorPageParams {
|
|
207
201
|
/**
|
|
208
202
|
* Header param: API version for this request. Defaults to your organization's
|
|
209
203
|
* configured API version if not specified.
|
|
210
204
|
*/
|
|
211
|
-
'Featurebase-Version'?:
|
|
205
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
212
206
|
}
|
|
213
207
|
export interface ContactAttachParams {
|
|
214
208
|
/**
|
|
@@ -220,7 +214,7 @@ export interface ContactAttachParams {
|
|
|
220
214
|
* Header param: API version for this request. Defaults to your organization's
|
|
221
215
|
* configured API version if not specified.
|
|
222
216
|
*/
|
|
223
|
-
'Featurebase-Version'?:
|
|
217
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
224
218
|
}
|
|
225
219
|
export interface ContactRemoveParams {
|
|
226
220
|
/**
|
|
@@ -231,9 +225,10 @@ export interface ContactRemoveParams {
|
|
|
231
225
|
* Header param: API version for this request. Defaults to your organization's
|
|
232
226
|
* configured API version if not specified.
|
|
233
227
|
*/
|
|
234
|
-
'Featurebase-Version'?:
|
|
228
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
235
229
|
}
|
|
236
230
|
export declare namespace Contacts {
|
|
237
231
|
export { type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|
|
238
232
|
}
|
|
233
|
+
export { type ContactListDataCursorPage };
|
|
239
234
|
//# sourceMappingURL=contacts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,yBAAyB,EAAE;OAC7B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,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EACL,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;AAED,OAAO,EAAE,KAAK,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as UsersContactsAPI from "../contacts/contacts.js";
|
|
3
|
+
import { ContactListDataCursorPage } from "../contacts/contacts.js";
|
|
3
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { type CursorPageParams, PagePromise } from "../../../core/pagination.js";
|
|
4
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
7
|
/**
|
|
6
8
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
@@ -60,13 +62,15 @@ export declare class Contacts extends APIResource {
|
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* ```ts
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* // Automatically fetches more pages as needed.
|
|
66
|
+
* for await (const contact of client.users.companies.contacts.list(
|
|
67
|
+
* '507f1f77bcf86cd799439011',
|
|
68
|
+
* )) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
67
71
|
* ```
|
|
68
72
|
*/
|
|
69
|
-
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions):
|
|
73
|
+
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): PagePromise<ContactListDataCursorPage, UsersContactsAPI.ContactList.Data>;
|
|
70
74
|
/**
|
|
71
75
|
* Attaches a contact (customer) to a company.
|
|
72
76
|
*
|
|
@@ -193,22 +197,12 @@ export type ContactAttachResponse = UsersContactsAPI.Contact | (null & {});
|
|
|
193
197
|
* User who submitted the response
|
|
194
198
|
*/
|
|
195
199
|
export type ContactRemoveResponse = UsersContactsAPI.Contact | (null & {});
|
|
196
|
-
export interface ContactListParams {
|
|
197
|
-
/**
|
|
198
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
199
|
-
* previous response to fetch the next page of results.
|
|
200
|
-
*/
|
|
201
|
-
cursor?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Query param: A limit on the number of contacts to be returned, between 1
|
|
204
|
-
* and 100.
|
|
205
|
-
*/
|
|
206
|
-
limit?: number;
|
|
200
|
+
export interface ContactListParams extends CursorPageParams {
|
|
207
201
|
/**
|
|
208
202
|
* Header param: API version for this request. Defaults to your organization's
|
|
209
203
|
* configured API version if not specified.
|
|
210
204
|
*/
|
|
211
|
-
'Featurebase-Version'?:
|
|
205
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
212
206
|
}
|
|
213
207
|
export interface ContactAttachParams {
|
|
214
208
|
/**
|
|
@@ -220,7 +214,7 @@ export interface ContactAttachParams {
|
|
|
220
214
|
* Header param: API version for this request. Defaults to your organization's
|
|
221
215
|
* configured API version if not specified.
|
|
222
216
|
*/
|
|
223
|
-
'Featurebase-Version'?:
|
|
217
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
224
218
|
}
|
|
225
219
|
export interface ContactRemoveParams {
|
|
226
220
|
/**
|
|
@@ -231,9 +225,10 @@ export interface ContactRemoveParams {
|
|
|
231
225
|
* Header param: API version for this request. Defaults to your organization's
|
|
232
226
|
* configured API version if not specified.
|
|
233
227
|
*/
|
|
234
|
-
'Featurebase-Version'?:
|
|
228
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
235
229
|
}
|
|
236
230
|
export declare namespace Contacts {
|
|
237
231
|
export { type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
|
|
238
232
|
}
|
|
233
|
+
export { type ContactListDataCursorPage };
|
|
239
234
|
//# sourceMappingURL=contacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,yBAAyB,EAAE;OAC7B,EAAE,UAAU,EAAE;OACd,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,G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