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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var _AbstractPage_client;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.CursorPage = exports.PagePromise = exports.AbstractPage = void 0;
|
|
6
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
7
|
+
const error_1 = require("./error.js");
|
|
8
|
+
const parse_1 = require("../internal/parse.js");
|
|
9
|
+
const api_promise_1 = require("./api-promise.js");
|
|
10
|
+
const values_1 = require("../internal/utils/values.js");
|
|
11
|
+
class AbstractPage {
|
|
12
|
+
constructor(client, response, body, options) {
|
|
13
|
+
_AbstractPage_client.set(this, void 0);
|
|
14
|
+
tslib_1.__classPrivateFieldSet(this, _AbstractPage_client, client, "f");
|
|
15
|
+
this.options = options;
|
|
16
|
+
this.response = response;
|
|
17
|
+
this.body = body;
|
|
18
|
+
}
|
|
19
|
+
hasNextPage() {
|
|
20
|
+
const items = this.getPaginatedItems();
|
|
21
|
+
if (!items.length)
|
|
22
|
+
return false;
|
|
23
|
+
return this.nextPageRequestOptions() != null;
|
|
24
|
+
}
|
|
25
|
+
async getNextPage() {
|
|
26
|
+
const nextOptions = this.nextPageRequestOptions();
|
|
27
|
+
if (!nextOptions) {
|
|
28
|
+
throw new error_1.FeaturebaseError('No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.');
|
|
29
|
+
}
|
|
30
|
+
return await tslib_1.__classPrivateFieldGet(this, _AbstractPage_client, "f").requestAPIList(this.constructor, nextOptions);
|
|
31
|
+
}
|
|
32
|
+
async *iterPages() {
|
|
33
|
+
let page = this;
|
|
34
|
+
yield page;
|
|
35
|
+
while (page.hasNextPage()) {
|
|
36
|
+
page = await page.getNextPage();
|
|
37
|
+
yield page;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
async *[(_AbstractPage_client = new WeakMap(), Symbol.asyncIterator)]() {
|
|
41
|
+
for await (const page of this.iterPages()) {
|
|
42
|
+
for (const item of page.getPaginatedItems()) {
|
|
43
|
+
yield item;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.AbstractPage = AbstractPage;
|
|
49
|
+
/**
|
|
50
|
+
* This subclass of Promise will resolve to an instantiated Page once the request completes.
|
|
51
|
+
*
|
|
52
|
+
* It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
|
|
53
|
+
*
|
|
54
|
+
* for await (const item of client.items.list()) {
|
|
55
|
+
* console.log(item)
|
|
56
|
+
* }
|
|
57
|
+
*/
|
|
58
|
+
class PagePromise extends api_promise_1.APIPromise {
|
|
59
|
+
constructor(client, request, Page) {
|
|
60
|
+
super(client, request, async (client, props) => new Page(client, props.response, await (0, parse_1.defaultParseResponse)(client, props), props.options));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Allow auto-paginating iteration on an unawaited list call, eg:
|
|
64
|
+
*
|
|
65
|
+
* for await (const item of client.items.list()) {
|
|
66
|
+
* console.log(item)
|
|
67
|
+
* }
|
|
68
|
+
*/
|
|
69
|
+
async *[Symbol.asyncIterator]() {
|
|
70
|
+
const page = await this;
|
|
71
|
+
for await (const item of page) {
|
|
72
|
+
yield item;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.PagePromise = PagePromise;
|
|
77
|
+
class CursorPage extends AbstractPage {
|
|
78
|
+
constructor(client, response, body, options) {
|
|
79
|
+
super(client, response, body, options);
|
|
80
|
+
this.data = body.data || [];
|
|
81
|
+
this.nextCursor = body.nextCursor || null;
|
|
82
|
+
}
|
|
83
|
+
getPaginatedItems() {
|
|
84
|
+
return this.data ?? [];
|
|
85
|
+
}
|
|
86
|
+
nextPageRequestOptions() {
|
|
87
|
+
const cursor = this.nextCursor;
|
|
88
|
+
if (!cursor) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
...this.options,
|
|
93
|
+
query: {
|
|
94
|
+
...(0, values_1.maybeObj)(this.options.query),
|
|
95
|
+
cursor,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.CursorPage = CursorPage;
|
|
101
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../src/core/pagination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;AAEtF,sCAA2C;AAE3C,gDAAyD;AAEzD,kDAA2C;AAE3C,wDAAoD;AAIpD,MAAsB,YAAY;IAOhC,YAAY,MAAmB,EAAE,QAAkB,EAAE,IAAa,EAAE,OAA4B;QANhG,uCAAqB;QAOnB,+BAAA,IAAI,wBAAW,MAAM,MAAA,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAMD,WAAW;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC,sBAAsB,EAAE,IAAI,IAAI,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAClD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,wBAAgB,CACxB,uFAAuF,CACxF,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,+BAAA,IAAI,4BAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,WAAkB,EAAE,WAAW,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,CAAC,SAAS;QACd,IAAI,IAAI,GAAS,IAAI,CAAC;QACtB,MAAM,IAAI,CAAC;QACX,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YAC1B,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;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IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,sBAAsB;QACpB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,GAAG,IAAI,CAAC,OAAO;YACf,KAAK,EAAE;gBACL,GAAG,IAAA,iBAAQ,EAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;gBAC/B,MAAM;aACP;SACF,CAAC;IACJ,CAAC;CACF;AAnCD,gCAmCC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
var _AbstractPage_client;
|
|
3
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet } from "../internal/tslib.mjs";
|
|
4
|
+
import { FeaturebaseError } from "./error.mjs";
|
|
5
|
+
import { defaultParseResponse } from "../internal/parse.mjs";
|
|
6
|
+
import { APIPromise } from "./api-promise.mjs";
|
|
7
|
+
import { maybeObj } from "../internal/utils/values.mjs";
|
|
8
|
+
export class AbstractPage {
|
|
9
|
+
constructor(client, response, body, options) {
|
|
10
|
+
_AbstractPage_client.set(this, void 0);
|
|
11
|
+
__classPrivateFieldSet(this, _AbstractPage_client, client, "f");
|
|
12
|
+
this.options = options;
|
|
13
|
+
this.response = response;
|
|
14
|
+
this.body = body;
|
|
15
|
+
}
|
|
16
|
+
hasNextPage() {
|
|
17
|
+
const items = this.getPaginatedItems();
|
|
18
|
+
if (!items.length)
|
|
19
|
+
return false;
|
|
20
|
+
return this.nextPageRequestOptions() != null;
|
|
21
|
+
}
|
|
22
|
+
async getNextPage() {
|
|
23
|
+
const nextOptions = this.nextPageRequestOptions();
|
|
24
|
+
if (!nextOptions) {
|
|
25
|
+
throw new FeaturebaseError('No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.');
|
|
26
|
+
}
|
|
27
|
+
return await __classPrivateFieldGet(this, _AbstractPage_client, "f").requestAPIList(this.constructor, nextOptions);
|
|
28
|
+
}
|
|
29
|
+
async *iterPages() {
|
|
30
|
+
let page = this;
|
|
31
|
+
yield page;
|
|
32
|
+
while (page.hasNextPage()) {
|
|
33
|
+
page = await page.getNextPage();
|
|
34
|
+
yield page;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async *[(_AbstractPage_client = new WeakMap(), Symbol.asyncIterator)]() {
|
|
38
|
+
for await (const page of this.iterPages()) {
|
|
39
|
+
for (const item of page.getPaginatedItems()) {
|
|
40
|
+
yield item;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* This subclass of Promise will resolve to an instantiated Page once the request completes.
|
|
47
|
+
*
|
|
48
|
+
* It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
|
|
49
|
+
*
|
|
50
|
+
* for await (const item of client.items.list()) {
|
|
51
|
+
* console.log(item)
|
|
52
|
+
* }
|
|
53
|
+
*/
|
|
54
|
+
export class PagePromise extends APIPromise {
|
|
55
|
+
constructor(client, request, Page) {
|
|
56
|
+
super(client, request, async (client, props) => new Page(client, props.response, await defaultParseResponse(client, props), props.options));
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Allow auto-paginating iteration on an unawaited list call, eg:
|
|
60
|
+
*
|
|
61
|
+
* for await (const item of client.items.list()) {
|
|
62
|
+
* console.log(item)
|
|
63
|
+
* }
|
|
64
|
+
*/
|
|
65
|
+
async *[Symbol.asyncIterator]() {
|
|
66
|
+
const page = await this;
|
|
67
|
+
for await (const item of page) {
|
|
68
|
+
yield item;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export class CursorPage extends AbstractPage {
|
|
73
|
+
constructor(client, response, body, options) {
|
|
74
|
+
super(client, response, body, options);
|
|
75
|
+
this.data = body.data || [];
|
|
76
|
+
this.nextCursor = body.nextCursor || null;
|
|
77
|
+
}
|
|
78
|
+
getPaginatedItems() {
|
|
79
|
+
return this.data ?? [];
|
|
80
|
+
}
|
|
81
|
+
nextPageRequestOptions() {
|
|
82
|
+
const cursor = this.nextCursor;
|
|
83
|
+
if (!cursor) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
...this.options,
|
|
88
|
+
query: {
|
|
89
|
+
...maybeObj(this.options.query),
|
|
90
|
+
cursor,
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=pagination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["../src/core/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAE/E,EAAE,gBAAgB,EAAE;OAEpB,EAAE,oBAAoB,EAAE;OAExB,EAAE,UAAU,EAAE;OAEd,EAAE,QAAQ,EAAE;AAInB,MAAM,OAAgB,YAAY;IAOhC,YAAY,MAAmB,EAAE,QAAkB,EAAE,IAAa,EAAE,OAA4B;QANhG,uCAAqB;QAOnB,uBAAA,IAAI,wBAAW,MAAM,MAAA,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAMD,WAAW;QACT,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC,sBAAsB,EAAE,IAAI,IAAI,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAClD,IAAI,CAAC,WAAW,EAAE,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b,CAAC;IACH,CAAC;CACF;AAcD,MAAM,OAAO,UAAiB,SAAQ,YAAkB;IAKtD,YACE,MAAmB,EACnB,QAAkB,EAClB,IAA8B,EAC9B,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,sBAAsB;QACpB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO;YACL,GAAG,IAAI,CAAC,OAAO;YACf,KAAK,EAAE;gBACL,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;gBAC/B,MAAM;aACP;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/index.d.mts
CHANGED
|
@@ -2,5 +2,6 @@ export { Featurebase as default } from "./client.mjs";
|
|
|
2
2
|
export { type Uploadable, toFile } from "./core/uploads.mjs";
|
|
3
3
|
export { APIPromise } from "./core/api-promise.mjs";
|
|
4
4
|
export { Featurebase, type ClientOptions } from "./client.mjs";
|
|
5
|
+
export { PagePromise } from "./core/pagination.mjs";
|
|
5
6
|
export { FeaturebaseError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
|
|
6
7
|
//# sourceMappingURL=index.d.mts.map
|
package/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE;OACnC,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE;OACnC,EAAE,WAAW,EAAE;OACf,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
package/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { Featurebase as default } from "./client.js";
|
|
|
2
2
|
export { type Uploadable, toFile } from "./core/uploads.js";
|
|
3
3
|
export { APIPromise } from "./core/api-promise.js";
|
|
4
4
|
export { Featurebase, type ClientOptions } from "./client.js";
|
|
5
|
+
export { PagePromise } from "./core/pagination.js";
|
|
5
6
|
export { FeaturebaseError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE;OACnC,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE;OACnC,EAAE,WAAW,EAAE;OACf,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ exports = module.exports = function (...args) {
|
|
|
4
4
|
return new exports.default(...args)
|
|
5
5
|
}
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.FeaturebaseError = exports.Featurebase = exports.APIPromise = exports.toFile = exports.default = void 0;
|
|
7
|
+
exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.FeaturebaseError = exports.PagePromise = exports.Featurebase = exports.APIPromise = exports.toFile = exports.default = void 0;
|
|
8
8
|
var client_1 = require("./client.js");
|
|
9
9
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_1.Featurebase; } });
|
|
10
10
|
var uploads_1 = require("./core/uploads.js");
|
|
@@ -13,6 +13,8 @@ var api_promise_1 = require("./core/api-promise.js");
|
|
|
13
13
|
Object.defineProperty(exports, "APIPromise", { enumerable: true, get: function () { return api_promise_1.APIPromise; } });
|
|
14
14
|
var client_2 = require("./client.js");
|
|
15
15
|
Object.defineProperty(exports, "Featurebase", { enumerable: true, get: function () { return client_2.Featurebase; } });
|
|
16
|
+
var pagination_1 = require("./core/pagination.js");
|
|
17
|
+
Object.defineProperty(exports, "PagePromise", { enumerable: true, get: function () { return pagination_1.PagePromise; } });
|
|
16
18
|
var error_1 = require("./core/error.js");
|
|
17
19
|
Object.defineProperty(exports, "FeaturebaseError", { enumerable: true, get: function () { return error_1.FeaturebaseError; } });
|
|
18
20
|
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkD;AAAzC,iGAAA,WAAW,OAAW;AAE/B,6CAAyD;AAA/B,iGAAA,MAAM,OAAA;AAChC,qDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,sCAA2D;AAAlD,qGAAA,WAAW,OAAA;AACpB,yCAcsB;AAbpB,yGAAA,gBAAgB,OAAA;AAChB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkD;AAAzC,iGAAA,WAAW,OAAW;AAE/B,6CAAyD;AAA/B,iGAAA,MAAM,OAAA;AAChC,qDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,sCAA2D;AAAlD,qGAAA,WAAW,OAAA;AACpB,mDAAgD;AAAvC,yGAAA,WAAW,OAAA;AACpB,yCAcsB;AAbpB,yGAAA,gBAAgB,OAAA;AAChB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA"}
|
package/index.mjs
CHANGED
|
@@ -3,5 +3,6 @@ export { Featurebase as default } from "./client.mjs";
|
|
|
3
3
|
export { toFile } from "./core/uploads.mjs";
|
|
4
4
|
export { APIPromise } from "./core/api-promise.mjs";
|
|
5
5
|
export { Featurebase } from "./client.mjs";
|
|
6
|
+
export { PagePromise } from "./core/pagination.mjs";
|
|
6
7
|
export { FeaturebaseError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAmB,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAsB;OACnC,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,IAAI,OAAO,EAAE;OAE1B,EAAmB,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAsB;OACnC,EAAE,WAAW,EAAE;OACf,EACL,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "featurebase-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The official TypeScript library for the Featurebase API",
|
|
5
5
|
"author": "Featurebase <>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -81,6 +81,16 @@
|
|
|
81
81
|
"./index.mjs": {
|
|
82
82
|
"default": "./index.mjs"
|
|
83
83
|
},
|
|
84
|
+
"./pagination": {
|
|
85
|
+
"import": "./pagination.mjs",
|
|
86
|
+
"require": "./pagination.js"
|
|
87
|
+
},
|
|
88
|
+
"./pagination.js": {
|
|
89
|
+
"default": "./pagination.js"
|
|
90
|
+
},
|
|
91
|
+
"./pagination.mjs": {
|
|
92
|
+
"default": "./pagination.mjs"
|
|
93
|
+
},
|
|
84
94
|
"./resource": {
|
|
85
95
|
"import": "./resource.mjs",
|
|
86
96
|
"require": "./resource.js"
|
package/pagination.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.mts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
package/pagination.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/pagination instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/pagination.js"), exports);
|
|
6
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,+DAAkC"}
|
package/pagination.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,7 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as SubscribersAPI from "./subscribers.mjs";
|
|
3
3
|
import { SubscriberAddParams, SubscriberAddResponse, SubscriberRemoveParams, SubscriberRemoveResponse, Subscribers } from "./subscribers.mjs";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
7
|
/**
|
|
7
8
|
* Release notes and updates published by the organization. Changelogs keep users informed about new features, improvements, and fixes.
|
|
@@ -183,10 +184,13 @@ export declare class Changelogs extends APIResource {
|
|
|
183
184
|
*
|
|
184
185
|
* @example
|
|
185
186
|
* ```ts
|
|
186
|
-
*
|
|
187
|
+
* // Automatically fetches more pages as needed.
|
|
188
|
+
* for await (const changelog of client.changelogs.list()) {
|
|
189
|
+
* // ...
|
|
190
|
+
* }
|
|
187
191
|
* ```
|
|
188
192
|
*/
|
|
189
|
-
list(params?: ChangelogListParams | null | undefined, options?: RequestOptions):
|
|
193
|
+
list(params?: ChangelogListParams | null | undefined, options?: RequestOptions): PagePromise<ChangelogsCursorPage, Changelog>;
|
|
190
194
|
/**
|
|
191
195
|
* Deletes a changelog by its unique identifier.
|
|
192
196
|
*
|
|
@@ -325,6 +329,7 @@ export declare class Changelogs extends APIResource {
|
|
|
325
329
|
*/
|
|
326
330
|
unpublish(id: string, params: ChangelogUnpublishParams, options?: RequestOptions): APIPromise<PublishUnpublishSuccess>;
|
|
327
331
|
}
|
|
332
|
+
export type ChangelogsCursorPage = CursorPage<Changelog>;
|
|
328
333
|
export interface Changelog {
|
|
329
334
|
/**
|
|
330
335
|
* Unique identifier
|
|
@@ -471,47 +476,6 @@ export interface PublishUnpublishSuccess {
|
|
|
471
476
|
*/
|
|
472
477
|
state?: 'published' | 'scheduled' | 'unpublished';
|
|
473
478
|
}
|
|
474
|
-
export interface ChangelogListResponse {
|
|
475
|
-
/**
|
|
476
|
-
* Array of changelogs
|
|
477
|
-
*/
|
|
478
|
-
data: Array<Changelog>;
|
|
479
|
-
/**
|
|
480
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
481
|
-
*/
|
|
482
|
-
nextCursor: string | null;
|
|
483
|
-
/**
|
|
484
|
-
* Object type identifier
|
|
485
|
-
*/
|
|
486
|
-
object: 'list';
|
|
487
|
-
/**
|
|
488
|
-
* Pagination metadata for page-based requests
|
|
489
|
-
*/
|
|
490
|
-
pagination?: ChangelogListResponse.Pagination;
|
|
491
|
-
}
|
|
492
|
-
export declare namespace ChangelogListResponse {
|
|
493
|
-
/**
|
|
494
|
-
* Pagination metadata for page-based requests
|
|
495
|
-
*/
|
|
496
|
-
interface Pagination {
|
|
497
|
-
/**
|
|
498
|
-
* Items per page
|
|
499
|
-
*/
|
|
500
|
-
limit: number;
|
|
501
|
-
/**
|
|
502
|
-
* Current page number
|
|
503
|
-
*/
|
|
504
|
-
page: number;
|
|
505
|
-
/**
|
|
506
|
-
* Total number of items
|
|
507
|
-
*/
|
|
508
|
-
total: number;
|
|
509
|
-
/**
|
|
510
|
-
* Total number of pages
|
|
511
|
-
*/
|
|
512
|
-
totalPages: number;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
479
|
export interface ChangelogDeleteResponse {
|
|
516
480
|
/**
|
|
517
481
|
* Unique identifier of the deleted changelog
|
|
@@ -573,14 +537,14 @@ export interface ChangelogCreateParams {
|
|
|
573
537
|
* Header param: API version for this request. Defaults to your organization's
|
|
574
538
|
* configured API version if not specified.
|
|
575
539
|
*/
|
|
576
|
-
'Featurebase-Version'?:
|
|
540
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
577
541
|
}
|
|
578
542
|
export interface ChangelogRetrieveParams {
|
|
579
543
|
/**
|
|
580
544
|
* API version for this request. Defaults to your organization's configured API
|
|
581
545
|
* version if not specified.
|
|
582
546
|
*/
|
|
583
|
-
'Featurebase-Version'?:
|
|
547
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
584
548
|
}
|
|
585
549
|
export interface ChangelogUpdateParams {
|
|
586
550
|
/**
|
|
@@ -620,9 +584,9 @@ export interface ChangelogUpdateParams {
|
|
|
620
584
|
* Header param: API version for this request. Defaults to your organization's
|
|
621
585
|
* configured API version if not specified.
|
|
622
586
|
*/
|
|
623
|
-
'Featurebase-Version'?:
|
|
587
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
624
588
|
}
|
|
625
|
-
export interface ChangelogListParams {
|
|
589
|
+
export interface ChangelogListParams extends CursorPageParams {
|
|
626
590
|
/**
|
|
627
591
|
* Query param: Find changelog by its id (also accepts slug)
|
|
628
592
|
*/
|
|
@@ -631,18 +595,10 @@ export interface ChangelogListParams {
|
|
|
631
595
|
* Query param: Filter changelogs by category names (single value or array)
|
|
632
596
|
*/
|
|
633
597
|
categories?: string | Array<string>;
|
|
634
|
-
/**
|
|
635
|
-
* Query param: Cursor for pagination. Use nextCursor from previous response.
|
|
636
|
-
*/
|
|
637
|
-
cursor?: string;
|
|
638
598
|
/**
|
|
639
599
|
* Query param: Include Changelogs dated on or before the specified end date
|
|
640
600
|
*/
|
|
641
601
|
endDate?: string | null;
|
|
642
|
-
/**
|
|
643
|
-
* Query param: Maximum number of changelogs to return
|
|
644
|
-
*/
|
|
645
|
-
limit?: number;
|
|
646
602
|
/**
|
|
647
603
|
* Query param: The locale of the changelogs. Defaults to the organization default
|
|
648
604
|
* locale.
|
|
@@ -673,14 +629,14 @@ export interface ChangelogListParams {
|
|
|
673
629
|
* Header param: API version for this request. Defaults to your organization's
|
|
674
630
|
* configured API version if not specified.
|
|
675
631
|
*/
|
|
676
|
-
'Featurebase-Version'?:
|
|
632
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
677
633
|
}
|
|
678
634
|
export interface ChangelogDeleteParams {
|
|
679
635
|
/**
|
|
680
636
|
* API version for this request. Defaults to your organization's configured API
|
|
681
637
|
* version if not specified.
|
|
682
638
|
*/
|
|
683
|
-
'Featurebase-Version'?:
|
|
639
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
684
640
|
}
|
|
685
641
|
export interface ChangelogPublishParams {
|
|
686
642
|
/**
|
|
@@ -702,7 +658,7 @@ export interface ChangelogPublishParams {
|
|
|
702
658
|
* Header param: API version for this request. Defaults to your organization's
|
|
703
659
|
* configured API version if not specified.
|
|
704
660
|
*/
|
|
705
|
-
'Featurebase-Version'?:
|
|
661
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
706
662
|
}
|
|
707
663
|
export interface ChangelogUnpublishParams {
|
|
708
664
|
/**
|
|
@@ -714,10 +670,10 @@ export interface ChangelogUnpublishParams {
|
|
|
714
670
|
* Header param: API version for this request. Defaults to your organization's
|
|
715
671
|
* configured API version if not specified.
|
|
716
672
|
*/
|
|
717
|
-
'Featurebase-Version'?:
|
|
673
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
718
674
|
}
|
|
719
675
|
export declare namespace Changelogs {
|
|
720
|
-
export { type Changelog as Changelog, type PublishUnpublishSuccess as PublishUnpublishSuccess, type
|
|
676
|
+
export { type Changelog as Changelog, type PublishUnpublishSuccess as PublishUnpublishSuccess, type ChangelogDeleteResponse as ChangelogDeleteResponse, type ChangelogsCursorPage as ChangelogsCursorPage, type ChangelogCreateParams as ChangelogCreateParams, type ChangelogRetrieveParams as ChangelogRetrieveParams, type ChangelogUpdateParams as ChangelogUpdateParams, type ChangelogListParams as ChangelogListParams, type ChangelogDeleteParams as ChangelogDeleteParams, type ChangelogPublishParams as ChangelogPublishParams, type ChangelogUnpublishParams as ChangelogUnpublishParams, };
|
|
721
677
|
export { Subscribers as Subscribers, type SubscriberAddResponse as SubscriberAddResponse, type SubscriberRemoveResponse as SubscriberRemoveResponse, type SubscriberAddParams as SubscriberAddParams, type SubscriberRemoveParams as SubscriberRemoveParams, };
|
|
722
678
|
}
|
|
723
679
|
//# sourceMappingURL=changelogs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelogs.d.mts","sourceRoot":"","sources":["../../src/resources/changelogs/changelogs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"changelogs.d.mts","sourceRoot":"","sources":["../../src/resources/changelogs/changelogs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAgBtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC;IAexB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+CG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAgBlG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CACF,MAAM,GAAE,mBAAmB,GAAG,IAAI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