featurebase-node 0.13.0 → 0.14.1
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 +23 -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 +21 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -3
- package/client.d.ts.map +1 -1
- package/client.js +27 -1
- package/client.js.map +1 -1
- package/client.mjs +27 -1
- 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.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/audit-logs.d.mts +233 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +233 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +122 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +118 -0
- package/resources/audit-logs.mjs.map +1 -0
- 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 +129 -191
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +129 -191
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -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 +187 -260
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +187 -260
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +75 -75
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +75 -75
- 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 +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +33 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +33 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +27 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +27 -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/reports.d.mts +641 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +641 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +238 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +234 -0
- package/resources/reports.mjs.map +1 -0
- 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 +599 -705
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +599 -705
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +289 -288
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +289 -288
- 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 +116 -157
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +116 -157
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- 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 +196 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +196 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +186 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +186 -184
- 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 +80 -78
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -78
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +79 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +79 -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 +98 -4
- package/src/resources/audit-logs.ts +607 -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 +153 -226
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +19 -5
- package/src/resources/feedback/index.ts +12 -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 +230 -311
- 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 +37 -3
- package/src/resources/organization/admins.ts +45 -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/reports.ts +908 -0
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +723 -850
- 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 +155 -204
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +235 -282
- 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 +100 -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
|
@@ -7,6 +7,99 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
7
7
|
* Threaded discussions on posts and changelogs. Comments support voting, moderation, and privacy controls.
|
|
8
8
|
*/
|
|
9
9
|
export class Comments extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns comments for your organization.
|
|
12
|
+
*
|
|
13
|
+
* Comments are threaded discussions. Each comment can have:
|
|
14
|
+
*
|
|
15
|
+
* - Author information
|
|
16
|
+
* - Voting (upvotes/downvotes)
|
|
17
|
+
* - Privacy settings (public/private)
|
|
18
|
+
* - Moderation status
|
|
19
|
+
* - Parent comment reference for threading
|
|
20
|
+
*
|
|
21
|
+
* ### Filtering
|
|
22
|
+
*
|
|
23
|
+
* Optionally filter by:
|
|
24
|
+
*
|
|
25
|
+
* - `postId` - Get comments for a specific post
|
|
26
|
+
* - `changelogId` - Get comments for a specific changelog
|
|
27
|
+
*
|
|
28
|
+
* If no filter is provided, returns all comments across the organization.
|
|
29
|
+
*
|
|
30
|
+
* ### Pagination
|
|
31
|
+
*
|
|
32
|
+
* This endpoint uses **cursor-based pagination**:
|
|
33
|
+
*
|
|
34
|
+
* - `limit` - Number of comments to return (1-100, default 10)
|
|
35
|
+
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
36
|
+
*
|
|
37
|
+
* **Example:** To paginate through results:
|
|
38
|
+
*
|
|
39
|
+
* 1. First request: `GET /v2/comments?postId={id}&limit=10`
|
|
40
|
+
* 2. If `nextCursor` is not null, use it for the next page
|
|
41
|
+
* 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
|
|
42
|
+
*
|
|
43
|
+
* ### Response Format
|
|
44
|
+
*
|
|
45
|
+
* Returns a list object with:
|
|
46
|
+
*
|
|
47
|
+
* - `object` - Always "list"
|
|
48
|
+
* - `data` - Array of comment objects (flat structure with `parentCommentId` for
|
|
49
|
+
* threading)
|
|
50
|
+
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
51
|
+
*
|
|
52
|
+
* ### Comment Structure
|
|
53
|
+
*
|
|
54
|
+
* Each comment includes:
|
|
55
|
+
*
|
|
56
|
+
* - `id` - Unique comment identifier
|
|
57
|
+
* - `postId` / `changelogId` - Reference to the parent content
|
|
58
|
+
* - `parentCommentId` - Reference to parent comment (null for root comments)
|
|
59
|
+
* - `content` - Comment content in HTML format
|
|
60
|
+
* - `author` - Author information (id, name, profilePicture, type)
|
|
61
|
+
* - `upvotes` / `downvotes` / `score` - Voting metrics
|
|
62
|
+
* - `isPrivate` - Whether comment is only visible to admins
|
|
63
|
+
* - `inReview` - Whether comment is pending moderation
|
|
64
|
+
* - `created` / `updated` - Unix timestamps
|
|
65
|
+
*
|
|
66
|
+
* ### Additional Filters
|
|
67
|
+
*
|
|
68
|
+
* - `privacy` - Filter by privacy: "public", "private", or "all"
|
|
69
|
+
* - `inReview` - Filter by moderation status (true/false)
|
|
70
|
+
*
|
|
71
|
+
* ### Sorting
|
|
72
|
+
*
|
|
73
|
+
* Use `sortBy` to sort results:
|
|
74
|
+
*
|
|
75
|
+
* - `best` - Sort by confidence score (default, like Reddit)
|
|
76
|
+
* - `top` - Sort by net score (upvotes - downvotes)
|
|
77
|
+
* - `new` - Sort by creation date, newest first
|
|
78
|
+
* - `old` - Sort by creation date, oldest first
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* // Automatically fetches more pages as needed.
|
|
83
|
+
* for await (const comment of client.feedback.comments.list()) {
|
|
84
|
+
* // ...
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
list(params = {}, options) {
|
|
89
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
90
|
+
return this._client.getAPIList('/v2/comments', (CursorPage), {
|
|
91
|
+
query,
|
|
92
|
+
...options,
|
|
93
|
+
headers: buildHeaders([
|
|
94
|
+
{
|
|
95
|
+
...(featurebaseVersion?.toString() != null ?
|
|
96
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
97
|
+
: undefined),
|
|
98
|
+
},
|
|
99
|
+
options?.headers,
|
|
100
|
+
]),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
10
103
|
/**
|
|
11
104
|
* Creates a new comment or reply to an existing comment.
|
|
12
105
|
*
|
|
@@ -187,99 +280,6 @@ export class Comments extends APIResource {
|
|
|
187
280
|
]),
|
|
188
281
|
});
|
|
189
282
|
}
|
|
190
|
-
/**
|
|
191
|
-
* Returns comments for your organization.
|
|
192
|
-
*
|
|
193
|
-
* Comments are threaded discussions. Each comment can have:
|
|
194
|
-
*
|
|
195
|
-
* - Author information
|
|
196
|
-
* - Voting (upvotes/downvotes)
|
|
197
|
-
* - Privacy settings (public/private)
|
|
198
|
-
* - Moderation status
|
|
199
|
-
* - Parent comment reference for threading
|
|
200
|
-
*
|
|
201
|
-
* ### Filtering
|
|
202
|
-
*
|
|
203
|
-
* Optionally filter by:
|
|
204
|
-
*
|
|
205
|
-
* - `postId` - Get comments for a specific post
|
|
206
|
-
* - `changelogId` - Get comments for a specific changelog
|
|
207
|
-
*
|
|
208
|
-
* If no filter is provided, returns all comments across the organization.
|
|
209
|
-
*
|
|
210
|
-
* ### Pagination
|
|
211
|
-
*
|
|
212
|
-
* This endpoint uses **cursor-based pagination**:
|
|
213
|
-
*
|
|
214
|
-
* - `limit` - Number of comments to return (1-100, default 10)
|
|
215
|
-
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
216
|
-
*
|
|
217
|
-
* **Example:** To paginate through results:
|
|
218
|
-
*
|
|
219
|
-
* 1. First request: `GET /v2/comments?postId={id}&limit=10`
|
|
220
|
-
* 2. If `nextCursor` is not null, use it for the next page
|
|
221
|
-
* 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
|
|
222
|
-
*
|
|
223
|
-
* ### Response Format
|
|
224
|
-
*
|
|
225
|
-
* Returns a list object with:
|
|
226
|
-
*
|
|
227
|
-
* - `object` - Always "list"
|
|
228
|
-
* - `data` - Array of comment objects (flat structure with `parentCommentId` for
|
|
229
|
-
* threading)
|
|
230
|
-
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
231
|
-
*
|
|
232
|
-
* ### Comment Structure
|
|
233
|
-
*
|
|
234
|
-
* Each comment includes:
|
|
235
|
-
*
|
|
236
|
-
* - `id` - Unique comment identifier
|
|
237
|
-
* - `postId` / `changelogId` - Reference to the parent content
|
|
238
|
-
* - `parentCommentId` - Reference to parent comment (null for root comments)
|
|
239
|
-
* - `content` - Comment content in HTML format
|
|
240
|
-
* - `author` - Author information (id, name, profilePicture, type)
|
|
241
|
-
* - `upvotes` / `downvotes` / `score` - Voting metrics
|
|
242
|
-
* - `isPrivate` - Whether comment is only visible to admins
|
|
243
|
-
* - `inReview` - Whether comment is pending moderation
|
|
244
|
-
* - `created` / `updated` - Unix timestamps
|
|
245
|
-
*
|
|
246
|
-
* ### Additional Filters
|
|
247
|
-
*
|
|
248
|
-
* - `privacy` - Filter by privacy: "public", "private", or "all"
|
|
249
|
-
* - `inReview` - Filter by moderation status (true/false)
|
|
250
|
-
*
|
|
251
|
-
* ### Sorting
|
|
252
|
-
*
|
|
253
|
-
* Use `sortBy` to sort results:
|
|
254
|
-
*
|
|
255
|
-
* - `best` - Sort by confidence score (default, like Reddit)
|
|
256
|
-
* - `top` - Sort by net score (upvotes - downvotes)
|
|
257
|
-
* - `new` - Sort by creation date, newest first
|
|
258
|
-
* - `old` - Sort by creation date, oldest first
|
|
259
|
-
*
|
|
260
|
-
* @example
|
|
261
|
-
* ```ts
|
|
262
|
-
* // Automatically fetches more pages as needed.
|
|
263
|
-
* for await (const comment of client.feedback.comments.list()) {
|
|
264
|
-
* // ...
|
|
265
|
-
* }
|
|
266
|
-
* ```
|
|
267
|
-
*/
|
|
268
|
-
list(params = {}, options) {
|
|
269
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
270
|
-
return this._client.getAPIList('/v2/comments', (CursorPage), {
|
|
271
|
-
query,
|
|
272
|
-
...options,
|
|
273
|
-
headers: buildHeaders([
|
|
274
|
-
{
|
|
275
|
-
...(featurebaseVersion?.toString() != null ?
|
|
276
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
277
|
-
: undefined),
|
|
278
|
-
},
|
|
279
|
-
options?.headers,
|
|
280
|
-
]),
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
283
|
/**
|
|
284
284
|
* Deletes a comment by its unique identifier.
|
|
285
285
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.mjs","sourceRoot":"","sources":["../../src/resources/feedback/comments.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"comments.mjs","sourceR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aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgJG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -5,37 +5,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
5
5
|
* Configurable input fields for posts in your Featurebase organization. Custom fields allow you to collect additional structured data when users create posts.
|
|
6
6
|
*/
|
|
7
7
|
export declare class CustomFields extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a single custom field by its unique identifier.
|
|
10
|
-
*
|
|
11
|
-
* Returns the custom field object if found in your organization.
|
|
12
|
-
*
|
|
13
|
-
* ### Response
|
|
14
|
-
*
|
|
15
|
-
* Returns a custom field object with:
|
|
16
|
-
*
|
|
17
|
-
* - `id` - Unique field identifier
|
|
18
|
-
* - `label` - Field label displayed to users
|
|
19
|
-
* - `type` - Field type (text, number, select, multi-select, checkbox, date)
|
|
20
|
-
* - `required` - Whether the field is required
|
|
21
|
-
* - `placeholder` - Placeholder text (for text/number fields)
|
|
22
|
-
* - `public` - Whether the field value is publicly visible
|
|
23
|
-
* - `internal` - Whether the field is for internal use only
|
|
24
|
-
* - `options` - Array of options (for select/multi-select fields)
|
|
25
|
-
*
|
|
26
|
-
* ### Errors
|
|
27
|
-
*
|
|
28
|
-
* - `404` - Custom field not found in your organization
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const customField =
|
|
33
|
-
* await client.feedback.customFields.retrieve(
|
|
34
|
-
* '65d26304b2e65b1e1278170c',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(id: string, params?: CustomFieldRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomField>;
|
|
39
8
|
/**
|
|
40
9
|
* Returns all custom fields configured in your organization.
|
|
41
10
|
*
|
|
@@ -79,6 +48,37 @@ export declare class CustomFields extends APIResource {
|
|
|
79
48
|
* ```
|
|
80
49
|
*/
|
|
81
50
|
list(params?: CustomFieldListParams | null | undefined, options?: RequestOptions): APIPromise<CustomFieldList>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a single custom field by its unique identifier.
|
|
53
|
+
*
|
|
54
|
+
* Returns the custom field object if found in your organization.
|
|
55
|
+
*
|
|
56
|
+
* ### Response
|
|
57
|
+
*
|
|
58
|
+
* Returns a custom field object with:
|
|
59
|
+
*
|
|
60
|
+
* - `id` - Unique field identifier
|
|
61
|
+
* - `label` - Field label displayed to users
|
|
62
|
+
* - `type` - Field type (text, number, select, multi-select, checkbox, date)
|
|
63
|
+
* - `required` - Whether the field is required
|
|
64
|
+
* - `placeholder` - Placeholder text (for text/number fields)
|
|
65
|
+
* - `public` - Whether the field value is publicly visible
|
|
66
|
+
* - `internal` - Whether the field is for internal use only
|
|
67
|
+
* - `options` - Array of options (for select/multi-select fields)
|
|
68
|
+
*
|
|
69
|
+
* ### Errors
|
|
70
|
+
*
|
|
71
|
+
* - `404` - Custom field not found in your organization
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const customField =
|
|
76
|
+
* await client.feedback.customFields.retrieve(
|
|
77
|
+
* '65d26304b2e65b1e1278170c',
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
retrieve(id: string, params?: CustomFieldRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomField>;
|
|
82
82
|
}
|
|
83
83
|
export interface CustomField {
|
|
84
84
|
/**
|
|
@@ -183,14 +183,14 @@ export declare namespace CustomFieldList {
|
|
|
183
183
|
totalPages: number;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
export interface
|
|
186
|
+
export interface CustomFieldListParams {
|
|
187
187
|
/**
|
|
188
188
|
* API version for this request. Defaults to your organization's configured API
|
|
189
189
|
* version if not specified.
|
|
190
190
|
*/
|
|
191
191
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
192
192
|
}
|
|
193
|
-
export interface
|
|
193
|
+
export interface CustomFieldRetrieveParams {
|
|
194
194
|
/**
|
|
195
195
|
* API version for this request. Defaults to your organization's configured API
|
|
196
196
|
* version if not specified.
|
|
@@ -198,6 +198,6 @@ export interface CustomFieldListParams {
|
|
|
198
198
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
199
199
|
}
|
|
200
200
|
export declare namespace CustomFields {
|
|
201
|
-
export { type CustomField as CustomField, type CustomFieldList as CustomFieldList, type
|
|
201
|
+
export { type CustomField as CustomField, type CustomFieldList as CustomFieldList, type CustomFieldListParams as CustomFieldListParams, type CustomFieldRetrieveParams as CustomFieldRetrieveParams, };
|
|
202
202
|
}
|
|
203
203
|
//# sourceMappingURL=custom-fields.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-fields.d.mts","sourceRoot":"","sources":["../../src/resources/feedback/custom-fields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"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H,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC;CACzC;AAED,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -5,37 +5,6 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
* Configurable input fields for posts in your Featurebase organization. Custom fields allow you to collect additional structured data when users create posts.
|
|
6
6
|
*/
|
|
7
7
|
export declare class CustomFields extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a single custom field by its unique identifier.
|
|
10
|
-
*
|
|
11
|
-
* Returns the custom field object if found in your organization.
|
|
12
|
-
*
|
|
13
|
-
* ### Response
|
|
14
|
-
*
|
|
15
|
-
* Returns a custom field object with:
|
|
16
|
-
*
|
|
17
|
-
* - `id` - Unique field identifier
|
|
18
|
-
* - `label` - Field label displayed to users
|
|
19
|
-
* - `type` - Field type (text, number, select, multi-select, checkbox, date)
|
|
20
|
-
* - `required` - Whether the field is required
|
|
21
|
-
* - `placeholder` - Placeholder text (for text/number fields)
|
|
22
|
-
* - `public` - Whether the field value is publicly visible
|
|
23
|
-
* - `internal` - Whether the field is for internal use only
|
|
24
|
-
* - `options` - Array of options (for select/multi-select fields)
|
|
25
|
-
*
|
|
26
|
-
* ### Errors
|
|
27
|
-
*
|
|
28
|
-
* - `404` - Custom field not found in your organization
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const customField =
|
|
33
|
-
* await client.feedback.customFields.retrieve(
|
|
34
|
-
* '65d26304b2e65b1e1278170c',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(id: string, params?: CustomFieldRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomField>;
|
|
39
8
|
/**
|
|
40
9
|
* Returns all custom fields configured in your organization.
|
|
41
10
|
*
|
|
@@ -79,6 +48,37 @@ export declare class CustomFields extends APIResource {
|
|
|
79
48
|
* ```
|
|
80
49
|
*/
|
|
81
50
|
list(params?: CustomFieldListParams | null | undefined, options?: RequestOptions): APIPromise<CustomFieldList>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a single custom field by its unique identifier.
|
|
53
|
+
*
|
|
54
|
+
* Returns the custom field object if found in your organization.
|
|
55
|
+
*
|
|
56
|
+
* ### Response
|
|
57
|
+
*
|
|
58
|
+
* Returns a custom field object with:
|
|
59
|
+
*
|
|
60
|
+
* - `id` - Unique field identifier
|
|
61
|
+
* - `label` - Field label displayed to users
|
|
62
|
+
* - `type` - Field type (text, number, select, multi-select, checkbox, date)
|
|
63
|
+
* - `required` - Whether the field is required
|
|
64
|
+
* - `placeholder` - Placeholder text (for text/number fields)
|
|
65
|
+
* - `public` - Whether the field value is publicly visible
|
|
66
|
+
* - `internal` - Whether the field is for internal use only
|
|
67
|
+
* - `options` - Array of options (for select/multi-select fields)
|
|
68
|
+
*
|
|
69
|
+
* ### Errors
|
|
70
|
+
*
|
|
71
|
+
* - `404` - Custom field not found in your organization
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const customField =
|
|
76
|
+
* await client.feedback.customFields.retrieve(
|
|
77
|
+
* '65d26304b2e65b1e1278170c',
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
retrieve(id: string, params?: CustomFieldRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<CustomField>;
|
|
82
82
|
}
|
|
83
83
|
export interface CustomField {
|
|
84
84
|
/**
|
|
@@ -183,14 +183,14 @@ export declare namespace CustomFieldList {
|
|
|
183
183
|
totalPages: number;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
export interface
|
|
186
|
+
export interface CustomFieldListParams {
|
|
187
187
|
/**
|
|
188
188
|
* API version for this request. Defaults to your organization's configured API
|
|
189
189
|
* version if not specified.
|
|
190
190
|
*/
|
|
191
191
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
192
192
|
}
|
|
193
|
-
export interface
|
|
193
|
+
export interface CustomFieldRetrieveParams {
|
|
194
194
|
/**
|
|
195
195
|
* API version for this request. Defaults to your organization's configured API
|
|
196
196
|
* version if not specified.
|
|
@@ -198,6 +198,6 @@ export interface CustomFieldListParams {
|
|
|
198
198
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
199
199
|
}
|
|
200
200
|
export declare namespace CustomFields {
|
|
201
|
-
export { type CustomField as CustomField, type CustomFieldList as CustomFieldList, type
|
|
201
|
+
export { type CustomField as CustomField, type CustomFieldList as CustomFieldList, type CustomFieldListParams as CustomFieldListParams, type CustomFieldRetrieveParams as CustomFieldRetrieveParams, };
|
|
202
202
|
}
|
|
203
203
|
//# sourceMappingURL=custom-fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../../src/resources/feedback/custom-fields.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-fields.d.ts","sourceRoot":"","sources":["../../src/resources/feedback/custom-fields.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,IAAI,CACF,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAe9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;CAc3B;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ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AAyB;IACxC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -10,13 +10,22 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class CustomFields extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Returns all custom fields configured in your organization.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* This endpoint returns all custom fields at once (typically a small list). No
|
|
16
|
+
* pagination is supported.
|
|
16
17
|
*
|
|
17
|
-
* ### Response
|
|
18
|
+
* ### Response Format
|
|
18
19
|
*
|
|
19
|
-
* Returns a
|
|
20
|
+
* Returns a list object with:
|
|
21
|
+
*
|
|
22
|
+
* - `object` - Always "list"
|
|
23
|
+
* - `data` - Array of custom field objects
|
|
24
|
+
* - `nextCursor` - Always null
|
|
25
|
+
*
|
|
26
|
+
* ### Custom Field Object
|
|
27
|
+
*
|
|
28
|
+
* Each custom field includes:
|
|
20
29
|
*
|
|
21
30
|
* - `id` - Unique field identifier
|
|
22
31
|
* - `label` - Field label displayed to users
|
|
@@ -27,21 +36,24 @@ class CustomFields extends resource_1.APIResource {
|
|
|
27
36
|
* - `internal` - Whether the field is for internal use only
|
|
28
37
|
* - `options` - Array of options (for select/multi-select fields)
|
|
29
38
|
*
|
|
30
|
-
* ###
|
|
39
|
+
* ### Field Types
|
|
31
40
|
*
|
|
32
|
-
* - `
|
|
41
|
+
* - `text` - Single line text input
|
|
42
|
+
* - `number` - Numeric input
|
|
43
|
+
* - `select` - Single-choice dropdown
|
|
44
|
+
* - `multi-select` - Multiple-choice dropdown
|
|
45
|
+
* - `checkbox` - Boolean checkbox
|
|
46
|
+
* - `date` - Date picker
|
|
33
47
|
*
|
|
34
48
|
* @example
|
|
35
49
|
* ```ts
|
|
36
|
-
* const
|
|
37
|
-
* await client.feedback.customFields.
|
|
38
|
-
* '65d26304b2e65b1e1278170c',
|
|
39
|
-
* );
|
|
50
|
+
* const customFieldList =
|
|
51
|
+
* await client.feedback.customFields.list();
|
|
40
52
|
* ```
|
|
41
53
|
*/
|
|
42
|
-
|
|
54
|
+
list(params = {}, options) {
|
|
43
55
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
44
|
-
return this._client.get(
|
|
56
|
+
return this._client.get('/v2/custom_fields', {
|
|
45
57
|
...options,
|
|
46
58
|
headers: (0, headers_1.buildHeaders)([
|
|
47
59
|
{
|
|
@@ -54,22 +66,13 @@ class CustomFields extends resource_1.APIResource {
|
|
|
54
66
|
});
|
|
55
67
|
}
|
|
56
68
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* This endpoint returns all custom fields at once (typically a small list). No
|
|
60
|
-
* pagination is supported.
|
|
61
|
-
*
|
|
62
|
-
* ### Response Format
|
|
63
|
-
*
|
|
64
|
-
* Returns a list object with:
|
|
69
|
+
* Retrieves a single custom field by its unique identifier.
|
|
65
70
|
*
|
|
66
|
-
*
|
|
67
|
-
* - `data` - Array of custom field objects
|
|
68
|
-
* - `nextCursor` - Always null
|
|
71
|
+
* Returns the custom field object if found in your organization.
|
|
69
72
|
*
|
|
70
|
-
* ###
|
|
73
|
+
* ### Response
|
|
71
74
|
*
|
|
72
|
-
*
|
|
75
|
+
* Returns a custom field object with:
|
|
73
76
|
*
|
|
74
77
|
* - `id` - Unique field identifier
|
|
75
78
|
* - `label` - Field label displayed to users
|
|
@@ -80,24 +83,21 @@ class CustomFields extends resource_1.APIResource {
|
|
|
80
83
|
* - `internal` - Whether the field is for internal use only
|
|
81
84
|
* - `options` - Array of options (for select/multi-select fields)
|
|
82
85
|
*
|
|
83
|
-
* ###
|
|
86
|
+
* ### Errors
|
|
84
87
|
*
|
|
85
|
-
* - `
|
|
86
|
-
* - `number` - Numeric input
|
|
87
|
-
* - `select` - Single-choice dropdown
|
|
88
|
-
* - `multi-select` - Multiple-choice dropdown
|
|
89
|
-
* - `checkbox` - Boolean checkbox
|
|
90
|
-
* - `date` - Date picker
|
|
88
|
+
* - `404` - Custom field not found in your organization
|
|
91
89
|
*
|
|
92
90
|
* @example
|
|
93
91
|
* ```ts
|
|
94
|
-
* const
|
|
95
|
-
* await client.feedback.customFields.
|
|
92
|
+
* const customField =
|
|
93
|
+
* await client.feedback.customFields.retrieve(
|
|
94
|
+
* '65d26304b2e65b1e1278170c',
|
|
95
|
+
* );
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
retrieve(id, params = {}, options) {
|
|
99
99
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
100
|
-
return this._client.get(
|
|
100
|
+
return this._client.get((0, path_1.path) `/v2/custom_fields/${id}`, {
|
|
101
101
|
...options,
|
|
102
102
|
headers: (0, headers_1.buildHeaders)([
|
|
103
103
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-fields.js","sourceRoot":"","sources":["../../src/resources/feedback/custom-fields.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C
|
|
1
|
+
{"version":3,"file":"custom-fields.js","sourceRoot":"","sources":["../../src/resources/feedback/custom-fields.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,IAAI,CACF,SAAmD,EAAE,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