featurebase-node 0.12.0 → 0.14.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 +37 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +9 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +16 -10
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/changelogs/changelogs.d.mts +106 -106
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +106 -106
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/changelogs.d.mts.map +1 -1
- package/resources/changelogs.d.ts.map +1 -1
- package/resources/changelogs.mjs.map +1 -1
- package/resources/conversation-attributes.d.mts +117 -0
- package/resources/conversation-attributes.d.mts.map +1 -0
- package/resources/conversation-attributes.d.ts +117 -0
- package/resources/conversation-attributes.d.ts.map +1 -0
- package/resources/conversation-attributes.js +61 -0
- package/resources/conversation-attributes.js.map +1 -0
- package/resources/conversation-attributes.mjs +57 -0
- package/resources/conversation-attributes.mjs.map +1 -0
- package/resources/feedback/boards.d.mts +17 -17
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +17 -17
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +400 -123
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +400 -123
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +253 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +253 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +34 -34
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +34 -34
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +7 -7
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +7 -7
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +18 -18
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +18 -18
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- 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 +238 -284
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +238 -284
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +122 -96
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +122 -96
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/feedback/posts.d.mts.map +1 -1
- package/resources/feedback/posts.d.ts.map +1 -1
- package/resources/feedback/posts.mjs.map +1 -1
- package/resources/feedback.d.mts.map +1 -1
- package/resources/feedback.d.ts.map +1 -1
- package/resources/feedback.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +98 -152
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +98 -152
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +64 -64
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +64 -64
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +5 -5
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +5 -5
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.js.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +43 -43
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +43 -43
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- 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/index.js.map +1 -1
- package/resources/help-center/index.mjs.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +117 -117
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +117 -117
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/help-center.d.mts.map +1 -1
- package/resources/help-center.d.ts.map +1 -1
- package/resources/help-center.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 +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +23 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +23 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +25 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +25 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +50 -50
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +50 -50
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +45 -45
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +45 -45
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +40 -40
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +40 -40
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +624 -722
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +624 -722
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +309 -302
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +309 -302
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/index.js.map +1 -1
- package/resources/support/conversations/index.mjs.map +1 -1
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations.d.mts.map +1 -1
- package/resources/support/conversations.d.ts.map +1 -1
- package/resources/support/conversations.mjs.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +18 -18
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +18 -18
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +20 -20
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +20 -20
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/index.mjs.map +1 -1
- package/resources/support/tickets/statuses.d.mts +17 -17
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +17 -17
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +69 -69
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +69 -69
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/surveys.d.mts +41 -41
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +41 -41
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +149 -177
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +149 -177
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +153 -142
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +153 -142
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts.map +1 -1
- 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/companies/index.mjs.map +1 -1
- package/resources/users/companies.d.mts.map +1 -1
- package/resources/users/companies.d.ts.map +1 -1
- package/resources/users/companies.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -1
- package/resources/users/contacts/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +229 -256
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +229 -256
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +213 -201
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +213 -201
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/contacts.d.mts.map +1 -1
- package/resources/users/contacts.d.ts.map +1 -1
- package/resources/users/contacts.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.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +75 -75
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +75 -75
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +77 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +77 -77
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +25 -3
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +170 -170
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/conversation-attributes.ts +181 -0
- package/src/resources/feedback/boards.ts +28 -28
- package/src/resources/feedback/comments.ts +464 -141
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +23 -5
- package/src/resources/feedback/index.ts +14 -5
- package/src/resources/feedback/post-statuses.ts +31 -31
- package/src/resources/feedback/posts/index.ts +7 -1
- package/src/resources/feedback/posts/posts.ts +294 -340
- package/src/resources/help-center/articles.ts +123 -186
- package/src/resources/help-center/collections.ts +84 -84
- package/src/resources/help-center/help-center.ts +7 -5
- package/src/resources/help-center/help-centers.ts +55 -55
- package/src/resources/help-center/index.ts +6 -5
- package/src/resources/help-center/redirect-rules.ts +174 -174
- package/src/resources/index.ts +11 -3
- package/src/resources/organization/admins.ts +33 -33
- package/src/resources/organization/brands.ts +66 -66
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +52 -52
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +748 -867
- package/src/resources/support/conversations/index.ts +11 -6
- package/src/resources/support/index.ts +14 -9
- package/src/resources/support/support.ts +21 -11
- package/src/resources/support/tickets/categories.ts +33 -33
- package/src/resources/support/tickets/custom-fields.ts +27 -27
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +29 -29
- package/src/resources/support/tickets/tickets.ts +95 -95
- package/src/resources/surveys.ts +58 -58
- package/src/resources/users/companies/companies.ts +193 -223
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +275 -302
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +95 -95
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,28 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Conversations,
|
|
5
|
+
type AttachedConversationTag,
|
|
5
6
|
type Conversation,
|
|
7
|
+
type ConversationAttributeValue,
|
|
6
8
|
type ConversationPart,
|
|
7
9
|
type ConversationPartAuthor,
|
|
8
10
|
type ConversationParticipant,
|
|
9
11
|
type ConversationTagApplication,
|
|
12
|
+
type ConversationTagMutationActor,
|
|
10
13
|
type CsatEmailDelivery,
|
|
11
14
|
type CsatRatedAgent,
|
|
15
|
+
type CsatSlackDelivery,
|
|
12
16
|
type CsatWorkflowLink,
|
|
13
17
|
type EmailRecipients,
|
|
18
|
+
type MessageSource,
|
|
19
|
+
type SearchMatchingPartAuthor,
|
|
20
|
+
type SlackMessageDetails,
|
|
14
21
|
type ConversationDeleteResponse,
|
|
15
|
-
type ConversationAttachTagResponse,
|
|
16
|
-
type ConversationDetachTagResponse,
|
|
17
22
|
type ConversationSearchResponse,
|
|
23
|
+
type ConversationListParams,
|
|
18
24
|
type ConversationCreateParams,
|
|
19
25
|
type ConversationRetrieveParams,
|
|
20
|
-
type ConversationUpdateParams,
|
|
21
|
-
type ConversationListParams,
|
|
22
26
|
type ConversationDeleteParams,
|
|
27
|
+
type ConversationUpdateParams,
|
|
28
|
+
type ConversationReplyParams,
|
|
29
|
+
type ConversationRedactParams,
|
|
23
30
|
type ConversationAttachTagParams,
|
|
24
31
|
type ConversationDetachTagParams,
|
|
25
|
-
type ConversationRedactParams,
|
|
26
|
-
type ConversationReplyParams,
|
|
27
32
|
type ConversationSearchParams,
|
|
28
33
|
type ConversationsCursorPage,
|
|
29
34
|
} from './conversations';
|
|
@@ -5,35 +5,40 @@ export {
|
|
|
5
5
|
type ConversationTag,
|
|
6
6
|
type ConversationTagListResponse,
|
|
7
7
|
type ConversationTagDeleteResponse,
|
|
8
|
-
type ConversationTagRetrieveParams,
|
|
9
8
|
type ConversationTagListParams,
|
|
10
|
-
type ConversationTagDeleteParams,
|
|
11
9
|
type ConversationTagCreateOrRenameParams,
|
|
10
|
+
type ConversationTagRetrieveParams,
|
|
11
|
+
type ConversationTagDeleteParams,
|
|
12
12
|
} from './conversation-tags';
|
|
13
13
|
export {
|
|
14
14
|
Conversations,
|
|
15
|
+
type AttachedConversationTag,
|
|
15
16
|
type Conversation,
|
|
17
|
+
type ConversationAttributeValue,
|
|
16
18
|
type ConversationPart,
|
|
17
19
|
type ConversationPartAuthor,
|
|
18
20
|
type ConversationParticipant,
|
|
19
21
|
type ConversationTagApplication,
|
|
22
|
+
type ConversationTagMutationActor,
|
|
20
23
|
type CsatEmailDelivery,
|
|
21
24
|
type CsatRatedAgent,
|
|
25
|
+
type CsatSlackDelivery,
|
|
22
26
|
type CsatWorkflowLink,
|
|
23
27
|
type EmailRecipients,
|
|
28
|
+
type MessageSource,
|
|
29
|
+
type SearchMatchingPartAuthor,
|
|
30
|
+
type SlackMessageDetails,
|
|
24
31
|
type ConversationDeleteResponse,
|
|
25
|
-
type ConversationAttachTagResponse,
|
|
26
|
-
type ConversationDetachTagResponse,
|
|
27
32
|
type ConversationSearchResponse,
|
|
33
|
+
type ConversationListParams,
|
|
28
34
|
type ConversationCreateParams,
|
|
29
35
|
type ConversationRetrieveParams,
|
|
30
|
-
type ConversationUpdateParams,
|
|
31
|
-
type ConversationListParams,
|
|
32
36
|
type ConversationDeleteParams,
|
|
37
|
+
type ConversationUpdateParams,
|
|
38
|
+
type ConversationReplyParams,
|
|
39
|
+
type ConversationRedactParams,
|
|
33
40
|
type ConversationAttachTagParams,
|
|
34
41
|
type ConversationDetachTagParams,
|
|
35
|
-
type ConversationRedactParams,
|
|
36
|
-
type ConversationReplyParams,
|
|
37
42
|
type ConversationSearchParams,
|
|
38
43
|
type ConversationsCursorPage,
|
|
39
44
|
} from './conversations/index';
|
|
@@ -43,10 +48,10 @@ export {
|
|
|
43
48
|
type AuthorInput,
|
|
44
49
|
type Ticket,
|
|
45
50
|
type TicketDeleteResponse,
|
|
51
|
+
type TicketListParams,
|
|
46
52
|
type TicketCreateParams,
|
|
47
53
|
type TicketRetrieveParams,
|
|
48
54
|
type TicketUpdateParams,
|
|
49
|
-
type TicketListParams,
|
|
50
55
|
type TicketDeleteParams,
|
|
51
56
|
type TicketReplyParams,
|
|
52
57
|
type TicketsCursorPage,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
} from './conversation-tags';
|
|
15
15
|
import * as ConversationsAPI from './conversations/conversations';
|
|
16
16
|
import {
|
|
17
|
+
AttachedConversationTag,
|
|
17
18
|
Conversation,
|
|
18
19
|
ConversationAttachTagParams,
|
|
19
|
-
|
|
20
|
+
ConversationAttributeValue,
|
|
20
21
|
ConversationCreateParams,
|
|
21
22
|
ConversationDeleteParams,
|
|
22
23
|
ConversationDeleteResponse,
|
|
23
24
|
ConversationDetachTagParams,
|
|
24
|
-
ConversationDetachTagResponse,
|
|
25
25
|
ConversationListParams,
|
|
26
26
|
ConversationPart,
|
|
27
27
|
ConversationPartAuthor,
|
|
@@ -32,13 +32,18 @@ import {
|
|
|
32
32
|
ConversationSearchParams,
|
|
33
33
|
ConversationSearchResponse,
|
|
34
34
|
ConversationTagApplication,
|
|
35
|
+
ConversationTagMutationActor,
|
|
35
36
|
ConversationUpdateParams,
|
|
36
37
|
Conversations,
|
|
37
38
|
ConversationsCursorPage,
|
|
38
39
|
CsatEmailDelivery,
|
|
39
40
|
CsatRatedAgent,
|
|
41
|
+
CsatSlackDelivery,
|
|
40
42
|
CsatWorkflowLink,
|
|
41
43
|
EmailRecipients,
|
|
44
|
+
MessageSource,
|
|
45
|
+
SearchMatchingPartAuthor,
|
|
46
|
+
SlackMessageDetails,
|
|
42
47
|
} from './conversations/conversations';
|
|
43
48
|
import * as TicketsAPI from './tickets/tickets';
|
|
44
49
|
import {
|
|
@@ -70,29 +75,34 @@ Support.Tickets = Tickets;
|
|
|
70
75
|
export declare namespace Support {
|
|
71
76
|
export {
|
|
72
77
|
Conversations as Conversations,
|
|
78
|
+
type AttachedConversationTag as AttachedConversationTag,
|
|
73
79
|
type Conversation as Conversation,
|
|
80
|
+
type ConversationAttributeValue as ConversationAttributeValue,
|
|
74
81
|
type ConversationPart as ConversationPart,
|
|
75
82
|
type ConversationPartAuthor as ConversationPartAuthor,
|
|
76
83
|
type ConversationParticipant as ConversationParticipant,
|
|
77
84
|
type ConversationTagApplication as ConversationTagApplication,
|
|
85
|
+
type ConversationTagMutationActor as ConversationTagMutationActor,
|
|
78
86
|
type CsatEmailDelivery as CsatEmailDelivery,
|
|
79
87
|
type CsatRatedAgent as CsatRatedAgent,
|
|
88
|
+
type CsatSlackDelivery as CsatSlackDelivery,
|
|
80
89
|
type CsatWorkflowLink as CsatWorkflowLink,
|
|
81
90
|
type EmailRecipients as EmailRecipients,
|
|
91
|
+
type MessageSource as MessageSource,
|
|
92
|
+
type SearchMatchingPartAuthor as SearchMatchingPartAuthor,
|
|
93
|
+
type SlackMessageDetails as SlackMessageDetails,
|
|
82
94
|
type ConversationDeleteResponse as ConversationDeleteResponse,
|
|
83
|
-
type ConversationAttachTagResponse as ConversationAttachTagResponse,
|
|
84
|
-
type ConversationDetachTagResponse as ConversationDetachTagResponse,
|
|
85
95
|
type ConversationSearchResponse as ConversationSearchResponse,
|
|
86
96
|
type ConversationsCursorPage as ConversationsCursorPage,
|
|
97
|
+
type ConversationListParams as ConversationListParams,
|
|
87
98
|
type ConversationCreateParams as ConversationCreateParams,
|
|
88
99
|
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
89
|
-
type ConversationUpdateParams as ConversationUpdateParams,
|
|
90
|
-
type ConversationListParams as ConversationListParams,
|
|
91
100
|
type ConversationDeleteParams as ConversationDeleteParams,
|
|
101
|
+
type ConversationUpdateParams as ConversationUpdateParams,
|
|
102
|
+
type ConversationReplyParams as ConversationReplyParams,
|
|
103
|
+
type ConversationRedactParams as ConversationRedactParams,
|
|
92
104
|
type ConversationAttachTagParams as ConversationAttachTagParams,
|
|
93
105
|
type ConversationDetachTagParams as ConversationDetachTagParams,
|
|
94
|
-
type ConversationRedactParams as ConversationRedactParams,
|
|
95
|
-
type ConversationReplyParams as ConversationReplyParams,
|
|
96
106
|
type ConversationSearchParams as ConversationSearchParams,
|
|
97
107
|
};
|
|
98
108
|
|
|
@@ -101,10 +111,10 @@ export declare namespace Support {
|
|
|
101
111
|
type ConversationTag as ConversationTag,
|
|
102
112
|
type ConversationTagListResponse as ConversationTagListResponse,
|
|
103
113
|
type ConversationTagDeleteResponse as ConversationTagDeleteResponse,
|
|
104
|
-
type ConversationTagRetrieveParams as ConversationTagRetrieveParams,
|
|
105
114
|
type ConversationTagListParams as ConversationTagListParams,
|
|
106
|
-
type ConversationTagDeleteParams as ConversationTagDeleteParams,
|
|
107
115
|
type ConversationTagCreateOrRenameParams as ConversationTagCreateOrRenameParams,
|
|
116
|
+
type ConversationTagRetrieveParams as ConversationTagRetrieveParams,
|
|
117
|
+
type ConversationTagDeleteParams as ConversationTagDeleteParams,
|
|
108
118
|
};
|
|
109
119
|
|
|
110
120
|
export {
|
|
@@ -113,10 +123,10 @@ export declare namespace Support {
|
|
|
113
123
|
type Ticket as Ticket,
|
|
114
124
|
type TicketDeleteResponse as TicketDeleteResponse,
|
|
115
125
|
type TicketsCursorPage as TicketsCursorPage,
|
|
126
|
+
type TicketListParams as TicketListParams,
|
|
116
127
|
type TicketCreateParams as TicketCreateParams,
|
|
117
128
|
type TicketRetrieveParams as TicketRetrieveParams,
|
|
118
129
|
type TicketUpdateParams as TicketUpdateParams,
|
|
119
|
-
type TicketListParams as TicketListParams,
|
|
120
130
|
type TicketDeleteParams as TicketDeleteParams,
|
|
121
131
|
type TicketReplyParams as TicketReplyParams,
|
|
122
132
|
};
|
|
@@ -12,26 +12,32 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Categories extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns all ticket categories for the authenticated organization.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* Ticket categories organize tickets into distinct containers. Each category can
|
|
18
|
+
* have different:
|
|
19
|
+
*
|
|
20
|
+
* - Access controls (public, private, segment-restricted)
|
|
21
|
+
* - Feature toggles (comments, posting enabled)
|
|
22
|
+
* - Custom fields
|
|
23
|
+
*
|
|
24
|
+
* Use the `supportBoard` and `supportBoardType` fields to identify ticket
|
|
25
|
+
* categories.
|
|
26
|
+
*
|
|
27
|
+
* This endpoint returns all categories without pagination.
|
|
19
28
|
*
|
|
20
29
|
* @example
|
|
21
30
|
* ```ts
|
|
22
|
-
* const
|
|
23
|
-
* await client.support.tickets.categories.
|
|
24
|
-
* '507f1f77bcf86cd799439011',
|
|
25
|
-
* );
|
|
31
|
+
* const boards =
|
|
32
|
+
* await client.support.tickets.categories.list();
|
|
26
33
|
* ```
|
|
27
34
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
params: CategoryRetrieveParams | null | undefined = {},
|
|
35
|
+
list(
|
|
36
|
+
params: CategoryListParams | null | undefined = {},
|
|
31
37
|
options?: RequestOptions,
|
|
32
|
-
): APIPromise<
|
|
38
|
+
): APIPromise<CategoryListResponse> {
|
|
33
39
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
34
|
-
return this._client.get(
|
|
40
|
+
return this._client.get('/v2/tickets/categories', {
|
|
35
41
|
...options,
|
|
36
42
|
headers: buildHeaders([
|
|
37
43
|
{
|
|
@@ -45,32 +51,26 @@ export class Categories extends APIResource {
|
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Ticket categories organize tickets into distinct containers. Each category can
|
|
51
|
-
* have different:
|
|
52
|
-
*
|
|
53
|
-
* - Access controls (public, private, segment-restricted)
|
|
54
|
-
* - Feature toggles (comments, posting enabled)
|
|
55
|
-
* - Custom fields
|
|
56
|
-
*
|
|
57
|
-
* Use the `supportBoard` and `supportBoardType` fields to identify ticket
|
|
58
|
-
* categories.
|
|
54
|
+
* Retrieves a single ticket category by its unique identifier.
|
|
59
55
|
*
|
|
60
|
-
*
|
|
56
|
+
* Returns the full category object including access controls, feature toggles, and
|
|
57
|
+
* localization settings.
|
|
61
58
|
*
|
|
62
59
|
* @example
|
|
63
60
|
* ```ts
|
|
64
|
-
* const
|
|
65
|
-
* await client.support.tickets.categories.
|
|
61
|
+
* const board =
|
|
62
|
+
* await client.support.tickets.categories.retrieve(
|
|
63
|
+
* '507f1f77bcf86cd799439011',
|
|
64
|
+
* );
|
|
66
65
|
* ```
|
|
67
66
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
retrieve(
|
|
68
|
+
id: string,
|
|
69
|
+
params: CategoryRetrieveParams | null | undefined = {},
|
|
70
70
|
options?: RequestOptions,
|
|
71
|
-
): APIPromise<
|
|
71
|
+
): APIPromise<BoardsAPI.Board> {
|
|
72
72
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
73
|
-
return this._client.get(
|
|
73
|
+
return this._client.get(path`/v2/tickets/categories/${id}`, {
|
|
74
74
|
...options,
|
|
75
75
|
headers: buildHeaders([
|
|
76
76
|
{
|
|
@@ -86,7 +86,7 @@ export class Categories extends APIResource {
|
|
|
86
86
|
|
|
87
87
|
export type CategoryListResponse = Array<BoardsAPI.Board>;
|
|
88
88
|
|
|
89
|
-
export interface
|
|
89
|
+
export interface CategoryListParams {
|
|
90
90
|
/**
|
|
91
91
|
* API version for this request. Defaults to your organization's configured API
|
|
92
92
|
* version if not specified.
|
|
@@ -94,7 +94,7 @@ export interface CategoryRetrieveParams {
|
|
|
94
94
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export interface
|
|
97
|
+
export interface CategoryRetrieveParams {
|
|
98
98
|
/**
|
|
99
99
|
* API version for this request. Defaults to your organization's configured API
|
|
100
100
|
* version if not specified.
|
|
@@ -105,7 +105,7 @@ export interface CategoryListParams {
|
|
|
105
105
|
export declare namespace Categories {
|
|
106
106
|
export {
|
|
107
107
|
type CategoryListResponse as CategoryListResponse,
|
|
108
|
-
type CategoryRetrieveParams as CategoryRetrieveParams,
|
|
109
108
|
type CategoryListParams as CategoryListParams,
|
|
109
|
+
type CategoryRetrieveParams as CategoryRetrieveParams,
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -12,11 +12,14 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class CustomFields extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns all custom fields configured in your organization that can be used on
|
|
16
|
+
* tickets.
|
|
16
17
|
*
|
|
17
|
-
*
|
|
18
|
+
* This endpoint returns all custom fields at once. No pagination is supported.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
+
* ### Custom Field Object
|
|
21
|
+
*
|
|
22
|
+
* Each custom field includes:
|
|
20
23
|
*
|
|
21
24
|
* - `id` - Unique field identifier
|
|
22
25
|
* - `label` - Field label displayed to users
|
|
@@ -30,19 +33,16 @@ export class CustomFields extends APIResource {
|
|
|
30
33
|
*
|
|
31
34
|
* @example
|
|
32
35
|
* ```ts
|
|
33
|
-
* const
|
|
34
|
-
* await client.support.tickets.customFields.
|
|
35
|
-
* '65d26304b2e65b1e1278170c',
|
|
36
|
-
* );
|
|
36
|
+
* const customFieldList =
|
|
37
|
+
* await client.support.tickets.customFields.list();
|
|
37
38
|
* ```
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
params: CustomFieldRetrieveParams | null | undefined = {},
|
|
40
|
+
list(
|
|
41
|
+
params: CustomFieldListParams | null | undefined = {},
|
|
42
42
|
options?: RequestOptions,
|
|
43
|
-
): APIPromise<CustomFieldsAPI.
|
|
43
|
+
): APIPromise<CustomFieldsAPI.CustomFieldList> {
|
|
44
44
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
45
|
-
return this._client.get(
|
|
45
|
+
return this._client.get('/v2/tickets/custom_fields', {
|
|
46
46
|
...options,
|
|
47
47
|
headers: buildHeaders([
|
|
48
48
|
{
|
|
@@ -56,14 +56,11 @@ export class CustomFields extends APIResource {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
* tickets.
|
|
61
|
-
*
|
|
62
|
-
* This endpoint returns all custom fields at once. No pagination is supported.
|
|
59
|
+
* Retrieves a single custom field by its unique identifier.
|
|
63
60
|
*
|
|
64
|
-
* ###
|
|
61
|
+
* ### Response
|
|
65
62
|
*
|
|
66
|
-
*
|
|
63
|
+
* Returns a custom field object with:
|
|
67
64
|
*
|
|
68
65
|
* - `id` - Unique field identifier
|
|
69
66
|
* - `label` - Field label displayed to users
|
|
@@ -77,16 +74,19 @@ export class CustomFields extends APIResource {
|
|
|
77
74
|
*
|
|
78
75
|
* @example
|
|
79
76
|
* ```ts
|
|
80
|
-
* const
|
|
81
|
-
* await client.support.tickets.customFields.
|
|
77
|
+
* const customField =
|
|
78
|
+
* await client.support.tickets.customFields.retrieve(
|
|
79
|
+
* '65d26304b2e65b1e1278170c',
|
|
80
|
+
* );
|
|
82
81
|
* ```
|
|
83
82
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
retrieve(
|
|
84
|
+
id: string,
|
|
85
|
+
params: CustomFieldRetrieveParams | null | undefined = {},
|
|
86
86
|
options?: RequestOptions,
|
|
87
|
-
): APIPromise<CustomFieldsAPI.
|
|
87
|
+
): APIPromise<CustomFieldsAPI.CustomField> {
|
|
88
88
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
89
|
-
return this._client.get(
|
|
89
|
+
return this._client.get(path`/v2/tickets/custom_fields/${id}`, {
|
|
90
90
|
...options,
|
|
91
91
|
headers: buildHeaders([
|
|
92
92
|
{
|
|
@@ -100,7 +100,7 @@ export class CustomFields extends APIResource {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
export interface
|
|
103
|
+
export interface CustomFieldListParams {
|
|
104
104
|
/**
|
|
105
105
|
* API version for this request. Defaults to your organization's configured API
|
|
106
106
|
* version if not specified.
|
|
@@ -108,7 +108,7 @@ export interface CustomFieldRetrieveParams {
|
|
|
108
108
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export interface
|
|
111
|
+
export interface CustomFieldRetrieveParams {
|
|
112
112
|
/**
|
|
113
113
|
* API version for this request. Defaults to your organization's configured API
|
|
114
114
|
* version if not specified.
|
|
@@ -118,7 +118,7 @@ export interface CustomFieldListParams {
|
|
|
118
118
|
|
|
119
119
|
export declare namespace CustomFields {
|
|
120
120
|
export {
|
|
121
|
-
type CustomFieldRetrieveParams as CustomFieldRetrieveParams,
|
|
122
121
|
type CustomFieldListParams as CustomFieldListParams,
|
|
122
|
+
type CustomFieldRetrieveParams as CustomFieldRetrieveParams,
|
|
123
123
|
};
|
|
124
124
|
}
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Categories,
|
|
5
5
|
type CategoryListResponse,
|
|
6
|
-
type CategoryRetrieveParams,
|
|
7
6
|
type CategoryListParams,
|
|
7
|
+
type CategoryRetrieveParams,
|
|
8
8
|
} from './categories';
|
|
9
|
-
export { CustomFields, type
|
|
9
|
+
export { CustomFields, type CustomFieldListParams, type CustomFieldRetrieveParams } from './custom-fields';
|
|
10
10
|
export {
|
|
11
11
|
Statuses,
|
|
12
12
|
type StatusListResponse,
|
|
13
|
-
type StatusRetrieveParams,
|
|
14
13
|
type StatusListParams,
|
|
14
|
+
type StatusRetrieveParams,
|
|
15
15
|
} from './statuses';
|
|
16
16
|
export {
|
|
17
17
|
Tickets,
|
|
18
18
|
type AuthorInput,
|
|
19
19
|
type Ticket,
|
|
20
20
|
type TicketDeleteResponse,
|
|
21
|
+
type TicketListParams,
|
|
21
22
|
type TicketCreateParams,
|
|
22
23
|
type TicketRetrieveParams,
|
|
23
24
|
type TicketUpdateParams,
|
|
24
|
-
type TicketListParams,
|
|
25
25
|
type TicketDeleteParams,
|
|
26
26
|
type TicketReplyParams,
|
|
27
27
|
type TicketsCursorPage,
|
|
@@ -12,25 +12,29 @@ import { path } from '../../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Statuses extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns all ticket statuses for the authenticated organization.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* Ticket statuses define workflow stages. Each status has:
|
|
18
|
+
*
|
|
19
|
+
* - A display name and color
|
|
20
|
+
* - A type indicating the workflow stage (reviewing, unstarted, active, completed,
|
|
21
|
+
* canceled)
|
|
22
|
+
* - A flag indicating if it's the default status for new tickets
|
|
23
|
+
*
|
|
24
|
+
* This endpoint returns all statuses without pagination.
|
|
18
25
|
*
|
|
19
26
|
* @example
|
|
20
27
|
* ```ts
|
|
21
|
-
* const
|
|
22
|
-
* await client.support.tickets.statuses.
|
|
23
|
-
* '507f1f77bcf86cd799439011',
|
|
24
|
-
* );
|
|
28
|
+
* const postStatuses =
|
|
29
|
+
* await client.support.tickets.statuses.list();
|
|
25
30
|
* ```
|
|
26
31
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
params: StatusRetrieveParams | null | undefined = {},
|
|
32
|
+
list(
|
|
33
|
+
params: StatusListParams | null | undefined = {},
|
|
30
34
|
options?: RequestOptions,
|
|
31
|
-
): APIPromise<
|
|
35
|
+
): APIPromise<StatusListResponse> {
|
|
32
36
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
33
|
-
return this._client.get(
|
|
37
|
+
return this._client.get('/v2/tickets/statuses', {
|
|
34
38
|
...options,
|
|
35
39
|
headers: buildHeaders([
|
|
36
40
|
{
|
|
@@ -44,29 +48,25 @@ export class Statuses extends APIResource {
|
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* Ticket statuses define workflow stages. Each status has:
|
|
50
|
-
*
|
|
51
|
-
* - A display name and color
|
|
52
|
-
* - A type indicating the workflow stage (reviewing, unstarted, active, completed,
|
|
53
|
-
* canceled)
|
|
54
|
-
* - A flag indicating if it's the default status for new tickets
|
|
51
|
+
* Retrieves a single ticket status by its unique identifier.
|
|
55
52
|
*
|
|
56
|
-
*
|
|
53
|
+
* Returns the status object including name, color, type, and default flag.
|
|
57
54
|
*
|
|
58
55
|
* @example
|
|
59
56
|
* ```ts
|
|
60
|
-
* const
|
|
61
|
-
* await client.support.tickets.statuses.
|
|
57
|
+
* const postStatus =
|
|
58
|
+
* await client.support.tickets.statuses.retrieve(
|
|
59
|
+
* '507f1f77bcf86cd799439011',
|
|
60
|
+
* );
|
|
62
61
|
* ```
|
|
63
62
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
retrieve(
|
|
64
|
+
id: string,
|
|
65
|
+
params: StatusRetrieveParams | null | undefined = {},
|
|
66
66
|
options?: RequestOptions,
|
|
67
|
-
): APIPromise<
|
|
67
|
+
): APIPromise<PostStatusesAPI.PostStatus> {
|
|
68
68
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
69
|
-
return this._client.get(
|
|
69
|
+
return this._client.get(path`/v2/tickets/statuses/${id}`, {
|
|
70
70
|
...options,
|
|
71
71
|
headers: buildHeaders([
|
|
72
72
|
{
|
|
@@ -82,7 +82,7 @@ export class Statuses extends APIResource {
|
|
|
82
82
|
|
|
83
83
|
export type StatusListResponse = Array<PostStatusesAPI.PostStatus>;
|
|
84
84
|
|
|
85
|
-
export interface
|
|
85
|
+
export interface StatusListParams {
|
|
86
86
|
/**
|
|
87
87
|
* API version for this request. Defaults to your organization's configured API
|
|
88
88
|
* version if not specified.
|
|
@@ -90,7 +90,7 @@ export interface StatusRetrieveParams {
|
|
|
90
90
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export interface
|
|
93
|
+
export interface StatusRetrieveParams {
|
|
94
94
|
/**
|
|
95
95
|
* API version for this request. Defaults to your organization's configured API
|
|
96
96
|
* version if not specified.
|
|
@@ -101,7 +101,7 @@ export interface StatusListParams {
|
|
|
101
101
|
export declare namespace Statuses {
|
|
102
102
|
export {
|
|
103
103
|
type StatusListResponse as StatusListResponse,
|
|
104
|
-
type StatusRetrieveParams as StatusRetrieveParams,
|
|
105
104
|
type StatusListParams as StatusListParams,
|
|
105
|
+
type StatusRetrieveParams as StatusRetrieveParams,
|
|
106
106
|
};
|
|
107
107
|
}
|