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
|
@@ -7,13 +7,13 @@ export {
|
|
|
7
7
|
type ArticleIconInputNova,
|
|
8
8
|
type ArticleTranslation,
|
|
9
9
|
type ArticleTranslationInputNova,
|
|
10
|
-
type ArticleListResponse,
|
|
11
10
|
type ArticleDeleteResponse,
|
|
12
11
|
type ArticleCreateParams,
|
|
13
12
|
type ArticleRetrieveParams,
|
|
14
13
|
type ArticleUpdateParams,
|
|
15
14
|
type ArticleListParams,
|
|
16
15
|
type ArticleDeleteParams,
|
|
16
|
+
type ArticlesCursorPage,
|
|
17
17
|
} from './articles';
|
|
18
18
|
export {
|
|
19
19
|
Collections,
|
|
@@ -21,27 +21,26 @@ export {
|
|
|
21
21
|
type CollectionIconNova,
|
|
22
22
|
type CollectionTranslation,
|
|
23
23
|
type CollectionTranslationInputNova,
|
|
24
|
-
type CollectionListResponse,
|
|
25
24
|
type CollectionDeleteResponse,
|
|
26
25
|
type CollectionCreateParams,
|
|
27
26
|
type CollectionRetrieveParams,
|
|
28
27
|
type CollectionUpdateParams,
|
|
29
28
|
type CollectionListParams,
|
|
30
29
|
type CollectionDeleteParams,
|
|
30
|
+
type CollectionsCursorPage,
|
|
31
31
|
} from './collections';
|
|
32
32
|
export { HelpCenter } from './help-center';
|
|
33
33
|
export {
|
|
34
34
|
HelpCenters,
|
|
35
35
|
type HelpCenterNavItem,
|
|
36
36
|
type HelpCenterTranslation,
|
|
37
|
-
type HelpCenterListResponse,
|
|
38
37
|
type HelpCenterRetrieveParams,
|
|
39
38
|
type HelpCenterListParams,
|
|
39
|
+
type HelpCentersCursorPage,
|
|
40
40
|
} from './help-centers';
|
|
41
41
|
export {
|
|
42
42
|
RedirectRules,
|
|
43
43
|
type RedirectRule,
|
|
44
|
-
type RedirectRuleListResponse,
|
|
45
44
|
type RedirectRuleDeleteResponse,
|
|
46
45
|
type RedirectRuleCreateParams,
|
|
47
46
|
type RedirectRuleRetrieveParams,
|
|
@@ -49,4 +48,5 @@ export {
|
|
|
49
48
|
type RedirectRuleListParams,
|
|
50
49
|
type RedirectRuleDeleteParams,
|
|
51
50
|
type RedirectRuleRetrieveByURLParams,
|
|
51
|
+
type RedirectRulesCursorPage,
|
|
52
52
|
} from './redirect-rules';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
5
6
|
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -198,16 +199,18 @@ export class RedirectRules extends APIResource {
|
|
|
198
199
|
*
|
|
199
200
|
* @example
|
|
200
201
|
* ```ts
|
|
201
|
-
*
|
|
202
|
-
*
|
|
202
|
+
* // Automatically fetches more pages as needed.
|
|
203
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
204
|
+
* // ...
|
|
205
|
+
* }
|
|
203
206
|
* ```
|
|
204
207
|
*/
|
|
205
208
|
list(
|
|
206
209
|
params: RedirectRuleListParams | null | undefined = {},
|
|
207
210
|
options?: RequestOptions,
|
|
208
|
-
):
|
|
211
|
+
): PagePromise<RedirectRulesCursorPage, RedirectRule> {
|
|
209
212
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
210
|
-
return this._client.
|
|
213
|
+
return this._client.getAPIList('/v2/help_center/redirect_rules', CursorPage<RedirectRule>, {
|
|
211
214
|
query,
|
|
212
215
|
...options,
|
|
213
216
|
headers: buildHeaders([
|
|
@@ -311,6 +314,8 @@ export class RedirectRules extends APIResource {
|
|
|
311
314
|
}
|
|
312
315
|
}
|
|
313
316
|
|
|
317
|
+
export type RedirectRulesCursorPage = CursorPage<RedirectRule>;
|
|
318
|
+
|
|
314
319
|
export interface RedirectRule {
|
|
315
320
|
/**
|
|
316
321
|
* Redirect rule unique identifier
|
|
@@ -400,23 +405,6 @@ export interface RedirectRule {
|
|
|
400
405
|
updatedAt: string;
|
|
401
406
|
}
|
|
402
407
|
|
|
403
|
-
export interface RedirectRuleListResponse {
|
|
404
|
-
/**
|
|
405
|
-
* Array of redirect rules
|
|
406
|
-
*/
|
|
407
|
-
data: Array<RedirectRule>;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Cursor for fetching the next page. Null if there are no more results.
|
|
411
|
-
*/
|
|
412
|
-
nextCursor: string | null;
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Object type identifier
|
|
416
|
-
*/
|
|
417
|
-
object: 'list';
|
|
418
|
-
}
|
|
419
|
-
|
|
420
408
|
export interface RedirectRuleDeleteResponse {
|
|
421
409
|
/**
|
|
422
410
|
* Unique identifier of the deleted redirect rule
|
|
@@ -597,23 +585,12 @@ export interface RedirectRuleUpdateParams {
|
|
|
597
585
|
'Featurebase-Version'?: string;
|
|
598
586
|
}
|
|
599
587
|
|
|
600
|
-
export interface RedirectRuleListParams {
|
|
601
|
-
/**
|
|
602
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
603
|
-
* previous response to fetch the next page.
|
|
604
|
-
*/
|
|
605
|
-
cursor?: string;
|
|
606
|
-
|
|
588
|
+
export interface RedirectRuleListParams extends CursorPageParams {
|
|
607
589
|
/**
|
|
608
590
|
* Query param: Filter redirect rules by help center ID
|
|
609
591
|
*/
|
|
610
592
|
helpCenterId?: string;
|
|
611
593
|
|
|
612
|
-
/**
|
|
613
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
614
|
-
*/
|
|
615
|
-
limit?: number;
|
|
616
|
-
|
|
617
594
|
/**
|
|
618
595
|
* Query param: Filter redirect rules by locale
|
|
619
596
|
*/
|
|
@@ -699,8 +676,8 @@ export interface RedirectRuleRetrieveByURLParams {
|
|
|
699
676
|
export declare namespace RedirectRules {
|
|
700
677
|
export {
|
|
701
678
|
type RedirectRule as RedirectRule,
|
|
702
|
-
type RedirectRuleListResponse as RedirectRuleListResponse,
|
|
703
679
|
type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse,
|
|
680
|
+
type RedirectRulesCursorPage as RedirectRulesCursorPage,
|
|
704
681
|
type RedirectRuleCreateParams as RedirectRuleCreateParams,
|
|
705
682
|
type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams,
|
|
706
683
|
type RedirectRuleUpdateParams as RedirectRuleUpdateParams,
|
package/src/resources/index.ts
CHANGED
|
@@ -4,7 +4,6 @@ export {
|
|
|
4
4
|
Changelogs,
|
|
5
5
|
type Changelog,
|
|
6
6
|
type PublishUnpublishSuccess,
|
|
7
|
-
type ChangelogListResponse,
|
|
8
7
|
type ChangelogDeleteResponse,
|
|
9
8
|
type ChangelogCreateParams,
|
|
10
9
|
type ChangelogRetrieveParams,
|
|
@@ -13,10 +12,34 @@ export {
|
|
|
13
12
|
type ChangelogDeleteParams,
|
|
14
13
|
type ChangelogPublishParams,
|
|
15
14
|
type ChangelogUnpublishParams,
|
|
15
|
+
type ChangelogsCursorPage,
|
|
16
16
|
} from './changelogs/changelogs';
|
|
17
17
|
export { Feedback } from './feedback/feedback';
|
|
18
18
|
export { HelpCenter } from './help-center/help-center';
|
|
19
|
-
export { Integrations } from './integrations/integrations';
|
|
20
19
|
export { Organization } from './organization/organization';
|
|
21
|
-
export {
|
|
20
|
+
export { Support } from './support/support';
|
|
21
|
+
export {
|
|
22
|
+
Surveys,
|
|
23
|
+
type Survey,
|
|
24
|
+
type SurveyNextAction,
|
|
25
|
+
type SurveyListResponsesResponse,
|
|
26
|
+
type SurveyRetrieveParams,
|
|
27
|
+
type SurveyListParams,
|
|
28
|
+
type SurveyListResponsesParams,
|
|
29
|
+
type SurveysCursorPage,
|
|
30
|
+
type SurveyListResponsesResponsesCursorPage,
|
|
31
|
+
} from './surveys';
|
|
22
32
|
export { Users } from './users/users';
|
|
33
|
+
export {
|
|
34
|
+
Webhooks,
|
|
35
|
+
type Webhook,
|
|
36
|
+
type WebhookRequestConfigInput,
|
|
37
|
+
type WebhookDeleteResponse,
|
|
38
|
+
type WebhookCreateParams,
|
|
39
|
+
type WebhookRetrieveParams,
|
|
40
|
+
type WebhookUpdateParams,
|
|
41
|
+
type WebhookListParams,
|
|
42
|
+
type WebhookDeleteParams,
|
|
43
|
+
type WebhookRefreshSecretParams,
|
|
44
|
+
type WebhooksCursorPage,
|
|
45
|
+
} from './webhooks';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
5
6
|
import { buildHeaders } from '../../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -123,9 +124,9 @@ export class Brands extends APIResource {
|
|
|
123
124
|
list(
|
|
124
125
|
params: BrandListParams | null | undefined = {},
|
|
125
126
|
options?: RequestOptions,
|
|
126
|
-
):
|
|
127
|
+
): PagePromise<BrandsCursorPage, Brand> {
|
|
127
128
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
128
|
-
return this._client.
|
|
129
|
+
return this._client.getAPIList('/v2/brands', CursorPage<Brand>, {
|
|
129
130
|
query,
|
|
130
131
|
...options,
|
|
131
132
|
headers: buildHeaders([
|
|
@@ -136,6 +137,8 @@ export class Brands extends APIResource {
|
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
export type BrandsCursorPage = CursorPage<Brand>;
|
|
141
|
+
|
|
139
142
|
export interface Brand {
|
|
140
143
|
/**
|
|
141
144
|
* Featurebase internal ID
|
|
@@ -178,23 +181,6 @@ export interface Brand {
|
|
|
178
181
|
updatedAt: string | null;
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
export interface BrandListResponse {
|
|
182
|
-
/**
|
|
183
|
-
* Array of brands
|
|
184
|
-
*/
|
|
185
|
-
data: Array<Brand>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Cursor for fetching the next page (cursor-based pagination)
|
|
189
|
-
*/
|
|
190
|
-
nextCursor: string | null;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Object type identifier
|
|
194
|
-
*/
|
|
195
|
-
object: 'list';
|
|
196
|
-
}
|
|
197
|
-
|
|
198
184
|
export interface BrandRetrieveParams {
|
|
199
185
|
/**
|
|
200
186
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -203,18 +189,7 @@ export interface BrandRetrieveParams {
|
|
|
203
189
|
'Featurebase-Version'?: string;
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
export interface BrandListParams {
|
|
207
|
-
/**
|
|
208
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
209
|
-
* previous response to fetch the next page of results.
|
|
210
|
-
*/
|
|
211
|
-
cursor?: string;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Query param: A limit on the number of brands to be returned, between 1 and 100.
|
|
215
|
-
*/
|
|
216
|
-
limit?: number;
|
|
217
|
-
|
|
192
|
+
export interface BrandListParams extends CursorPageParams {
|
|
218
193
|
/**
|
|
219
194
|
* Header param: API version for this request. Defaults to your organization's
|
|
220
195
|
* configured API version if not specified.
|
|
@@ -225,7 +200,7 @@ export interface BrandListParams {
|
|
|
225
200
|
export declare namespace Brands {
|
|
226
201
|
export {
|
|
227
202
|
type Brand as Brand,
|
|
228
|
-
type
|
|
203
|
+
type BrandsCursorPage as BrandsCursorPage,
|
|
229
204
|
type BrandRetrieveParams as BrandRetrieveParams,
|
|
230
205
|
type BrandListParams as BrandListParams,
|
|
231
206
|
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Admins,
|
|
13
13
|
} from './admins';
|
|
14
14
|
import * as BrandsAPI from './brands';
|
|
15
|
-
import { Brand, BrandListParams,
|
|
15
|
+
import { Brand, BrandListParams, BrandRetrieveParams, Brands, BrandsCursorPage } from './brands';
|
|
16
16
|
import * as TeamsAPI from './teams';
|
|
17
17
|
import { Team, TeamListParams, TeamListResponse, TeamRetrieveParams, Teams } from './teams';
|
|
18
18
|
|
|
@@ -48,7 +48,7 @@ export declare namespace Organization {
|
|
|
48
48
|
export {
|
|
49
49
|
Brands as Brands,
|
|
50
50
|
type Brand as Brand,
|
|
51
|
-
type
|
|
51
|
+
type BrandsCursorPage as BrandsCursorPage,
|
|
52
52
|
type BrandRetrieveParams as BrandRetrieveParams,
|
|
53
53
|
type BrandListParams as BrandListParams,
|
|
54
54
|
};
|
|
@@ -17,7 +17,7 @@ export class ConversationTags extends APIResource {
|
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
19
|
* const conversationTag =
|
|
20
|
-
* await client.
|
|
20
|
+
* await client.support.conversationTags.retrieve(
|
|
21
21
|
* '67ec1234abcd5678ef901234',
|
|
22
22
|
* );
|
|
23
23
|
* ```
|
|
@@ -45,7 +45,7 @@ export class ConversationTags extends APIResource {
|
|
|
45
45
|
* @example
|
|
46
46
|
* ```ts
|
|
47
47
|
* const conversationTags =
|
|
48
|
-
* await client.
|
|
48
|
+
* await client.support.conversationTags.list();
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
list(
|
|
@@ -70,7 +70,7 @@ export class ConversationTags extends APIResource {
|
|
|
70
70
|
* @example
|
|
71
71
|
* ```ts
|
|
72
72
|
* const conversationTag =
|
|
73
|
-
* await client.
|
|
73
|
+
* await client.support.conversationTags.delete(
|
|
74
74
|
* '67ec1234abcd5678ef901234',
|
|
75
75
|
* );
|
|
76
76
|
* ```
|
|
@@ -98,7 +98,7 @@ export class ConversationTags extends APIResource {
|
|
|
98
98
|
* @example
|
|
99
99
|
* ```ts
|
|
100
100
|
* const conversationTag =
|
|
101
|
-
* await client.
|
|
101
|
+
* await client.support.conversationTags.createOrRename({
|
|
102
102
|
* name: 'Churn',
|
|
103
103
|
* });
|
|
104
104
|
* ```
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Tags,
|
|
15
15
|
} from './tags';
|
|
16
16
|
import { APIPromise } from '../../../core/api-promise';
|
|
17
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
17
18
|
import { buildHeaders } from '../../../internal/headers';
|
|
18
19
|
import { RequestOptions } from '../../../internal/request-options';
|
|
19
20
|
import { path } from '../../../internal/utils/path';
|
|
@@ -149,7 +150,7 @@ export class Conversations extends APIResource {
|
|
|
149
150
|
* @example
|
|
150
151
|
* ```ts
|
|
151
152
|
* const conversation =
|
|
152
|
-
* await client.
|
|
153
|
+
* await client.support.conversations.create({
|
|
153
154
|
* bodyMarkdown:
|
|
154
155
|
* 'Hello, I have a question about your product.\n\n',
|
|
155
156
|
* from: {
|
|
@@ -271,7 +272,7 @@ export class Conversations extends APIResource {
|
|
|
271
272
|
* @example
|
|
272
273
|
* ```ts
|
|
273
274
|
* const conversation =
|
|
274
|
-
* await client.
|
|
275
|
+
* await client.support.conversations.retrieve('12345');
|
|
275
276
|
* ```
|
|
276
277
|
*/
|
|
277
278
|
retrieve(
|
|
@@ -413,7 +414,7 @@ export class Conversations extends APIResource {
|
|
|
413
414
|
* @example
|
|
414
415
|
* ```ts
|
|
415
416
|
* const conversation =
|
|
416
|
-
* await client.
|
|
417
|
+
* await client.support.conversations.update('12345');
|
|
417
418
|
* ```
|
|
418
419
|
*/
|
|
419
420
|
update(id: string, params: ConversationUpdateParams, options?: RequestOptions): APIPromise<Conversation> {
|
|
@@ -492,16 +493,18 @@ export class Conversations extends APIResource {
|
|
|
492
493
|
*
|
|
493
494
|
* @example
|
|
494
495
|
* ```ts
|
|
495
|
-
*
|
|
496
|
-
*
|
|
496
|
+
* // Automatically fetches more pages as needed.
|
|
497
|
+
* for await (const conversation of client.support.conversations.list()) {
|
|
498
|
+
* // ...
|
|
499
|
+
* }
|
|
497
500
|
* ```
|
|
498
501
|
*/
|
|
499
502
|
list(
|
|
500
503
|
params: ConversationListParams | null | undefined = {},
|
|
501
504
|
options?: RequestOptions,
|
|
502
|
-
):
|
|
505
|
+
): PagePromise<ConversationsCursorPage, Conversation> {
|
|
503
506
|
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
504
|
-
return this._client.
|
|
507
|
+
return this._client.getAPIList('/v2/conversations', CursorPage<Conversation>, {
|
|
505
508
|
query,
|
|
506
509
|
...options,
|
|
507
510
|
headers: buildHeaders([
|
|
@@ -542,7 +545,7 @@ export class Conversations extends APIResource {
|
|
|
542
545
|
* @example
|
|
543
546
|
* ```ts
|
|
544
547
|
* const conversation =
|
|
545
|
-
* await client.
|
|
548
|
+
* await client.support.conversations.delete('12345');
|
|
546
549
|
* ```
|
|
547
550
|
*/
|
|
548
551
|
delete(
|
|
@@ -631,7 +634,7 @@ export class Conversations extends APIResource {
|
|
|
631
634
|
* @example
|
|
632
635
|
* ```ts
|
|
633
636
|
* const conversation =
|
|
634
|
-
* await client.
|
|
637
|
+
* await client.support.conversations.redact({
|
|
635
638
|
* conversationId: '12345',
|
|
636
639
|
* conversationPartId: '67890',
|
|
637
640
|
* type: 'conversation_part',
|
|
@@ -752,7 +755,7 @@ export class Conversations extends APIResource {
|
|
|
752
755
|
* @example
|
|
753
756
|
* ```ts
|
|
754
757
|
* const conversationPart =
|
|
755
|
-
* await client.
|
|
758
|
+
* await client.support.conversations.reply('12345', {
|
|
756
759
|
* bodyMarkdown: 'Thank you for your help!',
|
|
757
760
|
* messageType: 'reply',
|
|
758
761
|
* type: 'contact',
|
|
@@ -772,6 +775,8 @@ export class Conversations extends APIResource {
|
|
|
772
775
|
}
|
|
773
776
|
}
|
|
774
777
|
|
|
778
|
+
export type ConversationsCursorPage = CursorPage<Conversation>;
|
|
779
|
+
|
|
775
780
|
export interface Conversation {
|
|
776
781
|
/**
|
|
777
782
|
* Unique conversation identifier
|
|
@@ -2310,23 +2315,6 @@ export interface EmailRecipients {
|
|
|
2310
2315
|
ids?: Array<string>;
|
|
2311
2316
|
}
|
|
2312
2317
|
|
|
2313
|
-
export interface ConversationListResponse {
|
|
2314
|
-
/**
|
|
2315
|
-
* Array of conversations
|
|
2316
|
-
*/
|
|
2317
|
-
data: Array<Conversation>;
|
|
2318
|
-
|
|
2319
|
-
/**
|
|
2320
|
-
* Cursor for fetching the next page
|
|
2321
|
-
*/
|
|
2322
|
-
nextCursor: string | null;
|
|
2323
|
-
|
|
2324
|
-
/**
|
|
2325
|
-
* Object type identifier
|
|
2326
|
-
*/
|
|
2327
|
-
object: 'list';
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
2318
|
export interface ConversationDeleteResponse {
|
|
2331
2319
|
/**
|
|
2332
2320
|
* Unique identifier of the deleted conversation
|
|
@@ -2534,18 +2522,7 @@ export namespace ConversationUpdateParams {
|
|
|
2534
2522
|
}
|
|
2535
2523
|
}
|
|
2536
2524
|
|
|
2537
|
-
export interface ConversationListParams {
|
|
2538
|
-
/**
|
|
2539
|
-
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
2540
|
-
* previous response to fetch the next page of results.
|
|
2541
|
-
*/
|
|
2542
|
-
cursor?: string;
|
|
2543
|
-
|
|
2544
|
-
/**
|
|
2545
|
-
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
2546
|
-
*/
|
|
2547
|
-
limit?: number;
|
|
2548
|
-
|
|
2525
|
+
export interface ConversationListParams extends CursorPageParams {
|
|
2549
2526
|
/**
|
|
2550
2527
|
* Query param: Filter conversations by one or more tag IDs using a comma-separated
|
|
2551
2528
|
* list. Conversations must contain all provided tags.
|
|
@@ -2695,8 +2672,8 @@ export declare namespace Conversations {
|
|
|
2695
2672
|
type CsatRatedAgent as CsatRatedAgent,
|
|
2696
2673
|
type CsatWorkflowLink as CsatWorkflowLink,
|
|
2697
2674
|
type EmailRecipients as EmailRecipients,
|
|
2698
|
-
type ConversationListResponse as ConversationListResponse,
|
|
2699
2675
|
type ConversationDeleteResponse as ConversationDeleteResponse,
|
|
2676
|
+
type ConversationsCursorPage as ConversationsCursorPage,
|
|
2700
2677
|
type ConversationCreateParams as ConversationCreateParams,
|
|
2701
2678
|
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
2702
2679
|
type ConversationUpdateParams as ConversationUpdateParams,
|
|
@@ -11,7 +11,6 @@ export {
|
|
|
11
11
|
type CsatRatedAgent,
|
|
12
12
|
type CsatWorkflowLink,
|
|
13
13
|
type EmailRecipients,
|
|
14
|
-
type ConversationListResponse,
|
|
15
14
|
type ConversationDeleteResponse,
|
|
16
15
|
type ConversationCreateParams,
|
|
17
16
|
type ConversationRetrieveParams,
|
|
@@ -20,6 +19,7 @@ export {
|
|
|
20
19
|
type ConversationDeleteParams,
|
|
21
20
|
type ConversationRedactParams,
|
|
22
21
|
type ConversationReplyParams,
|
|
22
|
+
type ConversationsCursorPage,
|
|
23
23
|
} from './conversations';
|
|
24
24
|
export { Participants, type ParticipantAddParams, type ParticipantRemoveParams } from './participants';
|
|
25
25
|
export {
|
|
@@ -96,7 +96,7 @@ export class Participants extends APIResource {
|
|
|
96
96
|
* @example
|
|
97
97
|
* ```ts
|
|
98
98
|
* const conversation =
|
|
99
|
-
* await client.
|
|
99
|
+
* await client.support.conversations.participants.add(
|
|
100
100
|
* '12345',
|
|
101
101
|
* { participant: {} },
|
|
102
102
|
* );
|
|
@@ -172,7 +172,7 @@ export class Participants extends APIResource {
|
|
|
172
172
|
* @example
|
|
173
173
|
* ```ts
|
|
174
174
|
* const conversation =
|
|
175
|
-
* await client.
|
|
175
|
+
* await client.support.conversations.participants.remove(
|
|
176
176
|
* '12345',
|
|
177
177
|
* { id: '676f0f6765bdaa7d7d760f88' },
|
|
178
178
|
* );
|
|
@@ -54,7 +54,7 @@ export class Tags extends APIResource {
|
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
56
|
* const attachedConversationTag =
|
|
57
|
-
* await client.
|
|
57
|
+
* await client.support.conversations.tags.attach('12345', {
|
|
58
58
|
* actingAdminId: '507f1f77bcf86cd799439011',
|
|
59
59
|
* tagId: '67ec1234abcd5678ef901234',
|
|
60
60
|
* });
|
|
@@ -115,7 +115,7 @@ export class Tags extends APIResource {
|
|
|
115
115
|
* @example
|
|
116
116
|
* ```ts
|
|
117
117
|
* const attachedConversationTag =
|
|
118
|
-
* await client.
|
|
118
|
+
* await client.support.conversations.tags.detach(
|
|
119
119
|
* '67ec1234abcd5678ef901234',
|
|
120
120
|
* {
|
|
121
121
|
* id: '12345',
|
|
@@ -21,7 +21,6 @@ export {
|
|
|
21
21
|
type CsatRatedAgent,
|
|
22
22
|
type CsatWorkflowLink,
|
|
23
23
|
type EmailRecipients,
|
|
24
|
-
type ConversationListResponse,
|
|
25
24
|
type ConversationDeleteResponse,
|
|
26
25
|
type ConversationCreateParams,
|
|
27
26
|
type ConversationRetrieveParams,
|
|
@@ -30,23 +29,13 @@ export {
|
|
|
30
29
|
type ConversationDeleteParams,
|
|
31
30
|
type ConversationRedactParams,
|
|
32
31
|
type ConversationReplyParams,
|
|
32
|
+
type ConversationsCursorPage,
|
|
33
33
|
} from './conversations/index';
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
Surveys,
|
|
37
|
-
type Survey,
|
|
38
|
-
type SurveyNextAction,
|
|
39
|
-
type SurveyListResponse,
|
|
40
|
-
type SurveyRetrieveResponsesResponse,
|
|
41
|
-
type SurveyRetrieveParams,
|
|
42
|
-
type SurveyListParams,
|
|
43
|
-
type SurveyRetrieveResponsesParams,
|
|
44
|
-
} from './surveys';
|
|
34
|
+
export { Support } from './support';
|
|
45
35
|
export {
|
|
46
36
|
Tickets,
|
|
47
37
|
type AuthorInput,
|
|
48
38
|
type Ticket,
|
|
49
|
-
type TicketListResponse,
|
|
50
39
|
type TicketDeleteResponse,
|
|
51
40
|
type TicketCreateParams,
|
|
52
41
|
type TicketRetrieveParams,
|
|
@@ -54,4 +43,5 @@ export {
|
|
|
54
43
|
type TicketListParams,
|
|
55
44
|
type TicketDeleteParams,
|
|
56
45
|
type TicketReplyParams,
|
|
46
|
+
type TicketsCursorPage,
|
|
57
47
|
} from './tickets/index';
|
|
@@ -12,17 +12,6 @@ import {
|
|
|
12
12
|
ConversationTagRetrieveParams,
|
|
13
13
|
ConversationTags,
|
|
14
14
|
} from './conversation-tags';
|
|
15
|
-
import * as SurveysAPI from './surveys';
|
|
16
|
-
import {
|
|
17
|
-
Survey,
|
|
18
|
-
SurveyListParams,
|
|
19
|
-
SurveyListResponse,
|
|
20
|
-
SurveyNextAction,
|
|
21
|
-
SurveyRetrieveParams,
|
|
22
|
-
SurveyRetrieveResponsesParams,
|
|
23
|
-
SurveyRetrieveResponsesResponse,
|
|
24
|
-
Surveys,
|
|
25
|
-
} from './surveys';
|
|
26
15
|
import * as ConversationsAPI from './conversations/conversations';
|
|
27
16
|
import {
|
|
28
17
|
Conversation,
|
|
@@ -30,7 +19,6 @@ import {
|
|
|
30
19
|
ConversationDeleteParams,
|
|
31
20
|
ConversationDeleteResponse,
|
|
32
21
|
ConversationListParams,
|
|
33
|
-
ConversationListResponse,
|
|
34
22
|
ConversationPart,
|
|
35
23
|
ConversationPartAuthor,
|
|
36
24
|
ConversationParticipant,
|
|
@@ -40,6 +28,7 @@ import {
|
|
|
40
28
|
ConversationTagApplication,
|
|
41
29
|
ConversationUpdateParams,
|
|
42
30
|
Conversations,
|
|
31
|
+
ConversationsCursorPage,
|
|
43
32
|
CsatEmailDelivery,
|
|
44
33
|
CsatRatedAgent,
|
|
45
34
|
CsatWorkflowLink,
|
|
@@ -53,15 +42,14 @@ import {
|
|
|
53
42
|
TicketDeleteParams,
|
|
54
43
|
TicketDeleteResponse,
|
|
55
44
|
TicketListParams,
|
|
56
|
-
TicketListResponse,
|
|
57
45
|
TicketReplyParams,
|
|
58
46
|
TicketRetrieveParams,
|
|
59
47
|
TicketUpdateParams,
|
|
60
48
|
Tickets,
|
|
49
|
+
TicketsCursorPage,
|
|
61
50
|
} from './tickets/tickets';
|
|
62
51
|
|
|
63
|
-
export class
|
|
64
|
-
surveys: SurveysAPI.Surveys = new SurveysAPI.Surveys(this._client);
|
|
52
|
+
export class Support extends APIResource {
|
|
65
53
|
conversations: ConversationsAPI.Conversations = new ConversationsAPI.Conversations(this._client);
|
|
66
54
|
conversationTags: ConversationTagsAPI.ConversationTags = new ConversationTagsAPI.ConversationTags(
|
|
67
55
|
this._client,
|
|
@@ -69,23 +57,11 @@ export class Products extends APIResource {
|
|
|
69
57
|
tickets: TicketsAPI.Tickets = new TicketsAPI.Tickets(this._client);
|
|
70
58
|
}
|
|
71
59
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Products.Tickets = Tickets;
|
|
76
|
-
|
|
77
|
-
export declare namespace Products {
|
|
78
|
-
export {
|
|
79
|
-
Surveys as Surveys,
|
|
80
|
-
type Survey as Survey,
|
|
81
|
-
type SurveyNextAction as SurveyNextAction,
|
|
82
|
-
type SurveyListResponse as SurveyListResponse,
|
|
83
|
-
type SurveyRetrieveResponsesResponse as SurveyRetrieveResponsesResponse,
|
|
84
|
-
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
85
|
-
type SurveyListParams as SurveyListParams,
|
|
86
|
-
type SurveyRetrieveResponsesParams as SurveyRetrieveResponsesParams,
|
|
87
|
-
};
|
|
60
|
+
Support.Conversations = Conversations;
|
|
61
|
+
Support.ConversationTags = ConversationTags;
|
|
62
|
+
Support.Tickets = Tickets;
|
|
88
63
|
|
|
64
|
+
export declare namespace Support {
|
|
89
65
|
export {
|
|
90
66
|
Conversations as Conversations,
|
|
91
67
|
type Conversation as Conversation,
|
|
@@ -97,8 +73,8 @@ export declare namespace Products {
|
|
|
97
73
|
type CsatRatedAgent as CsatRatedAgent,
|
|
98
74
|
type CsatWorkflowLink as CsatWorkflowLink,
|
|
99
75
|
type EmailRecipients as EmailRecipients,
|
|
100
|
-
type ConversationListResponse as ConversationListResponse,
|
|
101
76
|
type ConversationDeleteResponse as ConversationDeleteResponse,
|
|
77
|
+
type ConversationsCursorPage as ConversationsCursorPage,
|
|
102
78
|
type ConversationCreateParams as ConversationCreateParams,
|
|
103
79
|
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
104
80
|
type ConversationUpdateParams as ConversationUpdateParams,
|
|
@@ -123,8 +99,8 @@ export declare namespace Products {
|
|
|
123
99
|
Tickets as Tickets,
|
|
124
100
|
type AuthorInput as AuthorInput,
|
|
125
101
|
type Ticket as Ticket,
|
|
126
|
-
type TicketListResponse as TicketListResponse,
|
|
127
102
|
type TicketDeleteResponse as TicketDeleteResponse,
|
|
103
|
+
type TicketsCursorPage as TicketsCursorPage,
|
|
128
104
|
type TicketCreateParams as TicketCreateParams,
|
|
129
105
|
type TicketRetrieveParams as TicketRetrieveParams,
|
|
130
106
|
type TicketUpdateParams as TicketUpdateParams,
|