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
package/src/resources/surveys.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import * as SurveysAPI from './surveys';
|
|
5
5
|
import * as ContactsAPI from './users/contacts/contacts';
|
|
6
6
|
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
|
|
7
8
|
import { buildHeaders } from '../internal/headers';
|
|
8
9
|
import { RequestOptions } from '../internal/request-options';
|
|
9
10
|
import { path } from '../internal/utils/path';
|
|
@@ -54,7 +55,11 @@ export class Surveys extends APIResource {
|
|
|
54
55
|
return this._client.get(path`/v2/surveys/${id}`, {
|
|
55
56
|
...options,
|
|
56
57
|
headers: buildHeaders([
|
|
57
|
-
{
|
|
58
|
+
{
|
|
59
|
+
...(featurebaseVersion?.toString() != null ?
|
|
60
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
61
|
+
: undefined),
|
|
62
|
+
},
|
|
58
63
|
options?.headers,
|
|
59
64
|
]),
|
|
60
65
|
});
|
|
@@ -95,13 +100,17 @@ export class Surveys extends APIResource {
|
|
|
95
100
|
list(
|
|
96
101
|
params: SurveyListParams | null | undefined = {},
|
|
97
102
|
options?: RequestOptions,
|
|
98
|
-
):
|
|
103
|
+
): PagePromise<SurveysCursorPage, Survey> {
|
|
99
104
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
100
|
-
return this._client.
|
|
105
|
+
return this._client.getAPIList('/v2/surveys', CursorPage<Survey>, {
|
|
101
106
|
query,
|
|
102
107
|
...options,
|
|
103
108
|
headers: buildHeaders([
|
|
104
|
-
{
|
|
109
|
+
{
|
|
110
|
+
...(featurebaseVersion?.toString() != null ?
|
|
111
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
112
|
+
: undefined),
|
|
113
|
+
},
|
|
105
114
|
options?.headers,
|
|
106
115
|
]),
|
|
107
116
|
});
|
|
@@ -145,23 +154,35 @@ export class Surveys extends APIResource {
|
|
|
145
154
|
*
|
|
146
155
|
* - `404` - Survey not found in your organization
|
|
147
156
|
*/
|
|
148
|
-
|
|
157
|
+
listResponses(
|
|
149
158
|
id: string,
|
|
150
|
-
params:
|
|
159
|
+
params: SurveyListResponsesParams | null | undefined = {},
|
|
151
160
|
options?: RequestOptions,
|
|
152
|
-
):
|
|
161
|
+
): PagePromise<SurveyListResponsesResponsesCursorPage, SurveyListResponsesResponse> {
|
|
153
162
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
154
|
-
return this._client.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
options
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
return this._client.getAPIList(
|
|
164
|
+
path`/v2/surveys/${id}/responses`,
|
|
165
|
+
CursorPage<SurveyListResponsesResponse>,
|
|
166
|
+
{
|
|
167
|
+
query,
|
|
168
|
+
...options,
|
|
169
|
+
headers: buildHeaders([
|
|
170
|
+
{
|
|
171
|
+
...(featurebaseVersion?.toString() != null ?
|
|
172
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
173
|
+
: undefined),
|
|
174
|
+
},
|
|
175
|
+
options?.headers,
|
|
176
|
+
]),
|
|
177
|
+
},
|
|
178
|
+
);
|
|
162
179
|
}
|
|
163
180
|
}
|
|
164
181
|
|
|
182
|
+
export type SurveysCursorPage = CursorPage<Survey>;
|
|
183
|
+
|
|
184
|
+
export type SurveyListResponsesResponsesCursorPage = CursorPage<SurveyListResponsesResponse>;
|
|
185
|
+
|
|
165
186
|
export interface Survey {
|
|
166
187
|
/**
|
|
167
188
|
* Unique identifier
|
|
@@ -405,100 +426,64 @@ export interface SurveyNextAction {
|
|
|
405
426
|
pageId?: string;
|
|
406
427
|
}
|
|
407
428
|
|
|
408
|
-
export interface
|
|
429
|
+
export interface SurveyListResponsesResponse {
|
|
409
430
|
/**
|
|
410
|
-
*
|
|
431
|
+
* Unique identifier
|
|
411
432
|
*/
|
|
412
|
-
|
|
433
|
+
id: string;
|
|
413
434
|
|
|
414
435
|
/**
|
|
415
|
-
*
|
|
436
|
+
* ISO 8601 timestamp when created
|
|
416
437
|
*/
|
|
417
|
-
|
|
438
|
+
createdAt: string;
|
|
418
439
|
|
|
419
440
|
/**
|
|
420
441
|
* Object type identifier
|
|
421
442
|
*/
|
|
422
|
-
object: '
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export interface SurveyRetrieveResponsesResponse {
|
|
426
|
-
/**
|
|
427
|
-
* Array of survey responses
|
|
428
|
-
*/
|
|
429
|
-
data: Array<SurveyRetrieveResponsesResponse.Data>;
|
|
443
|
+
object: 'survey_response';
|
|
430
444
|
|
|
431
445
|
/**
|
|
432
|
-
*
|
|
446
|
+
* Individual responses to questions
|
|
433
447
|
*/
|
|
434
|
-
|
|
448
|
+
responses: Array<SurveyListResponsesResponse.Response>;
|
|
435
449
|
|
|
436
450
|
/**
|
|
437
|
-
*
|
|
451
|
+
* User who submitted the response
|
|
438
452
|
*/
|
|
439
|
-
|
|
453
|
+
user: ContactsAPI.Contact | null;
|
|
440
454
|
}
|
|
441
455
|
|
|
442
|
-
export namespace
|
|
443
|
-
export interface
|
|
456
|
+
export namespace SurveyListResponsesResponse {
|
|
457
|
+
export interface Response {
|
|
444
458
|
/**
|
|
445
|
-
*
|
|
459
|
+
* Page ID this response is for
|
|
446
460
|
*/
|
|
447
|
-
|
|
461
|
+
pageId: string;
|
|
448
462
|
|
|
449
463
|
/**
|
|
450
|
-
*
|
|
464
|
+
* Response type
|
|
451
465
|
*/
|
|
452
|
-
|
|
466
|
+
type: 'text' | 'link' | 'rating' | 'multiple-choice';
|
|
453
467
|
|
|
454
468
|
/**
|
|
455
|
-
*
|
|
469
|
+
* Response value
|
|
456
470
|
*/
|
|
457
|
-
|
|
471
|
+
value: string | number | boolean | Array<string>;
|
|
458
472
|
|
|
459
473
|
/**
|
|
460
|
-
*
|
|
474
|
+
* Response ID
|
|
461
475
|
*/
|
|
462
|
-
|
|
476
|
+
id?: string;
|
|
463
477
|
|
|
464
478
|
/**
|
|
465
|
-
*
|
|
479
|
+
* ISO 8601 timestamp when created
|
|
466
480
|
*/
|
|
467
|
-
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
export namespace Data {
|
|
471
|
-
export interface Response {
|
|
472
|
-
/**
|
|
473
|
-
* Page ID this response is for
|
|
474
|
-
*/
|
|
475
|
-
pageId: string;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Response type
|
|
479
|
-
*/
|
|
480
|
-
type: 'text' | 'link' | 'rating' | 'multiple-choice';
|
|
481
|
+
createdAt?: string;
|
|
481
482
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Response ID
|
|
489
|
-
*/
|
|
490
|
-
id?: string;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* ISO 8601 timestamp when created
|
|
494
|
-
*/
|
|
495
|
-
createdAt?: string;
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* ISO 8601 timestamp when updated
|
|
499
|
-
*/
|
|
500
|
-
updatedAt?: string;
|
|
501
|
-
}
|
|
483
|
+
/**
|
|
484
|
+
* ISO 8601 timestamp when updated
|
|
485
|
+
*/
|
|
486
|
+
updatedAt?: string;
|
|
502
487
|
}
|
|
503
488
|
}
|
|
504
489
|
|
|
@@ -507,26 +492,15 @@ export interface SurveyRetrieveParams {
|
|
|
507
492
|
* API version for this request. Defaults to your organization's configured API
|
|
508
493
|
* version if not specified.
|
|
509
494
|
*/
|
|
510
|
-
'Featurebase-Version'?:
|
|
495
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
511
496
|
}
|
|
512
497
|
|
|
513
|
-
export interface SurveyListParams {
|
|
514
|
-
/**
|
|
515
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
516
|
-
* previous response to fetch the next page.
|
|
517
|
-
*/
|
|
518
|
-
cursor?: string;
|
|
519
|
-
|
|
498
|
+
export interface SurveyListParams extends CursorPageParams {
|
|
520
499
|
/**
|
|
521
500
|
* Query param: Filter by active status
|
|
522
501
|
*/
|
|
523
502
|
isActive?: boolean | null;
|
|
524
503
|
|
|
525
|
-
/**
|
|
526
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
527
|
-
*/
|
|
528
|
-
limit?: number;
|
|
529
|
-
|
|
530
504
|
/**
|
|
531
505
|
* Query param: Filter by survey page type
|
|
532
506
|
*/
|
|
@@ -536,21 +510,10 @@ export interface SurveyListParams {
|
|
|
536
510
|
* Header param: API version for this request. Defaults to your organization's
|
|
537
511
|
* configured API version if not specified.
|
|
538
512
|
*/
|
|
539
|
-
'Featurebase-Version'?:
|
|
513
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
540
514
|
}
|
|
541
515
|
|
|
542
|
-
export interface
|
|
543
|
-
/**
|
|
544
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
545
|
-
* previous response to fetch the next page.
|
|
546
|
-
*/
|
|
547
|
-
cursor?: string;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
551
|
-
*/
|
|
552
|
-
limit?: number;
|
|
553
|
-
|
|
516
|
+
export interface SurveyListResponsesParams extends CursorPageParams {
|
|
554
517
|
/**
|
|
555
518
|
* Query param: Filter by survey page ID
|
|
556
519
|
*/
|
|
@@ -560,17 +523,18 @@ export interface SurveyRetrieveResponsesParams {
|
|
|
560
523
|
* Header param: API version for this request. Defaults to your organization's
|
|
561
524
|
* configured API version if not specified.
|
|
562
525
|
*/
|
|
563
|
-
'Featurebase-Version'?:
|
|
526
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
564
527
|
}
|
|
565
528
|
|
|
566
529
|
export declare namespace Surveys {
|
|
567
530
|
export {
|
|
568
531
|
type Survey as Survey,
|
|
569
532
|
type SurveyNextAction as SurveyNextAction,
|
|
570
|
-
type
|
|
571
|
-
type
|
|
533
|
+
type SurveyListResponsesResponse as SurveyListResponsesResponse,
|
|
534
|
+
type SurveysCursorPage as SurveysCursorPage,
|
|
535
|
+
type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage,
|
|
572
536
|
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
573
537
|
type SurveyListParams as SurveyListParams,
|
|
574
|
-
type
|
|
538
|
+
type SurveyListResponsesParams as SurveyListResponsesParams,
|
|
575
539
|
};
|
|
576
540
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Contacts,
|
|
12
12
|
} from './contacts';
|
|
13
13
|
import { APIPromise } from '../../../core/api-promise';
|
|
14
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
14
15
|
import { buildHeaders } from '../../../internal/headers';
|
|
15
16
|
import { RequestOptions } from '../../../internal/request-options';
|
|
16
17
|
import { path } from '../../../internal/utils/path';
|
|
@@ -91,7 +92,11 @@ export class Companies extends APIResource {
|
|
|
91
92
|
return this._client.get(path`/v2/companies/${id}`, {
|
|
92
93
|
...options,
|
|
93
94
|
headers: buildHeaders([
|
|
94
|
-
{
|
|
95
|
+
{
|
|
96
|
+
...(featurebaseVersion?.toString() != null ?
|
|
97
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
98
|
+
: undefined),
|
|
99
|
+
},
|
|
95
100
|
options?.headers,
|
|
96
101
|
]),
|
|
97
102
|
});
|
|
@@ -164,19 +169,26 @@ export class Companies extends APIResource {
|
|
|
164
169
|
*
|
|
165
170
|
* @example
|
|
166
171
|
* ```ts
|
|
167
|
-
*
|
|
172
|
+
* // Automatically fetches more pages as needed.
|
|
173
|
+
* for await (const company of client.users.companies.list()) {
|
|
174
|
+
* // ...
|
|
175
|
+
* }
|
|
168
176
|
* ```
|
|
169
177
|
*/
|
|
170
178
|
list(
|
|
171
179
|
params: CompanyListParams | null | undefined = {},
|
|
172
180
|
options?: RequestOptions,
|
|
173
|
-
):
|
|
181
|
+
): PagePromise<CompaniesCursorPage, Company> {
|
|
174
182
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
175
|
-
return this._client.
|
|
183
|
+
return this._client.getAPIList('/v2/companies', CursorPage<Company>, {
|
|
176
184
|
query,
|
|
177
185
|
...options,
|
|
178
186
|
headers: buildHeaders([
|
|
179
|
-
{
|
|
187
|
+
{
|
|
188
|
+
...(featurebaseVersion?.toString() != null ?
|
|
189
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
190
|
+
: undefined),
|
|
191
|
+
},
|
|
180
192
|
options?.headers,
|
|
181
193
|
]),
|
|
182
194
|
});
|
|
@@ -227,7 +239,11 @@ export class Companies extends APIResource {
|
|
|
227
239
|
return this._client.delete(path`/v2/companies/${id}`, {
|
|
228
240
|
...options,
|
|
229
241
|
headers: buildHeaders([
|
|
230
|
-
{
|
|
242
|
+
{
|
|
243
|
+
...(featurebaseVersion?.toString() != null ?
|
|
244
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
245
|
+
: undefined),
|
|
246
|
+
},
|
|
231
247
|
options?.headers,
|
|
232
248
|
]),
|
|
233
249
|
});
|
|
@@ -314,7 +330,11 @@ export class Companies extends APIResource {
|
|
|
314
330
|
body,
|
|
315
331
|
...options,
|
|
316
332
|
headers: buildHeaders([
|
|
317
|
-
{
|
|
333
|
+
{
|
|
334
|
+
...(featurebaseVersion?.toString() != null ?
|
|
335
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
336
|
+
: undefined),
|
|
337
|
+
},
|
|
318
338
|
options?.headers,
|
|
319
339
|
]),
|
|
320
340
|
});
|
|
@@ -382,13 +402,19 @@ export class Companies extends APIResource {
|
|
|
382
402
|
return this._client.delete(path`/v2/companies/by-company-id/${companyID}`, {
|
|
383
403
|
...options,
|
|
384
404
|
headers: buildHeaders([
|
|
385
|
-
{
|
|
405
|
+
{
|
|
406
|
+
...(featurebaseVersion?.toString() != null ?
|
|
407
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
408
|
+
: undefined),
|
|
409
|
+
},
|
|
386
410
|
options?.headers,
|
|
387
411
|
]),
|
|
388
412
|
});
|
|
389
413
|
}
|
|
390
414
|
}
|
|
391
415
|
|
|
416
|
+
export type CompaniesCursorPage = CursorPage<Company>;
|
|
417
|
+
|
|
392
418
|
export interface Company {
|
|
393
419
|
/**
|
|
394
420
|
* Featurebase internal ID
|
|
@@ -478,49 +504,20 @@ export interface DeletedCompany {
|
|
|
478
504
|
object: 'company';
|
|
479
505
|
}
|
|
480
506
|
|
|
481
|
-
export interface CompanyListResponse {
|
|
482
|
-
/**
|
|
483
|
-
* Array of companies
|
|
484
|
-
*/
|
|
485
|
-
data: Array<Company>;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
489
|
-
*/
|
|
490
|
-
nextCursor: string | null;
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* Object type identifier
|
|
494
|
-
*/
|
|
495
|
-
object: 'list';
|
|
496
|
-
}
|
|
497
|
-
|
|
498
507
|
export interface CompanyRetrieveParams {
|
|
499
508
|
/**
|
|
500
509
|
* API version for this request. Defaults to your organization's configured API
|
|
501
510
|
* version if not specified.
|
|
502
511
|
*/
|
|
503
|
-
'Featurebase-Version'?:
|
|
512
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
504
513
|
}
|
|
505
514
|
|
|
506
|
-
export interface CompanyListParams {
|
|
507
|
-
/**
|
|
508
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
509
|
-
* previous response to fetch the next page of results.
|
|
510
|
-
*/
|
|
511
|
-
cursor?: string;
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Query param: A limit on the number of companies to be returned, between 1
|
|
515
|
-
* and 100.
|
|
516
|
-
*/
|
|
517
|
-
limit?: number;
|
|
518
|
-
|
|
515
|
+
export interface CompanyListParams extends CursorPageParams {
|
|
519
516
|
/**
|
|
520
517
|
* Header param: API version for this request. Defaults to your organization's
|
|
521
518
|
* configured API version if not specified.
|
|
522
519
|
*/
|
|
523
|
-
'Featurebase-Version'?:
|
|
520
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
524
521
|
}
|
|
525
522
|
|
|
526
523
|
export interface CompanyDeleteParams {
|
|
@@ -528,7 +525,7 @@ export interface CompanyDeleteParams {
|
|
|
528
525
|
* API version for this request. Defaults to your organization's configured API
|
|
529
526
|
* version if not specified.
|
|
530
527
|
*/
|
|
531
|
-
'Featurebase-Version'?:
|
|
528
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
532
529
|
}
|
|
533
530
|
|
|
534
531
|
export interface CompanyCreateOrUpdateParams {
|
|
@@ -583,7 +580,7 @@ export interface CompanyCreateOrUpdateParams {
|
|
|
583
580
|
* Header param: API version for this request. Defaults to your organization's
|
|
584
581
|
* configured API version if not specified.
|
|
585
582
|
*/
|
|
586
|
-
'Featurebase-Version'?:
|
|
583
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
587
584
|
}
|
|
588
585
|
|
|
589
586
|
export namespace CompanyCreateOrUpdateParams {
|
|
@@ -605,7 +602,7 @@ export interface CompanyDeleteByCompanyIDParams {
|
|
|
605
602
|
* API version for this request. Defaults to your organization's configured API
|
|
606
603
|
* version if not specified.
|
|
607
604
|
*/
|
|
608
|
-
'Featurebase-Version'?:
|
|
605
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
609
606
|
}
|
|
610
607
|
|
|
611
608
|
Companies.Contacts = Contacts;
|
|
@@ -614,7 +611,7 @@ export declare namespace Companies {
|
|
|
614
611
|
export {
|
|
615
612
|
type Company as Company,
|
|
616
613
|
type DeletedCompany as DeletedCompany,
|
|
617
|
-
type
|
|
614
|
+
type CompaniesCursorPage as CompaniesCursorPage,
|
|
618
615
|
type CompanyRetrieveParams as CompanyRetrieveParams,
|
|
619
616
|
type CompanyListParams as CompanyListParams,
|
|
620
617
|
type CompanyDeleteParams as CompanyDeleteParams,
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as UsersContactsAPI from '../contacts/contacts';
|
|
5
|
+
import { ContactListDataCursorPage } from '../contacts/contacts';
|
|
5
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
6
8
|
import { buildHeaders } from '../../../internal/headers';
|
|
7
9
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
10
|
import { path } from '../../../internal/utils/path';
|
|
@@ -65,26 +67,36 @@ export class Contacts extends APIResource {
|
|
|
65
67
|
*
|
|
66
68
|
* @example
|
|
67
69
|
* ```ts
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* // Automatically fetches more pages as needed.
|
|
71
|
+
* for await (const contact of client.users.companies.contacts.list(
|
|
72
|
+
* '507f1f77bcf86cd799439011',
|
|
73
|
+
* )) {
|
|
74
|
+
* // ...
|
|
75
|
+
* }
|
|
72
76
|
* ```
|
|
73
77
|
*/
|
|
74
78
|
list(
|
|
75
79
|
id: string,
|
|
76
80
|
params: ContactListParams | null | undefined = {},
|
|
77
81
|
options?: RequestOptions,
|
|
78
|
-
):
|
|
82
|
+
): PagePromise<ContactListDataCursorPage, UsersContactsAPI.ContactList.Data> {
|
|
79
83
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
80
|
-
return this._client.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
return this._client.getAPIList(
|
|
85
|
+
path`/v2/companies/${id}/contacts`,
|
|
86
|
+
CursorPage<UsersContactsAPI.ContactList.Data>,
|
|
87
|
+
{
|
|
88
|
+
query,
|
|
89
|
+
...options,
|
|
90
|
+
headers: buildHeaders([
|
|
91
|
+
{
|
|
92
|
+
...(featurebaseVersion?.toString() != null ?
|
|
93
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
94
|
+
: undefined),
|
|
95
|
+
},
|
|
96
|
+
options?.headers,
|
|
97
|
+
]),
|
|
98
|
+
},
|
|
99
|
+
);
|
|
88
100
|
}
|
|
89
101
|
|
|
90
102
|
/**
|
|
@@ -164,7 +176,11 @@ export class Contacts extends APIResource {
|
|
|
164
176
|
body,
|
|
165
177
|
...options,
|
|
166
178
|
headers: buildHeaders([
|
|
167
|
-
{
|
|
179
|
+
{
|
|
180
|
+
...(featurebaseVersion?.toString() != null ?
|
|
181
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
182
|
+
: undefined),
|
|
183
|
+
},
|
|
168
184
|
options?.headers,
|
|
169
185
|
]),
|
|
170
186
|
});
|
|
@@ -227,7 +243,11 @@ export class Contacts extends APIResource {
|
|
|
227
243
|
return this._client.delete(path`/v2/companies/${id}/contacts/${contactID}`, {
|
|
228
244
|
...options,
|
|
229
245
|
headers: buildHeaders([
|
|
230
|
-
{
|
|
246
|
+
{
|
|
247
|
+
...(featurebaseVersion?.toString() != null ?
|
|
248
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
249
|
+
: undefined),
|
|
250
|
+
},
|
|
231
251
|
options?.headers,
|
|
232
252
|
]),
|
|
233
253
|
});
|
|
@@ -244,24 +264,12 @@ export type ContactAttachResponse = UsersContactsAPI.Contact | (null & {});
|
|
|
244
264
|
*/
|
|
245
265
|
export type ContactRemoveResponse = UsersContactsAPI.Contact | (null & {});
|
|
246
266
|
|
|
247
|
-
export interface ContactListParams {
|
|
248
|
-
/**
|
|
249
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
250
|
-
* previous response to fetch the next page of results.
|
|
251
|
-
*/
|
|
252
|
-
cursor?: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Query param: A limit on the number of contacts to be returned, between 1
|
|
256
|
-
* and 100.
|
|
257
|
-
*/
|
|
258
|
-
limit?: number;
|
|
259
|
-
|
|
267
|
+
export interface ContactListParams extends CursorPageParams {
|
|
260
268
|
/**
|
|
261
269
|
* Header param: API version for this request. Defaults to your organization's
|
|
262
270
|
* configured API version if not specified.
|
|
263
271
|
*/
|
|
264
|
-
'Featurebase-Version'?:
|
|
272
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
265
273
|
}
|
|
266
274
|
|
|
267
275
|
export interface ContactAttachParams {
|
|
@@ -275,7 +283,7 @@ export interface ContactAttachParams {
|
|
|
275
283
|
* Header param: API version for this request. Defaults to your organization's
|
|
276
284
|
* configured API version if not specified.
|
|
277
285
|
*/
|
|
278
|
-
'Featurebase-Version'?:
|
|
286
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
279
287
|
}
|
|
280
288
|
|
|
281
289
|
export interface ContactRemoveParams {
|
|
@@ -288,7 +296,7 @@ export interface ContactRemoveParams {
|
|
|
288
296
|
* Header param: API version for this request. Defaults to your organization's
|
|
289
297
|
* configured API version if not specified.
|
|
290
298
|
*/
|
|
291
|
-
'Featurebase-Version'?:
|
|
299
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
292
300
|
}
|
|
293
301
|
|
|
294
302
|
export declare namespace Contacts {
|
|
@@ -300,3 +308,5 @@ export declare namespace Contacts {
|
|
|
300
308
|
type ContactRemoveParams as ContactRemoveParams,
|
|
301
309
|
};
|
|
302
310
|
}
|
|
311
|
+
|
|
312
|
+
export { type ContactListDataCursorPage };
|
|
@@ -4,12 +4,12 @@ export {
|
|
|
4
4
|
Companies,
|
|
5
5
|
type Company,
|
|
6
6
|
type DeletedCompany,
|
|
7
|
-
type CompanyListResponse,
|
|
8
7
|
type CompanyRetrieveParams,
|
|
9
8
|
type CompanyListParams,
|
|
10
9
|
type CompanyDeleteParams,
|
|
11
10
|
type CompanyCreateOrUpdateParams,
|
|
12
11
|
type CompanyDeleteByCompanyIDParams,
|
|
12
|
+
type CompaniesCursorPage,
|
|
13
13
|
} from './companies';
|
|
14
14
|
export {
|
|
15
15
|
Contacts,
|
|
@@ -89,7 +89,11 @@ export class ByUserID extends APIResource {
|
|
|
89
89
|
return this._client.get(path`/v2/contacts/by-user-id/${userID}`, {
|
|
90
90
|
...options,
|
|
91
91
|
headers: buildHeaders([
|
|
92
|
-
{
|
|
92
|
+
{
|
|
93
|
+
...(featurebaseVersion?.toString() != null ?
|
|
94
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
95
|
+
: undefined),
|
|
96
|
+
},
|
|
93
97
|
options?.headers,
|
|
94
98
|
]),
|
|
95
99
|
});
|
|
@@ -156,7 +160,11 @@ export class ByUserID extends APIResource {
|
|
|
156
160
|
return this._client.delete(path`/v2/contacts/by-user-id/${userID}`, {
|
|
157
161
|
...options,
|
|
158
162
|
headers: buildHeaders([
|
|
159
|
-
{
|
|
163
|
+
{
|
|
164
|
+
...(featurebaseVersion?.toString() != null ?
|
|
165
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
166
|
+
: undefined),
|
|
167
|
+
},
|
|
160
168
|
options?.headers,
|
|
161
169
|
]),
|
|
162
170
|
});
|
|
@@ -173,7 +181,7 @@ export interface ByUserIDRetrieveParams {
|
|
|
173
181
|
* API version for this request. Defaults to your organization's configured API
|
|
174
182
|
* version if not specified.
|
|
175
183
|
*/
|
|
176
|
-
'Featurebase-Version'?:
|
|
184
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
177
185
|
}
|
|
178
186
|
|
|
179
187
|
export interface ByUserIDDeleteParams {
|
|
@@ -181,7 +189,7 @@ export interface ByUserIDDeleteParams {
|
|
|
181
189
|
* API version for this request. Defaults to your organization's configured API
|
|
182
190
|
* version if not specified.
|
|
183
191
|
*/
|
|
184
|
-
'Featurebase-Version'?:
|
|
192
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
185
193
|
}
|
|
186
194
|
|
|
187
195
|
ByUserID.EmailPreferences = EmailPreferences;
|