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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as TicketsAPI from '../support/tickets/tickets';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
7
|
import { buildHeaders } from '../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -82,7 +83,11 @@ export class Comments extends APIResource {
|
|
|
82
83
|
body,
|
|
83
84
|
...options,
|
|
84
85
|
headers: buildHeaders([
|
|
85
|
-
{
|
|
86
|
+
{
|
|
87
|
+
...(featurebaseVersion?.toString() != null ?
|
|
88
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
89
|
+
: undefined),
|
|
90
|
+
},
|
|
86
91
|
options?.headers,
|
|
87
92
|
]),
|
|
88
93
|
});
|
|
@@ -124,7 +129,11 @@ export class Comments extends APIResource {
|
|
|
124
129
|
return this._client.get(path`/v2/comments/${id}`, {
|
|
125
130
|
...options,
|
|
126
131
|
headers: buildHeaders([
|
|
127
|
-
{
|
|
132
|
+
{
|
|
133
|
+
...(featurebaseVersion?.toString() != null ?
|
|
134
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
135
|
+
: undefined),
|
|
136
|
+
},
|
|
128
137
|
options?.headers,
|
|
129
138
|
]),
|
|
130
139
|
});
|
|
@@ -180,7 +189,11 @@ export class Comments extends APIResource {
|
|
|
180
189
|
body,
|
|
181
190
|
...options,
|
|
182
191
|
headers: buildHeaders([
|
|
183
|
-
{
|
|
192
|
+
{
|
|
193
|
+
...(featurebaseVersion?.toString() != null ?
|
|
194
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
195
|
+
: undefined),
|
|
196
|
+
},
|
|
184
197
|
options?.headers,
|
|
185
198
|
]),
|
|
186
199
|
});
|
|
@@ -258,19 +271,26 @@ export class Comments extends APIResource {
|
|
|
258
271
|
*
|
|
259
272
|
* @example
|
|
260
273
|
* ```ts
|
|
261
|
-
*
|
|
274
|
+
* // Automatically fetches more pages as needed.
|
|
275
|
+
* for await (const comment of client.feedback.comments.list()) {
|
|
276
|
+
* // ...
|
|
277
|
+
* }
|
|
262
278
|
* ```
|
|
263
279
|
*/
|
|
264
280
|
list(
|
|
265
281
|
params: CommentListParams | null | undefined = {},
|
|
266
282
|
options?: RequestOptions,
|
|
267
|
-
):
|
|
283
|
+
): PagePromise<CommentsCursorPage, Comment> {
|
|
268
284
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
269
|
-
return this._client.
|
|
285
|
+
return this._client.getAPIList('/v2/comments', CursorPage<Comment>, {
|
|
270
286
|
query,
|
|
271
287
|
...options,
|
|
272
288
|
headers: buildHeaders([
|
|
273
|
-
{
|
|
289
|
+
{
|
|
290
|
+
...(featurebaseVersion?.toString() != null ?
|
|
291
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
292
|
+
: undefined),
|
|
293
|
+
},
|
|
274
294
|
options?.headers,
|
|
275
295
|
]),
|
|
276
296
|
});
|
|
@@ -333,7 +353,11 @@ export class Comments extends APIResource {
|
|
|
333
353
|
return this._client.delete(path`/v2/comments/${id}`, {
|
|
334
354
|
...options,
|
|
335
355
|
headers: buildHeaders([
|
|
336
|
-
{
|
|
356
|
+
{
|
|
357
|
+
...(featurebaseVersion?.toString() != null ?
|
|
358
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
359
|
+
: undefined),
|
|
360
|
+
},
|
|
337
361
|
options?.headers,
|
|
338
362
|
]),
|
|
339
363
|
});
|
|
@@ -405,13 +429,19 @@ export class Comments extends APIResource {
|
|
|
405
429
|
body,
|
|
406
430
|
...options,
|
|
407
431
|
headers: buildHeaders([
|
|
408
|
-
{
|
|
432
|
+
{
|
|
433
|
+
...(featurebaseVersion?.toString() != null ?
|
|
434
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
435
|
+
: undefined),
|
|
436
|
+
},
|
|
409
437
|
options?.headers,
|
|
410
438
|
]),
|
|
411
439
|
});
|
|
412
440
|
}
|
|
413
441
|
}
|
|
414
442
|
|
|
443
|
+
export type CommentsCursorPage = CursorPage<Comment>;
|
|
444
|
+
|
|
415
445
|
export interface Comment {
|
|
416
446
|
/**
|
|
417
447
|
* Unique identifier
|
|
@@ -520,55 +550,6 @@ export namespace Comment {
|
|
|
520
550
|
}
|
|
521
551
|
}
|
|
522
552
|
|
|
523
|
-
export interface CommentListResponse {
|
|
524
|
-
/**
|
|
525
|
-
* Array of comments
|
|
526
|
-
*/
|
|
527
|
-
data: Array<Comment>;
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
531
|
-
*/
|
|
532
|
-
nextCursor: string | null;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Object type identifier
|
|
536
|
-
*/
|
|
537
|
-
object: 'list';
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Pagination metadata for page-based requests
|
|
541
|
-
*/
|
|
542
|
-
pagination?: CommentListResponse.Pagination;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export namespace CommentListResponse {
|
|
546
|
-
/**
|
|
547
|
-
* Pagination metadata for page-based requests
|
|
548
|
-
*/
|
|
549
|
-
export interface Pagination {
|
|
550
|
-
/**
|
|
551
|
-
* Items per page
|
|
552
|
-
*/
|
|
553
|
-
limit: number;
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Current page number
|
|
557
|
-
*/
|
|
558
|
-
page: number;
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Total number of items
|
|
562
|
-
*/
|
|
563
|
-
total: number;
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* Total number of pages
|
|
567
|
-
*/
|
|
568
|
-
totalPages: number;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
553
|
export interface CommentDelete0Response {
|
|
573
554
|
/**
|
|
574
555
|
* Unique identifier of the deleted comment
|
|
@@ -650,7 +631,7 @@ export interface CommentCreateParams {
|
|
|
650
631
|
* Header param: API version for this request. Defaults to your organization's
|
|
651
632
|
* configured API version if not specified.
|
|
652
633
|
*/
|
|
653
|
-
'Featurebase-Version'?:
|
|
634
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
654
635
|
}
|
|
655
636
|
|
|
656
637
|
export interface CommentRetrieveParams {
|
|
@@ -658,7 +639,7 @@ export interface CommentRetrieveParams {
|
|
|
658
639
|
* API version for this request. Defaults to your organization's configured API
|
|
659
640
|
* version if not specified.
|
|
660
641
|
*/
|
|
661
|
-
'Featurebase-Version'?:
|
|
642
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
662
643
|
}
|
|
663
644
|
|
|
664
645
|
export interface CommentUpdateParams {
|
|
@@ -703,30 +684,20 @@ export interface CommentUpdateParams {
|
|
|
703
684
|
* Header param: API version for this request. Defaults to your organization's
|
|
704
685
|
* configured API version if not specified.
|
|
705
686
|
*/
|
|
706
|
-
'Featurebase-Version'?:
|
|
687
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
707
688
|
}
|
|
708
689
|
|
|
709
|
-
export interface CommentListParams {
|
|
690
|
+
export interface CommentListParams extends CursorPageParams {
|
|
710
691
|
/**
|
|
711
692
|
* Query param: Filter comments by changelog ID
|
|
712
693
|
*/
|
|
713
694
|
changelogId?: string;
|
|
714
695
|
|
|
715
|
-
/**
|
|
716
|
-
* Query param: Cursor for pagination. Use nextCursor from previous response.
|
|
717
|
-
*/
|
|
718
|
-
cursor?: string;
|
|
719
|
-
|
|
720
696
|
/**
|
|
721
697
|
* Query param: Filter by review status
|
|
722
698
|
*/
|
|
723
699
|
inReview?: boolean | null;
|
|
724
700
|
|
|
725
|
-
/**
|
|
726
|
-
* Query param: Maximum number of comments to return
|
|
727
|
-
*/
|
|
728
|
-
limit?: number;
|
|
729
|
-
|
|
730
701
|
/**
|
|
731
702
|
* Query param: Filter comments by post ID
|
|
732
703
|
*/
|
|
@@ -746,7 +717,7 @@ export interface CommentListParams {
|
|
|
746
717
|
* Header param: API version for this request. Defaults to your organization's
|
|
747
718
|
* configured API version if not specified.
|
|
748
719
|
*/
|
|
749
|
-
'Featurebase-Version'?:
|
|
720
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
750
721
|
}
|
|
751
722
|
|
|
752
723
|
export interface CommentDelete0Params {
|
|
@@ -754,7 +725,7 @@ export interface CommentDelete0Params {
|
|
|
754
725
|
* API version for this request. Defaults to your organization's configured API
|
|
755
726
|
* version if not specified.
|
|
756
727
|
*/
|
|
757
|
-
'Featurebase-Version'?:
|
|
728
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
758
729
|
}
|
|
759
730
|
|
|
760
731
|
export interface CommentDelete1Params {
|
|
@@ -767,15 +738,15 @@ export interface CommentDelete1Params {
|
|
|
767
738
|
* Header param: API version for this request. Defaults to your organization's
|
|
768
739
|
* configured API version if not specified.
|
|
769
740
|
*/
|
|
770
|
-
'Featurebase-Version'?:
|
|
741
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
771
742
|
}
|
|
772
743
|
|
|
773
744
|
export declare namespace Comments {
|
|
774
745
|
export {
|
|
775
746
|
type Comment as Comment,
|
|
776
|
-
type CommentListResponse as CommentListResponse,
|
|
777
747
|
type CommentDelete0Response as CommentDelete0Response,
|
|
778
748
|
type CommentDelete1Response as CommentDelete1Response,
|
|
749
|
+
type CommentsCursorPage as CommentsCursorPage,
|
|
779
750
|
type CommentCreateParams as CommentCreateParams,
|
|
780
751
|
type CommentRetrieveParams as CommentRetrieveParams,
|
|
781
752
|
type CommentUpdateParams as CommentUpdateParams,
|
|
@@ -49,7 +49,11 @@ export class CustomFields extends APIResource {
|
|
|
49
49
|
return this._client.get(path`/v2/custom_fields/${id}`, {
|
|
50
50
|
...options,
|
|
51
51
|
headers: buildHeaders([
|
|
52
|
-
{
|
|
52
|
+
{
|
|
53
|
+
...(featurebaseVersion?.toString() != null ?
|
|
54
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
55
|
+
: undefined),
|
|
56
|
+
},
|
|
53
57
|
options?.headers,
|
|
54
58
|
]),
|
|
55
59
|
});
|
|
@@ -105,7 +109,11 @@ export class CustomFields extends APIResource {
|
|
|
105
109
|
return this._client.get('/v2/custom_fields', {
|
|
106
110
|
...options,
|
|
107
111
|
headers: buildHeaders([
|
|
108
|
-
{
|
|
112
|
+
{
|
|
113
|
+
...(featurebaseVersion?.toString() != null ?
|
|
114
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
115
|
+
: undefined),
|
|
116
|
+
},
|
|
109
117
|
options?.headers,
|
|
110
118
|
]),
|
|
111
119
|
});
|
|
@@ -242,7 +250,7 @@ export interface CustomFieldRetrieveParams {
|
|
|
242
250
|
* API version for this request. Defaults to your organization's configured API
|
|
243
251
|
* version if not specified.
|
|
244
252
|
*/
|
|
245
|
-
'Featurebase-Version'?:
|
|
253
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
246
254
|
}
|
|
247
255
|
|
|
248
256
|
export interface CustomFieldListParams {
|
|
@@ -250,7 +258,7 @@ export interface CustomFieldListParams {
|
|
|
250
258
|
* API version for this request. Defaults to your organization's configured API
|
|
251
259
|
* version if not specified.
|
|
252
260
|
*/
|
|
253
|
-
'Featurebase-Version'?:
|
|
261
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
254
262
|
}
|
|
255
263
|
|
|
256
264
|
export declare namespace CustomFields {
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
CommentDelete1Params,
|
|
13
13
|
CommentDelete1Response,
|
|
14
14
|
CommentListParams,
|
|
15
|
-
CommentListResponse,
|
|
16
15
|
CommentRetrieveParams,
|
|
17
16
|
CommentUpdateParams,
|
|
18
17
|
Comments,
|
|
18
|
+
CommentsCursorPage,
|
|
19
19
|
} from './comments';
|
|
20
20
|
import * as CustomFieldsAPI from './custom-fields';
|
|
21
21
|
import {
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
PostDeleteParams,
|
|
41
41
|
PostDeleteResponse,
|
|
42
42
|
PostListParams,
|
|
43
|
-
PostListResponse,
|
|
44
43
|
PostRetrieveParams,
|
|
45
44
|
PostUpdateParams,
|
|
46
45
|
Posts,
|
|
46
|
+
PostsCursorPage,
|
|
47
47
|
} from './posts/posts';
|
|
48
48
|
|
|
49
49
|
export class Feedback extends APIResource {
|
|
@@ -72,8 +72,8 @@ export declare namespace Feedback {
|
|
|
72
72
|
export {
|
|
73
73
|
Posts as Posts,
|
|
74
74
|
type Post as Post,
|
|
75
|
-
type PostListResponse as PostListResponse,
|
|
76
75
|
type PostDeleteResponse as PostDeleteResponse,
|
|
76
|
+
type PostsCursorPage as PostsCursorPage,
|
|
77
77
|
type PostCreateParams as PostCreateParams,
|
|
78
78
|
type PostRetrieveParams as PostRetrieveParams,
|
|
79
79
|
type PostUpdateParams as PostUpdateParams,
|
|
@@ -92,9 +92,9 @@ export declare namespace Feedback {
|
|
|
92
92
|
export {
|
|
93
93
|
Comments as Comments,
|
|
94
94
|
type Comment as Comment,
|
|
95
|
-
type CommentListResponse as CommentListResponse,
|
|
96
95
|
type CommentDelete0Response as CommentDelete0Response,
|
|
97
96
|
type CommentDelete1Response as CommentDelete1Response,
|
|
97
|
+
type CommentsCursorPage as CommentsCursorPage,
|
|
98
98
|
type CommentCreateParams as CommentCreateParams,
|
|
99
99
|
type CommentRetrieveParams as CommentRetrieveParams,
|
|
100
100
|
type CommentUpdateParams as CommentUpdateParams,
|
|
@@ -10,7 +10,6 @@ export {
|
|
|
10
10
|
export {
|
|
11
11
|
Comments,
|
|
12
12
|
type Comment,
|
|
13
|
-
type CommentListResponse,
|
|
14
13
|
type CommentDelete0Response,
|
|
15
14
|
type CommentDelete1Response,
|
|
16
15
|
type CommentCreateParams,
|
|
@@ -19,6 +18,7 @@ export {
|
|
|
19
18
|
type CommentListParams,
|
|
20
19
|
type CommentDelete0Params,
|
|
21
20
|
type CommentDelete1Params,
|
|
21
|
+
type CommentsCursorPage,
|
|
22
22
|
} from './comments';
|
|
23
23
|
export {
|
|
24
24
|
CustomFields,
|
|
@@ -38,11 +38,11 @@ export {
|
|
|
38
38
|
export {
|
|
39
39
|
Posts,
|
|
40
40
|
type Post,
|
|
41
|
-
type PostListResponse,
|
|
42
41
|
type PostDeleteResponse,
|
|
43
42
|
type PostCreateParams,
|
|
44
43
|
type PostRetrieveParams,
|
|
45
44
|
type PostUpdateParams,
|
|
46
45
|
type PostListParams,
|
|
47
46
|
type PostDeleteParams,
|
|
47
|
+
type PostsCursorPage,
|
|
48
48
|
} from './posts/index';
|
|
@@ -33,7 +33,11 @@ export class PostStatuses extends APIResource {
|
|
|
33
33
|
return this._client.get(path`/v2/post_statuses/${id}`, {
|
|
34
34
|
...options,
|
|
35
35
|
headers: buildHeaders([
|
|
36
|
-
{
|
|
36
|
+
{
|
|
37
|
+
...(featurebaseVersion?.toString() != null ?
|
|
38
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
39
|
+
: undefined),
|
|
40
|
+
},
|
|
37
41
|
options?.headers,
|
|
38
42
|
]),
|
|
39
43
|
});
|
|
@@ -66,7 +70,11 @@ export class PostStatuses extends APIResource {
|
|
|
66
70
|
return this._client.get('/v2/post_statuses', {
|
|
67
71
|
...options,
|
|
68
72
|
headers: buildHeaders([
|
|
69
|
-
{
|
|
73
|
+
{
|
|
74
|
+
...(featurebaseVersion?.toString() != null ?
|
|
75
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
76
|
+
: undefined),
|
|
77
|
+
},
|
|
70
78
|
options?.headers,
|
|
71
79
|
]),
|
|
72
80
|
});
|
|
@@ -112,7 +120,7 @@ export interface PostStatusRetrieveParams {
|
|
|
112
120
|
* API version for this request. Defaults to your organization's configured API
|
|
113
121
|
* version if not specified.
|
|
114
122
|
*/
|
|
115
|
-
'Featurebase-Version'?:
|
|
123
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
export interface PostStatusListParams {
|
|
@@ -120,7 +128,7 @@ export interface PostStatusListParams {
|
|
|
120
128
|
* API version for this request. Defaults to your organization's configured API
|
|
121
129
|
* version if not specified.
|
|
122
130
|
*/
|
|
123
|
-
'Featurebase-Version'?:
|
|
131
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
124
132
|
}
|
|
125
133
|
|
|
126
134
|
export declare namespace PostStatuses {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Posts,
|
|
5
5
|
type Post,
|
|
6
|
-
type PostListResponse,
|
|
7
6
|
type PostDeleteResponse,
|
|
8
7
|
type PostCreateParams,
|
|
9
8
|
type PostRetrieveParams,
|
|
10
9
|
type PostUpdateParams,
|
|
11
10
|
type PostListParams,
|
|
12
11
|
type PostDeleteParams,
|
|
12
|
+
type PostsCursorPage,
|
|
13
13
|
} from './posts';
|
|
14
14
|
export {
|
|
15
15
|
Voters,
|
|
@@ -19,4 +19,5 @@ export {
|
|
|
19
19
|
type VoterListParams,
|
|
20
20
|
type VoterAddParams,
|
|
21
21
|
type VoterRemoveParams,
|
|
22
|
+
type VoterListResponsesCursorPage,
|
|
22
23
|
} from './voters';
|
|
@@ -8,12 +8,14 @@ import {
|
|
|
8
8
|
VoterAddResponse,
|
|
9
9
|
VoterListParams,
|
|
10
10
|
VoterListResponse,
|
|
11
|
+
VoterListResponsesCursorPage,
|
|
11
12
|
VoterRemoveParams,
|
|
12
13
|
VoterRemoveResponse,
|
|
13
14
|
Voters,
|
|
14
15
|
} from './voters';
|
|
15
16
|
import * as TicketsAPI from '../../support/tickets/tickets';
|
|
16
17
|
import { APIPromise } from '../../../core/api-promise';
|
|
18
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
17
19
|
import { buildHeaders } from '../../../internal/headers';
|
|
18
20
|
import { RequestOptions } from '../../../internal/request-options';
|
|
19
21
|
import { path } from '../../../internal/utils/path';
|
|
@@ -81,7 +83,11 @@ export class Posts extends APIResource {
|
|
|
81
83
|
body,
|
|
82
84
|
...options,
|
|
83
85
|
headers: buildHeaders([
|
|
84
|
-
{
|
|
86
|
+
{
|
|
87
|
+
...(featurebaseVersion?.toString() != null ?
|
|
88
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
89
|
+
: undefined),
|
|
90
|
+
},
|
|
85
91
|
options?.headers,
|
|
86
92
|
]),
|
|
87
93
|
});
|
|
@@ -115,7 +121,11 @@ export class Posts extends APIResource {
|
|
|
115
121
|
return this._client.get(path`/v2/posts/${id}`, {
|
|
116
122
|
...options,
|
|
117
123
|
headers: buildHeaders([
|
|
118
|
-
{
|
|
124
|
+
{
|
|
125
|
+
...(featurebaseVersion?.toString() != null ?
|
|
126
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
127
|
+
: undefined),
|
|
128
|
+
},
|
|
119
129
|
options?.headers,
|
|
120
130
|
]),
|
|
121
131
|
});
|
|
@@ -165,7 +175,11 @@ export class Posts extends APIResource {
|
|
|
165
175
|
body,
|
|
166
176
|
...options,
|
|
167
177
|
headers: buildHeaders([
|
|
168
|
-
{
|
|
178
|
+
{
|
|
179
|
+
...(featurebaseVersion?.toString() != null ?
|
|
180
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
181
|
+
: undefined),
|
|
182
|
+
},
|
|
169
183
|
options?.headers,
|
|
170
184
|
]),
|
|
171
185
|
});
|
|
@@ -225,19 +239,26 @@ export class Posts extends APIResource {
|
|
|
225
239
|
*
|
|
226
240
|
* @example
|
|
227
241
|
* ```ts
|
|
228
|
-
*
|
|
242
|
+
* // Automatically fetches more pages as needed.
|
|
243
|
+
* for await (const post of client.feedback.posts.list()) {
|
|
244
|
+
* // ...
|
|
245
|
+
* }
|
|
229
246
|
* ```
|
|
230
247
|
*/
|
|
231
248
|
list(
|
|
232
249
|
params: PostListParams | null | undefined = {},
|
|
233
250
|
options?: RequestOptions,
|
|
234
|
-
):
|
|
251
|
+
): PagePromise<PostsCursorPage, Post> {
|
|
235
252
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
236
|
-
return this._client.
|
|
253
|
+
return this._client.getAPIList('/v2/posts', CursorPage<Post>, {
|
|
237
254
|
query,
|
|
238
255
|
...options,
|
|
239
256
|
headers: buildHeaders([
|
|
240
|
-
{
|
|
257
|
+
{
|
|
258
|
+
...(featurebaseVersion?.toString() != null ?
|
|
259
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
260
|
+
: undefined),
|
|
261
|
+
},
|
|
241
262
|
options?.headers,
|
|
242
263
|
]),
|
|
243
264
|
});
|
|
@@ -283,13 +304,19 @@ export class Posts extends APIResource {
|
|
|
283
304
|
return this._client.delete(path`/v2/posts/${id}`, {
|
|
284
305
|
...options,
|
|
285
306
|
headers: buildHeaders([
|
|
286
|
-
{
|
|
307
|
+
{
|
|
308
|
+
...(featurebaseVersion?.toString() != null ?
|
|
309
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
310
|
+
: undefined),
|
|
311
|
+
},
|
|
287
312
|
options?.headers,
|
|
288
313
|
]),
|
|
289
314
|
});
|
|
290
315
|
}
|
|
291
316
|
}
|
|
292
317
|
|
|
318
|
+
export type PostsCursorPage = CursorPage<Post>;
|
|
319
|
+
|
|
293
320
|
export interface Post {
|
|
294
321
|
/**
|
|
295
322
|
* Unique identifier
|
|
@@ -629,55 +656,6 @@ export namespace Post {
|
|
|
629
656
|
}
|
|
630
657
|
}
|
|
631
658
|
|
|
632
|
-
export interface PostListResponse {
|
|
633
|
-
/**
|
|
634
|
-
* Array of posts
|
|
635
|
-
*/
|
|
636
|
-
data: Array<Post>;
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
640
|
-
*/
|
|
641
|
-
nextCursor: string | null;
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Object type identifier
|
|
645
|
-
*/
|
|
646
|
-
object: 'list';
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Pagination metadata for page-based requests
|
|
650
|
-
*/
|
|
651
|
-
pagination?: PostListResponse.Pagination;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
export namespace PostListResponse {
|
|
655
|
-
/**
|
|
656
|
-
* Pagination metadata for page-based requests
|
|
657
|
-
*/
|
|
658
|
-
export interface Pagination {
|
|
659
|
-
/**
|
|
660
|
-
* Items per page
|
|
661
|
-
*/
|
|
662
|
-
limit: number;
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Current page number
|
|
666
|
-
*/
|
|
667
|
-
page: number;
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Total number of items
|
|
671
|
-
*/
|
|
672
|
-
total: number;
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* Total number of pages
|
|
676
|
-
*/
|
|
677
|
-
totalPages: number;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
659
|
export interface PostDeleteResponse {
|
|
682
660
|
/**
|
|
683
661
|
* Unique identifier of the deleted post
|
|
@@ -791,7 +769,7 @@ export interface PostCreateParams {
|
|
|
791
769
|
* Header param: API version for this request. Defaults to your organization's
|
|
792
770
|
* configured API version if not specified.
|
|
793
771
|
*/
|
|
794
|
-
'Featurebase-Version'?:
|
|
772
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
795
773
|
}
|
|
796
774
|
|
|
797
775
|
export namespace PostCreateParams {
|
|
@@ -838,7 +816,7 @@ export interface PostRetrieveParams {
|
|
|
838
816
|
* API version for this request. Defaults to your organization's configured API
|
|
839
817
|
* version if not specified.
|
|
840
818
|
*/
|
|
841
|
-
'Featurebase-Version'?:
|
|
819
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
842
820
|
}
|
|
843
821
|
|
|
844
822
|
export interface PostUpdateParams {
|
|
@@ -928,31 +906,20 @@ export interface PostUpdateParams {
|
|
|
928
906
|
* Header param: API version for this request. Defaults to your organization's
|
|
929
907
|
* configured API version if not specified.
|
|
930
908
|
*/
|
|
931
|
-
'Featurebase-Version'?:
|
|
909
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
932
910
|
}
|
|
933
911
|
|
|
934
|
-
export interface PostListParams {
|
|
912
|
+
export interface PostListParams extends CursorPageParams {
|
|
935
913
|
/**
|
|
936
914
|
* Query param: Filter by board (category) ID(s)
|
|
937
915
|
*/
|
|
938
916
|
boardId?: string | Array<string>;
|
|
939
917
|
|
|
940
|
-
/**
|
|
941
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
942
|
-
* previous response to fetch the next page of results.
|
|
943
|
-
*/
|
|
944
|
-
cursor?: string;
|
|
945
|
-
|
|
946
918
|
/**
|
|
947
919
|
* Query param: Include posts that are in review
|
|
948
920
|
*/
|
|
949
921
|
inReview?: boolean | null;
|
|
950
922
|
|
|
951
|
-
/**
|
|
952
|
-
* Query param: A limit on the number of posts to be returned, between 1 and 100.
|
|
953
|
-
*/
|
|
954
|
-
limit?: number;
|
|
955
|
-
|
|
956
923
|
/**
|
|
957
924
|
* Query param: Search query to filter posts by title/content
|
|
958
925
|
*/
|
|
@@ -982,7 +949,7 @@ export interface PostListParams {
|
|
|
982
949
|
* Header param: API version for this request. Defaults to your organization's
|
|
983
950
|
* configured API version if not specified.
|
|
984
951
|
*/
|
|
985
|
-
'Featurebase-Version'?:
|
|
952
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
986
953
|
}
|
|
987
954
|
|
|
988
955
|
export interface PostDeleteParams {
|
|
@@ -990,7 +957,7 @@ export interface PostDeleteParams {
|
|
|
990
957
|
* API version for this request. Defaults to your organization's configured API
|
|
991
958
|
* version if not specified.
|
|
992
959
|
*/
|
|
993
|
-
'Featurebase-Version'?:
|
|
960
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
994
961
|
}
|
|
995
962
|
|
|
996
963
|
Posts.Voters = Voters;
|
|
@@ -998,8 +965,8 @@ Posts.Voters = Voters;
|
|
|
998
965
|
export declare namespace Posts {
|
|
999
966
|
export {
|
|
1000
967
|
type Post as Post,
|
|
1001
|
-
type PostListResponse as PostListResponse,
|
|
1002
968
|
type PostDeleteResponse as PostDeleteResponse,
|
|
969
|
+
type PostsCursorPage as PostsCursorPage,
|
|
1003
970
|
type PostCreateParams as PostCreateParams,
|
|
1004
971
|
type PostRetrieveParams as PostRetrieveParams,
|
|
1005
972
|
type PostUpdateParams as PostUpdateParams,
|
|
@@ -1012,6 +979,7 @@ export declare namespace Posts {
|
|
|
1012
979
|
type VoterListResponse as VoterListResponse,
|
|
1013
980
|
type VoterAddResponse as VoterAddResponse,
|
|
1014
981
|
type VoterRemoveResponse as VoterRemoveResponse,
|
|
982
|
+
type VoterListResponsesCursorPage as VoterListResponsesCursorPage,
|
|
1015
983
|
type VoterListParams as VoterListParams,
|
|
1016
984
|
type VoterAddParams as VoterAddParams,
|
|
1017
985
|
type VoterRemoveParams as VoterRemoveParams,
|