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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as PostsAPI from "./posts.js";
|
|
2
3
|
import * as PostStatusesAPI from "../post-statuses.js";
|
|
3
4
|
import * as VotersAPI from "./voters.js";
|
|
4
5
|
import { VoterAddParams, VoterAddResponse, VoterListParams, VoterListResponse, VoterListResponsesCursorPage, VoterRemoveParams, VoterRemoveResponse, Voters } from "./voters.js";
|
|
@@ -11,6 +12,67 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
11
12
|
*/
|
|
12
13
|
export declare class Posts extends APIResource {
|
|
13
14
|
voters: VotersAPI.Voters;
|
|
15
|
+
/**
|
|
16
|
+
* Returns all posts (feedback submissions) for the authenticated organization.
|
|
17
|
+
*
|
|
18
|
+
* Posts are user-submitted feedback items. Each post belongs to a board and can
|
|
19
|
+
* have:
|
|
20
|
+
*
|
|
21
|
+
* - Status (in progress, complete, etc.)
|
|
22
|
+
* - Tags for categorization
|
|
23
|
+
* - Upvotes from users
|
|
24
|
+
* - Comments (if enabled)
|
|
25
|
+
* - Custom field values
|
|
26
|
+
*
|
|
27
|
+
* ### Pagination
|
|
28
|
+
*
|
|
29
|
+
* This endpoint uses **cursor-based pagination**:
|
|
30
|
+
*
|
|
31
|
+
* - `limit` - Number of posts to return (1-100, default 10)
|
|
32
|
+
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
33
|
+
*
|
|
34
|
+
* **Example:** To paginate through results:
|
|
35
|
+
*
|
|
36
|
+
* 1. First request: `GET /v2/posts?limit=10`
|
|
37
|
+
* 2. If `nextCursor` is not null, use it for the next page
|
|
38
|
+
* 3. Next request: `GET /v2/posts?limit=10&cursor={nextCursor}`
|
|
39
|
+
*
|
|
40
|
+
* ### Response Format
|
|
41
|
+
*
|
|
42
|
+
* Returns a list object with:
|
|
43
|
+
*
|
|
44
|
+
* - `object` - Always "list"
|
|
45
|
+
* - `data` - Array of post objects
|
|
46
|
+
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
47
|
+
*
|
|
48
|
+
* ### Filtering
|
|
49
|
+
*
|
|
50
|
+
* Filter posts using query parameters:
|
|
51
|
+
*
|
|
52
|
+
* - `boardId` - Filter by board (category) ID
|
|
53
|
+
* - `statusId` - Filter by status ID
|
|
54
|
+
* - `tags` - Filter by tag names (can be comma-separated or repeated)
|
|
55
|
+
* - `q` - Search query for title/content
|
|
56
|
+
* - `inReview` - Include posts pending moderation
|
|
57
|
+
*
|
|
58
|
+
* ### Sorting
|
|
59
|
+
*
|
|
60
|
+
* Use `sortBy` to sort results:
|
|
61
|
+
*
|
|
62
|
+
* - `createdAt` - Sort by creation date (default)
|
|
63
|
+
* - `upvotes` - Sort by vote count
|
|
64
|
+
* - `trending` - Sort by trending score
|
|
65
|
+
* - `recent` - Sort by most recently updated
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* // Automatically fetches more pages as needed.
|
|
70
|
+
* for await (const post of client.feedback.posts.list()) {
|
|
71
|
+
* // ...
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
list(params?: PostListParams | null | undefined, options?: RequestOptions): PagePromise<PostsCursorPage, Post>;
|
|
14
76
|
/**
|
|
15
77
|
* Creates a new post (feedback submission) in the specified board.
|
|
16
78
|
*
|
|
@@ -122,67 +184,6 @@ export declare class Posts extends APIResource {
|
|
|
122
184
|
* ```
|
|
123
185
|
*/
|
|
124
186
|
update(id: string, params: PostUpdateParams, options?: RequestOptions): APIPromise<Post>;
|
|
125
|
-
/**
|
|
126
|
-
* Returns all posts (feedback submissions) for the authenticated organization.
|
|
127
|
-
*
|
|
128
|
-
* Posts are user-submitted feedback items. Each post belongs to a board and can
|
|
129
|
-
* have:
|
|
130
|
-
*
|
|
131
|
-
* - Status (in progress, complete, etc.)
|
|
132
|
-
* - Tags for categorization
|
|
133
|
-
* - Upvotes from users
|
|
134
|
-
* - Comments (if enabled)
|
|
135
|
-
* - Custom field values
|
|
136
|
-
*
|
|
137
|
-
* ### Pagination
|
|
138
|
-
*
|
|
139
|
-
* This endpoint uses **cursor-based pagination**:
|
|
140
|
-
*
|
|
141
|
-
* - `limit` - Number of posts to return (1-100, default 10)
|
|
142
|
-
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
143
|
-
*
|
|
144
|
-
* **Example:** To paginate through results:
|
|
145
|
-
*
|
|
146
|
-
* 1. First request: `GET /v2/posts?limit=10`
|
|
147
|
-
* 2. If `nextCursor` is not null, use it for the next page
|
|
148
|
-
* 3. Next request: `GET /v2/posts?limit=10&cursor={nextCursor}`
|
|
149
|
-
*
|
|
150
|
-
* ### Response Format
|
|
151
|
-
*
|
|
152
|
-
* Returns a list object with:
|
|
153
|
-
*
|
|
154
|
-
* - `object` - Always "list"
|
|
155
|
-
* - `data` - Array of post objects
|
|
156
|
-
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
157
|
-
*
|
|
158
|
-
* ### Filtering
|
|
159
|
-
*
|
|
160
|
-
* Filter posts using query parameters:
|
|
161
|
-
*
|
|
162
|
-
* - `boardId` - Filter by board (category) ID
|
|
163
|
-
* - `statusId` - Filter by status ID
|
|
164
|
-
* - `tags` - Filter by tag names (can be comma-separated or repeated)
|
|
165
|
-
* - `q` - Search query for title/content
|
|
166
|
-
* - `inReview` - Include posts pending moderation
|
|
167
|
-
*
|
|
168
|
-
* ### Sorting
|
|
169
|
-
*
|
|
170
|
-
* Use `sortBy` to sort results:
|
|
171
|
-
*
|
|
172
|
-
* - `createdAt` - Sort by creation date (default)
|
|
173
|
-
* - `upvotes` - Sort by vote count
|
|
174
|
-
* - `trending` - Sort by trending score
|
|
175
|
-
* - `recent` - Sort by most recently updated
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* ```ts
|
|
179
|
-
* // Automatically fetches more pages as needed.
|
|
180
|
-
* for await (const post of client.feedback.posts.list()) {
|
|
181
|
-
* // ...
|
|
182
|
-
* }
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
list(params?: PostListParams | null | undefined, options?: RequestOptions): PagePromise<PostsCursorPage, Post>;
|
|
186
187
|
/**
|
|
187
188
|
* Permanently deletes a post. This action cannot be undone.
|
|
188
189
|
*
|
|
@@ -223,7 +224,7 @@ export declare class Posts extends APIResource {
|
|
|
223
224
|
*
|
|
224
225
|
* - **Filter mode** — pass a structured `query` AST (and/or `sort`) and the
|
|
225
226
|
* endpoint returns posts matching the filter, ordered by `sort` (default
|
|
226
|
-
* `
|
|
227
|
+
* `createdAt:desc`). Same shape as `/v2/conversations/search`,
|
|
227
228
|
* `/v2/companies/search`, `/v2/contacts/search`.
|
|
228
229
|
* - **Search mode** — pass a top-level `search` string and the endpoint runs a
|
|
229
230
|
* hybrid full-text + vector search (BM25 + embeddings, semanticRatio 0.5) over
|
|
@@ -238,7 +239,7 @@ export declare class Posts extends APIResource {
|
|
|
238
239
|
* "operator": "AND",
|
|
239
240
|
* "value": [
|
|
240
241
|
* {
|
|
241
|
-
* "field": "
|
|
242
|
+
* "field": "boardId",
|
|
242
243
|
* "operator": "IN",
|
|
243
244
|
* "value": ["507f1f77bcf86cd799439011"]
|
|
244
245
|
* }
|
|
@@ -264,7 +265,7 @@ export declare class Posts extends APIResource {
|
|
|
264
265
|
* "operator": "AND",
|
|
265
266
|
* "value": [
|
|
266
267
|
* {
|
|
267
|
-
* "field": "
|
|
268
|
+
* "field": "boardId",
|
|
268
269
|
* "operator": "IN",
|
|
269
270
|
* "value": ["507f1f77bcf86cd799439011"]
|
|
270
271
|
* },
|
|
@@ -276,21 +277,44 @@ export declare class Posts extends APIResource {
|
|
|
276
277
|
* }
|
|
277
278
|
* ```
|
|
278
279
|
*
|
|
280
|
+
* To list every post a contact has upvoted (the inverse of
|
|
281
|
+
* `feedback.posts.voters.list(postId)`):
|
|
282
|
+
*
|
|
283
|
+
* ```json
|
|
284
|
+
* {
|
|
285
|
+
* "query": {
|
|
286
|
+
* "field": "voterId",
|
|
287
|
+
* "operator": "=",
|
|
288
|
+
* "value": "507f1f77bcf86cd799439011"
|
|
289
|
+
* },
|
|
290
|
+
* "sort": "upvotes:desc",
|
|
291
|
+
* "limit": 100
|
|
292
|
+
* }
|
|
293
|
+
* ```
|
|
294
|
+
*
|
|
279
295
|
* Top-level `OR` groups and nested groups are not supported in this version.
|
|
280
296
|
*
|
|
281
297
|
* ### Supported fields and operators
|
|
282
298
|
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
* |
|
|
291
|
-
* |
|
|
292
|
-
* | `
|
|
293
|
-
* | `
|
|
299
|
+
* Field names are camelCase, matching the rest of the v2 public API. Snake_case
|
|
300
|
+
* names that this endpoint originally shipped with (`board_id`, `status_id`,
|
|
301
|
+
* `tag_id`, `author_id`, `voter_id`, `assignee_id`, `company_id`, `created_at`,
|
|
302
|
+
* `updated_at`, `comment_count`, `monthly_spend`, `opportunity_amount`,
|
|
303
|
+
* `in_review`, `is_pinned`) are still accepted for back-compat but are deprecated
|
|
304
|
+
* — please migrate to camelCase in new code.
|
|
305
|
+
*
|
|
306
|
+
* | Field | Type | Operators |
|
|
307
|
+
* | -------------------------------------------------------------- | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
308
|
+
* | `boardId` | id (categoryId) | `=`, `!=`, `IN`, `NIN` |
|
|
309
|
+
* | `statusId` | id (postStatus) | `=`, `!=`, `IN`, `NIN` |
|
|
310
|
+
* | `tagId` | id (postTags) | `=`, `!=`, `IN`, `NIN` |
|
|
311
|
+
* | `authorId` | string (user id) | `=`, `!=`, `IN`, `NIN` |
|
|
312
|
+
* | `voterId` | id (customer) | `=`, `IN` (use to list every post a contact has upvoted; only matches `type: customer` upvoters — guests/admins are not searchable here) |
|
|
313
|
+
* | `assigneeId` | id or null (admin) | `=`, `!=`, `IN`, `NIN` (use `null` for unassigned) |
|
|
314
|
+
* | `companyId` | string (external company id) | `=`, `!=`, `IN`, `NIN` |
|
|
315
|
+
* | `createdAt`, `updatedAt`, `eta` | unix seconds | `=`, `!=`, `>`, `<`, `>=`, `<=` |
|
|
316
|
+
* | `upvotes`, `commentCount`, `monthlySpend`, `opportunityAmount` | number | `=`, `!=`, `>`, `<`, `>=`, `<=` |
|
|
317
|
+
* | `inReview`, `isPinned` | boolean | `=`, `!=` |
|
|
294
318
|
*
|
|
295
319
|
* Use the top-level `search` field for full-text search across `title` and
|
|
296
320
|
* `content` (see "Search mode" above). The clause-level operators `~`, `!~`, `^`,
|
|
@@ -299,7 +323,7 @@ export declare class Posts extends APIResource {
|
|
|
299
323
|
* A filter-mode query (no `search`) consisting only of `!=` or `NIN` clauses on
|
|
300
324
|
* unbounded fields is rejected with `query_too_broad` to prevent full-org scans.
|
|
301
325
|
* Combine the negation with at least one positive clause (`=`, `IN`, `>`, `<`)
|
|
302
|
-
* instead. Boolean fields (`
|
|
326
|
+
* instead. Boolean fields (`inReview`, `isPinned`) are bounded so a standalone
|
|
303
327
|
* negation on them is allowed. Search mode (with `search` set) relaxes this — the
|
|
304
328
|
* FTS query itself acts as the positive constraint.
|
|
305
329
|
*
|
|
@@ -307,15 +331,18 @@ export declare class Posts extends APIResource {
|
|
|
307
331
|
*
|
|
308
332
|
* Allowed values:
|
|
309
333
|
*
|
|
310
|
-
* - `
|
|
311
|
-
* - `
|
|
334
|
+
* - `createdAt:desc` (default), `createdAt:asc`
|
|
335
|
+
* - `updatedAt:desc`, `updatedAt:asc`
|
|
312
336
|
* - `upvotes:desc`, `upvotes:asc`
|
|
313
337
|
* - `eta:desc`, `eta:asc`
|
|
314
|
-
* - `
|
|
315
|
-
* - `
|
|
316
|
-
* - `opportunity_amount:desc`, `opportunity_amount:asc` (linked HubSpot/Salesforce
|
|
338
|
+
* - `monthlySpend:desc`, `monthlySpend:asc` (sum of upvoters' monthly spend)
|
|
339
|
+
* - `opportunityAmount:desc`, `opportunityAmount:asc` (linked HubSpot/Salesforce
|
|
317
340
|
* value)
|
|
318
|
-
* - `
|
|
341
|
+
* - `commentCount:desc`, `commentCount:asc`
|
|
342
|
+
*
|
|
343
|
+
* Snake_case sort axes (`created_at:desc`, `monthly_spend:asc`, etc.) are accepted
|
|
344
|
+
* for back-compat — the cursor encodes the canonical camelCase identity, so a
|
|
345
|
+
* caller can switch naming conventions mid-pagination without restarting.
|
|
319
346
|
*
|
|
320
347
|
* When `search` is set, results are ranked by relevance unless `sort` is also set,
|
|
321
348
|
* in which case the matching posts are returned in the requested order. The chosen
|
|
@@ -363,12 +390,12 @@ export interface Post {
|
|
|
363
390
|
* Unique identifier
|
|
364
391
|
*/
|
|
365
392
|
id: string;
|
|
366
|
-
access:
|
|
393
|
+
access: PostAccess;
|
|
367
394
|
/**
|
|
368
395
|
* ID of the admin assigned to this post, null if unassigned
|
|
369
396
|
*/
|
|
370
397
|
assigneeId: string | null;
|
|
371
|
-
author:
|
|
398
|
+
author: PostAuthor | null;
|
|
372
399
|
/**
|
|
373
400
|
* Board (category) ID this post belongs to
|
|
374
401
|
*/
|
|
@@ -395,7 +422,7 @@ export interface Post {
|
|
|
395
422
|
* Estimated completion time as ISO 8601 timestamp, null if not set
|
|
396
423
|
*/
|
|
397
424
|
eta: string | null;
|
|
398
|
-
features:
|
|
425
|
+
features: PostFeatures;
|
|
399
426
|
/**
|
|
400
427
|
* Whether the post is pending moderation review
|
|
401
428
|
*/
|
|
@@ -428,7 +455,7 @@ export interface Post {
|
|
|
428
455
|
/**
|
|
429
456
|
* Tags attached to this post
|
|
430
457
|
*/
|
|
431
|
-
tags: Array<
|
|
458
|
+
tags: Array<PostTag>;
|
|
432
459
|
/**
|
|
433
460
|
* Post title
|
|
434
461
|
*/
|
|
@@ -443,48 +470,6 @@ export interface Post {
|
|
|
443
470
|
upvotes: number;
|
|
444
471
|
}
|
|
445
472
|
export declare namespace Post {
|
|
446
|
-
interface Access {
|
|
447
|
-
/**
|
|
448
|
-
* External company IDs explicitly granted access to this post. Empty array means
|
|
449
|
-
* no company-level restrictions. Non-empty means only users belonging to these
|
|
450
|
-
* companies can see the post.
|
|
451
|
-
*/
|
|
452
|
-
companyExternalIds: Array<string>;
|
|
453
|
-
/**
|
|
454
|
-
* User IDs explicitly granted access to this post. Empty array means no user-level
|
|
455
|
-
* restrictions (post uses board/org visibility). Non-empty means only these users
|
|
456
|
-
* (plus admins) can see the post.
|
|
457
|
-
*/
|
|
458
|
-
userIds: Array<string>;
|
|
459
|
-
}
|
|
460
|
-
interface Author {
|
|
461
|
-
/**
|
|
462
|
-
* Author unique identifier
|
|
463
|
-
*/
|
|
464
|
-
id: string | null;
|
|
465
|
-
/**
|
|
466
|
-
* Author email (if available)
|
|
467
|
-
*/
|
|
468
|
-
email: string | null;
|
|
469
|
-
/**
|
|
470
|
-
* Author display name
|
|
471
|
-
*/
|
|
472
|
-
name: string;
|
|
473
|
-
/**
|
|
474
|
-
* Author profile picture URL
|
|
475
|
-
*/
|
|
476
|
-
profilePicture: string | null;
|
|
477
|
-
/**
|
|
478
|
-
* Type of user who authored the post
|
|
479
|
-
*/
|
|
480
|
-
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
481
|
-
}
|
|
482
|
-
interface Features {
|
|
483
|
-
/**
|
|
484
|
-
* Whether comments are allowed on this post
|
|
485
|
-
*/
|
|
486
|
-
commentsEnabled: boolean;
|
|
487
|
-
}
|
|
488
473
|
/**
|
|
489
474
|
* Third-party integration links associated with this post
|
|
490
475
|
*/
|
|
@@ -617,20 +602,86 @@ export declare namespace Post {
|
|
|
617
602
|
objectType: 'Opportunity' | 'Case';
|
|
618
603
|
}
|
|
619
604
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
605
|
+
}
|
|
606
|
+
export interface PostAccess {
|
|
607
|
+
/**
|
|
608
|
+
* External company IDs explicitly granted access to this post. Empty array means
|
|
609
|
+
* no company-level restrictions. Non-empty means only users belonging to these
|
|
610
|
+
* companies can see the post.
|
|
611
|
+
*/
|
|
612
|
+
companyExternalIds: Array<string>;
|
|
613
|
+
/**
|
|
614
|
+
* User IDs explicitly granted access to this post. Empty array means no user-level
|
|
615
|
+
* restrictions (post uses board/org visibility). Non-empty means only these users
|
|
616
|
+
* (plus admins) can see the post.
|
|
617
|
+
*/
|
|
618
|
+
userIds: Array<string>;
|
|
619
|
+
}
|
|
620
|
+
export interface PostAuthor {
|
|
621
|
+
/**
|
|
622
|
+
* Author unique identifier
|
|
623
|
+
*/
|
|
624
|
+
id: string | null;
|
|
625
|
+
/**
|
|
626
|
+
* Author email (if available)
|
|
627
|
+
*/
|
|
628
|
+
email: string | null;
|
|
629
|
+
/**
|
|
630
|
+
* Author display name
|
|
631
|
+
*/
|
|
632
|
+
name: string;
|
|
633
|
+
/**
|
|
634
|
+
* Author profile picture URL
|
|
635
|
+
*/
|
|
636
|
+
profilePicture: string | null;
|
|
637
|
+
/**
|
|
638
|
+
* Type of user who authored the post
|
|
639
|
+
*/
|
|
640
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
641
|
+
}
|
|
642
|
+
export interface PostFeatures {
|
|
643
|
+
/**
|
|
644
|
+
* Whether comments are allowed on this post
|
|
645
|
+
*/
|
|
646
|
+
commentsEnabled: boolean;
|
|
647
|
+
}
|
|
648
|
+
export interface PostTag {
|
|
649
|
+
/**
|
|
650
|
+
* Tag unique identifier
|
|
651
|
+
*/
|
|
652
|
+
id: string;
|
|
653
|
+
/**
|
|
654
|
+
* Tag color hex code
|
|
655
|
+
*/
|
|
656
|
+
color: string | null;
|
|
657
|
+
/**
|
|
658
|
+
* Tag name
|
|
659
|
+
*/
|
|
660
|
+
name: string;
|
|
661
|
+
}
|
|
662
|
+
export interface SearchFilter {
|
|
663
|
+
/**
|
|
664
|
+
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
665
|
+
*/
|
|
666
|
+
field: string;
|
|
667
|
+
/**
|
|
668
|
+
* Comparison operator
|
|
669
|
+
*/
|
|
670
|
+
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
671
|
+
/**
|
|
672
|
+
* Value to compare against (primitive or array of primitives)
|
|
673
|
+
*/
|
|
674
|
+
value: string | number | boolean | Array<string | number> | null;
|
|
675
|
+
}
|
|
676
|
+
export interface SearchFilterGroup {
|
|
677
|
+
/**
|
|
678
|
+
* Group operator: AND (all match) or OR (any match)
|
|
679
|
+
*/
|
|
680
|
+
operator: 'AND' | 'OR';
|
|
681
|
+
/**
|
|
682
|
+
* Array of filter clauses (1-15 entries)
|
|
683
|
+
*/
|
|
684
|
+
value: Array<SearchFilter>;
|
|
634
685
|
}
|
|
635
686
|
export interface PostDeleteResponse {
|
|
636
687
|
/**
|
|
@@ -677,12 +728,12 @@ export declare namespace PostSearchResponse {
|
|
|
677
728
|
* Unique identifier
|
|
678
729
|
*/
|
|
679
730
|
id: string;
|
|
680
|
-
access:
|
|
731
|
+
access: PostsAPI.PostAccess;
|
|
681
732
|
/**
|
|
682
733
|
* ID of the admin assigned to this post, null if unassigned
|
|
683
734
|
*/
|
|
684
735
|
assigneeId: string | null;
|
|
685
|
-
author:
|
|
736
|
+
author: PostsAPI.PostAuthor | null;
|
|
686
737
|
/**
|
|
687
738
|
* Board (category) ID this post belongs to
|
|
688
739
|
*/
|
|
@@ -709,7 +760,7 @@ export declare namespace PostSearchResponse {
|
|
|
709
760
|
* Estimated completion time as ISO 8601 timestamp, null if not set
|
|
710
761
|
*/
|
|
711
762
|
eta: string | null;
|
|
712
|
-
features:
|
|
763
|
+
features: PostsAPI.PostFeatures;
|
|
713
764
|
/**
|
|
714
765
|
* Whether the post is pending moderation review
|
|
715
766
|
*/
|
|
@@ -742,7 +793,7 @@ export declare namespace PostSearchResponse {
|
|
|
742
793
|
/**
|
|
743
794
|
* Tags attached to this post
|
|
744
795
|
*/
|
|
745
|
-
tags: Array<
|
|
796
|
+
tags: Array<PostsAPI.PostTag>;
|
|
746
797
|
/**
|
|
747
798
|
* Post title
|
|
748
799
|
*/
|
|
@@ -757,48 +808,6 @@ export declare namespace PostSearchResponse {
|
|
|
757
808
|
upvotes: number;
|
|
758
809
|
}
|
|
759
810
|
namespace Data {
|
|
760
|
-
interface Access {
|
|
761
|
-
/**
|
|
762
|
-
* External company IDs explicitly granted access to this post. Empty array means
|
|
763
|
-
* no company-level restrictions. Non-empty means only users belonging to these
|
|
764
|
-
* companies can see the post.
|
|
765
|
-
*/
|
|
766
|
-
companyExternalIds: Array<string>;
|
|
767
|
-
/**
|
|
768
|
-
* User IDs explicitly granted access to this post. Empty array means no user-level
|
|
769
|
-
* restrictions (post uses board/org visibility). Non-empty means only these users
|
|
770
|
-
* (plus admins) can see the post.
|
|
771
|
-
*/
|
|
772
|
-
userIds: Array<string>;
|
|
773
|
-
}
|
|
774
|
-
interface Author {
|
|
775
|
-
/**
|
|
776
|
-
* Author unique identifier
|
|
777
|
-
*/
|
|
778
|
-
id: string | null;
|
|
779
|
-
/**
|
|
780
|
-
* Author email (if available)
|
|
781
|
-
*/
|
|
782
|
-
email: string | null;
|
|
783
|
-
/**
|
|
784
|
-
* Author display name
|
|
785
|
-
*/
|
|
786
|
-
name: string;
|
|
787
|
-
/**
|
|
788
|
-
* Author profile picture URL
|
|
789
|
-
*/
|
|
790
|
-
profilePicture: string | null;
|
|
791
|
-
/**
|
|
792
|
-
* Type of user who authored the post
|
|
793
|
-
*/
|
|
794
|
-
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
795
|
-
}
|
|
796
|
-
interface Features {
|
|
797
|
-
/**
|
|
798
|
-
* Whether comments are allowed on this post
|
|
799
|
-
*/
|
|
800
|
-
commentsEnabled: boolean;
|
|
801
|
-
}
|
|
802
811
|
/**
|
|
803
812
|
* Third-party integration links associated with this post
|
|
804
813
|
*/
|
|
@@ -931,22 +940,43 @@ export declare namespace PostSearchResponse {
|
|
|
931
940
|
objectType: 'Opportunity' | 'Case';
|
|
932
941
|
}
|
|
933
942
|
}
|
|
934
|
-
interface Tag {
|
|
935
|
-
/**
|
|
936
|
-
* Tag unique identifier
|
|
937
|
-
*/
|
|
938
|
-
id: string;
|
|
939
|
-
/**
|
|
940
|
-
* Tag color hex code
|
|
941
|
-
*/
|
|
942
|
-
color: string | null;
|
|
943
|
-
/**
|
|
944
|
-
* Tag name
|
|
945
|
-
*/
|
|
946
|
-
name: string;
|
|
947
|
-
}
|
|
948
943
|
}
|
|
949
944
|
}
|
|
945
|
+
export interface PostListParams extends CursorPageParams {
|
|
946
|
+
/**
|
|
947
|
+
* Query param: Filter by board (category) ID(s)
|
|
948
|
+
*/
|
|
949
|
+
boardId?: string | Array<string>;
|
|
950
|
+
/**
|
|
951
|
+
* Query param: Include posts that are in review
|
|
952
|
+
*/
|
|
953
|
+
inReview?: boolean | null;
|
|
954
|
+
/**
|
|
955
|
+
* Query param: Search query to filter posts by title/content
|
|
956
|
+
*/
|
|
957
|
+
q?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Query param: Sort order for posts
|
|
960
|
+
*/
|
|
961
|
+
sortBy?: 'createdAt' | 'upvotes' | 'trending' | 'recent';
|
|
962
|
+
/**
|
|
963
|
+
* Query param: Sort direction
|
|
964
|
+
*/
|
|
965
|
+
sortOrder?: 'asc' | 'desc';
|
|
966
|
+
/**
|
|
967
|
+
* Query param: Filter by status ID(s)
|
|
968
|
+
*/
|
|
969
|
+
statusId?: string | Array<string>;
|
|
970
|
+
/**
|
|
971
|
+
* Query param: Filter by tag names
|
|
972
|
+
*/
|
|
973
|
+
tags?: string | Array<string>;
|
|
974
|
+
/**
|
|
975
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
976
|
+
* configured API version if not specified.
|
|
977
|
+
*/
|
|
978
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
979
|
+
}
|
|
950
980
|
export interface PostCreateParams {
|
|
951
981
|
/**
|
|
952
982
|
* Body param: Board ID to create post in
|
|
@@ -1147,41 +1177,6 @@ export interface PostUpdateParams {
|
|
|
1147
1177
|
*/
|
|
1148
1178
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1149
1179
|
}
|
|
1150
|
-
export interface PostListParams extends CursorPageParams {
|
|
1151
|
-
/**
|
|
1152
|
-
* Query param: Filter by board (category) ID(s)
|
|
1153
|
-
*/
|
|
1154
|
-
boardId?: string | Array<string>;
|
|
1155
|
-
/**
|
|
1156
|
-
* Query param: Include posts that are in review
|
|
1157
|
-
*/
|
|
1158
|
-
inReview?: boolean | null;
|
|
1159
|
-
/**
|
|
1160
|
-
* Query param: Search query to filter posts by title/content
|
|
1161
|
-
*/
|
|
1162
|
-
q?: string;
|
|
1163
|
-
/**
|
|
1164
|
-
* Query param: Sort order for posts
|
|
1165
|
-
*/
|
|
1166
|
-
sortBy?: 'createdAt' | 'upvotes' | 'trending' | 'recent';
|
|
1167
|
-
/**
|
|
1168
|
-
* Query param: Sort direction
|
|
1169
|
-
*/
|
|
1170
|
-
sortOrder?: 'asc' | 'desc';
|
|
1171
|
-
/**
|
|
1172
|
-
* Query param: Filter by status ID(s)
|
|
1173
|
-
*/
|
|
1174
|
-
statusId?: string | Array<string>;
|
|
1175
|
-
/**
|
|
1176
|
-
* Query param: Filter by tag names
|
|
1177
|
-
*/
|
|
1178
|
-
tags?: string | Array<string>;
|
|
1179
|
-
/**
|
|
1180
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
1181
|
-
* configured API version if not specified.
|
|
1182
|
-
*/
|
|
1183
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1184
|
-
}
|
|
1185
1180
|
export interface PostDeleteParams {
|
|
1186
1181
|
/**
|
|
1187
1182
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -1203,7 +1198,7 @@ export interface PostSearchParams {
|
|
|
1203
1198
|
* Body param: Structured filter AST. Either a single filter clause or one
|
|
1204
1199
|
* top-level AND group (max 15 clauses). Top-level OR groups are not yet supported.
|
|
1205
1200
|
*/
|
|
1206
|
-
query?:
|
|
1201
|
+
query?: SearchFilter | SearchFilterGroup;
|
|
1207
1202
|
/**
|
|
1208
1203
|
* Body param: Plain-text full-text search across post `title` and `content`.
|
|
1209
1204
|
* Server-managed (hybrid BM25 + vector) — no operators, no field selection. When
|
|
@@ -1213,61 +1208,20 @@ export interface PostSearchParams {
|
|
|
1213
1208
|
*/
|
|
1214
1209
|
search?: string;
|
|
1215
1210
|
/**
|
|
1216
|
-
* Body param: Sort field + direction. Defaults to `
|
|
1211
|
+
* Body param: Sort field + direction. Defaults to `createdAt:desc`. The chosen
|
|
1217
1212
|
* sort axis is encoded in the cursor; switching `sort` mid-pagination returns
|
|
1218
|
-
* `400 invalid_cursor`.
|
|
1213
|
+
* `400 invalid_cursor`. Snake_case names (`created_at:desc`, `monthly_spend:asc`,
|
|
1214
|
+
* …) are accepted for back-compat — prefer camelCase in new code.
|
|
1219
1215
|
*/
|
|
1220
|
-
sort?: '
|
|
1216
|
+
sort?: 'createdAt:desc' | 'createdAt:asc' | 'updatedAt:desc' | 'updatedAt:asc' | 'upvotes:desc' | 'upvotes:asc' | 'eta:desc' | 'eta:asc' | 'monthlySpend:desc' | 'monthlySpend:asc' | 'opportunityAmount:desc' | 'opportunityAmount:asc' | 'commentCount:desc' | 'commentCount:asc' | 'created_at:desc' | 'created_at:asc' | 'updated_at:desc' | 'updated_at:asc' | 'monthly_spend:desc' | 'monthly_spend:asc' | 'opportunity_amount:desc' | 'opportunity_amount:asc' | 'comment_count:desc' | 'comment_count:asc';
|
|
1221
1217
|
/**
|
|
1222
1218
|
* Header param: API version for this request. Defaults to your organization's
|
|
1223
1219
|
* configured API version if not specified.
|
|
1224
1220
|
*/
|
|
1225
1221
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1226
1222
|
}
|
|
1227
|
-
export declare namespace PostSearchParams {
|
|
1228
|
-
interface SearchFilter {
|
|
1229
|
-
/**
|
|
1230
|
-
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
1231
|
-
*/
|
|
1232
|
-
field: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* Comparison operator
|
|
1235
|
-
*/
|
|
1236
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
1237
|
-
/**
|
|
1238
|
-
* Value to compare against (primitive or array of primitives)
|
|
1239
|
-
*/
|
|
1240
|
-
value: string | number | boolean | Array<string | number> | null;
|
|
1241
|
-
}
|
|
1242
|
-
interface SearchFilterGroup {
|
|
1243
|
-
/**
|
|
1244
|
-
* Group operator: AND (all match) or OR (any match)
|
|
1245
|
-
*/
|
|
1246
|
-
operator: 'AND' | 'OR';
|
|
1247
|
-
/**
|
|
1248
|
-
* Array of filter clauses (1-15 entries)
|
|
1249
|
-
*/
|
|
1250
|
-
value: Array<SearchFilterGroup.Value>;
|
|
1251
|
-
}
|
|
1252
|
-
namespace SearchFilterGroup {
|
|
1253
|
-
interface Value {
|
|
1254
|
-
/**
|
|
1255
|
-
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
1256
|
-
*/
|
|
1257
|
-
field: string;
|
|
1258
|
-
/**
|
|
1259
|
-
* Comparison operator
|
|
1260
|
-
*/
|
|
1261
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
1262
|
-
/**
|
|
1263
|
-
* Value to compare against (primitive or array of primitives)
|
|
1264
|
-
*/
|
|
1265
|
-
value: string | number | boolean | Array<string | number> | null;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
1223
|
export declare namespace Posts {
|
|
1270
|
-
export { type Post as Post, type PostDeleteResponse as PostDeleteResponse, type PostSearchResponse as PostSearchResponse, type PostsCursorPage as PostsCursorPage, type
|
|
1224
|
+
export { type Post as Post, type PostAccess as PostAccess, type PostAuthor as PostAuthor, type PostFeatures as PostFeatures, type PostTag as PostTag, type SearchFilter as SearchFilter, type SearchFilterGroup as SearchFilterGroup, type PostDeleteResponse as PostDeleteResponse, type PostSearchResponse as PostSearchResponse, type PostsCursorPage as PostsCursorPage, type PostListParams as PostListParams, type PostCreateParams as PostCreateParams, type PostRetrieveParams as PostRetrieveParams, type PostUpdateParams as PostUpdateParams, type PostDeleteParams as PostDeleteParams, type PostSearchParams as PostSearchParams, };
|
|
1271
1225
|
export { Voters as Voters, type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListResponsesCursorPage as VoterListResponsesCursorPage, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
1272
1226
|
}
|
|
1273
1227
|
//# sourceMappingURL=posts.d.ts.map
|