featurebase-node 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +31 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +10 -0
- package/client.js.map +1 -1
- package/client.mjs +10 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +16 -60
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +16 -60
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +41 -9
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +41 -9
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/subscribers.d.mts +2 -2
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts +2 -2
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.js +10 -2
- package/resources/changelogs/subscribers.js.map +1 -1
- package/resources/changelogs/subscribers.mjs +10 -2
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/feedback/boards.d.mts +2 -2
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +2 -2
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +10 -2
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +10 -2
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +15 -59
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +15 -59
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +36 -8
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +36 -8
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +2 -2
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +2 -2
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +10 -2
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +10 -2
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +4 -4
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +4 -4
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +2 -2
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +2 -2
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/post-statuses.d.mts +2 -2
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +2 -2
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +10 -2
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +10 -2
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +2 -2
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +2 -2
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +16 -61
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +16 -61
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +31 -7
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +31 -7
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +82 -127
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +82 -127
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.js +22 -6
- package/resources/feedback/posts/voters.js.map +1 -1
- package/resources/feedback/posts/voters.mjs +22 -6
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +14 -32
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +14 -32
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +31 -7
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +31 -7
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +14 -33
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +14 -33
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +31 -8
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +31 -8
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +8 -8
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +8 -8
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +11 -30
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +11 -30
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +16 -5
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +16 -5
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +15 -34
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +15 -34
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +36 -9
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +36 -9
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +3 -3
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +3 -3
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +15 -3
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +15 -3
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +7 -28
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +7 -28
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +12 -3
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +12 -3
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +1 -1
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -1
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +2 -2
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +2 -2
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +10 -2
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +10 -2
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +4 -4
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +4 -4
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +20 -4
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +20 -4
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +17 -36
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +17 -36
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +41 -10
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +41 -10
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/participants.d.mts +2 -2
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts +2 -2
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.js +10 -2
- package/resources/support/conversations/participants.js.map +1 -1
- package/resources/support/conversations/participants.mjs +10 -2
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations/tags.d.mts +2 -2
- package/resources/support/conversations/tags.d.mts.map +1 -1
- package/resources/support/conversations/tags.d.ts +2 -2
- package/resources/support/conversations/tags.d.ts.map +1 -1
- package/resources/support/conversations/tags.js +10 -2
- package/resources/support/conversations/tags.js.map +1 -1
- package/resources/support/conversations/tags.mjs +10 -2
- package/resources/support/conversations/tags.mjs.map +1 -1
- package/resources/support/index.d.mts +2 -2
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +2 -2
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +2 -2
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +2 -2
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +10 -2
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +10 -2
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +2 -2
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +2 -2
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +10 -2
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +10 -2
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +1 -1
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +1 -1
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/statuses.d.mts +2 -2
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +2 -2
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +10 -2
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +10 -2
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +16 -34
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +16 -34
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +36 -8
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +36 -8
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/surveys.d.mts +37 -82
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +37 -82
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +19 -6
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +19 -6
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +14 -33
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +14 -33
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +31 -7
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +31 -7
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +14 -19
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +14 -19
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.js +23 -8
- package/resources/users/companies/contacts.js.map +1 -1
- package/resources/users/companies/contacts.mjs +23 -8
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.js +10 -2
- package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs +10 -2
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.js +10 -2
- package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs +10 -2
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +15 -19
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +15 -19
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +36 -8
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +36 -8
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts +2 -2
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts +2 -2
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.js +10 -2
- package/resources/users/contacts/email-preferences.js.map +1 -1
- package/resources/users/contacts/email-preferences.mjs +10 -2
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.js.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +15 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +15 -33
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +36 -8
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +36 -8
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +41 -10
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +53 -78
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/changelogs/subscribers.ts +12 -4
- package/src/resources/feedback/boards.ts +12 -4
- package/src/resources/feedback/comments.ts +47 -76
- package/src/resources/feedback/custom-fields.ts +12 -4
- package/src/resources/feedback/feedback.ts +4 -4
- package/src/resources/feedback/index.ts +2 -2
- package/src/resources/feedback/post-statuses.ts +12 -4
- package/src/resources/feedback/posts/index.ts +2 -1
- package/src/resources/feedback/posts/posts.ts +43 -75
- package/src/resources/feedback/posts/voters.ts +105 -146
- package/src/resources/help-center/articles.ts +41 -43
- package/src/resources/help-center/collections.ts +41 -44
- package/src/resources/help-center/help-center.ts +8 -8
- package/src/resources/help-center/help-centers.ts +23 -38
- package/src/resources/help-center/index.ts +4 -4
- package/src/resources/help-center/redirect-rules.ts +47 -46
- package/src/resources/index.ts +6 -5
- package/src/resources/organization/admins.ts +18 -6
- package/src/resources/organization/brands.ts +19 -36
- package/src/resources/organization/index.ts +1 -1
- package/src/resources/organization/organization.ts +2 -2
- package/src/resources/organization/teams.ts +12 -4
- package/src/resources/support/conversation-tags.ts +24 -8
- package/src/resources/support/conversations/conversations.ts +54 -49
- package/src/resources/support/conversations/index.ts +1 -1
- package/src/resources/support/conversations/participants.ts +12 -4
- package/src/resources/support/conversations/tags.ts +12 -4
- package/src/resources/support/index.ts +2 -2
- package/src/resources/support/support.ts +4 -4
- package/src/resources/support/tickets/categories.ts +12 -4
- package/src/resources/support/tickets/custom-fields.ts +12 -4
- package/src/resources/support/tickets/index.ts +1 -1
- package/src/resources/support/tickets/statuses.ts +12 -4
- package/src/resources/support/tickets/tickets.ts +48 -46
- package/src/resources/surveys.ts +71 -107
- package/src/resources/users/companies/companies.ts +41 -44
- package/src/resources/users/companies/contacts.ts +41 -31
- package/src/resources/users/companies/index.ts +1 -1
- package/src/resources/users/contacts/by-user-id/by-user-id.ts +12 -4
- package/src/resources/users/contacts/by-user-id/email-preferences.ts +12 -4
- package/src/resources/users/contacts/contacts.ts +50 -27
- package/src/resources/users/contacts/email-preferences.ts +12 -4
- package/src/resources/users/contacts/index.ts +1 -0
- package/src/resources/users/index.ts +2 -1
- package/src/resources/users/users.ts +4 -2
- package/src/resources/webhooks.ts +47 -45
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/client.ts
CHANGED
|
@@ -14,18 +14,21 @@ import * as Opts from './internal/request-options';
|
|
|
14
14
|
import { stringifyQuery } from './internal/utils/query';
|
|
15
15
|
import { VERSION } from './version';
|
|
16
16
|
import * as Errors from './core/error';
|
|
17
|
+
import * as Pagination from './core/pagination';
|
|
18
|
+
import { AbstractPage, type CursorPageParams, CursorPageResponse } from './core/pagination';
|
|
17
19
|
import * as Uploads from './core/uploads';
|
|
18
20
|
import * as API from './resources/index';
|
|
19
21
|
import { APIPromise } from './core/api-promise';
|
|
20
22
|
import {
|
|
21
23
|
Survey,
|
|
22
24
|
SurveyListParams,
|
|
23
|
-
|
|
25
|
+
SurveyListResponsesParams,
|
|
26
|
+
SurveyListResponsesResponse,
|
|
27
|
+
SurveyListResponsesResponsesCursorPage,
|
|
24
28
|
SurveyNextAction,
|
|
25
29
|
SurveyRetrieveParams,
|
|
26
|
-
SurveyRetrieveResponsesParams,
|
|
27
|
-
SurveyRetrieveResponsesResponse,
|
|
28
30
|
Surveys,
|
|
31
|
+
SurveysCursorPage,
|
|
29
32
|
} from './resources/surveys';
|
|
30
33
|
import {
|
|
31
34
|
Webhook,
|
|
@@ -33,12 +36,12 @@ import {
|
|
|
33
36
|
WebhookDeleteParams,
|
|
34
37
|
WebhookDeleteResponse,
|
|
35
38
|
WebhookListParams,
|
|
36
|
-
WebhookListResponse,
|
|
37
39
|
WebhookRefreshSecretParams,
|
|
38
40
|
WebhookRequestConfigInput,
|
|
39
41
|
WebhookRetrieveParams,
|
|
40
42
|
WebhookUpdateParams,
|
|
41
43
|
Webhooks,
|
|
44
|
+
WebhooksCursorPage,
|
|
42
45
|
} from './resources/webhooks';
|
|
43
46
|
import {
|
|
44
47
|
Changelog,
|
|
@@ -46,12 +49,12 @@ import {
|
|
|
46
49
|
ChangelogDeleteParams,
|
|
47
50
|
ChangelogDeleteResponse,
|
|
48
51
|
ChangelogListParams,
|
|
49
|
-
ChangelogListResponse,
|
|
50
52
|
ChangelogPublishParams,
|
|
51
53
|
ChangelogRetrieveParams,
|
|
52
54
|
ChangelogUnpublishParams,
|
|
53
55
|
ChangelogUpdateParams,
|
|
54
56
|
Changelogs,
|
|
57
|
+
ChangelogsCursorPage,
|
|
55
58
|
PublishUnpublishSuccess,
|
|
56
59
|
} from './resources/changelogs/changelogs';
|
|
57
60
|
import { Feedback } from './resources/feedback/feedback';
|
|
@@ -521,6 +524,30 @@ export class Featurebase {
|
|
|
521
524
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
522
525
|
}
|
|
523
526
|
|
|
527
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(
|
|
528
|
+
path: string,
|
|
529
|
+
Page: new (...args: any[]) => PageClass,
|
|
530
|
+
opts?: PromiseOrValue<RequestOptions>,
|
|
531
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
532
|
+
return this.requestAPIList(
|
|
533
|
+
Page,
|
|
534
|
+
opts && 'then' in opts ?
|
|
535
|
+
opts.then((opts) => ({ method: 'get', path, ...opts }))
|
|
536
|
+
: { method: 'get', path, ...opts },
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
requestAPIList<
|
|
541
|
+
Item = unknown,
|
|
542
|
+
PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>,
|
|
543
|
+
>(
|
|
544
|
+
Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass,
|
|
545
|
+
options: PromiseOrValue<FinalRequestOptions>,
|
|
546
|
+
): Pagination.PagePromise<PageClass, Item> {
|
|
547
|
+
const request = this.makeRequest(options, null, undefined);
|
|
548
|
+
return new Pagination.PagePromise<PageClass, Item>(this as any as Featurebase, request, Page);
|
|
549
|
+
}
|
|
550
|
+
|
|
524
551
|
async fetchWithTimeout(
|
|
525
552
|
url: RequestInfo,
|
|
526
553
|
init: RequestInit | undefined,
|
|
@@ -799,6 +826,9 @@ Featurebase.Webhooks = Webhooks;
|
|
|
799
826
|
export declare namespace Featurebase {
|
|
800
827
|
export type RequestOptions = Opts.RequestOptions;
|
|
801
828
|
|
|
829
|
+
export import CursorPage = Pagination.CursorPage;
|
|
830
|
+
export { type CursorPageParams as CursorPageParams, type CursorPageResponse as CursorPageResponse };
|
|
831
|
+
|
|
802
832
|
export { Support as Support };
|
|
803
833
|
|
|
804
834
|
export { Feedback as Feedback };
|
|
@@ -807,8 +837,8 @@ export declare namespace Featurebase {
|
|
|
807
837
|
Changelogs as Changelogs,
|
|
808
838
|
type Changelog as Changelog,
|
|
809
839
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
810
|
-
type ChangelogListResponse as ChangelogListResponse,
|
|
811
840
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
841
|
+
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
812
842
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
813
843
|
type ChangelogRetrieveParams as ChangelogRetrieveParams,
|
|
814
844
|
type ChangelogUpdateParams as ChangelogUpdateParams,
|
|
@@ -828,19 +858,20 @@ export declare namespace Featurebase {
|
|
|
828
858
|
Surveys as Surveys,
|
|
829
859
|
type Survey as Survey,
|
|
830
860
|
type SurveyNextAction as SurveyNextAction,
|
|
831
|
-
type
|
|
832
|
-
type
|
|
861
|
+
type SurveyListResponsesResponse as SurveyListResponsesResponse,
|
|
862
|
+
type SurveysCursorPage as SurveysCursorPage,
|
|
863
|
+
type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage,
|
|
833
864
|
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
834
865
|
type SurveyListParams as SurveyListParams,
|
|
835
|
-
type
|
|
866
|
+
type SurveyListResponsesParams as SurveyListResponsesParams,
|
|
836
867
|
};
|
|
837
868
|
|
|
838
869
|
export {
|
|
839
870
|
Webhooks as Webhooks,
|
|
840
871
|
type Webhook as Webhook,
|
|
841
872
|
type WebhookRequestConfigInput as WebhookRequestConfigInput,
|
|
842
|
-
type WebhookListResponse as WebhookListResponse,
|
|
843
873
|
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
874
|
+
type WebhooksCursorPage as WebhooksCursorPage,
|
|
844
875
|
type WebhookCreateParams as WebhookCreateParams,
|
|
845
876
|
type WebhookRetrieveParams as WebhookRetrieveParams,
|
|
846
877
|
type WebhookUpdateParams as WebhookUpdateParams,
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { FeaturebaseError } from './error';
|
|
4
|
+
import { FinalRequestOptions } from '../internal/request-options';
|
|
5
|
+
import { defaultParseResponse } from '../internal/parse';
|
|
6
|
+
import { type Featurebase } from '../client';
|
|
7
|
+
import { APIPromise } from './api-promise';
|
|
8
|
+
import { type APIResponseProps } from '../internal/parse';
|
|
9
|
+
import { maybeObj } from '../internal/utils/values';
|
|
10
|
+
|
|
11
|
+
export type PageRequestOptions = Pick<FinalRequestOptions, 'query' | 'headers' | 'body' | 'path' | 'method'>;
|
|
12
|
+
|
|
13
|
+
export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
14
|
+
#client: Featurebase;
|
|
15
|
+
protected options: FinalRequestOptions;
|
|
16
|
+
|
|
17
|
+
protected response: Response;
|
|
18
|
+
protected body: unknown;
|
|
19
|
+
|
|
20
|
+
constructor(client: Featurebase, response: Response, body: unknown, options: FinalRequestOptions) {
|
|
21
|
+
this.#client = client;
|
|
22
|
+
this.options = options;
|
|
23
|
+
this.response = response;
|
|
24
|
+
this.body = body;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
abstract nextPageRequestOptions(): PageRequestOptions | null;
|
|
28
|
+
|
|
29
|
+
abstract getPaginatedItems(): Item[];
|
|
30
|
+
|
|
31
|
+
hasNextPage(): boolean {
|
|
32
|
+
const items = this.getPaginatedItems();
|
|
33
|
+
if (!items.length) return false;
|
|
34
|
+
return this.nextPageRequestOptions() != null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async getNextPage(): Promise<this> {
|
|
38
|
+
const nextOptions = this.nextPageRequestOptions();
|
|
39
|
+
if (!nextOptions) {
|
|
40
|
+
throw new FeaturebaseError(
|
|
41
|
+
'No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.',
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return await this.#client.requestAPIList(this.constructor as any, nextOptions);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async *iterPages(): AsyncGenerator<this> {
|
|
49
|
+
let page: this = this;
|
|
50
|
+
yield page;
|
|
51
|
+
while (page.hasNextPage()) {
|
|
52
|
+
page = await page.getNextPage();
|
|
53
|
+
yield page;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
58
|
+
for await (const page of this.iterPages()) {
|
|
59
|
+
for (const item of page.getPaginatedItems()) {
|
|
60
|
+
yield item;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* This subclass of Promise will resolve to an instantiated Page once the request completes.
|
|
68
|
+
*
|
|
69
|
+
* It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
|
|
70
|
+
*
|
|
71
|
+
* for await (const item of client.items.list()) {
|
|
72
|
+
* console.log(item)
|
|
73
|
+
* }
|
|
74
|
+
*/
|
|
75
|
+
export class PagePromise<
|
|
76
|
+
PageClass extends AbstractPage<Item>,
|
|
77
|
+
Item = ReturnType<PageClass['getPaginatedItems']>[number],
|
|
78
|
+
>
|
|
79
|
+
extends APIPromise<PageClass>
|
|
80
|
+
implements AsyncIterable<Item>
|
|
81
|
+
{
|
|
82
|
+
constructor(
|
|
83
|
+
client: Featurebase,
|
|
84
|
+
request: Promise<APIResponseProps>,
|
|
85
|
+
Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass,
|
|
86
|
+
) {
|
|
87
|
+
super(
|
|
88
|
+
client,
|
|
89
|
+
request,
|
|
90
|
+
async (client, props) =>
|
|
91
|
+
new Page(client, props.response, await defaultParseResponse(client, props), props.options),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Allow auto-paginating iteration on an unawaited list call, eg:
|
|
97
|
+
*
|
|
98
|
+
* for await (const item of client.items.list()) {
|
|
99
|
+
* console.log(item)
|
|
100
|
+
* }
|
|
101
|
+
*/
|
|
102
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
103
|
+
const page = await this;
|
|
104
|
+
for await (const item of page) {
|
|
105
|
+
yield item;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface CursorPageResponse<Item> {
|
|
111
|
+
data: Array<Item>;
|
|
112
|
+
|
|
113
|
+
nextCursor: string | null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface CursorPageParams {
|
|
117
|
+
cursor?: string;
|
|
118
|
+
|
|
119
|
+
limit?: number;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export class CursorPage<Item> extends AbstractPage<Item> implements CursorPageResponse<Item> {
|
|
123
|
+
data: Array<Item>;
|
|
124
|
+
|
|
125
|
+
nextCursor: string | null;
|
|
126
|
+
|
|
127
|
+
constructor(
|
|
128
|
+
client: Featurebase,
|
|
129
|
+
response: Response,
|
|
130
|
+
body: CursorPageResponse<Item>,
|
|
131
|
+
options: FinalRequestOptions,
|
|
132
|
+
) {
|
|
133
|
+
super(client, response, body, options);
|
|
134
|
+
|
|
135
|
+
this.data = body.data || [];
|
|
136
|
+
this.nextCursor = body.nextCursor || null;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
getPaginatedItems(): Item[] {
|
|
140
|
+
return this.data ?? [];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
nextPageRequestOptions(): PageRequestOptions | null {
|
|
144
|
+
const cursor = this.nextCursor;
|
|
145
|
+
if (!cursor) {
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
...this.options,
|
|
151
|
+
query: {
|
|
152
|
+
...maybeObj(this.options.query),
|
|
153
|
+
cursor,
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { Featurebase as default } from './client';
|
|
|
5
5
|
export { type Uploadable, toFile } from './core/uploads';
|
|
6
6
|
export { APIPromise } from './core/api-promise';
|
|
7
7
|
export { Featurebase, type ClientOptions } from './client';
|
|
8
|
+
export { PagePromise } from './core/pagination';
|
|
8
9
|
export {
|
|
9
10
|
FeaturebaseError,
|
|
10
11
|
APIError,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
Subscribers,
|
|
11
11
|
} from './subscribers';
|
|
12
12
|
import { APIPromise } from '../../core/api-promise';
|
|
13
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
13
14
|
import { buildHeaders } from '../../internal/headers';
|
|
14
15
|
import { RequestOptions } from '../../internal/request-options';
|
|
15
16
|
import { path } from '../../internal/utils/path';
|
|
@@ -67,7 +68,11 @@ export class Changelogs extends APIResource {
|
|
|
67
68
|
body,
|
|
68
69
|
...options,
|
|
69
70
|
headers: buildHeaders([
|
|
70
|
-
{
|
|
71
|
+
{
|
|
72
|
+
...(featurebaseVersion?.toString() != null ?
|
|
73
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
74
|
+
: undefined),
|
|
75
|
+
},
|
|
71
76
|
options?.headers,
|
|
72
77
|
]),
|
|
73
78
|
});
|
|
@@ -112,7 +117,11 @@ export class Changelogs extends APIResource {
|
|
|
112
117
|
return this._client.get(path`/v2/changelogs/${id}`, {
|
|
113
118
|
...options,
|
|
114
119
|
headers: buildHeaders([
|
|
115
|
-
{
|
|
120
|
+
{
|
|
121
|
+
...(featurebaseVersion?.toString() != null ?
|
|
122
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
123
|
+
: undefined),
|
|
124
|
+
},
|
|
116
125
|
options?.headers,
|
|
117
126
|
]),
|
|
118
127
|
});
|
|
@@ -172,7 +181,11 @@ export class Changelogs extends APIResource {
|
|
|
172
181
|
body,
|
|
173
182
|
...options,
|
|
174
183
|
headers: buildHeaders([
|
|
175
|
-
{
|
|
184
|
+
{
|
|
185
|
+
...(featurebaseVersion?.toString() != null ?
|
|
186
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
187
|
+
: undefined),
|
|
188
|
+
},
|
|
176
189
|
options?.headers,
|
|
177
190
|
]),
|
|
178
191
|
});
|
|
@@ -231,19 +244,26 @@ export class Changelogs extends APIResource {
|
|
|
231
244
|
*
|
|
232
245
|
* @example
|
|
233
246
|
* ```ts
|
|
234
|
-
*
|
|
247
|
+
* // Automatically fetches more pages as needed.
|
|
248
|
+
* for await (const changelog of client.changelogs.list()) {
|
|
249
|
+
* // ...
|
|
250
|
+
* }
|
|
235
251
|
* ```
|
|
236
252
|
*/
|
|
237
253
|
list(
|
|
238
254
|
params: ChangelogListParams | null | undefined = {},
|
|
239
255
|
options?: RequestOptions,
|
|
240
|
-
):
|
|
256
|
+
): PagePromise<ChangelogsCursorPage, Changelog> {
|
|
241
257
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
242
|
-
return this._client.
|
|
258
|
+
return this._client.getAPIList('/v2/changelogs', CursorPage<Changelog>, {
|
|
243
259
|
query,
|
|
244
260
|
...options,
|
|
245
261
|
headers: buildHeaders([
|
|
246
|
-
{
|
|
262
|
+
{
|
|
263
|
+
...(featurebaseVersion?.toString() != null ?
|
|
264
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
265
|
+
: undefined),
|
|
266
|
+
},
|
|
247
267
|
options?.headers,
|
|
248
268
|
]),
|
|
249
269
|
});
|
|
@@ -294,7 +314,11 @@ export class Changelogs extends APIResource {
|
|
|
294
314
|
return this._client.delete(path`/v2/changelogs/${id}`, {
|
|
295
315
|
...options,
|
|
296
316
|
headers: buildHeaders([
|
|
297
|
-
{
|
|
317
|
+
{
|
|
318
|
+
...(featurebaseVersion?.toString() != null ?
|
|
319
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
320
|
+
: undefined),
|
|
321
|
+
},
|
|
298
322
|
options?.headers,
|
|
299
323
|
]),
|
|
300
324
|
});
|
|
@@ -370,7 +394,11 @@ export class Changelogs extends APIResource {
|
|
|
370
394
|
body,
|
|
371
395
|
...options,
|
|
372
396
|
headers: buildHeaders([
|
|
373
|
-
{
|
|
397
|
+
{
|
|
398
|
+
...(featurebaseVersion?.toString() != null ?
|
|
399
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
400
|
+
: undefined),
|
|
401
|
+
},
|
|
374
402
|
options?.headers,
|
|
375
403
|
]),
|
|
376
404
|
});
|
|
@@ -424,13 +452,19 @@ export class Changelogs extends APIResource {
|
|
|
424
452
|
body,
|
|
425
453
|
...options,
|
|
426
454
|
headers: buildHeaders([
|
|
427
|
-
{
|
|
455
|
+
{
|
|
456
|
+
...(featurebaseVersion?.toString() != null ?
|
|
457
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
458
|
+
: undefined),
|
|
459
|
+
},
|
|
428
460
|
options?.headers,
|
|
429
461
|
]),
|
|
430
462
|
});
|
|
431
463
|
}
|
|
432
464
|
}
|
|
433
465
|
|
|
466
|
+
export type ChangelogsCursorPage = CursorPage<Changelog>;
|
|
467
|
+
|
|
434
468
|
export interface Changelog {
|
|
435
469
|
/**
|
|
436
470
|
* Unique identifier
|
|
@@ -648,55 +682,6 @@ export interface PublishUnpublishSuccess {
|
|
|
648
682
|
state?: 'published' | 'scheduled' | 'unpublished';
|
|
649
683
|
}
|
|
650
684
|
|
|
651
|
-
export interface ChangelogListResponse {
|
|
652
|
-
/**
|
|
653
|
-
* Array of changelogs
|
|
654
|
-
*/
|
|
655
|
-
data: Array<Changelog>;
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
659
|
-
*/
|
|
660
|
-
nextCursor: string | null;
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Object type identifier
|
|
664
|
-
*/
|
|
665
|
-
object: 'list';
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* Pagination metadata for page-based requests
|
|
669
|
-
*/
|
|
670
|
-
pagination?: ChangelogListResponse.Pagination;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
export namespace ChangelogListResponse {
|
|
674
|
-
/**
|
|
675
|
-
* Pagination metadata for page-based requests
|
|
676
|
-
*/
|
|
677
|
-
export interface Pagination {
|
|
678
|
-
/**
|
|
679
|
-
* Items per page
|
|
680
|
-
*/
|
|
681
|
-
limit: number;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Current page number
|
|
685
|
-
*/
|
|
686
|
-
page: number;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Total number of items
|
|
690
|
-
*/
|
|
691
|
-
total: number;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Total number of pages
|
|
695
|
-
*/
|
|
696
|
-
totalPages: number;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
685
|
export interface ChangelogDeleteResponse {
|
|
701
686
|
/**
|
|
702
687
|
* Unique identifier of the deleted changelog
|
|
@@ -812,7 +797,7 @@ export interface ChangelogCreateParams {
|
|
|
812
797
|
* Header param: API version for this request. Defaults to your organization's
|
|
813
798
|
* configured API version if not specified.
|
|
814
799
|
*/
|
|
815
|
-
'Featurebase-Version'?:
|
|
800
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
816
801
|
}
|
|
817
802
|
|
|
818
803
|
export interface ChangelogRetrieveParams {
|
|
@@ -820,7 +805,7 @@ export interface ChangelogRetrieveParams {
|
|
|
820
805
|
* API version for this request. Defaults to your organization's configured API
|
|
821
806
|
* version if not specified.
|
|
822
807
|
*/
|
|
823
|
-
'Featurebase-Version'?:
|
|
808
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
824
809
|
}
|
|
825
810
|
|
|
826
811
|
export interface ChangelogUpdateParams {
|
|
@@ -868,10 +853,10 @@ export interface ChangelogUpdateParams {
|
|
|
868
853
|
* Header param: API version for this request. Defaults to your organization's
|
|
869
854
|
* configured API version if not specified.
|
|
870
855
|
*/
|
|
871
|
-
'Featurebase-Version'?:
|
|
856
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
872
857
|
}
|
|
873
858
|
|
|
874
|
-
export interface ChangelogListParams {
|
|
859
|
+
export interface ChangelogListParams extends CursorPageParams {
|
|
875
860
|
/**
|
|
876
861
|
* Query param: Find changelog by its id (also accepts slug)
|
|
877
862
|
*/
|
|
@@ -882,21 +867,11 @@ export interface ChangelogListParams {
|
|
|
882
867
|
*/
|
|
883
868
|
categories?: string | Array<string>;
|
|
884
869
|
|
|
885
|
-
/**
|
|
886
|
-
* Query param: Cursor for pagination. Use nextCursor from previous response.
|
|
887
|
-
*/
|
|
888
|
-
cursor?: string;
|
|
889
|
-
|
|
890
870
|
/**
|
|
891
871
|
* Query param: Include Changelogs dated on or before the specified end date
|
|
892
872
|
*/
|
|
893
873
|
endDate?: string | null;
|
|
894
874
|
|
|
895
|
-
/**
|
|
896
|
-
* Query param: Maximum number of changelogs to return
|
|
897
|
-
*/
|
|
898
|
-
limit?: number;
|
|
899
|
-
|
|
900
875
|
/**
|
|
901
876
|
* Query param: The locale of the changelogs. Defaults to the organization default
|
|
902
877
|
* locale.
|
|
@@ -975,7 +950,7 @@ export interface ChangelogListParams {
|
|
|
975
950
|
* Header param: API version for this request. Defaults to your organization's
|
|
976
951
|
* configured API version if not specified.
|
|
977
952
|
*/
|
|
978
|
-
'Featurebase-Version'?:
|
|
953
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
979
954
|
}
|
|
980
955
|
|
|
981
956
|
export interface ChangelogDeleteParams {
|
|
@@ -983,7 +958,7 @@ export interface ChangelogDeleteParams {
|
|
|
983
958
|
* API version for this request. Defaults to your organization's configured API
|
|
984
959
|
* version if not specified.
|
|
985
960
|
*/
|
|
986
|
-
'Featurebase-Version'?:
|
|
961
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
987
962
|
}
|
|
988
963
|
|
|
989
964
|
export interface ChangelogPublishParams {
|
|
@@ -1052,7 +1027,7 @@ export interface ChangelogPublishParams {
|
|
|
1052
1027
|
* Header param: API version for this request. Defaults to your organization's
|
|
1053
1028
|
* configured API version if not specified.
|
|
1054
1029
|
*/
|
|
1055
|
-
'Featurebase-Version'?:
|
|
1030
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1056
1031
|
}
|
|
1057
1032
|
|
|
1058
1033
|
export interface ChangelogUnpublishParams {
|
|
@@ -1109,7 +1084,7 @@ export interface ChangelogUnpublishParams {
|
|
|
1109
1084
|
* Header param: API version for this request. Defaults to your organization's
|
|
1110
1085
|
* configured API version if not specified.
|
|
1111
1086
|
*/
|
|
1112
|
-
'Featurebase-Version'?:
|
|
1087
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1113
1088
|
}
|
|
1114
1089
|
|
|
1115
1090
|
Changelogs.Subscribers = Subscribers;
|
|
@@ -1118,8 +1093,8 @@ export declare namespace Changelogs {
|
|
|
1118
1093
|
export {
|
|
1119
1094
|
type Changelog as Changelog,
|
|
1120
1095
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
1121
|
-
type ChangelogListResponse as ChangelogListResponse,
|
|
1122
1096
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
1097
|
+
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
1123
1098
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
1124
1099
|
type ChangelogRetrieveParams as ChangelogRetrieveParams,
|
|
1125
1100
|
type ChangelogUpdateParams as ChangelogUpdateParams,
|
|
@@ -4,7 +4,6 @@ export {
|
|
|
4
4
|
Changelogs,
|
|
5
5
|
type Changelog,
|
|
6
6
|
type PublishUnpublishSuccess,
|
|
7
|
-
type ChangelogListResponse,
|
|
8
7
|
type ChangelogDeleteResponse,
|
|
9
8
|
type ChangelogCreateParams,
|
|
10
9
|
type ChangelogRetrieveParams,
|
|
@@ -13,6 +12,7 @@ export {
|
|
|
13
12
|
type ChangelogDeleteParams,
|
|
14
13
|
type ChangelogPublishParams,
|
|
15
14
|
type ChangelogUnpublishParams,
|
|
15
|
+
type ChangelogsCursorPage,
|
|
16
16
|
} from './changelogs';
|
|
17
17
|
export {
|
|
18
18
|
Subscribers,
|
|
@@ -61,7 +61,11 @@ export class Subscribers extends APIResource {
|
|
|
61
61
|
body,
|
|
62
62
|
...options,
|
|
63
63
|
headers: buildHeaders([
|
|
64
|
-
{
|
|
64
|
+
{
|
|
65
|
+
...(featurebaseVersion?.toString() != null ?
|
|
66
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
67
|
+
: undefined),
|
|
68
|
+
},
|
|
65
69
|
options?.headers,
|
|
66
70
|
]),
|
|
67
71
|
});
|
|
@@ -111,7 +115,11 @@ export class Subscribers extends APIResource {
|
|
|
111
115
|
body,
|
|
112
116
|
...options,
|
|
113
117
|
headers: buildHeaders([
|
|
114
|
-
{
|
|
118
|
+
{
|
|
119
|
+
...(featurebaseVersion?.toString() != null ?
|
|
120
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
121
|
+
: undefined),
|
|
122
|
+
},
|
|
115
123
|
options?.headers,
|
|
116
124
|
]),
|
|
117
125
|
});
|
|
@@ -200,7 +208,7 @@ export interface SubscriberAddParams {
|
|
|
200
208
|
* Header param: API version for this request. Defaults to your organization's
|
|
201
209
|
* configured API version if not specified.
|
|
202
210
|
*/
|
|
203
|
-
'Featurebase-Version'?:
|
|
211
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
204
212
|
}
|
|
205
213
|
|
|
206
214
|
export interface SubscriberRemoveParams {
|
|
@@ -213,7 +221,7 @@ export interface SubscriberRemoveParams {
|
|
|
213
221
|
* Header param: API version for this request. Defaults to your organization's
|
|
214
222
|
* configured API version if not specified.
|
|
215
223
|
*/
|
|
216
|
-
'Featurebase-Version'?:
|
|
224
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
217
225
|
}
|
|
218
226
|
|
|
219
227
|
export declare namespace Subscribers {
|
|
@@ -32,7 +32,11 @@ export class Boards extends APIResource {
|
|
|
32
32
|
return this._client.get(path`/v2/boards/${id}`, {
|
|
33
33
|
...options,
|
|
34
34
|
headers: buildHeaders([
|
|
35
|
-
{
|
|
35
|
+
{
|
|
36
|
+
...(featurebaseVersion?.toString() != null ?
|
|
37
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
38
|
+
: undefined),
|
|
39
|
+
},
|
|
36
40
|
options?.headers,
|
|
37
41
|
]),
|
|
38
42
|
});
|
|
@@ -63,7 +67,11 @@ export class Boards extends APIResource {
|
|
|
63
67
|
return this._client.get('/v2/boards', {
|
|
64
68
|
...options,
|
|
65
69
|
headers: buildHeaders([
|
|
66
|
-
{
|
|
70
|
+
{
|
|
71
|
+
...(featurebaseVersion?.toString() != null ?
|
|
72
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
73
|
+
: undefined),
|
|
74
|
+
},
|
|
67
75
|
options?.headers,
|
|
68
76
|
]),
|
|
69
77
|
});
|
|
@@ -250,7 +258,7 @@ export interface BoardRetrieveParams {
|
|
|
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 interface BoardListParams {
|
|
@@ -258,7 +266,7 @@ export interface BoardListParams {
|
|
|
258
266
|
* API version for this request. Defaults to your organization's configured API
|
|
259
267
|
* version if not specified.
|
|
260
268
|
*/
|
|
261
|
-
'Featurebase-Version'?:
|
|
269
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
262
270
|
}
|
|
263
271
|
|
|
264
272
|
export declare namespace Boards {
|