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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as CompaniesAPI from "../../users/companies/companies.mjs";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* User-submitted feedback and feature requests. Posts belong to boards and can be upvoted, commented on, and tracked through statuses.
|
|
@@ -45,12 +46,15 @@ export declare class Voters extends APIResource {
|
|
|
45
46
|
*
|
|
46
47
|
* @example
|
|
47
48
|
* ```ts
|
|
48
|
-
*
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const voterListResponse of client.feedback.posts.voters.list(
|
|
49
51
|
* '507f1f77bcf86cd799439011',
|
|
50
|
-
* )
|
|
52
|
+
* )) {
|
|
53
|
+
* // ...
|
|
54
|
+
* }
|
|
51
55
|
* ```
|
|
52
56
|
*/
|
|
53
|
-
list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions):
|
|
57
|
+
list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): PagePromise<VoterListResponsesCursorPage, VoterListResponse>;
|
|
54
58
|
/**
|
|
55
59
|
* Adds a voter (upvote) to a post.
|
|
56
60
|
*
|
|
@@ -134,126 +138,86 @@ export declare class Voters extends APIResource {
|
|
|
134
138
|
*/
|
|
135
139
|
remove(id: string, params: VoterRemoveParams, options?: RequestOptions): APIPromise<VoterRemoveResponse>;
|
|
136
140
|
}
|
|
141
|
+
export type VoterListResponsesCursorPage = CursorPage<VoterListResponse>;
|
|
137
142
|
export interface VoterListResponse {
|
|
138
143
|
/**
|
|
139
|
-
*
|
|
144
|
+
* Unique identifier
|
|
140
145
|
*/
|
|
141
|
-
|
|
146
|
+
id: string;
|
|
142
147
|
/**
|
|
143
|
-
*
|
|
148
|
+
* User display name
|
|
144
149
|
*/
|
|
145
|
-
|
|
150
|
+
name: string;
|
|
146
151
|
/**
|
|
147
152
|
* Object type identifier
|
|
148
153
|
*/
|
|
149
|
-
object: '
|
|
154
|
+
object: 'contact';
|
|
150
155
|
/**
|
|
151
|
-
*
|
|
156
|
+
* Type of user
|
|
152
157
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
* Profile picture URL
|
|
217
|
-
*/
|
|
218
|
-
profilePicture?: string | null;
|
|
219
|
-
/**
|
|
220
|
-
* User roles
|
|
221
|
-
*/
|
|
222
|
-
roles?: Array<string>;
|
|
223
|
-
/**
|
|
224
|
-
* Whether subscribed to changelog
|
|
225
|
-
*/
|
|
226
|
-
subscribedToChangelog?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* External user ID from SSO
|
|
229
|
-
*/
|
|
230
|
-
userId?: string;
|
|
231
|
-
/**
|
|
232
|
-
* Whether email is verified
|
|
233
|
-
*/
|
|
234
|
-
verified?: boolean;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Pagination metadata for page-based requests
|
|
238
|
-
*/
|
|
239
|
-
interface Pagination {
|
|
240
|
-
/**
|
|
241
|
-
* Items per page
|
|
242
|
-
*/
|
|
243
|
-
limit: number;
|
|
244
|
-
/**
|
|
245
|
-
* Current page number
|
|
246
|
-
*/
|
|
247
|
-
page: number;
|
|
248
|
-
/**
|
|
249
|
-
* Total number of items
|
|
250
|
-
*/
|
|
251
|
-
total: number;
|
|
252
|
-
/**
|
|
253
|
-
* Total number of pages
|
|
254
|
-
*/
|
|
255
|
-
totalPages: number;
|
|
256
|
-
}
|
|
158
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
159
|
+
/**
|
|
160
|
+
* Number of comments created
|
|
161
|
+
*/
|
|
162
|
+
commentsCreated?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Companies the user belongs to
|
|
165
|
+
*/
|
|
166
|
+
companies?: Array<CompaniesAPI.Company>;
|
|
167
|
+
/**
|
|
168
|
+
* Custom field values on the user
|
|
169
|
+
*/
|
|
170
|
+
customFields?: {
|
|
171
|
+
[key: string]: unknown;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* User description/bio
|
|
175
|
+
*/
|
|
176
|
+
description?: string;
|
|
177
|
+
/**
|
|
178
|
+
* User email
|
|
179
|
+
*/
|
|
180
|
+
email?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Last activity ISO timestamp
|
|
183
|
+
*/
|
|
184
|
+
lastActivity?: string;
|
|
185
|
+
/**
|
|
186
|
+
* User locale
|
|
187
|
+
*/
|
|
188
|
+
locale?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Whether manually opted out from changelog
|
|
191
|
+
*/
|
|
192
|
+
manuallyOptedOutFromChangelog?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Organization ID the user belongs to
|
|
195
|
+
*/
|
|
196
|
+
organizationId?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Number of posts created
|
|
199
|
+
*/
|
|
200
|
+
postsCreated?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Profile picture URL
|
|
203
|
+
*/
|
|
204
|
+
profilePicture?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* User roles
|
|
207
|
+
*/
|
|
208
|
+
roles?: Array<string>;
|
|
209
|
+
/**
|
|
210
|
+
* Whether subscribed to changelog
|
|
211
|
+
*/
|
|
212
|
+
subscribedToChangelog?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* External user ID from SSO
|
|
215
|
+
*/
|
|
216
|
+
userId?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Whether email is verified
|
|
219
|
+
*/
|
|
220
|
+
verified?: boolean;
|
|
257
221
|
}
|
|
258
222
|
export interface VoterAddResponse {
|
|
259
223
|
/**
|
|
@@ -291,21 +255,12 @@ export interface VoterRemoveResponse {
|
|
|
291
255
|
*/
|
|
292
256
|
removed: true;
|
|
293
257
|
}
|
|
294
|
-
export interface VoterListParams {
|
|
295
|
-
/**
|
|
296
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
297
|
-
* previous response to fetch the next page of results.
|
|
298
|
-
*/
|
|
299
|
-
cursor?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Query param: A limit on the number of voters to be returned, between 1 and 100.
|
|
302
|
-
*/
|
|
303
|
-
limit?: number;
|
|
258
|
+
export interface VoterListParams extends CursorPageParams {
|
|
304
259
|
/**
|
|
305
260
|
* Header param: API version for this request. Defaults to your organization's
|
|
306
261
|
* configured API version if not specified.
|
|
307
262
|
*/
|
|
308
|
-
'Featurebase-Version'?:
|
|
263
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
309
264
|
}
|
|
310
265
|
export interface VoterAddParams {
|
|
311
266
|
/**
|
|
@@ -332,7 +287,7 @@ export interface VoterAddParams {
|
|
|
332
287
|
* Header param: API version for this request. Defaults to your organization's
|
|
333
288
|
* configured API version if not specified.
|
|
334
289
|
*/
|
|
335
|
-
'Featurebase-Version'?:
|
|
290
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
336
291
|
}
|
|
337
292
|
export interface VoterRemoveParams {
|
|
338
293
|
/**
|
|
@@ -351,9 +306,9 @@ export interface VoterRemoveParams {
|
|
|
351
306
|
* Header param: API version for this request. Defaults to your organization's
|
|
352
307
|
* configured API version if not specified.
|
|
353
308
|
*/
|
|
354
|
-
'Featurebase-Version'?:
|
|
309
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
355
310
|
}
|
|
356
311
|
export declare namespace Voters {
|
|
357
|
-
export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
312
|
+
export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListResponsesCursorPage as VoterListResponsesCursorPage, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
358
313
|
}
|
|
359
314
|
//# sourceMappingURL=voters.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voters.d.mts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"voters.d.mts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;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Ed;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as CompaniesAPI from "../../users/companies/companies.js";
|
|
3
3
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js";
|
|
4
5
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
6
|
/**
|
|
6
7
|
* User-submitted feedback and feature requests. Posts belong to boards and can be upvoted, commented on, and tracked through statuses.
|
|
@@ -45,12 +46,15 @@ export declare class Voters extends APIResource {
|
|
|
45
46
|
*
|
|
46
47
|
* @example
|
|
47
48
|
* ```ts
|
|
48
|
-
*
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const voterListResponse of client.feedback.posts.voters.list(
|
|
49
51
|
* '507f1f77bcf86cd799439011',
|
|
50
|
-
* )
|
|
52
|
+
* )) {
|
|
53
|
+
* // ...
|
|
54
|
+
* }
|
|
51
55
|
* ```
|
|
52
56
|
*/
|
|
53
|
-
list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions):
|
|
57
|
+
list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): PagePromise<VoterListResponsesCursorPage, VoterListResponse>;
|
|
54
58
|
/**
|
|
55
59
|
* Adds a voter (upvote) to a post.
|
|
56
60
|
*
|
|
@@ -134,126 +138,86 @@ export declare class Voters extends APIResource {
|
|
|
134
138
|
*/
|
|
135
139
|
remove(id: string, params: VoterRemoveParams, options?: RequestOptions): APIPromise<VoterRemoveResponse>;
|
|
136
140
|
}
|
|
141
|
+
export type VoterListResponsesCursorPage = CursorPage<VoterListResponse>;
|
|
137
142
|
export interface VoterListResponse {
|
|
138
143
|
/**
|
|
139
|
-
*
|
|
144
|
+
* Unique identifier
|
|
140
145
|
*/
|
|
141
|
-
|
|
146
|
+
id: string;
|
|
142
147
|
/**
|
|
143
|
-
*
|
|
148
|
+
* User display name
|
|
144
149
|
*/
|
|
145
|
-
|
|
150
|
+
name: string;
|
|
146
151
|
/**
|
|
147
152
|
* Object type identifier
|
|
148
153
|
*/
|
|
149
|
-
object: '
|
|
154
|
+
object: 'contact';
|
|
150
155
|
/**
|
|
151
|
-
*
|
|
156
|
+
* Type of user
|
|
152
157
|
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
* Profile picture URL
|
|
217
|
-
*/
|
|
218
|
-
profilePicture?: string | null;
|
|
219
|
-
/**
|
|
220
|
-
* User roles
|
|
221
|
-
*/
|
|
222
|
-
roles?: Array<string>;
|
|
223
|
-
/**
|
|
224
|
-
* Whether subscribed to changelog
|
|
225
|
-
*/
|
|
226
|
-
subscribedToChangelog?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* External user ID from SSO
|
|
229
|
-
*/
|
|
230
|
-
userId?: string;
|
|
231
|
-
/**
|
|
232
|
-
* Whether email is verified
|
|
233
|
-
*/
|
|
234
|
-
verified?: boolean;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Pagination metadata for page-based requests
|
|
238
|
-
*/
|
|
239
|
-
interface Pagination {
|
|
240
|
-
/**
|
|
241
|
-
* Items per page
|
|
242
|
-
*/
|
|
243
|
-
limit: number;
|
|
244
|
-
/**
|
|
245
|
-
* Current page number
|
|
246
|
-
*/
|
|
247
|
-
page: number;
|
|
248
|
-
/**
|
|
249
|
-
* Total number of items
|
|
250
|
-
*/
|
|
251
|
-
total: number;
|
|
252
|
-
/**
|
|
253
|
-
* Total number of pages
|
|
254
|
-
*/
|
|
255
|
-
totalPages: number;
|
|
256
|
-
}
|
|
158
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
159
|
+
/**
|
|
160
|
+
* Number of comments created
|
|
161
|
+
*/
|
|
162
|
+
commentsCreated?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Companies the user belongs to
|
|
165
|
+
*/
|
|
166
|
+
companies?: Array<CompaniesAPI.Company>;
|
|
167
|
+
/**
|
|
168
|
+
* Custom field values on the user
|
|
169
|
+
*/
|
|
170
|
+
customFields?: {
|
|
171
|
+
[key: string]: unknown;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* User description/bio
|
|
175
|
+
*/
|
|
176
|
+
description?: string;
|
|
177
|
+
/**
|
|
178
|
+
* User email
|
|
179
|
+
*/
|
|
180
|
+
email?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Last activity ISO timestamp
|
|
183
|
+
*/
|
|
184
|
+
lastActivity?: string;
|
|
185
|
+
/**
|
|
186
|
+
* User locale
|
|
187
|
+
*/
|
|
188
|
+
locale?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Whether manually opted out from changelog
|
|
191
|
+
*/
|
|
192
|
+
manuallyOptedOutFromChangelog?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Organization ID the user belongs to
|
|
195
|
+
*/
|
|
196
|
+
organizationId?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Number of posts created
|
|
199
|
+
*/
|
|
200
|
+
postsCreated?: number;
|
|
201
|
+
/**
|
|
202
|
+
* Profile picture URL
|
|
203
|
+
*/
|
|
204
|
+
profilePicture?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* User roles
|
|
207
|
+
*/
|
|
208
|
+
roles?: Array<string>;
|
|
209
|
+
/**
|
|
210
|
+
* Whether subscribed to changelog
|
|
211
|
+
*/
|
|
212
|
+
subscribedToChangelog?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* External user ID from SSO
|
|
215
|
+
*/
|
|
216
|
+
userId?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Whether email is verified
|
|
219
|
+
*/
|
|
220
|
+
verified?: boolean;
|
|
257
221
|
}
|
|
258
222
|
export interface VoterAddResponse {
|
|
259
223
|
/**
|
|
@@ -291,21 +255,12 @@ export interface VoterRemoveResponse {
|
|
|
291
255
|
*/
|
|
292
256
|
removed: true;
|
|
293
257
|
}
|
|
294
|
-
export interface VoterListParams {
|
|
295
|
-
/**
|
|
296
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
297
|
-
* previous response to fetch the next page of results.
|
|
298
|
-
*/
|
|
299
|
-
cursor?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Query param: A limit on the number of voters to be returned, between 1 and 100.
|
|
302
|
-
*/
|
|
303
|
-
limit?: number;
|
|
258
|
+
export interface VoterListParams extends CursorPageParams {
|
|
304
259
|
/**
|
|
305
260
|
* Header param: API version for this request. Defaults to your organization's
|
|
306
261
|
* configured API version if not specified.
|
|
307
262
|
*/
|
|
308
|
-
'Featurebase-Version'?:
|
|
263
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
309
264
|
}
|
|
310
265
|
export interface VoterAddParams {
|
|
311
266
|
/**
|
|
@@ -332,7 +287,7 @@ export interface VoterAddParams {
|
|
|
332
287
|
* Header param: API version for this request. Defaults to your organization's
|
|
333
288
|
* configured API version if not specified.
|
|
334
289
|
*/
|
|
335
|
-
'Featurebase-Version'?:
|
|
290
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
336
291
|
}
|
|
337
292
|
export interface VoterRemoveParams {
|
|
338
293
|
/**
|
|
@@ -351,9 +306,9 @@ export interface VoterRemoveParams {
|
|
|
351
306
|
* Header param: API version for this request. Defaults to your organization's
|
|
352
307
|
* configured API version if not specified.
|
|
353
308
|
*/
|
|
354
|
-
'Featurebase-Version'?:
|
|
309
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
355
310
|
}
|
|
356
311
|
export declare namespace Voters {
|
|
357
|
-
export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
312
|
+
export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListResponsesCursorPage as VoterListResponsesCursorPage, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
358
313
|
}
|
|
359
314
|
//# sourceMappingURL=voters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voters.d.ts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"voters.d.ts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;IAgB/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,C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BAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Voters = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../../../internal/headers.js");
|
|
7
8
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -48,18 +49,25 @@ class Voters extends resource_1.APIResource {
|
|
|
48
49
|
*
|
|
49
50
|
* @example
|
|
50
51
|
* ```ts
|
|
51
|
-
*
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const voterListResponse of client.feedback.posts.voters.list(
|
|
52
54
|
* '507f1f77bcf86cd799439011',
|
|
53
|
-
* )
|
|
55
|
+
* )) {
|
|
56
|
+
* // ...
|
|
57
|
+
* }
|
|
54
58
|
* ```
|
|
55
59
|
*/
|
|
56
60
|
list(id, params = {}, options) {
|
|
57
61
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
58
|
-
return this._client.
|
|
62
|
+
return this._client.getAPIList((0, path_1.path) `/v2/posts/${id}/voters`, (pagination_1.CursorPage), {
|
|
59
63
|
query,
|
|
60
64
|
...options,
|
|
61
65
|
headers: (0, headers_1.buildHeaders)([
|
|
62
|
-
{
|
|
66
|
+
{
|
|
67
|
+
...(featurebaseVersion?.toString() != null ?
|
|
68
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
69
|
+
: undefined),
|
|
70
|
+
},
|
|
63
71
|
options?.headers,
|
|
64
72
|
]),
|
|
65
73
|
});
|
|
@@ -115,7 +123,11 @@ class Voters extends resource_1.APIResource {
|
|
|
115
123
|
body,
|
|
116
124
|
...options,
|
|
117
125
|
headers: (0, headers_1.buildHeaders)([
|
|
118
|
-
{
|
|
126
|
+
{
|
|
127
|
+
...(featurebaseVersion?.toString() != null ?
|
|
128
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
129
|
+
: undefined),
|
|
130
|
+
},
|
|
119
131
|
options?.headers,
|
|
120
132
|
]),
|
|
121
133
|
});
|
|
@@ -161,7 +173,11 @@ class Voters extends resource_1.APIResource {
|
|
|
161
173
|
body,
|
|
162
174
|
...options,
|
|
163
175
|
headers: (0, headers_1.buildHeaders)([
|
|
164
|
-
{
|
|
176
|
+
{
|
|
177
|
+
...(featurebaseVersion?.toString() != null ?
|
|
178
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
179
|
+
: undefined),
|
|
180
|
+
},
|
|
165
181
|
options?.headers,
|
|
166
182
|
]),
|
|
167
183
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voters.js","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"voters.js","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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