featurebase-node 0.2.0 → 0.4.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 +18 -0
- package/README.md +31 -0
- package/client.d.mts +25 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -10
- package/client.d.ts.map +1 -1
- package/client.js +27 -8
- package/client.js.map +1 -1
- package/client.mjs +27 -8
- 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 +9 -53
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +9 -53
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +6 -2
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +6 -2
- 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/feedback/comments.d.mts +10 -54
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +10 -54
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +6 -2
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +6 -2
- package/resources/feedback/comments.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/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 +12 -57
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +12 -57
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +6 -2
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +6 -2
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +79 -124
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +79 -124
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.js +7 -3
- package/resources/feedback/posts/voters.js.map +1 -1
- package/resources/feedback/posts/voters.mjs +7 -3
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +9 -27
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +9 -27
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +6 -2
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +6 -2
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +9 -28
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +9 -28
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +6 -3
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +6 -3
- 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 +9 -28
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +9 -28
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +6 -3
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +6 -3
- 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 +9 -28
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +9 -28
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +6 -3
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +6 -3
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/organization/brands.d.mts +5 -26
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +5 -26
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +2 -1
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +2 -1
- 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/{products → support}/conversation-tags.d.mts +4 -4
- package/resources/{products/conversation-tags.d.ts.map → support/conversation-tags.d.mts.map} +1 -1
- package/resources/{products → support}/conversation-tags.d.ts +4 -4
- package/resources/support/conversation-tags.d.ts.map +1 -0
- package/resources/{products → support}/conversation-tags.js +4 -4
- package/resources/support/conversation-tags.js.map +1 -0
- package/resources/{products → support}/conversation-tags.mjs +4 -4
- package/resources/support/conversation-tags.mjs.map +1 -0
- package/resources/{products → support}/conversations/conversations.d.mts +15 -34
- package/resources/support/conversations/conversations.d.mts.map +1 -0
- package/resources/{products → support}/conversations/conversations.d.ts +15 -34
- package/resources/support/conversations/conversations.d.ts.map +1 -0
- package/resources/{products → support}/conversations/conversations.js +12 -9
- package/resources/support/conversations/conversations.js.map +1 -0
- package/resources/{products → support}/conversations/conversations.mjs +12 -9
- package/resources/support/conversations/conversations.mjs.map +1 -0
- package/resources/{products → support}/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -0
- package/resources/{products → support}/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -0
- package/resources/support/conversations/index.js.map +1 -0
- package/resources/support/conversations/index.mjs.map +1 -0
- package/resources/{products → support}/conversations/participants.d.mts +2 -2
- package/resources/{products/conversations/participants.d.ts.map → support/conversations/participants.d.mts.map} +1 -1
- package/resources/{products → support}/conversations/participants.d.ts +2 -2
- package/resources/support/conversations/participants.d.ts.map +1 -0
- package/resources/{products → support}/conversations/participants.js +2 -2
- package/resources/support/conversations/participants.js.map +1 -0
- package/resources/{products → support}/conversations/participants.mjs +2 -2
- package/resources/support/conversations/participants.mjs.map +1 -0
- package/resources/{products → support}/conversations/tags.d.mts +2 -2
- package/resources/{products/conversations/tags.d.ts.map → support/conversations/tags.d.mts.map} +1 -1
- package/resources/{products → support}/conversations/tags.d.ts +2 -2
- package/resources/support/conversations/tags.d.ts.map +1 -0
- package/resources/{products → support}/conversations/tags.js +2 -2
- package/resources/support/conversations/tags.js.map +1 -0
- package/resources/{products → support}/conversations/tags.mjs +2 -2
- package/resources/support/conversations/tags.mjs.map +1 -0
- package/resources/support/conversations.d.mts.map +1 -0
- package/resources/support/conversations.d.ts.map +1 -0
- package/resources/support/conversations.js.map +1 -0
- package/resources/support/conversations.mjs.map +1 -0
- package/resources/support/index.d.mts +5 -0
- package/resources/support/index.d.mts.map +1 -0
- package/resources/support/index.d.ts +5 -0
- package/resources/support/index.d.ts.map +1 -0
- package/resources/{products → support}/index.js +3 -5
- package/resources/support/index.js.map +1 -0
- package/resources/{products → support}/index.mjs +1 -2
- package/resources/support/index.mjs.map +1 -0
- package/resources/support/support.d.mts +18 -0
- package/resources/support/support.d.mts.map +1 -0
- package/resources/support/support.d.ts +18 -0
- package/resources/support/support.d.ts.map +1 -0
- package/resources/{products/products.js → support/support.js} +7 -11
- package/resources/support/support.js.map +1 -0
- package/resources/{products/products.mjs → support/support.mjs} +5 -9
- package/resources/support/support.mjs.map +1 -0
- package/resources/{products → support}/tickets/categories.d.mts +2 -2
- package/resources/{products/tickets/categories.d.ts.map → support/tickets/categories.d.mts.map} +1 -1
- package/resources/{products → support}/tickets/categories.d.ts +2 -2
- package/resources/support/tickets/categories.d.ts.map +1 -0
- package/resources/{products → support}/tickets/categories.js +2 -2
- package/resources/support/tickets/categories.js.map +1 -0
- package/resources/{products → support}/tickets/categories.mjs +2 -2
- package/resources/support/tickets/categories.mjs.map +1 -0
- package/resources/{products → support}/tickets/custom-fields.d.mts +2 -2
- package/resources/{products/tickets/custom-fields.d.ts.map → support/tickets/custom-fields.d.mts.map} +1 -1
- package/resources/{products → support}/tickets/custom-fields.d.ts +2 -2
- package/resources/support/tickets/custom-fields.d.ts.map +1 -0
- package/resources/{products → support}/tickets/custom-fields.js +2 -2
- package/resources/support/tickets/custom-fields.js.map +1 -0
- package/resources/{products → support}/tickets/custom-fields.mjs +2 -2
- package/resources/support/tickets/custom-fields.mjs.map +1 -0
- package/resources/{products → support}/tickets/index.d.mts +1 -1
- package/resources/support/tickets/index.d.mts.map +1 -0
- package/resources/{products → support}/tickets/index.d.ts +1 -1
- package/resources/support/tickets/index.d.ts.map +1 -0
- package/resources/support/tickets/index.js.map +1 -0
- package/resources/support/tickets/index.mjs.map +1 -0
- package/resources/{products → support}/tickets/statuses.d.mts +2 -2
- package/resources/{products/tickets/statuses.d.ts.map → support/tickets/statuses.d.mts.map} +1 -1
- package/resources/{products → support}/tickets/statuses.d.ts +2 -2
- package/resources/support/tickets/statuses.d.ts.map +1 -0
- package/resources/{products → support}/tickets/statuses.js +2 -2
- package/resources/support/tickets/statuses.js.map +1 -0
- package/resources/{products → support}/tickets/statuses.mjs +2 -2
- package/resources/support/tickets/statuses.mjs.map +1 -0
- package/resources/{products → support}/tickets/tickets.d.mts +14 -31
- package/resources/support/tickets/tickets.d.mts.map +1 -0
- package/resources/{products → support}/tickets/tickets.d.ts +14 -31
- package/resources/support/tickets/tickets.d.ts.map +1 -0
- package/resources/{products → support}/tickets/tickets.js +11 -7
- package/resources/support/tickets/tickets.js.map +1 -0
- package/resources/{products → support}/tickets/tickets.mjs +11 -7
- package/resources/support/tickets/tickets.mjs.map +1 -0
- package/resources/support/tickets.d.mts.map +1 -0
- package/resources/support/tickets.d.ts.map +1 -0
- package/resources/support/tickets.js.map +1 -0
- package/resources/support/tickets.mjs.map +1 -0
- package/resources/support.d.mts +2 -0
- package/resources/support.d.mts.map +1 -0
- package/resources/support.d.ts +2 -0
- package/resources/support.d.ts.map +1 -0
- package/resources/{products.js → support.js} +2 -2
- package/resources/support.js.map +1 -0
- package/{src/resources/integrations.ts → resources/support.mjs} +2 -2
- package/resources/support.mjs.map +1 -0
- package/resources/{products/surveys.d.mts → surveys.d.mts} +38 -103
- package/resources/surveys.d.mts.map +1 -0
- package/resources/{products/surveys.d.ts → surveys.d.ts} +38 -103
- package/resources/surveys.d.ts.map +1 -0
- package/resources/{products/surveys.js → surveys.js} +7 -26
- package/resources/surveys.js.map +1 -0
- package/resources/{products/surveys.mjs → surveys.mjs} +7 -26
- package/resources/surveys.mjs.map +1 -0
- package/resources/users/companies/companies.d.mts +9 -28
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +9 -28
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +6 -2
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +6 -2
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +11 -16
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +11 -16
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.js +8 -5
- package/resources/users/companies/contacts.js.map +1 -1
- package/resources/users/companies/contacts.mjs +8 -5
- 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/contacts.d.mts +9 -13
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +9 -13
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +6 -2
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +6 -2
- package/resources/users/contacts/contacts.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/{integrations/webhooks.d.mts → webhooks.d.mts} +19 -38
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/{integrations/webhooks.d.ts → webhooks.d.ts} +19 -38
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/{integrations/webhooks.js → webhooks.js} +16 -13
- package/resources/webhooks.js.map +1 -0
- package/resources/{integrations/webhooks.mjs → webhooks.mjs} +16 -13
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +98 -14
- 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 +11 -64
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/feedback/comments.ts +12 -65
- package/src/resources/feedback/feedback.ts +4 -4
- package/src/resources/feedback/index.ts +2 -2
- package/src/resources/feedback/posts/index.ts +2 -1
- package/src/resources/feedback/posts/posts.ts +14 -66
- package/src/resources/feedback/posts/voters.ts +87 -140
- package/src/resources/help-center/articles.ts +11 -33
- package/src/resources/help-center/collections.ts +11 -34
- package/src/resources/help-center/help-center.ts +8 -8
- package/src/resources/help-center/help-centers.ts +11 -34
- package/src/resources/help-center/index.ts +4 -4
- package/src/resources/help-center/redirect-rules.ts +11 -34
- package/src/resources/index.ts +26 -3
- package/src/resources/organization/brands.ts +7 -32
- package/src/resources/organization/index.ts +1 -1
- package/src/resources/organization/organization.ts +2 -2
- package/src/resources/{products → support}/conversation-tags.ts +4 -4
- package/src/resources/{products → support}/conversations/conversations.ts +17 -40
- package/src/resources/{products → support}/conversations/index.ts +1 -1
- package/src/resources/{products → support}/conversations/participants.ts +2 -2
- package/src/resources/{products → support}/conversations/tags.ts +2 -2
- package/src/resources/{products → support}/index.ts +3 -13
- package/src/resources/{products/products.ts → support/support.ts} +9 -33
- package/src/resources/{products → support}/tickets/categories.ts +2 -2
- package/src/resources/{products → support}/tickets/custom-fields.ts +2 -2
- package/src/resources/{products → support}/tickets/index.ts +1 -1
- package/src/resources/{products → support}/tickets/statuses.ts +2 -2
- package/src/resources/{products → support}/tickets/tickets.ts +16 -37
- package/src/resources/{products.ts → support.ts} +1 -1
- package/src/resources/{products/surveys.ts → surveys.ts} +60 -128
- package/src/resources/users/companies/companies.ts +11 -34
- package/src/resources/users/companies/contacts.ts +24 -26
- package/src/resources/users/companies/index.ts +1 -1
- package/src/resources/users/contacts/contacts.ts +14 -15
- 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/{integrations/webhooks.ts → webhooks.ts} +23 -46
- 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/resources/integrations/index.d.mts +0 -3
- package/resources/integrations/index.d.mts.map +0 -1
- package/resources/integrations/index.d.ts +0 -3
- package/resources/integrations/index.d.ts.map +0 -1
- package/resources/integrations/index.js +0 -9
- package/resources/integrations/index.js.map +0 -1
- package/resources/integrations/index.mjs +0 -4
- package/resources/integrations/index.mjs.map +0 -1
- package/resources/integrations/integrations.d.mts +0 -10
- package/resources/integrations/integrations.d.mts.map +0 -1
- package/resources/integrations/integrations.d.ts +0 -10
- package/resources/integrations/integrations.d.ts.map +0 -1
- package/resources/integrations/integrations.js +0 -17
- package/resources/integrations/integrations.js.map +0 -1
- package/resources/integrations/integrations.mjs +0 -12
- package/resources/integrations/integrations.mjs.map +0 -1
- package/resources/integrations/webhooks.d.mts.map +0 -1
- package/resources/integrations/webhooks.d.ts.map +0 -1
- package/resources/integrations/webhooks.js.map +0 -1
- package/resources/integrations/webhooks.mjs.map +0 -1
- package/resources/integrations.d.mts +0 -2
- package/resources/integrations.d.mts.map +0 -1
- package/resources/integrations.d.ts +0 -2
- package/resources/integrations.d.ts.map +0 -1
- package/resources/integrations.js +0 -6
- package/resources/integrations.js.map +0 -1
- package/resources/integrations.mjs +0 -3
- package/resources/integrations.mjs.map +0 -1
- package/resources/products/conversation-tags.d.mts.map +0 -1
- package/resources/products/conversation-tags.js.map +0 -1
- package/resources/products/conversation-tags.mjs.map +0 -1
- package/resources/products/conversations/conversations.d.mts.map +0 -1
- package/resources/products/conversations/conversations.d.ts.map +0 -1
- package/resources/products/conversations/conversations.js.map +0 -1
- package/resources/products/conversations/conversations.mjs.map +0 -1
- package/resources/products/conversations/index.d.mts.map +0 -1
- package/resources/products/conversations/index.d.ts.map +0 -1
- package/resources/products/conversations/index.js.map +0 -1
- package/resources/products/conversations/index.mjs.map +0 -1
- package/resources/products/conversations/participants.d.mts.map +0 -1
- package/resources/products/conversations/participants.js.map +0 -1
- package/resources/products/conversations/participants.mjs.map +0 -1
- package/resources/products/conversations/tags.d.mts.map +0 -1
- package/resources/products/conversations/tags.js.map +0 -1
- package/resources/products/conversations/tags.mjs.map +0 -1
- package/resources/products/conversations.d.mts.map +0 -1
- package/resources/products/conversations.d.ts.map +0 -1
- package/resources/products/conversations.js.map +0 -1
- package/resources/products/conversations.mjs.map +0 -1
- package/resources/products/index.d.mts +0 -6
- package/resources/products/index.d.mts.map +0 -1
- package/resources/products/index.d.ts +0 -6
- package/resources/products/index.d.ts.map +0 -1
- package/resources/products/index.js.map +0 -1
- package/resources/products/index.mjs.map +0 -1
- package/resources/products/products.d.mts +0 -22
- package/resources/products/products.d.mts.map +0 -1
- package/resources/products/products.d.ts +0 -22
- package/resources/products/products.d.ts.map +0 -1
- package/resources/products/products.js.map +0 -1
- package/resources/products/products.mjs.map +0 -1
- package/resources/products/surveys.d.mts.map +0 -1
- package/resources/products/surveys.d.ts.map +0 -1
- package/resources/products/surveys.js.map +0 -1
- package/resources/products/surveys.mjs.map +0 -1
- package/resources/products/tickets/categories.d.mts.map +0 -1
- package/resources/products/tickets/categories.js.map +0 -1
- package/resources/products/tickets/categories.mjs.map +0 -1
- package/resources/products/tickets/custom-fields.d.mts.map +0 -1
- package/resources/products/tickets/custom-fields.js.map +0 -1
- package/resources/products/tickets/custom-fields.mjs.map +0 -1
- package/resources/products/tickets/index.d.mts.map +0 -1
- package/resources/products/tickets/index.d.ts.map +0 -1
- package/resources/products/tickets/index.js.map +0 -1
- package/resources/products/tickets/index.mjs.map +0 -1
- package/resources/products/tickets/statuses.d.mts.map +0 -1
- package/resources/products/tickets/statuses.js.map +0 -1
- package/resources/products/tickets/statuses.mjs.map +0 -1
- package/resources/products/tickets/tickets.d.mts.map +0 -1
- package/resources/products/tickets/tickets.d.ts.map +0 -1
- package/resources/products/tickets/tickets.js.map +0 -1
- package/resources/products/tickets/tickets.mjs.map +0 -1
- package/resources/products/tickets.d.mts.map +0 -1
- package/resources/products/tickets.d.ts.map +0 -1
- package/resources/products/tickets.js.map +0 -1
- package/resources/products/tickets.mjs.map +0 -1
- package/resources/products.d.mts +0 -2
- package/resources/products.d.mts.map +0 -1
- package/resources/products.d.ts +0 -2
- package/resources/products.d.ts.map +0 -1
- package/resources/products.js.map +0 -1
- package/resources/products.mjs +0 -3
- package/resources/products.mjs.map +0 -1
- package/src/resources/integrations/index.ts +0 -16
- package/src/resources/integrations/integrations.ts +0 -39
- /package/resources/{products → support}/conversations/index.js +0 -0
- /package/resources/{products → support}/conversations/index.mjs +0 -0
- /package/resources/{products → support}/conversations.d.mts +0 -0
- /package/resources/{products → support}/conversations.d.ts +0 -0
- /package/resources/{products → support}/conversations.js +0 -0
- /package/resources/{products → support}/conversations.mjs +0 -0
- /package/resources/{products → support}/tickets/index.js +0 -0
- /package/resources/{products → support}/tickets/index.mjs +0 -0
- /package/resources/{products → support}/tickets.d.mts +0 -0
- /package/resources/{products → support}/tickets.d.ts +0 -0
- /package/resources/{products → support}/tickets.js +0 -0
- /package/resources/{products → support}/tickets.mjs +0 -0
- /package/src/resources/{products → support}/conversations.ts +0 -0
- /package/src/resources/{products → support}/tickets.ts +0 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as CompaniesAPI from '../../users/companies/companies';
|
|
5
5
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
6
7
|
import { buildHeaders } from '../../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
9
|
import { path } from '../../../internal/utils/path';
|
|
@@ -50,18 +51,21 @@ export class Voters extends APIResource {
|
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* ```ts
|
|
53
|
-
*
|
|
54
|
+
* // Automatically fetches more pages as needed.
|
|
55
|
+
* for await (const voterListResponse of client.feedback.posts.voters.list(
|
|
54
56
|
* '507f1f77bcf86cd799439011',
|
|
55
|
-
* )
|
|
57
|
+
* )) {
|
|
58
|
+
* // ...
|
|
59
|
+
* }
|
|
56
60
|
* ```
|
|
57
61
|
*/
|
|
58
62
|
list(
|
|
59
63
|
id: string,
|
|
60
64
|
params: VoterListParams | null | undefined = {},
|
|
61
65
|
options?: RequestOptions,
|
|
62
|
-
):
|
|
66
|
+
): PagePromise<VoterListResponsesCursorPage, VoterListResponse> {
|
|
63
67
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
64
|
-
return this._client.
|
|
68
|
+
return this._client.getAPIList(path`/v2/posts/${id}/voters`, CursorPage<VoterListResponse>, {
|
|
65
69
|
query,
|
|
66
70
|
...options,
|
|
67
71
|
headers: buildHeaders([
|
|
@@ -176,150 +180,103 @@ export class Voters extends APIResource {
|
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
|
|
183
|
+
export type VoterListResponsesCursorPage = CursorPage<VoterListResponse>;
|
|
184
|
+
|
|
179
185
|
export interface VoterListResponse {
|
|
180
186
|
/**
|
|
181
|
-
*
|
|
187
|
+
* Unique identifier
|
|
182
188
|
*/
|
|
183
|
-
|
|
189
|
+
id: string;
|
|
184
190
|
|
|
185
191
|
/**
|
|
186
|
-
*
|
|
192
|
+
* User display name
|
|
187
193
|
*/
|
|
188
|
-
|
|
194
|
+
name: string;
|
|
189
195
|
|
|
190
196
|
/**
|
|
191
197
|
* Object type identifier
|
|
192
198
|
*/
|
|
193
|
-
object: '
|
|
199
|
+
object: 'contact';
|
|
194
200
|
|
|
195
201
|
/**
|
|
196
|
-
*
|
|
202
|
+
* Type of user
|
|
197
203
|
*/
|
|
198
|
-
|
|
199
|
-
}
|
|
204
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
200
205
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
*/
|
|
206
|
-
id: string;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* User display name
|
|
210
|
-
*/
|
|
211
|
-
name: string;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Object type identifier
|
|
215
|
-
*/
|
|
216
|
-
object: 'contact';
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Type of user
|
|
220
|
-
*/
|
|
221
|
-
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Number of comments created
|
|
225
|
-
*/
|
|
226
|
-
commentsCreated?: number;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Companies the user belongs to
|
|
230
|
-
*/
|
|
231
|
-
companies?: Array<CompaniesAPI.Company>;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Custom field values on the user
|
|
235
|
-
*/
|
|
236
|
-
customFields?: { [key: string]: unknown };
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* User description/bio
|
|
240
|
-
*/
|
|
241
|
-
description?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* User email
|
|
245
|
-
*/
|
|
246
|
-
email?: string | null;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Last activity ISO timestamp
|
|
250
|
-
*/
|
|
251
|
-
lastActivity?: string;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* User locale
|
|
255
|
-
*/
|
|
256
|
-
locale?: string;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Whether manually opted out from changelog
|
|
260
|
-
*/
|
|
261
|
-
manuallyOptedOutFromChangelog?: boolean;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Organization ID the user belongs to
|
|
265
|
-
*/
|
|
266
|
-
organizationId?: string;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Number of posts created
|
|
270
|
-
*/
|
|
271
|
-
postsCreated?: number;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Profile picture URL
|
|
275
|
-
*/
|
|
276
|
-
profilePicture?: string | null;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* User roles
|
|
280
|
-
*/
|
|
281
|
-
roles?: Array<string>;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Whether subscribed to changelog
|
|
285
|
-
*/
|
|
286
|
-
subscribedToChangelog?: boolean;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* External user ID from SSO
|
|
290
|
-
*/
|
|
291
|
-
userId?: string;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Whether email is verified
|
|
295
|
-
*/
|
|
296
|
-
verified?: boolean;
|
|
297
|
-
}
|
|
206
|
+
/**
|
|
207
|
+
* Number of comments created
|
|
208
|
+
*/
|
|
209
|
+
commentsCreated?: number;
|
|
298
210
|
|
|
299
211
|
/**
|
|
300
|
-
*
|
|
212
|
+
* Companies the user belongs to
|
|
301
213
|
*/
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Items per page
|
|
305
|
-
*/
|
|
306
|
-
limit: number;
|
|
214
|
+
companies?: Array<CompaniesAPI.Company>;
|
|
307
215
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
216
|
+
/**
|
|
217
|
+
* Custom field values on the user
|
|
218
|
+
*/
|
|
219
|
+
customFields?: { [key: string]: unknown };
|
|
312
220
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
221
|
+
/**
|
|
222
|
+
* User description/bio
|
|
223
|
+
*/
|
|
224
|
+
description?: string;
|
|
317
225
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
226
|
+
/**
|
|
227
|
+
* User email
|
|
228
|
+
*/
|
|
229
|
+
email?: string | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Last activity ISO timestamp
|
|
233
|
+
*/
|
|
234
|
+
lastActivity?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* User locale
|
|
238
|
+
*/
|
|
239
|
+
locale?: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Whether manually opted out from changelog
|
|
243
|
+
*/
|
|
244
|
+
manuallyOptedOutFromChangelog?: boolean;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Organization ID the user belongs to
|
|
248
|
+
*/
|
|
249
|
+
organizationId?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Number of posts created
|
|
253
|
+
*/
|
|
254
|
+
postsCreated?: number;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Profile picture URL
|
|
258
|
+
*/
|
|
259
|
+
profilePicture?: string | null;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* User roles
|
|
263
|
+
*/
|
|
264
|
+
roles?: Array<string>;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Whether subscribed to changelog
|
|
268
|
+
*/
|
|
269
|
+
subscribedToChangelog?: boolean;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* External user ID from SSO
|
|
273
|
+
*/
|
|
274
|
+
userId?: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Whether email is verified
|
|
278
|
+
*/
|
|
279
|
+
verified?: boolean;
|
|
323
280
|
}
|
|
324
281
|
|
|
325
282
|
export interface VoterAddResponse {
|
|
@@ -366,18 +323,7 @@ export interface VoterRemoveResponse {
|
|
|
366
323
|
removed: true;
|
|
367
324
|
}
|
|
368
325
|
|
|
369
|
-
export interface VoterListParams {
|
|
370
|
-
/**
|
|
371
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
372
|
-
* previous response to fetch the next page of results.
|
|
373
|
-
*/
|
|
374
|
-
cursor?: string;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* Query param: A limit on the number of voters to be returned, between 1 and 100.
|
|
378
|
-
*/
|
|
379
|
-
limit?: number;
|
|
380
|
-
|
|
326
|
+
export interface VoterListParams extends CursorPageParams {
|
|
381
327
|
/**
|
|
382
328
|
* Header param: API version for this request. Defaults to your organization's
|
|
383
329
|
* configured API version if not specified.
|
|
@@ -446,6 +392,7 @@ export declare namespace Voters {
|
|
|
446
392
|
type VoterListResponse as VoterListResponse,
|
|
447
393
|
type VoterAddResponse as VoterAddResponse,
|
|
448
394
|
type VoterRemoveResponse as VoterRemoveResponse,
|
|
395
|
+
type VoterListResponsesCursorPage as VoterListResponsesCursorPage,
|
|
449
396
|
type VoterListParams as VoterListParams,
|
|
450
397
|
type VoterAddParams as VoterAddParams,
|
|
451
398
|
type VoterRemoveParams as VoterRemoveParams,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ArticlesAPI from './articles';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
7
|
import { buildHeaders } from '../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -250,15 +251,18 @@ export class Articles extends APIResource {
|
|
|
250
251
|
*
|
|
251
252
|
* @example
|
|
252
253
|
* ```ts
|
|
253
|
-
*
|
|
254
|
+
* // Automatically fetches more pages as needed.
|
|
255
|
+
* for await (const article of client.helpCenter.articles.list()) {
|
|
256
|
+
* // ...
|
|
257
|
+
* }
|
|
254
258
|
* ```
|
|
255
259
|
*/
|
|
256
260
|
list(
|
|
257
261
|
params: ArticleListParams | null | undefined = {},
|
|
258
262
|
options?: RequestOptions,
|
|
259
|
-
):
|
|
263
|
+
): PagePromise<ArticlesCursorPage, Article> {
|
|
260
264
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
261
|
-
return this._client.
|
|
265
|
+
return this._client.getAPIList('/v2/help_center/articles', CursorPage<Article>, {
|
|
262
266
|
query,
|
|
263
267
|
...options,
|
|
264
268
|
headers: buildHeaders([
|
|
@@ -310,6 +314,8 @@ export class Articles extends APIResource {
|
|
|
310
314
|
}
|
|
311
315
|
}
|
|
312
316
|
|
|
317
|
+
export type ArticlesCursorPage = CursorPage<Article>;
|
|
318
|
+
|
|
313
319
|
export interface Article {
|
|
314
320
|
/**
|
|
315
321
|
* Article unique identifier
|
|
@@ -837,23 +843,6 @@ export interface ArticleTranslationInputNova {
|
|
|
837
843
|
title?: string;
|
|
838
844
|
}
|
|
839
845
|
|
|
840
|
-
export interface ArticleListResponse {
|
|
841
|
-
/**
|
|
842
|
-
* Array of article objects
|
|
843
|
-
*/
|
|
844
|
-
data: Array<Article>;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
848
|
-
*/
|
|
849
|
-
nextCursor: string | null;
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* Object type identifier
|
|
853
|
-
*/
|
|
854
|
-
object: 'list';
|
|
855
|
-
}
|
|
856
|
-
|
|
857
846
|
export interface ArticleDeleteResponse {
|
|
858
847
|
/**
|
|
859
848
|
* Unique identifier of the deleted article
|
|
@@ -1169,24 +1158,13 @@ export namespace ArticleUpdateParams {
|
|
|
1169
1158
|
}
|
|
1170
1159
|
}
|
|
1171
1160
|
|
|
1172
|
-
export interface ArticleListParams {
|
|
1173
|
-
/**
|
|
1174
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
1175
|
-
* previous response to fetch the next page of results.
|
|
1176
|
-
*/
|
|
1177
|
-
cursor?: string;
|
|
1178
|
-
|
|
1161
|
+
export interface ArticleListParams extends CursorPageParams {
|
|
1179
1162
|
/**
|
|
1180
1163
|
* Query param: Filter articles by help center ID. If omitted, returns articles
|
|
1181
1164
|
* across all help centers.
|
|
1182
1165
|
*/
|
|
1183
1166
|
helpCenterId?: string;
|
|
1184
1167
|
|
|
1185
|
-
/**
|
|
1186
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
1187
|
-
*/
|
|
1188
|
-
limit?: number;
|
|
1189
|
-
|
|
1190
1168
|
/**
|
|
1191
1169
|
* Query param: Filter articles by parent collection ID
|
|
1192
1170
|
*/
|
|
@@ -1220,8 +1198,8 @@ export declare namespace Articles {
|
|
|
1220
1198
|
type ArticleIconInputNova as ArticleIconInputNova,
|
|
1221
1199
|
type ArticleTranslation as ArticleTranslation,
|
|
1222
1200
|
type ArticleTranslationInputNova as ArticleTranslationInputNova,
|
|
1223
|
-
type ArticleListResponse as ArticleListResponse,
|
|
1224
1201
|
type ArticleDeleteResponse as ArticleDeleteResponse,
|
|
1202
|
+
type ArticlesCursorPage as ArticlesCursorPage,
|
|
1225
1203
|
type ArticleCreateParams as ArticleCreateParams,
|
|
1226
1204
|
type ArticleRetrieveParams as ArticleRetrieveParams,
|
|
1227
1205
|
type ArticleUpdateParams as ArticleUpdateParams,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as CollectionsAPI from './collections';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
7
|
import { buildHeaders } from '../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -232,16 +233,18 @@ export class Collections extends APIResource {
|
|
|
232
233
|
*
|
|
233
234
|
* @example
|
|
234
235
|
* ```ts
|
|
235
|
-
*
|
|
236
|
-
*
|
|
236
|
+
* // Automatically fetches more pages as needed.
|
|
237
|
+
* for await (const collection of client.helpCenter.collections.list()) {
|
|
238
|
+
* // ...
|
|
239
|
+
* }
|
|
237
240
|
* ```
|
|
238
241
|
*/
|
|
239
242
|
list(
|
|
240
243
|
params: CollectionListParams | null | undefined = {},
|
|
241
244
|
options?: RequestOptions,
|
|
242
|
-
):
|
|
245
|
+
): PagePromise<CollectionsCursorPage, Collection> {
|
|
243
246
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
244
|
-
return this._client.
|
|
247
|
+
return this._client.getAPIList('/v2/help_center/collections', CursorPage<Collection>, {
|
|
245
248
|
query,
|
|
246
249
|
...options,
|
|
247
250
|
headers: buildHeaders([
|
|
@@ -292,6 +295,8 @@ export class Collections extends APIResource {
|
|
|
292
295
|
}
|
|
293
296
|
}
|
|
294
297
|
|
|
298
|
+
export type CollectionsCursorPage = CursorPage<Collection>;
|
|
299
|
+
|
|
295
300
|
export interface Collection {
|
|
296
301
|
/**
|
|
297
302
|
* Collection unique identifier
|
|
@@ -725,23 +730,6 @@ export interface CollectionTranslationInputNova {
|
|
|
725
730
|
name?: string;
|
|
726
731
|
}
|
|
727
732
|
|
|
728
|
-
export interface CollectionListResponse {
|
|
729
|
-
/**
|
|
730
|
-
* Array of collections
|
|
731
|
-
*/
|
|
732
|
-
data: Array<Collection>;
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
736
|
-
*/
|
|
737
|
-
nextCursor: string | null;
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* Object type identifier
|
|
741
|
-
*/
|
|
742
|
-
object: 'list';
|
|
743
|
-
}
|
|
744
|
-
|
|
745
733
|
export interface CollectionDeleteResponse {
|
|
746
734
|
/**
|
|
747
735
|
* Unique identifier of the deleted collection
|
|
@@ -1015,24 +1003,13 @@ export namespace CollectionUpdateParams {
|
|
|
1015
1003
|
}
|
|
1016
1004
|
}
|
|
1017
1005
|
|
|
1018
|
-
export interface CollectionListParams {
|
|
1019
|
-
/**
|
|
1020
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
1021
|
-
* previous response to fetch the next page.
|
|
1022
|
-
*/
|
|
1023
|
-
cursor?: string;
|
|
1024
|
-
|
|
1006
|
+
export interface CollectionListParams extends CursorPageParams {
|
|
1025
1007
|
/**
|
|
1026
1008
|
* Query param: Filter collections by help center ID. If omitted, returns
|
|
1027
1009
|
* collections across all help centers.
|
|
1028
1010
|
*/
|
|
1029
1011
|
helpCenterId?: string;
|
|
1030
1012
|
|
|
1031
|
-
/**
|
|
1032
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
1033
|
-
*/
|
|
1034
|
-
limit?: number;
|
|
1035
|
-
|
|
1036
1013
|
/**
|
|
1037
1014
|
* Header param: API version for this request. Defaults to your organization's
|
|
1038
1015
|
* configured API version if not specified.
|
|
@@ -1054,8 +1031,8 @@ export declare namespace Collections {
|
|
|
1054
1031
|
type CollectionIconNova as CollectionIconNova,
|
|
1055
1032
|
type CollectionTranslation as CollectionTranslation,
|
|
1056
1033
|
type CollectionTranslationInputNova as CollectionTranslationInputNova,
|
|
1057
|
-
type CollectionListResponse as CollectionListResponse,
|
|
1058
1034
|
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
1035
|
+
type CollectionsCursorPage as CollectionsCursorPage,
|
|
1059
1036
|
type CollectionCreateParams as CollectionCreateParams,
|
|
1060
1037
|
type CollectionRetrieveParams as CollectionRetrieveParams,
|
|
1061
1038
|
type CollectionUpdateParams as CollectionUpdateParams,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
ArticleDeleteResponse,
|
|
11
11
|
ArticleIconInputNova,
|
|
12
12
|
ArticleListParams,
|
|
13
|
-
ArticleListResponse,
|
|
14
13
|
ArticleRetrieveParams,
|
|
15
14
|
ArticleTranslation,
|
|
16
15
|
ArticleTranslationInputNova,
|
|
17
16
|
ArticleUpdateParams,
|
|
18
17
|
Articles,
|
|
18
|
+
ArticlesCursorPage,
|
|
19
19
|
} from './articles';
|
|
20
20
|
import * as CollectionsAPI from './collections';
|
|
21
21
|
import {
|
|
@@ -25,22 +25,22 @@ import {
|
|
|
25
25
|
CollectionDeleteResponse,
|
|
26
26
|
CollectionIconNova,
|
|
27
27
|
CollectionListParams,
|
|
28
|
-
CollectionListResponse,
|
|
29
28
|
CollectionRetrieveParams,
|
|
30
29
|
CollectionTranslation,
|
|
31
30
|
CollectionTranslationInputNova,
|
|
32
31
|
CollectionUpdateParams,
|
|
33
32
|
Collections,
|
|
33
|
+
CollectionsCursorPage,
|
|
34
34
|
} from './collections';
|
|
35
35
|
import * as HelpCentersAPI from './help-centers';
|
|
36
36
|
import {
|
|
37
37
|
HelpCenter as HelpCentersAPIHelpCenter,
|
|
38
38
|
HelpCenterListParams,
|
|
39
|
-
HelpCenterListResponse,
|
|
40
39
|
HelpCenterNavItem,
|
|
41
40
|
HelpCenterRetrieveParams,
|
|
42
41
|
HelpCenterTranslation,
|
|
43
42
|
HelpCenters,
|
|
43
|
+
HelpCentersCursorPage,
|
|
44
44
|
} from './help-centers';
|
|
45
45
|
import * as RedirectRulesAPI from './redirect-rules';
|
|
46
46
|
import {
|
|
@@ -49,11 +49,11 @@ import {
|
|
|
49
49
|
RedirectRuleDeleteParams,
|
|
50
50
|
RedirectRuleDeleteResponse,
|
|
51
51
|
RedirectRuleListParams,
|
|
52
|
-
RedirectRuleListResponse,
|
|
53
52
|
RedirectRuleRetrieveByURLParams,
|
|
54
53
|
RedirectRuleRetrieveParams,
|
|
55
54
|
RedirectRuleUpdateParams,
|
|
56
55
|
RedirectRules,
|
|
56
|
+
RedirectRulesCursorPage,
|
|
57
57
|
} from './redirect-rules';
|
|
58
58
|
|
|
59
59
|
export class HelpCenter extends APIResource {
|
|
@@ -74,7 +74,7 @@ export declare namespace HelpCenter {
|
|
|
74
74
|
type HelpCentersAPIHelpCenter as HelpCenter,
|
|
75
75
|
type HelpCenterNavItem as HelpCenterNavItem,
|
|
76
76
|
type HelpCenterTranslation as HelpCenterTranslation,
|
|
77
|
-
type
|
|
77
|
+
type HelpCentersCursorPage as HelpCentersCursorPage,
|
|
78
78
|
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
79
79
|
type HelpCenterListParams as HelpCenterListParams,
|
|
80
80
|
};
|
|
@@ -85,8 +85,8 @@ export declare namespace HelpCenter {
|
|
|
85
85
|
type CollectionIconNova as CollectionIconNova,
|
|
86
86
|
type CollectionTranslation as CollectionTranslation,
|
|
87
87
|
type CollectionTranslationInputNova as CollectionTranslationInputNova,
|
|
88
|
-
type CollectionListResponse as CollectionListResponse,
|
|
89
88
|
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
89
|
+
type CollectionsCursorPage as CollectionsCursorPage,
|
|
90
90
|
type CollectionCreateParams as CollectionCreateParams,
|
|
91
91
|
type CollectionRetrieveParams as CollectionRetrieveParams,
|
|
92
92
|
type CollectionUpdateParams as CollectionUpdateParams,
|
|
@@ -101,8 +101,8 @@ export declare namespace HelpCenter {
|
|
|
101
101
|
type ArticleIconInputNova as ArticleIconInputNova,
|
|
102
102
|
type ArticleTranslation as ArticleTranslation,
|
|
103
103
|
type ArticleTranslationInputNova as ArticleTranslationInputNova,
|
|
104
|
-
type ArticleListResponse as ArticleListResponse,
|
|
105
104
|
type ArticleDeleteResponse as ArticleDeleteResponse,
|
|
105
|
+
type ArticlesCursorPage as ArticlesCursorPage,
|
|
106
106
|
type ArticleCreateParams as ArticleCreateParams,
|
|
107
107
|
type ArticleRetrieveParams as ArticleRetrieveParams,
|
|
108
108
|
type ArticleUpdateParams as ArticleUpdateParams,
|
|
@@ -113,8 +113,8 @@ export declare namespace HelpCenter {
|
|
|
113
113
|
export {
|
|
114
114
|
RedirectRules as RedirectRules,
|
|
115
115
|
type RedirectRule as RedirectRule,
|
|
116
|
-
type RedirectRuleListResponse as RedirectRuleListResponse,
|
|
117
116
|
type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse,
|
|
117
|
+
type RedirectRulesCursorPage as RedirectRulesCursorPage,
|
|
118
118
|
type RedirectRuleCreateParams as RedirectRuleCreateParams,
|
|
119
119
|
type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams,
|
|
120
120
|
type RedirectRuleUpdateParams as RedirectRuleUpdateParams,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as HelpCentersAPI from './help-centers';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
7
|
import { buildHeaders } from '../../internal/headers';
|
|
7
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -98,16 +99,18 @@ export class HelpCenters extends APIResource {
|
|
|
98
99
|
*
|
|
99
100
|
* @example
|
|
100
101
|
* ```ts
|
|
101
|
-
*
|
|
102
|
-
*
|
|
102
|
+
* // Automatically fetches more pages as needed.
|
|
103
|
+
* for await (const helpCenter of client.helpCenter.helpCenters.list()) {
|
|
104
|
+
* // ...
|
|
105
|
+
* }
|
|
103
106
|
* ```
|
|
104
107
|
*/
|
|
105
108
|
list(
|
|
106
109
|
params: HelpCenterListParams | null | undefined = {},
|
|
107
110
|
options?: RequestOptions,
|
|
108
|
-
):
|
|
111
|
+
): PagePromise<HelpCentersCursorPage, HelpCenter> {
|
|
109
112
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
110
|
-
return this._client.
|
|
113
|
+
return this._client.getAPIList('/v2/help_center/help_centers', CursorPage<HelpCenter>, {
|
|
111
114
|
query,
|
|
112
115
|
...options,
|
|
113
116
|
headers: buildHeaders([
|
|
@@ -118,6 +121,8 @@ export class HelpCenters extends APIResource {
|
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
|
|
124
|
+
export type HelpCentersCursorPage = CursorPage<HelpCenter>;
|
|
125
|
+
|
|
121
126
|
export interface HelpCenter {
|
|
122
127
|
/**
|
|
123
128
|
* Help center unique identifier
|
|
@@ -502,23 +507,6 @@ export interface HelpCenterTranslation {
|
|
|
502
507
|
title?: string;
|
|
503
508
|
}
|
|
504
509
|
|
|
505
|
-
export interface HelpCenterListResponse {
|
|
506
|
-
/**
|
|
507
|
-
* Array of help centers
|
|
508
|
-
*/
|
|
509
|
-
data: Array<HelpCenter>;
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
513
|
-
*/
|
|
514
|
-
nextCursor: string | null;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Object type identifier
|
|
518
|
-
*/
|
|
519
|
-
object: 'list';
|
|
520
|
-
}
|
|
521
|
-
|
|
522
510
|
export interface HelpCenterRetrieveParams {
|
|
523
511
|
/**
|
|
524
512
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -527,18 +515,7 @@ export interface HelpCenterRetrieveParams {
|
|
|
527
515
|
'Featurebase-Version'?: string;
|
|
528
516
|
}
|
|
529
517
|
|
|
530
|
-
export interface HelpCenterListParams {
|
|
531
|
-
/**
|
|
532
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
533
|
-
* previous response to fetch the next page.
|
|
534
|
-
*/
|
|
535
|
-
cursor?: string;
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
539
|
-
*/
|
|
540
|
-
limit?: number;
|
|
541
|
-
|
|
518
|
+
export interface HelpCenterListParams extends CursorPageParams {
|
|
542
519
|
/**
|
|
543
520
|
* Header param: API version for this request. Defaults to your organization's
|
|
544
521
|
* configured API version if not specified.
|
|
@@ -551,7 +528,7 @@ export declare namespace HelpCenters {
|
|
|
551
528
|
type HelpCenter as HelpCenter,
|
|
552
529
|
type HelpCenterNavItem as HelpCenterNavItem,
|
|
553
530
|
type HelpCenterTranslation as HelpCenterTranslation,
|
|
554
|
-
type
|
|
531
|
+
type HelpCentersCursorPage as HelpCentersCursorPage,
|
|
555
532
|
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
556
533
|
type HelpCenterListParams as HelpCenterListParams,
|
|
557
534
|
};
|