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
|
@@ -23,6 +23,50 @@ class Tickets extends resource_1.APIResource {
|
|
|
23
23
|
this.categories = new CategoriesAPI.Categories(this._client);
|
|
24
24
|
this.statuses = new StatusesAPI.Statuses(this._client);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns a list of tickets in your organization using cursor-based pagination.
|
|
28
|
+
*
|
|
29
|
+
* ### Query Parameters
|
|
30
|
+
*
|
|
31
|
+
* | Parameter | Type | Description |
|
|
32
|
+
* | ------------------- | -------- | ---------------------------------------------------------------- |
|
|
33
|
+
* | `limit` | number | Number of tickets to return (1-100, default 10) |
|
|
34
|
+
* | `cursor` | string | Cursor from previous response for pagination |
|
|
35
|
+
* | `ticketCategoryIds` | string[] | Filter by ticket category IDs |
|
|
36
|
+
* | `statusIds` | string[] | Filter by status IDs |
|
|
37
|
+
* | `q` | string | Search query |
|
|
38
|
+
* | `assigneeId` | string | Filter by assignee ID |
|
|
39
|
+
* | `categoryType` | string | Filter by category type: "customer", "tracker", or "back-office" |
|
|
40
|
+
* | `sortBy` | string | Sort field: "date" (default), "recent", or "ticketNumber" |
|
|
41
|
+
* | `sortOrder` | string | Sort direction: "asc" or "desc" (default) |
|
|
42
|
+
*
|
|
43
|
+
* ### Response
|
|
44
|
+
*
|
|
45
|
+
* Returns a list object with `data` (array of ticket objects) and `nextCursor`.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* // Automatically fetches more pages as needed.
|
|
50
|
+
* for await (const ticket of client.support.tickets.list()) {
|
|
51
|
+
* // ...
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
list(params = {}, options) {
|
|
56
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
57
|
+
return this._client.getAPIList('/v2/tickets', (pagination_1.CursorPage), {
|
|
58
|
+
query,
|
|
59
|
+
...options,
|
|
60
|
+
headers: (0, headers_1.buildHeaders)([
|
|
61
|
+
{
|
|
62
|
+
...(featurebaseVersion?.toString() != null ?
|
|
63
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
64
|
+
: undefined),
|
|
65
|
+
},
|
|
66
|
+
options?.headers,
|
|
67
|
+
]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
26
70
|
/**
|
|
27
71
|
* Creates a new ticket.
|
|
28
72
|
*
|
|
@@ -193,50 +237,6 @@ class Tickets extends resource_1.APIResource {
|
|
|
193
237
|
]),
|
|
194
238
|
});
|
|
195
239
|
}
|
|
196
|
-
/**
|
|
197
|
-
* Returns a list of tickets in your organization using cursor-based pagination.
|
|
198
|
-
*
|
|
199
|
-
* ### Query Parameters
|
|
200
|
-
*
|
|
201
|
-
* | Parameter | Type | Description |
|
|
202
|
-
* | ------------------- | -------- | ---------------------------------------------------------------- |
|
|
203
|
-
* | `limit` | number | Number of tickets to return (1-100, default 10) |
|
|
204
|
-
* | `cursor` | string | Cursor from previous response for pagination |
|
|
205
|
-
* | `ticketCategoryIds` | string[] | Filter by ticket category IDs |
|
|
206
|
-
* | `statusIds` | string[] | Filter by status IDs |
|
|
207
|
-
* | `q` | string | Search query |
|
|
208
|
-
* | `assigneeId` | string | Filter by assignee ID |
|
|
209
|
-
* | `categoryType` | string | Filter by category type: "customer", "tracker", or "back-office" |
|
|
210
|
-
* | `sortBy` | string | Sort field: "date" (default), "recent", or "ticketNumber" |
|
|
211
|
-
* | `sortOrder` | string | Sort direction: "asc" or "desc" (default) |
|
|
212
|
-
*
|
|
213
|
-
* ### Response
|
|
214
|
-
*
|
|
215
|
-
* Returns a list object with `data` (array of ticket objects) and `nextCursor`.
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* ```ts
|
|
219
|
-
* // Automatically fetches more pages as needed.
|
|
220
|
-
* for await (const ticket of client.support.tickets.list()) {
|
|
221
|
-
* // ...
|
|
222
|
-
* }
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
list(params = {}, options) {
|
|
226
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
227
|
-
return this._client.getAPIList('/v2/tickets', (pagination_1.CursorPage), {
|
|
228
|
-
query,
|
|
229
|
-
...options,
|
|
230
|
-
headers: (0, headers_1.buildHeaders)([
|
|
231
|
-
{
|
|
232
|
-
...(featurebaseVersion?.toString() != null ?
|
|
233
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
234
|
-
: undefined),
|
|
235
|
-
},
|
|
236
|
-
options?.headers,
|
|
237
|
-
]),
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
240
|
/**
|
|
241
241
|
* Permanently deletes a ticket by its ticket number.
|
|
242
242
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tickets.js","sourceRoot":"","sources":["../../../src/resources/support/tickets/tickets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,uEAA8C;AAC9C,gDAA4G;AAC5G,4EAAmD;AACnD,sDAAiG;AACjG,mEAA0C;AAC1C,4CAAkG;AAElG,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsV1E,CAAC;IApVC
|
|
1
|
+
{"version":3,"file":"tickets.js","sourceRoot":"","sources":["../../../src/resources/support/tickets/tickets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,uEAA8C;AAC9C,gDAA4G;AAC5G,4EAAmD;AACnD,sDAAiG;AACjG,mEAA0C;AAC1C,4CAAkG;AAElG,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsV1E,CAAC;IApVC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,IAAI,CACF,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,qBAAqB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G,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,KAAK,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACnE,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,QAAQ,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;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;AAzVD,0BAyVC;AA2mBD,OAAO,CAAC,YAAY,GAAG,4BAAY,CAAC;AACpC,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC;AAChC,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -19,6 +19,50 @@ export class Tickets extends APIResource {
|
|
|
19
19
|
this.categories = new CategoriesAPI.Categories(this._client);
|
|
20
20
|
this.statuses = new StatusesAPI.Statuses(this._client);
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns a list of tickets in your organization using cursor-based pagination.
|
|
24
|
+
*
|
|
25
|
+
* ### Query Parameters
|
|
26
|
+
*
|
|
27
|
+
* | Parameter | Type | Description |
|
|
28
|
+
* | ------------------- | -------- | ---------------------------------------------------------------- |
|
|
29
|
+
* | `limit` | number | Number of tickets to return (1-100, default 10) |
|
|
30
|
+
* | `cursor` | string | Cursor from previous response for pagination |
|
|
31
|
+
* | `ticketCategoryIds` | string[] | Filter by ticket category IDs |
|
|
32
|
+
* | `statusIds` | string[] | Filter by status IDs |
|
|
33
|
+
* | `q` | string | Search query |
|
|
34
|
+
* | `assigneeId` | string | Filter by assignee ID |
|
|
35
|
+
* | `categoryType` | string | Filter by category type: "customer", "tracker", or "back-office" |
|
|
36
|
+
* | `sortBy` | string | Sort field: "date" (default), "recent", or "ticketNumber" |
|
|
37
|
+
* | `sortOrder` | string | Sort direction: "asc" or "desc" (default) |
|
|
38
|
+
*
|
|
39
|
+
* ### Response
|
|
40
|
+
*
|
|
41
|
+
* Returns a list object with `data` (array of ticket objects) and `nextCursor`.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const ticket of client.support.tickets.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(params = {}, options) {
|
|
52
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
53
|
+
return this._client.getAPIList('/v2/tickets', (CursorPage), {
|
|
54
|
+
query,
|
|
55
|
+
...options,
|
|
56
|
+
headers: buildHeaders([
|
|
57
|
+
{
|
|
58
|
+
...(featurebaseVersion?.toString() != null ?
|
|
59
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
60
|
+
: undefined),
|
|
61
|
+
},
|
|
62
|
+
options?.headers,
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
22
66
|
/**
|
|
23
67
|
* Creates a new ticket.
|
|
24
68
|
*
|
|
@@ -189,50 +233,6 @@ export class Tickets extends APIResource {
|
|
|
189
233
|
]),
|
|
190
234
|
});
|
|
191
235
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Returns a list of tickets in your organization using cursor-based pagination.
|
|
194
|
-
*
|
|
195
|
-
* ### Query Parameters
|
|
196
|
-
*
|
|
197
|
-
* | Parameter | Type | Description |
|
|
198
|
-
* | ------------------- | -------- | ---------------------------------------------------------------- |
|
|
199
|
-
* | `limit` | number | Number of tickets to return (1-100, default 10) |
|
|
200
|
-
* | `cursor` | string | Cursor from previous response for pagination |
|
|
201
|
-
* | `ticketCategoryIds` | string[] | Filter by ticket category IDs |
|
|
202
|
-
* | `statusIds` | string[] | Filter by status IDs |
|
|
203
|
-
* | `q` | string | Search query |
|
|
204
|
-
* | `assigneeId` | string | Filter by assignee ID |
|
|
205
|
-
* | `categoryType` | string | Filter by category type: "customer", "tracker", or "back-office" |
|
|
206
|
-
* | `sortBy` | string | Sort field: "date" (default), "recent", or "ticketNumber" |
|
|
207
|
-
* | `sortOrder` | string | Sort direction: "asc" or "desc" (default) |
|
|
208
|
-
*
|
|
209
|
-
* ### Response
|
|
210
|
-
*
|
|
211
|
-
* Returns a list object with `data` (array of ticket objects) and `nextCursor`.
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* ```ts
|
|
215
|
-
* // Automatically fetches more pages as needed.
|
|
216
|
-
* for await (const ticket of client.support.tickets.list()) {
|
|
217
|
-
* // ...
|
|
218
|
-
* }
|
|
219
|
-
* ```
|
|
220
|
-
*/
|
|
221
|
-
list(params = {}, options) {
|
|
222
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
223
|
-
return this._client.getAPIList('/v2/tickets', (CursorPage), {
|
|
224
|
-
query,
|
|
225
|
-
...options,
|
|
226
|
-
headers: buildHeaders([
|
|
227
|
-
{
|
|
228
|
-
...(featurebaseVersion?.toString() != null ?
|
|
229
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
230
|
-
: undefined),
|
|
231
|
-
},
|
|
232
|
-
options?.headers,
|
|
233
|
-
]),
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
236
|
/**
|
|
237
237
|
* Permanently deletes a ticket by its ticket number.
|
|
238
238
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../../../src/resources/support/tickets/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../../../src/resources/support/tickets/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAoE,yBAAqB;AAC5G,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,EAAoD,YAAY,EAAE,4BAAwB;AACjG,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAA8D,QAAQ,EAAE,uBAAmB;AAElG,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAC1F,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsV1E,CAAC;IApVC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,IAAI,CACF,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,qBAA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BACE,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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,KAAK,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACnE,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,QAAQ,EAAE;YACtD,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;AA2mBD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;AACpC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tickets.d.mts","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"tickets.d.mts","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tickets.d.ts","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"tickets.d.ts","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../../src/resources/support/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.d.mts","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"support.d.mts","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support.mjs","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
1
|
+
{"version":3,"file":"support.mjs","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
package/resources/surveys.d.mts
CHANGED
|
@@ -8,6 +8,39 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
8
8
|
* Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
|
|
9
9
|
*/
|
|
10
10
|
export declare class Surveys extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns all surveys configured in your Featurebase organization.
|
|
13
|
+
*
|
|
14
|
+
* ### Query Parameters
|
|
15
|
+
*
|
|
16
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
17
|
+
* - `cursor` - Cursor for pagination
|
|
18
|
+
* - `type` - Filter by survey page type (text, link, rating, multiple-choice)
|
|
19
|
+
* - `isActive` - Filter by active status
|
|
20
|
+
*
|
|
21
|
+
* ### Response Format
|
|
22
|
+
*
|
|
23
|
+
* Returns a list object with:
|
|
24
|
+
*
|
|
25
|
+
* - `object` - Always "list"
|
|
26
|
+
* - `data` - Array of survey objects
|
|
27
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
28
|
+
*
|
|
29
|
+
* ### Survey Object
|
|
30
|
+
*
|
|
31
|
+
* Each survey includes:
|
|
32
|
+
*
|
|
33
|
+
* - `id` - Unique identifier
|
|
34
|
+
* - `title` - Survey title
|
|
35
|
+
* - `description` - Survey description
|
|
36
|
+
* - `isActive` - Whether the survey is active
|
|
37
|
+
* - `responseCount` - Number of responses received
|
|
38
|
+
* - `targeting` - Targeting configuration (segments, URLs, CSS selectors)
|
|
39
|
+
* - `pages` - Array of survey pages/questions
|
|
40
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
41
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
42
|
+
*/
|
|
43
|
+
list(params?: SurveyListParams | null | undefined, options?: RequestOptions): PagePromise<SurveysCursorPage, Survey>;
|
|
11
44
|
/**
|
|
12
45
|
* Retrieves a single survey by its unique identifier.
|
|
13
46
|
*
|
|
@@ -42,39 +75,6 @@ export declare class Surveys extends APIResource {
|
|
|
42
75
|
* - `404` - Survey not found in your organization
|
|
43
76
|
*/
|
|
44
77
|
retrieve(id: string, params?: SurveyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Survey>;
|
|
45
|
-
/**
|
|
46
|
-
* Returns all surveys configured in your Featurebase organization.
|
|
47
|
-
*
|
|
48
|
-
* ### Query Parameters
|
|
49
|
-
*
|
|
50
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
51
|
-
* - `cursor` - Cursor for pagination
|
|
52
|
-
* - `type` - Filter by survey page type (text, link, rating, multiple-choice)
|
|
53
|
-
* - `isActive` - Filter by active status
|
|
54
|
-
*
|
|
55
|
-
* ### Response Format
|
|
56
|
-
*
|
|
57
|
-
* Returns a list object with:
|
|
58
|
-
*
|
|
59
|
-
* - `object` - Always "list"
|
|
60
|
-
* - `data` - Array of survey objects
|
|
61
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
62
|
-
*
|
|
63
|
-
* ### Survey Object
|
|
64
|
-
*
|
|
65
|
-
* Each survey includes:
|
|
66
|
-
*
|
|
67
|
-
* - `id` - Unique identifier
|
|
68
|
-
* - `title` - Survey title
|
|
69
|
-
* - `description` - Survey description
|
|
70
|
-
* - `isActive` - Whether the survey is active
|
|
71
|
-
* - `responseCount` - Number of responses received
|
|
72
|
-
* - `targeting` - Targeting configuration (segments, URLs, CSS selectors)
|
|
73
|
-
* - `pages` - Array of survey pages/questions
|
|
74
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
75
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
76
|
-
*/
|
|
77
|
-
list(params?: SurveyListParams | null | undefined, options?: RequestOptions): PagePromise<SurveysCursorPage, Survey>;
|
|
78
78
|
/**
|
|
79
79
|
* Retrieves all user responses for a specific survey.
|
|
80
80
|
*
|
|
@@ -367,13 +367,6 @@ export declare namespace SurveyListResponsesResponse {
|
|
|
367
367
|
updatedAt?: string;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
export interface SurveyRetrieveParams {
|
|
371
|
-
/**
|
|
372
|
-
* API version for this request. Defaults to your organization's configured API
|
|
373
|
-
* version if not specified.
|
|
374
|
-
*/
|
|
375
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
376
|
-
}
|
|
377
370
|
export interface SurveyListParams extends CursorPageParams {
|
|
378
371
|
/**
|
|
379
372
|
* Query param: Filter by active status
|
|
@@ -389,6 +382,13 @@ export interface SurveyListParams extends CursorPageParams {
|
|
|
389
382
|
*/
|
|
390
383
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
391
384
|
}
|
|
385
|
+
export interface SurveyRetrieveParams {
|
|
386
|
+
/**
|
|
387
|
+
* API version for this request. Defaults to your organization's configured API
|
|
388
|
+
* version if not specified.
|
|
389
|
+
*/
|
|
390
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
391
|
+
}
|
|
392
392
|
export interface SurveyListResponsesParams extends CursorPageParams {
|
|
393
393
|
/**
|
|
394
394
|
* Query param: Filter by survey page ID
|
|
@@ -401,6 +401,6 @@ export interface SurveyListResponsesParams extends CursorPageParams {
|
|
|
401
401
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
402
402
|
}
|
|
403
403
|
export declare namespace Surveys {
|
|
404
|
-
export { type Survey as Survey, type SurveyNextAction as SurveyNextAction, type SurveyListResponsesResponse as SurveyListResponsesResponse, type SurveysCursorPage as SurveysCursorPage, type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage, type
|
|
404
|
+
export { type Survey as Survey, type SurveyNextAction as SurveyNextAction, type SurveyListResponsesResponse as SurveyListResponsesResponse, type SurveysCursorPage as SurveysCursorPage, type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage, type SurveyListParams as SurveyListParams, type SurveyRetrieveParams as SurveyRetrieveParams, type SurveyListResponsesParams as SurveyListResponsesParams, };
|
|
405
405
|
}
|
|
406
406
|
//# sourceMappingURL=surveys.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surveys.d.mts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"surveys.d.mts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"AAEA,OAAO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AM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/resources/surveys.d.ts
CHANGED
|
@@ -8,6 +8,39 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
8
8
|
* Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
|
|
9
9
|
*/
|
|
10
10
|
export declare class Surveys extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns all surveys configured in your Featurebase organization.
|
|
13
|
+
*
|
|
14
|
+
* ### Query Parameters
|
|
15
|
+
*
|
|
16
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
17
|
+
* - `cursor` - Cursor for pagination
|
|
18
|
+
* - `type` - Filter by survey page type (text, link, rating, multiple-choice)
|
|
19
|
+
* - `isActive` - Filter by active status
|
|
20
|
+
*
|
|
21
|
+
* ### Response Format
|
|
22
|
+
*
|
|
23
|
+
* Returns a list object with:
|
|
24
|
+
*
|
|
25
|
+
* - `object` - Always "list"
|
|
26
|
+
* - `data` - Array of survey objects
|
|
27
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
28
|
+
*
|
|
29
|
+
* ### Survey Object
|
|
30
|
+
*
|
|
31
|
+
* Each survey includes:
|
|
32
|
+
*
|
|
33
|
+
* - `id` - Unique identifier
|
|
34
|
+
* - `title` - Survey title
|
|
35
|
+
* - `description` - Survey description
|
|
36
|
+
* - `isActive` - Whether the survey is active
|
|
37
|
+
* - `responseCount` - Number of responses received
|
|
38
|
+
* - `targeting` - Targeting configuration (segments, URLs, CSS selectors)
|
|
39
|
+
* - `pages` - Array of survey pages/questions
|
|
40
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
41
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
42
|
+
*/
|
|
43
|
+
list(params?: SurveyListParams | null | undefined, options?: RequestOptions): PagePromise<SurveysCursorPage, Survey>;
|
|
11
44
|
/**
|
|
12
45
|
* Retrieves a single survey by its unique identifier.
|
|
13
46
|
*
|
|
@@ -42,39 +75,6 @@ export declare class Surveys extends APIResource {
|
|
|
42
75
|
* - `404` - Survey not found in your organization
|
|
43
76
|
*/
|
|
44
77
|
retrieve(id: string, params?: SurveyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Survey>;
|
|
45
|
-
/**
|
|
46
|
-
* Returns all surveys configured in your Featurebase organization.
|
|
47
|
-
*
|
|
48
|
-
* ### Query Parameters
|
|
49
|
-
*
|
|
50
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
51
|
-
* - `cursor` - Cursor for pagination
|
|
52
|
-
* - `type` - Filter by survey page type (text, link, rating, multiple-choice)
|
|
53
|
-
* - `isActive` - Filter by active status
|
|
54
|
-
*
|
|
55
|
-
* ### Response Format
|
|
56
|
-
*
|
|
57
|
-
* Returns a list object with:
|
|
58
|
-
*
|
|
59
|
-
* - `object` - Always "list"
|
|
60
|
-
* - `data` - Array of survey objects
|
|
61
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
62
|
-
*
|
|
63
|
-
* ### Survey Object
|
|
64
|
-
*
|
|
65
|
-
* Each survey includes:
|
|
66
|
-
*
|
|
67
|
-
* - `id` - Unique identifier
|
|
68
|
-
* - `title` - Survey title
|
|
69
|
-
* - `description` - Survey description
|
|
70
|
-
* - `isActive` - Whether the survey is active
|
|
71
|
-
* - `responseCount` - Number of responses received
|
|
72
|
-
* - `targeting` - Targeting configuration (segments, URLs, CSS selectors)
|
|
73
|
-
* - `pages` - Array of survey pages/questions
|
|
74
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
75
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
76
|
-
*/
|
|
77
|
-
list(params?: SurveyListParams | null | undefined, options?: RequestOptions): PagePromise<SurveysCursorPage, Survey>;
|
|
78
78
|
/**
|
|
79
79
|
* Retrieves all user responses for a specific survey.
|
|
80
80
|
*
|
|
@@ -367,13 +367,6 @@ export declare namespace SurveyListResponsesResponse {
|
|
|
367
367
|
updatedAt?: string;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
export interface SurveyRetrieveParams {
|
|
371
|
-
/**
|
|
372
|
-
* API version for this request. Defaults to your organization's configured API
|
|
373
|
-
* version if not specified.
|
|
374
|
-
*/
|
|
375
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
376
|
-
}
|
|
377
370
|
export interface SurveyListParams extends CursorPageParams {
|
|
378
371
|
/**
|
|
379
372
|
* Query param: Filter by active status
|
|
@@ -389,6 +382,13 @@ export interface SurveyListParams extends CursorPageParams {
|
|
|
389
382
|
*/
|
|
390
383
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
391
384
|
}
|
|
385
|
+
export interface SurveyRetrieveParams {
|
|
386
|
+
/**
|
|
387
|
+
* API version for this request. Defaults to your organization's configured API
|
|
388
|
+
* version if not specified.
|
|
389
|
+
*/
|
|
390
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
391
|
+
}
|
|
392
392
|
export interface SurveyListResponsesParams extends CursorPageParams {
|
|
393
393
|
/**
|
|
394
394
|
* Query param: Filter by survey page ID
|
|
@@ -401,6 +401,6 @@ export interface SurveyListResponsesParams extends CursorPageParams {
|
|
|
401
401
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
402
402
|
}
|
|
403
403
|
export declare namespace Surveys {
|
|
404
|
-
export { type Survey as Survey, type SurveyNextAction as SurveyNextAction, type SurveyListResponsesResponse as SurveyListResponsesResponse, type SurveysCursorPage as SurveysCursorPage, type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage, type
|
|
404
|
+
export { type Survey as Survey, type SurveyNextAction as SurveyNextAction, type SurveyListResponsesResponse as SurveyListResponsesResponse, type SurveysCursorPage as SurveysCursorPage, type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage, type SurveyListParams as SurveyListParams, type SurveyRetrieveParams as SurveyRetrieveParams, type SurveyListResponsesParams as SurveyListResponsesParams, };
|
|
405
405
|
}
|
|
406
406
|
//# sourceMappingURL=surveys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surveys.d.ts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"surveys.d.ts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,WAAW,qCAAkC;AACzD,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,MAAM,CAAC;IAgBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,EAAE,EA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