featurebase-node 0.0.2
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 +10 -0
- package/LICENSE +201 -0
- package/README.md +356 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +274 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +274 -0
- package/client.d.ts.map +1 -0
- package/client.js +569 -0
- package/client.js.map +1 -0
- package/client.mjs +565 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +143 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/admins.d.mts +437 -0
- package/resources/admins.d.mts.map +1 -0
- package/resources/admins.d.ts +437 -0
- package/resources/admins.d.ts.map +1 -0
- package/resources/admins.js +157 -0
- package/resources/admins.js.map +1 -0
- package/resources/admins.mjs +153 -0
- package/resources/admins.mjs.map +1 -0
- package/resources/boards.d.mts +202 -0
- package/resources/boards.d.mts.map +1 -0
- package/resources/boards.d.ts +202 -0
- package/resources/boards.d.ts.map +1 -0
- package/resources/boards.js +52 -0
- package/resources/boards.js.map +1 -0
- package/resources/boards.mjs +48 -0
- package/resources/boards.mjs.map +1 -0
- package/resources/brands.d.mts +180 -0
- package/resources/brands.d.mts.map +1 -0
- package/resources/brands.d.ts +180 -0
- package/resources/brands.d.ts.map +1 -0
- package/resources/brands.js +130 -0
- package/resources/brands.js.map +1 -0
- package/resources/brands.mjs +126 -0
- package/resources/brands.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +723 -0
- package/resources/changelogs/changelogs.d.mts.map +1 -0
- package/resources/changelogs/changelogs.d.ts +723 -0
- package/resources/changelogs/changelogs.d.ts.map +1 -0
- package/resources/changelogs/changelogs.js +406 -0
- package/resources/changelogs/changelogs.js.map +1 -0
- package/resources/changelogs/changelogs.mjs +401 -0
- package/resources/changelogs/changelogs.mjs.map +1 -0
- package/resources/changelogs/index.d.mts +3 -0
- package/resources/changelogs/index.d.mts.map +1 -0
- package/resources/changelogs/index.d.ts +3 -0
- package/resources/changelogs/index.d.ts.map +1 -0
- package/resources/changelogs/index.js +9 -0
- package/resources/changelogs/index.js.map +1 -0
- package/resources/changelogs/index.mjs +4 -0
- package/resources/changelogs/index.mjs.map +1 -0
- package/resources/changelogs/subscribers.d.mts +145 -0
- package/resources/changelogs/subscribers.d.mts.map +1 -0
- package/resources/changelogs/subscribers.d.ts +145 -0
- package/resources/changelogs/subscribers.d.ts.map +1 -0
- package/resources/changelogs/subscribers.js +119 -0
- package/resources/changelogs/subscribers.js.map +1 -0
- package/resources/changelogs/subscribers.mjs +115 -0
- package/resources/changelogs/subscribers.mjs.map +1 -0
- package/resources/changelogs.d.mts +2 -0
- package/resources/changelogs.d.mts.map +1 -0
- package/resources/changelogs.d.ts +2 -0
- package/resources/changelogs.d.ts.map +1 -0
- package/resources/changelogs.js +6 -0
- package/resources/changelogs.js.map +1 -0
- package/resources/changelogs.mjs +3 -0
- package/resources/changelogs.mjs.map +1 -0
- package/resources/comments.d.mts +632 -0
- package/resources/comments.d.mts.map +1 -0
- package/resources/comments.d.ts +632 -0
- package/resources/comments.d.ts.map +1 -0
- package/resources/comments.js +397 -0
- package/resources/comments.js.map +1 -0
- package/resources/comments.mjs +393 -0
- package/resources/comments.mjs.map +1 -0
- package/resources/companies/companies.d.mts +497 -0
- package/resources/companies/companies.d.mts.map +1 -0
- package/resources/companies/companies.d.ts +497 -0
- package/resources/companies/companies.d.ts.map +1 -0
- package/resources/companies/companies.js +368 -0
- package/resources/companies/companies.js.map +1 -0
- package/resources/companies/companies.mjs +363 -0
- package/resources/companies/companies.mjs.map +1 -0
- package/resources/companies/contacts.d.mts +236 -0
- package/resources/companies/contacts.d.mts.map +1 -0
- package/resources/companies/contacts.d.ts +236 -0
- package/resources/companies/contacts.d.ts.map +1 -0
- package/resources/companies/contacts.js +218 -0
- package/resources/companies/contacts.js.map +1 -0
- package/resources/companies/contacts.mjs +214 -0
- package/resources/companies/contacts.mjs.map +1 -0
- package/resources/companies/index.d.mts +3 -0
- package/resources/companies/index.d.mts.map +1 -0
- package/resources/companies/index.d.ts +3 -0
- package/resources/companies/index.d.ts.map +1 -0
- package/resources/companies/index.js +9 -0
- package/resources/companies/index.js.map +1 -0
- package/resources/companies/index.mjs +4 -0
- package/resources/companies/index.mjs.map +1 -0
- package/resources/companies.d.mts +2 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +2 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +6 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +3 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.d.mts +147 -0
- package/resources/contacts/by-user-id/by-user-id.d.mts.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.d.ts +147 -0
- package/resources/contacts/by-user-id/by-user-id.d.ts.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.js +152 -0
- package/resources/contacts/by-user-id/by-user-id.js.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.mjs +147 -0
- package/resources/contacts/by-user-id/by-user-id.mjs.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.d.mts +199 -0
- package/resources/contacts/by-user-id/email-preferences.d.mts.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.d.ts +199 -0
- package/resources/contacts/by-user-id/email-preferences.d.ts.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.js +176 -0
- package/resources/contacts/by-user-id/email-preferences.js.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.mjs +172 -0
- package/resources/contacts/by-user-id/email-preferences.mjs.map +1 -0
- package/resources/contacts/by-user-id/index.d.mts +3 -0
- package/resources/contacts/by-user-id/index.d.mts.map +1 -0
- package/resources/contacts/by-user-id/index.d.ts +3 -0
- package/resources/contacts/by-user-id/index.d.ts.map +1 -0
- package/resources/contacts/by-user-id/index.js +9 -0
- package/resources/contacts/by-user-id/index.js.map +1 -0
- package/resources/contacts/by-user-id/index.mjs +4 -0
- package/resources/contacts/by-user-id/index.mjs.map +1 -0
- package/resources/contacts/by-user-id.d.mts +2 -0
- package/resources/contacts/by-user-id.d.mts.map +1 -0
- package/resources/contacts/by-user-id.d.ts +2 -0
- package/resources/contacts/by-user-id.d.ts.map +1 -0
- package/resources/contacts/by-user-id.js +6 -0
- package/resources/contacts/by-user-id.js.map +1 -0
- package/resources/contacts/by-user-id.mjs +3 -0
- package/resources/contacts/by-user-id.mjs.map +1 -0
- package/resources/contacts/contacts.d.mts +708 -0
- package/resources/contacts/contacts.d.mts.map +1 -0
- package/resources/contacts/contacts.d.ts +708 -0
- package/resources/contacts/contacts.d.ts.map +1 -0
- package/resources/contacts/contacts.js +444 -0
- package/resources/contacts/contacts.js.map +1 -0
- package/resources/contacts/contacts.mjs +439 -0
- package/resources/contacts/contacts.mjs.map +1 -0
- package/resources/contacts/email-preferences.d.mts +334 -0
- package/resources/contacts/email-preferences.d.mts.map +1 -0
- package/resources/contacts/email-preferences.d.ts +334 -0
- package/resources/contacts/email-preferences.d.ts.map +1 -0
- package/resources/contacts/email-preferences.js +219 -0
- package/resources/contacts/email-preferences.js.map +1 -0
- package/resources/contacts/email-preferences.mjs +215 -0
- package/resources/contacts/email-preferences.mjs.map +1 -0
- package/resources/contacts/index.d.mts +4 -0
- package/resources/contacts/index.d.mts.map +1 -0
- package/resources/contacts/index.d.ts +4 -0
- package/resources/contacts/index.d.ts.map +1 -0
- package/resources/contacts/index.js +11 -0
- package/resources/contacts/index.js.map +1 -0
- package/resources/contacts/index.mjs +5 -0
- package/resources/contacts/index.mjs.map +1 -0
- package/resources/contacts.d.mts +2 -0
- package/resources/contacts.d.mts.map +1 -0
- package/resources/contacts.d.ts +2 -0
- package/resources/contacts.d.ts.map +1 -0
- package/resources/contacts.js +6 -0
- package/resources/contacts.js.map +1 -0
- package/resources/contacts.mjs +3 -0
- package/resources/contacts.mjs.map +1 -0
- package/resources/conversations/conversations.d.mts +2235 -0
- package/resources/conversations/conversations.d.mts.map +1 -0
- package/resources/conversations/conversations.d.ts +2235 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +753 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +748 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.mts +4 -0
- package/resources/conversations/index.d.mts.map +1 -0
- package/resources/conversations/index.d.ts +4 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +11 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +5 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/participants.d.mts +217 -0
- package/resources/conversations/participants.d.mts.map +1 -0
- package/resources/conversations/participants.d.ts +217 -0
- package/resources/conversations/participants.d.ts.map +1 -0
- package/resources/conversations/participants.js +185 -0
- package/resources/conversations/participants.js.map +1 -0
- package/resources/conversations/participants.mjs +181 -0
- package/resources/conversations/participants.mjs.map +1 -0
- package/resources/conversations/tags.d.mts +200 -0
- package/resources/conversations/tags.d.mts.map +1 -0
- package/resources/conversations/tags.d.ts +200 -0
- package/resources/conversations/tags.d.ts.map +1 -0
- package/resources/conversations/tags.js +138 -0
- package/resources/conversations/tags.js.map +1 -0
- package/resources/conversations/tags.mjs +134 -0
- package/resources/conversations/tags.mjs.map +1 -0
- package/resources/conversations.d.mts +2 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +6 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +3 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/custom-fields.d.mts +189 -0
- package/resources/custom-fields.d.mts.map +1 -0
- package/resources/custom-fields.d.ts +189 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +92 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +88 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/help-center/articles.d.mts +770 -0
- package/resources/help-center/articles.d.mts.map +1 -0
- package/resources/help-center/articles.d.ts +770 -0
- package/resources/help-center/articles.d.ts.map +1 -0
- package/resources/help-center/articles.js +296 -0
- package/resources/help-center/articles.js.map +1 -0
- package/resources/help-center/articles.mjs +292 -0
- package/resources/help-center/articles.mjs.map +1 -0
- package/resources/help-center/collections.d.mts +669 -0
- package/resources/help-center/collections.d.mts.map +1 -0
- package/resources/help-center/collections.d.ts +669 -0
- package/resources/help-center/collections.d.ts.map +1 -0
- package/resources/help-center/collections.js +278 -0
- package/resources/help-center/collections.js.map +1 -0
- package/resources/help-center/collections.mjs +274 -0
- package/resources/help-center/collections.mjs.map +1 -0
- package/resources/help-center/help-center.d.mts +22 -0
- package/resources/help-center/help-center.d.mts.map +1 -0
- package/resources/help-center/help-center.d.ts +22 -0
- package/resources/help-center/help-center.d.ts.map +1 -0
- package/resources/help-center/help-center.js +29 -0
- package/resources/help-center/help-center.js.map +1 -0
- package/resources/help-center/help-center.mjs +24 -0
- package/resources/help-center/help-center.mjs.map +1 -0
- package/resources/help-center/help-centers.d.mts +312 -0
- package/resources/help-center/help-centers.d.mts.map +1 -0
- package/resources/help-center/help-centers.d.ts +312 -0
- package/resources/help-center/help-centers.d.ts.map +1 -0
- package/resources/help-center/help-centers.js +111 -0
- package/resources/help-center/help-centers.js.map +1 -0
- package/resources/help-center/help-centers.mjs +107 -0
- package/resources/help-center/help-centers.mjs.map +1 -0
- package/resources/help-center/index.d.mts +6 -0
- package/resources/help-center/index.d.mts.map +1 -0
- package/resources/help-center/index.d.ts +6 -0
- package/resources/help-center/index.d.ts.map +1 -0
- package/resources/help-center/index.js +15 -0
- package/resources/help-center/index.js.map +1 -0
- package/resources/help-center/index.mjs +7 -0
- package/resources/help-center/index.mjs.map +1 -0
- package/resources/help-center/redirect-rules.d.mts +417 -0
- package/resources/help-center/redirect-rules.d.mts.map +1 -0
- package/resources/help-center/redirect-rules.d.ts +417 -0
- package/resources/help-center/redirect-rules.d.ts.map +1 -0
- package/resources/help-center/redirect-rules.js +297 -0
- package/resources/help-center/redirect-rules.js.map +1 -0
- package/resources/help-center/redirect-rules.mjs +293 -0
- package/resources/help-center/redirect-rules.mjs.map +1 -0
- package/resources/help-center.d.mts +2 -0
- package/resources/help-center.d.mts.map +1 -0
- package/resources/help-center.d.ts +2 -0
- package/resources/help-center.d.ts.map +1 -0
- package/resources/help-center.js +6 -0
- package/resources/help-center.js.map +1 -0
- package/resources/help-center.mjs +3 -0
- package/resources/help-center.mjs.map +1 -0
- package/resources/index.d.mts +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +18 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/post-statuses.d.mts +74 -0
- package/resources/post-statuses.d.mts.map +1 -0
- package/resources/post-statuses.d.ts +74 -0
- package/resources/post-statuses.d.ts.map +1 -0
- package/resources/post-statuses.js +53 -0
- package/resources/post-statuses.js.map +1 -0
- package/resources/post-statuses.mjs +49 -0
- package/resources/post-statuses.mjs.map +1 -0
- package/resources/posts/index.d.mts +3 -0
- package/resources/posts/index.d.mts.map +1 -0
- package/resources/posts/index.d.ts +3 -0
- package/resources/posts/index.d.ts.map +1 -0
- package/resources/posts/index.js +9 -0
- package/resources/posts/index.js.map +1 -0
- package/resources/posts/index.mjs +4 -0
- package/resources/posts/index.mjs.map +1 -0
- package/resources/posts/posts.d.mts +799 -0
- package/resources/posts/posts.d.mts.map +1 -0
- package/resources/posts/posts.d.ts +799 -0
- package/resources/posts/posts.d.ts.map +1 -0
- package/resources/posts/posts.js +271 -0
- package/resources/posts/posts.js.map +1 -0
- package/resources/posts/posts.mjs +266 -0
- package/resources/posts/posts.mjs.map +1 -0
- package/resources/posts/voters.d.mts +359 -0
- package/resources/posts/voters.d.mts.map +1 -0
- package/resources/posts/voters.d.ts +359 -0
- package/resources/posts/voters.d.ts.map +1 -0
- package/resources/posts/voters.js +171 -0
- package/resources/posts/voters.js.map +1 -0
- package/resources/posts/voters.mjs +167 -0
- package/resources/posts/voters.mjs.map +1 -0
- package/resources/posts.d.mts +2 -0
- package/resources/posts.d.mts.map +1 -0
- package/resources/posts.d.ts +2 -0
- package/resources/posts.d.ts.map +1 -0
- package/resources/posts.js +6 -0
- package/resources/posts.js.map +1 -0
- package/resources/posts.mjs +3 -0
- package/resources/posts.mjs.map +1 -0
- package/resources/surveys.d.mts +451 -0
- package/resources/surveys.d.mts.map +1 -0
- package/resources/surveys.d.ts +451 -0
- package/resources/surveys.d.ts.map +1 -0
- package/resources/surveys.js +149 -0
- package/resources/surveys.js.map +1 -0
- package/resources/surveys.mjs +145 -0
- package/resources/surveys.mjs.map +1 -0
- package/resources/tags.d.mts +147 -0
- package/resources/tags.d.mts.map +1 -0
- package/resources/tags.d.ts +147 -0
- package/resources/tags.d.ts.map +1 -0
- package/resources/tags.js +100 -0
- package/resources/tags.js.map +1 -0
- package/resources/tags.mjs +96 -0
- package/resources/tags.mjs.map +1 -0
- package/resources/teams.d.mts +165 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +165 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +120 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +116 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/tickets/categories.d.mts +63 -0
- package/resources/tickets/categories.d.mts.map +1 -0
- package/resources/tickets/categories.d.ts +63 -0
- package/resources/tickets/categories.d.ts.map +1 -0
- package/resources/tickets/categories.js +67 -0
- package/resources/tickets/categories.js.map +1 -0
- package/resources/tickets/categories.mjs +63 -0
- package/resources/tickets/categories.mjs.map +1 -0
- package/resources/tickets/custom-fields.d.mts +80 -0
- package/resources/tickets/custom-fields.d.mts.map +1 -0
- package/resources/tickets/custom-fields.d.ts +80 -0
- package/resources/tickets/custom-fields.d.ts.map +1 -0
- package/resources/tickets/custom-fields.js +85 -0
- package/resources/tickets/custom-fields.js.map +1 -0
- package/resources/tickets/custom-fields.mjs +81 -0
- package/resources/tickets/custom-fields.mjs.map +1 -0
- package/resources/tickets/index.d.mts +5 -0
- package/resources/tickets/index.d.mts.map +1 -0
- package/resources/tickets/index.d.ts +5 -0
- package/resources/tickets/index.d.ts.map +1 -0
- package/resources/tickets/index.js +13 -0
- package/resources/tickets/index.js.map +1 -0
- package/resources/tickets/index.mjs +6 -0
- package/resources/tickets/index.mjs.map +1 -0
- package/resources/tickets/statuses.d.mts +59 -0
- package/resources/tickets/statuses.d.mts.map +1 -0
- package/resources/tickets/statuses.d.ts +59 -0
- package/resources/tickets/statuses.d.ts.map +1 -0
- package/resources/tickets/statuses.js +63 -0
- package/resources/tickets/statuses.js.map +1 -0
- package/resources/tickets/statuses.mjs +59 -0
- package/resources/tickets/statuses.mjs.map +1 -0
- package/resources/tickets/tickets.d.mts +794 -0
- package/resources/tickets/tickets.d.mts.map +1 -0
- package/resources/tickets/tickets.d.ts +794 -0
- package/resources/tickets/tickets.d.ts.map +1 -0
- package/resources/tickets/tickets.js +327 -0
- package/resources/tickets/tickets.js.map +1 -0
- package/resources/tickets/tickets.mjs +322 -0
- package/resources/tickets/tickets.mjs.map +1 -0
- package/resources/tickets.d.mts +2 -0
- package/resources/tickets.d.mts.map +1 -0
- package/resources/tickets.d.ts +2 -0
- package/resources/tickets.d.ts.map +1 -0
- package/resources/tickets.js +6 -0
- package/resources/tickets.js.map +1 -0
- package/resources/tickets.mjs +3 -0
- package/resources/tickets.mjs.map +1 -0
- package/resources/webhooks.d.mts +626 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +626 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +442 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +438 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1169 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/admins.ts +557 -0
- package/src/resources/boards.ts +259 -0
- package/src/resources/brands.ts +232 -0
- package/src/resources/changelogs/changelogs.ts +1139 -0
- package/src/resources/changelogs/index.ts +23 -0
- package/src/resources/changelogs/subscribers.ts +226 -0
- package/src/resources/changelogs.ts +3 -0
- package/src/resources/comments.ts +786 -0
- package/src/resources/companies/companies.ts +632 -0
- package/src/resources/companies/contacts.ts +299 -0
- package/src/resources/companies/index.ts +21 -0
- package/src/resources/companies.ts +3 -0
- package/src/resources/contacts/by-user-id/by-user-id.ts +200 -0
- package/src/resources/contacts/by-user-id/email-preferences.ts +243 -0
- package/src/resources/contacts/by-user-id/index.ts +13 -0
- package/src/resources/contacts/by-user-id.ts +3 -0
- package/src/resources/contacts/contacts.ts +908 -0
- package/src/resources/contacts/email-preferences.ts +399 -0
- package/src/resources/contacts/index.ts +32 -0
- package/src/resources/contacts.ts +3 -0
- package/src/resources/conversations/conversations.ts +2721 -0
- package/src/resources/conversations/index.ts +31 -0
- package/src/resources/conversations/participants.ts +263 -0
- package/src/resources/conversations/tags.ts +252 -0
- package/src/resources/conversations.ts +3 -0
- package/src/resources/custom-fields.ts +249 -0
- package/src/resources/help-center/articles.ts +1231 -0
- package/src/resources/help-center/collections.ts +1065 -0
- package/src/resources/help-center/help-center.ts +125 -0
- package/src/resources/help-center/help-centers.ts +558 -0
- package/src/resources/help-center/index.ts +52 -0
- package/src/resources/help-center/redirect-rules.ts +711 -0
- package/src/resources/help-center.ts +3 -0
- package/src/resources/index.ts +179 -0
- package/src/resources/post-statuses.ts +119 -0
- package/src/resources/posts/index.ts +22 -0
- package/src/resources/posts/posts.ts +1019 -0
- package/src/resources/posts/voters.ts +453 -0
- package/src/resources/posts.ts +3 -0
- package/src/resources/surveys.ts +576 -0
- package/src/resources/tags.ts +226 -0
- package/src/resources/teams.ts +213 -0
- package/src/resources/tickets/categories.ts +101 -0
- package/src/resources/tickets/custom-fields.ts +116 -0
- package/src/resources/tickets/index.ts +28 -0
- package/src/resources/tickets/statuses.ts +97 -0
- package/src/resources/tickets/tickets.ts +1019 -0
- package/src/resources/tickets.ts +3 -0
- package/src/resources/webhooks.ts +850 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,799 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as PostStatusesAPI from "../post-statuses.mjs";
|
|
3
|
+
import * as VotersAPI from "./voters.mjs";
|
|
4
|
+
import { VoterAddParams, VoterAddResponse, VoterListParams, VoterListResponse, VoterRemoveParams, VoterRemoveResponse, Voters } from "./voters.mjs";
|
|
5
|
+
import * as TicketsAPI from "../tickets/tickets.mjs";
|
|
6
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* User-submitted feedback and feature requests. Posts belong to boards and can be upvoted, commented on, and tracked through statuses.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Posts extends APIResource {
|
|
12
|
+
voters: VotersAPI.Voters;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new post (feedback submission) in the specified board.
|
|
15
|
+
*
|
|
16
|
+
* ### Required Fields
|
|
17
|
+
*
|
|
18
|
+
* - `title` - Post title (minimum 2 characters)
|
|
19
|
+
* - `boardId` - Board ID to create the post in
|
|
20
|
+
*
|
|
21
|
+
* ### Optional Fields
|
|
22
|
+
*
|
|
23
|
+
* - `content` - Post content in HTML format
|
|
24
|
+
* - `tags` - Array of tag names to attach
|
|
25
|
+
* - `statusId` - Status ID to set (defaults to board's default status)
|
|
26
|
+
* - `commentsEnabled` - Whether comments are allowed (default: true)
|
|
27
|
+
* - `inReview` - Whether post is pending moderation (default: false)
|
|
28
|
+
* - `customFields` - Custom field values as key-value pairs
|
|
29
|
+
* - `eta` - Estimated completion date (Unix timestamp or ISO date)
|
|
30
|
+
* - `assigneeId` - Admin ID to assign this post to
|
|
31
|
+
* - `visibility` - Post-level visibility restriction: 'public' (no additional
|
|
32
|
+
* restrictions), 'authorOnly' (only author and admins), or 'companyOnly' (only
|
|
33
|
+
* users in author's company). Note: even 'public' posts are still subject to
|
|
34
|
+
* board-level and organization-level access controls.
|
|
35
|
+
*
|
|
36
|
+
* ### Author Attribution
|
|
37
|
+
*
|
|
38
|
+
* For posts created on behalf of users, use the `author` object:
|
|
39
|
+
*
|
|
40
|
+
* - `id` - Featurebase user ID
|
|
41
|
+
* - `userId` - External SSO user ID
|
|
42
|
+
* - `email` - User's email address
|
|
43
|
+
* - `name` - Display name
|
|
44
|
+
* - `profilePicture` - Profile picture URL
|
|
45
|
+
*
|
|
46
|
+
* Resolution priority: `id` > `userId` > `email` > authenticated user
|
|
47
|
+
*
|
|
48
|
+
* ### Backdating (Imports)
|
|
49
|
+
*
|
|
50
|
+
* - `createdAt` - Override creation date for importing historical data
|
|
51
|
+
*
|
|
52
|
+
* ### Response
|
|
53
|
+
*
|
|
54
|
+
* Returns the created post object with all fields populated.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const post = await client.posts.create({
|
|
59
|
+
* boardId: '507f1f77bcf86cd799439011',
|
|
60
|
+
* title: 'Add dark mode support',
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
create(params: PostCreateParams, options?: RequestOptions): APIPromise<Post>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves a single post by its unique identifier.
|
|
67
|
+
*
|
|
68
|
+
* Returns the full post object including:
|
|
69
|
+
*
|
|
70
|
+
* - Author information
|
|
71
|
+
* - Current status
|
|
72
|
+
* - Tags
|
|
73
|
+
* - Voting stats
|
|
74
|
+
* - Engagement metrics
|
|
75
|
+
* - Custom field values
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const post = await client.posts.retrieve(
|
|
80
|
+
* '507f1f77bcf86cd799439011',
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
retrieve(id: string, params?: PostRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Post>;
|
|
85
|
+
/**
|
|
86
|
+
* Updates an existing post. Only provided fields will be modified.
|
|
87
|
+
*
|
|
88
|
+
* ### Updatable Fields
|
|
89
|
+
*
|
|
90
|
+
* - `title` - Post title (minimum 2 characters)
|
|
91
|
+
* - `content` - Post content in HTML format
|
|
92
|
+
* - `boardId` - Move post to a different board
|
|
93
|
+
* - `statusId` - Update post status
|
|
94
|
+
* - `tags` - Replace existing tags with new set
|
|
95
|
+
* - `commentsEnabled` - Enable/disable comments
|
|
96
|
+
* - `inReview` - Put post in/out of moderation queue
|
|
97
|
+
* - `customFields` - Update custom field values
|
|
98
|
+
* - `eta` - Set estimated completion date (null to clear)
|
|
99
|
+
* - `createdAt` - Update creation date (for backdating)
|
|
100
|
+
* - `assigneeId` - Admin ID to assign this post to (null to unassign)
|
|
101
|
+
* - `visibility` - Post-level visibility restriction: 'public' (no additional
|
|
102
|
+
* restrictions), 'authorOnly' (only author and admins), or 'companyOnly' (only
|
|
103
|
+
* users in author's company). Note: even 'public' posts are still subject to
|
|
104
|
+
* board-level and organization-level access controls.
|
|
105
|
+
* - `author` - Change post attribution (id, userId, email, name, profilePicture)
|
|
106
|
+
*
|
|
107
|
+
* ### Status Update Notifications
|
|
108
|
+
*
|
|
109
|
+
* - `sendStatusUpdateEmail` - When changing status, optionally send email
|
|
110
|
+
* notification to voters (default: false)
|
|
111
|
+
*
|
|
112
|
+
* ### Response
|
|
113
|
+
*
|
|
114
|
+
* Returns the updated post object with all fields populated.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const post = await client.posts.update(
|
|
119
|
+
* '507f1f77bcf86cd799439011',
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
update(id: string, params: PostUpdateParams, options?: RequestOptions): APIPromise<Post>;
|
|
124
|
+
/**
|
|
125
|
+
* Returns all posts (feedback submissions) for the authenticated organization.
|
|
126
|
+
*
|
|
127
|
+
* Posts are user-submitted feedback items. Each post belongs to a board and can
|
|
128
|
+
* have:
|
|
129
|
+
*
|
|
130
|
+
* - Status (in progress, complete, etc.)
|
|
131
|
+
* - Tags for categorization
|
|
132
|
+
* - Upvotes from users
|
|
133
|
+
* - Comments (if enabled)
|
|
134
|
+
* - Custom field values
|
|
135
|
+
*
|
|
136
|
+
* ### Pagination
|
|
137
|
+
*
|
|
138
|
+
* This endpoint uses **cursor-based pagination**:
|
|
139
|
+
*
|
|
140
|
+
* - `limit` - Number of posts to return (1-100, default 10)
|
|
141
|
+
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
142
|
+
*
|
|
143
|
+
* **Example:** To paginate through results:
|
|
144
|
+
*
|
|
145
|
+
* 1. First request: `GET /v2/posts?limit=10`
|
|
146
|
+
* 2. If `nextCursor` is not null, use it for the next page
|
|
147
|
+
* 3. Next request: `GET /v2/posts?limit=10&cursor={nextCursor}`
|
|
148
|
+
*
|
|
149
|
+
* ### Response Format
|
|
150
|
+
*
|
|
151
|
+
* Returns a list object with:
|
|
152
|
+
*
|
|
153
|
+
* - `object` - Always "list"
|
|
154
|
+
* - `data` - Array of post objects
|
|
155
|
+
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
156
|
+
*
|
|
157
|
+
* ### Filtering
|
|
158
|
+
*
|
|
159
|
+
* Filter posts using query parameters:
|
|
160
|
+
*
|
|
161
|
+
* - `boardId` - Filter by board (category) ID
|
|
162
|
+
* - `statusId` - Filter by status ID
|
|
163
|
+
* - `tags` - Filter by tag names (can be comma-separated or repeated)
|
|
164
|
+
* - `q` - Search query for title/content
|
|
165
|
+
* - `inReview` - Include posts pending moderation
|
|
166
|
+
*
|
|
167
|
+
* ### Sorting
|
|
168
|
+
*
|
|
169
|
+
* Use `sortBy` to sort results:
|
|
170
|
+
*
|
|
171
|
+
* - `createdAt` - Sort by creation date (default)
|
|
172
|
+
* - `upvotes` - Sort by vote count
|
|
173
|
+
* - `trending` - Sort by trending score
|
|
174
|
+
* - `recent` - Sort by most recently updated
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```ts
|
|
178
|
+
* const posts = await client.posts.list();
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
list(params?: PostListParams | null | undefined, options?: RequestOptions): APIPromise<PostListResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Permanently deletes a post. This action cannot be undone.
|
|
184
|
+
*
|
|
185
|
+
* ### What Gets Deleted
|
|
186
|
+
*
|
|
187
|
+
* When you delete a post:
|
|
188
|
+
*
|
|
189
|
+
* - The post itself is permanently removed
|
|
190
|
+
* - All comments on the post are deleted
|
|
191
|
+
* - Vote records are removed
|
|
192
|
+
* - Any associated notifications are cleared
|
|
193
|
+
*
|
|
194
|
+
* ### Response
|
|
195
|
+
*
|
|
196
|
+
* Returns a deletion confirmation object with:
|
|
197
|
+
*
|
|
198
|
+
* - `id` - The ID of the deleted post
|
|
199
|
+
* - `object` - Always "post"
|
|
200
|
+
* - `deleted` - Always true
|
|
201
|
+
*
|
|
202
|
+
* ### Permissions
|
|
203
|
+
*
|
|
204
|
+
* Requires member-level access or higher to delete posts.
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```ts
|
|
208
|
+
* const post = await client.posts.delete(
|
|
209
|
+
* '507f1f77bcf86cd799439011',
|
|
210
|
+
* );
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
delete(id: string, params?: PostDeleteParams | null | undefined, options?: RequestOptions): APIPromise<PostDeleteResponse>;
|
|
214
|
+
}
|
|
215
|
+
export interface Post {
|
|
216
|
+
/**
|
|
217
|
+
* Unique identifier
|
|
218
|
+
*/
|
|
219
|
+
id: string;
|
|
220
|
+
access: Post.Access;
|
|
221
|
+
/**
|
|
222
|
+
* ID of the admin assigned to this post, null if unassigned
|
|
223
|
+
*/
|
|
224
|
+
assigneeId: string | null;
|
|
225
|
+
author: Post.Author | null;
|
|
226
|
+
/**
|
|
227
|
+
* Board (category) ID this post belongs to
|
|
228
|
+
*/
|
|
229
|
+
boardId: string;
|
|
230
|
+
/**
|
|
231
|
+
* Total number of comments
|
|
232
|
+
*/
|
|
233
|
+
commentCount: number;
|
|
234
|
+
/**
|
|
235
|
+
* Post content in HTML format
|
|
236
|
+
*/
|
|
237
|
+
content: string;
|
|
238
|
+
/**
|
|
239
|
+
* ISO 8601 timestamp when created
|
|
240
|
+
*/
|
|
241
|
+
createdAt: string;
|
|
242
|
+
/**
|
|
243
|
+
* Custom field values keyed by field ID
|
|
244
|
+
*/
|
|
245
|
+
customFields: {
|
|
246
|
+
[key: string]: unknown;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Estimated completion time as ISO 8601 timestamp, null if not set
|
|
250
|
+
*/
|
|
251
|
+
eta: string | null;
|
|
252
|
+
features: Post.Features;
|
|
253
|
+
/**
|
|
254
|
+
* Whether the post is pending moderation review
|
|
255
|
+
*/
|
|
256
|
+
inReview: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Third-party integration links associated with this post
|
|
259
|
+
*/
|
|
260
|
+
integrations: Post.Integrations;
|
|
261
|
+
/**
|
|
262
|
+
* Whether the post is pinned to the top
|
|
263
|
+
*/
|
|
264
|
+
isPinned: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Object type identifier
|
|
267
|
+
*/
|
|
268
|
+
object: 'post';
|
|
269
|
+
/**
|
|
270
|
+
* Total opportunity amount from linked HubSpot deals and Salesforce opportunities
|
|
271
|
+
*/
|
|
272
|
+
opportunityAmount: number | null;
|
|
273
|
+
/**
|
|
274
|
+
* Full URL to view the post
|
|
275
|
+
*/
|
|
276
|
+
postUrl: string;
|
|
277
|
+
/**
|
|
278
|
+
* URL-friendly slug
|
|
279
|
+
*/
|
|
280
|
+
slug: string;
|
|
281
|
+
status: PostStatusesAPI.PostStatus;
|
|
282
|
+
/**
|
|
283
|
+
* Tags attached to this post
|
|
284
|
+
*/
|
|
285
|
+
tags: Array<Post.Tag>;
|
|
286
|
+
/**
|
|
287
|
+
* Post title
|
|
288
|
+
*/
|
|
289
|
+
title: string;
|
|
290
|
+
/**
|
|
291
|
+
* ISO 8601 timestamp when last modified
|
|
292
|
+
*/
|
|
293
|
+
updatedAt: string;
|
|
294
|
+
/**
|
|
295
|
+
* Total number of upvotes
|
|
296
|
+
*/
|
|
297
|
+
upvotes: number;
|
|
298
|
+
}
|
|
299
|
+
export declare namespace Post {
|
|
300
|
+
interface Access {
|
|
301
|
+
/**
|
|
302
|
+
* External company IDs explicitly granted access to this post. Empty array means
|
|
303
|
+
* no company-level restrictions. Non-empty means only users belonging to these
|
|
304
|
+
* companies can see the post.
|
|
305
|
+
*/
|
|
306
|
+
companyExternalIds: Array<string>;
|
|
307
|
+
/**
|
|
308
|
+
* User IDs explicitly granted access to this post. Empty array means no user-level
|
|
309
|
+
* restrictions (post uses board/org visibility). Non-empty means only these users
|
|
310
|
+
* (plus admins) can see the post.
|
|
311
|
+
*/
|
|
312
|
+
userIds: Array<string>;
|
|
313
|
+
}
|
|
314
|
+
interface Author {
|
|
315
|
+
/**
|
|
316
|
+
* Author unique identifier
|
|
317
|
+
*/
|
|
318
|
+
id: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* Author email (if available)
|
|
321
|
+
*/
|
|
322
|
+
email: string | null;
|
|
323
|
+
/**
|
|
324
|
+
* Author display name
|
|
325
|
+
*/
|
|
326
|
+
name: string;
|
|
327
|
+
/**
|
|
328
|
+
* Author profile picture URL
|
|
329
|
+
*/
|
|
330
|
+
profilePicture: string | null;
|
|
331
|
+
/**
|
|
332
|
+
* Type of user who authored the post
|
|
333
|
+
*/
|
|
334
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
335
|
+
}
|
|
336
|
+
interface Features {
|
|
337
|
+
/**
|
|
338
|
+
* Whether comments are allowed on this post
|
|
339
|
+
*/
|
|
340
|
+
commentsEnabled: boolean;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Third-party integration links associated with this post
|
|
344
|
+
*/
|
|
345
|
+
interface Integrations {
|
|
346
|
+
clickup: Array<Integrations.Clickup>;
|
|
347
|
+
devops: Array<Integrations.Devop>;
|
|
348
|
+
github: Array<Integrations.GitHub>;
|
|
349
|
+
hubspot: Array<Integrations.Hubspot>;
|
|
350
|
+
jira: Array<Integrations.Jira>;
|
|
351
|
+
linear: Array<Integrations.Linear>;
|
|
352
|
+
salesforce: Array<Integrations.Salesforce>;
|
|
353
|
+
}
|
|
354
|
+
namespace Integrations {
|
|
355
|
+
interface Clickup {
|
|
356
|
+
/**
|
|
357
|
+
* ClickUp task ID
|
|
358
|
+
*/
|
|
359
|
+
id: string;
|
|
360
|
+
/**
|
|
361
|
+
* ClickUp task title
|
|
362
|
+
*/
|
|
363
|
+
title: string;
|
|
364
|
+
/**
|
|
365
|
+
* URL to the ClickUp task
|
|
366
|
+
*/
|
|
367
|
+
url: string;
|
|
368
|
+
}
|
|
369
|
+
interface Devop {
|
|
370
|
+
/**
|
|
371
|
+
* Azure DevOps work item ID
|
|
372
|
+
*/
|
|
373
|
+
id: number;
|
|
374
|
+
/**
|
|
375
|
+
* Azure DevOps project ID
|
|
376
|
+
*/
|
|
377
|
+
projectId: string;
|
|
378
|
+
/**
|
|
379
|
+
* Azure DevOps project name
|
|
380
|
+
*/
|
|
381
|
+
projectName: string;
|
|
382
|
+
/**
|
|
383
|
+
* Work item title
|
|
384
|
+
*/
|
|
385
|
+
title: string;
|
|
386
|
+
/**
|
|
387
|
+
* URL to the work item
|
|
388
|
+
*/
|
|
389
|
+
url: string;
|
|
390
|
+
}
|
|
391
|
+
interface GitHub {
|
|
392
|
+
/**
|
|
393
|
+
* GitHub issue ID
|
|
394
|
+
*/
|
|
395
|
+
id: string;
|
|
396
|
+
/**
|
|
397
|
+
* GitHub issue number
|
|
398
|
+
*/
|
|
399
|
+
number: string;
|
|
400
|
+
/**
|
|
401
|
+
* Full repository name (owner/repo)
|
|
402
|
+
*/
|
|
403
|
+
repositoryFullName: string;
|
|
404
|
+
/**
|
|
405
|
+
* Repository name
|
|
406
|
+
*/
|
|
407
|
+
repositoryName: string;
|
|
408
|
+
/**
|
|
409
|
+
* GitHub issue title
|
|
410
|
+
*/
|
|
411
|
+
title: string;
|
|
412
|
+
/**
|
|
413
|
+
* URL to the GitHub issue
|
|
414
|
+
*/
|
|
415
|
+
url: string;
|
|
416
|
+
}
|
|
417
|
+
interface Hubspot {
|
|
418
|
+
/**
|
|
419
|
+
* Deal amount (for DEAL type)
|
|
420
|
+
*/
|
|
421
|
+
dealAmount: number | null;
|
|
422
|
+
/**
|
|
423
|
+
* Whether the deal is closed (for DEAL type)
|
|
424
|
+
*/
|
|
425
|
+
dealClosed: boolean | null;
|
|
426
|
+
/**
|
|
427
|
+
* HubSpot object ID
|
|
428
|
+
*/
|
|
429
|
+
objectId: number;
|
|
430
|
+
/**
|
|
431
|
+
* HubSpot object type
|
|
432
|
+
*/
|
|
433
|
+
type: 'TICKET' | 'DEAL' | 'CONTACT';
|
|
434
|
+
}
|
|
435
|
+
interface Jira {
|
|
436
|
+
/**
|
|
437
|
+
* Jira issue ID
|
|
438
|
+
*/
|
|
439
|
+
issueId: string;
|
|
440
|
+
/**
|
|
441
|
+
* URL to the Jira issue
|
|
442
|
+
*/
|
|
443
|
+
issueUrl: string | null;
|
|
444
|
+
}
|
|
445
|
+
interface Linear {
|
|
446
|
+
/**
|
|
447
|
+
* Linear issue ID
|
|
448
|
+
*/
|
|
449
|
+
issueId: string;
|
|
450
|
+
/**
|
|
451
|
+
* URL to the Linear issue
|
|
452
|
+
*/
|
|
453
|
+
issueUrl: string | null;
|
|
454
|
+
}
|
|
455
|
+
interface Salesforce {
|
|
456
|
+
/**
|
|
457
|
+
* Opportunity amount (for Opportunity type)
|
|
458
|
+
*/
|
|
459
|
+
amount: number | null;
|
|
460
|
+
/**
|
|
461
|
+
* Whether the opportunity is closed (for Opportunity type)
|
|
462
|
+
*/
|
|
463
|
+
isClosed: boolean | null;
|
|
464
|
+
/**
|
|
465
|
+
* Salesforce record ID
|
|
466
|
+
*/
|
|
467
|
+
objectId: string;
|
|
468
|
+
/**
|
|
469
|
+
* Salesforce object type
|
|
470
|
+
*/
|
|
471
|
+
objectType: 'Opportunity' | 'Case';
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
interface Tag {
|
|
475
|
+
/**
|
|
476
|
+
* Tag unique identifier
|
|
477
|
+
*/
|
|
478
|
+
id: string;
|
|
479
|
+
/**
|
|
480
|
+
* Tag color hex code
|
|
481
|
+
*/
|
|
482
|
+
color: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* Tag name
|
|
485
|
+
*/
|
|
486
|
+
name: string;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
export interface PostListResponse {
|
|
490
|
+
/**
|
|
491
|
+
* Array of posts
|
|
492
|
+
*/
|
|
493
|
+
data: Array<Post>;
|
|
494
|
+
/**
|
|
495
|
+
* Cursor for fetching the next page (cursor-based pagination)
|
|
496
|
+
*/
|
|
497
|
+
nextCursor: string | null;
|
|
498
|
+
/**
|
|
499
|
+
* Object type identifier
|
|
500
|
+
*/
|
|
501
|
+
object: 'list';
|
|
502
|
+
/**
|
|
503
|
+
* Pagination metadata for page-based requests
|
|
504
|
+
*/
|
|
505
|
+
pagination?: PostListResponse.Pagination;
|
|
506
|
+
}
|
|
507
|
+
export declare namespace PostListResponse {
|
|
508
|
+
/**
|
|
509
|
+
* Pagination metadata for page-based requests
|
|
510
|
+
*/
|
|
511
|
+
interface Pagination {
|
|
512
|
+
/**
|
|
513
|
+
* Items per page
|
|
514
|
+
*/
|
|
515
|
+
limit: number;
|
|
516
|
+
/**
|
|
517
|
+
* Current page number
|
|
518
|
+
*/
|
|
519
|
+
page: number;
|
|
520
|
+
/**
|
|
521
|
+
* Total number of items
|
|
522
|
+
*/
|
|
523
|
+
total: number;
|
|
524
|
+
/**
|
|
525
|
+
* Total number of pages
|
|
526
|
+
*/
|
|
527
|
+
totalPages: number;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
export interface PostDeleteResponse {
|
|
531
|
+
/**
|
|
532
|
+
* Unique identifier of the deleted post
|
|
533
|
+
*/
|
|
534
|
+
id: string;
|
|
535
|
+
/**
|
|
536
|
+
* Indicates the resource was deleted
|
|
537
|
+
*/
|
|
538
|
+
deleted: true;
|
|
539
|
+
/**
|
|
540
|
+
* Object type identifier
|
|
541
|
+
*/
|
|
542
|
+
object: 'post';
|
|
543
|
+
}
|
|
544
|
+
export interface PostCreateParams {
|
|
545
|
+
/**
|
|
546
|
+
* Body param: Board ID to create post in
|
|
547
|
+
*/
|
|
548
|
+
boardId: string;
|
|
549
|
+
/**
|
|
550
|
+
* Body param: Post title
|
|
551
|
+
*/
|
|
552
|
+
title: string;
|
|
553
|
+
/**
|
|
554
|
+
* Body param: Admin ID to assign this post to
|
|
555
|
+
*/
|
|
556
|
+
assigneeId?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Body param: Author to attribute the post to. If not provided, uses the
|
|
559
|
+
* authenticated user. Supports multiple identification methods: id (Featurebase
|
|
560
|
+
* ID), userId (external SSO ID), or email.
|
|
561
|
+
*/
|
|
562
|
+
author?: TicketsAPI.AuthorInput;
|
|
563
|
+
/**
|
|
564
|
+
* Body param: Whether comments are enabled on this post
|
|
565
|
+
*/
|
|
566
|
+
commentsEnabled?: boolean | null;
|
|
567
|
+
/**
|
|
568
|
+
* Body param: Post content (HTML)
|
|
569
|
+
*/
|
|
570
|
+
content?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Body param: Creation date (for backdating imports)
|
|
573
|
+
*/
|
|
574
|
+
createdAt?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* Body param: Custom field values. Keys must be valid ObjectIds. Values can be:
|
|
577
|
+
* string, boolean, number, ISO date string, array of strings, ObjectId string, or
|
|
578
|
+
* null.
|
|
579
|
+
*/
|
|
580
|
+
customFields?: {
|
|
581
|
+
[key: string]: Array<string> | boolean | number | string | string | null;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* Body param: Estimated completion date
|
|
585
|
+
*/
|
|
586
|
+
eta?: string | null;
|
|
587
|
+
/**
|
|
588
|
+
* Body param: Whether post is pending moderation
|
|
589
|
+
*/
|
|
590
|
+
inReview?: boolean | null;
|
|
591
|
+
/**
|
|
592
|
+
* Body param: Push the created post to third-party integrations configured on your
|
|
593
|
+
* organization. Each integration must be explicitly set to true to trigger;
|
|
594
|
+
* omitted integrations will not be pushed to.
|
|
595
|
+
*/
|
|
596
|
+
integrations?: PostCreateParams.Integrations;
|
|
597
|
+
/**
|
|
598
|
+
* Body param: Whether to send email notifications to admins when this post is
|
|
599
|
+
* created. When true, admins will receive the same email notifications as when a
|
|
600
|
+
* post is created from the dashboard. Defaults to false (no emails sent).
|
|
601
|
+
*/
|
|
602
|
+
notifyAdmins?: boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Body param: Status ID to set
|
|
605
|
+
*/
|
|
606
|
+
statusId?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Body param: Tag names to attach
|
|
609
|
+
*/
|
|
610
|
+
tags?: string | Array<string>;
|
|
611
|
+
/**
|
|
612
|
+
* Body param: Initial upvotes count. Defaults to 1 (post author is automatically
|
|
613
|
+
* added as voter). Use 0 to create a post without any votes.
|
|
614
|
+
*/
|
|
615
|
+
upvotes?: number | null;
|
|
616
|
+
/**
|
|
617
|
+
* Body param: Post visibility. 'public' = visible to all users, 'authorOnly' =
|
|
618
|
+
* only visible to the author and admins, 'companyOnly' = only visible to users in
|
|
619
|
+
* the same company as the author
|
|
620
|
+
*/
|
|
621
|
+
visibility?: 'public' | 'authorOnly' | 'companyOnly';
|
|
622
|
+
/**
|
|
623
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
624
|
+
* configured API version if not specified.
|
|
625
|
+
*/
|
|
626
|
+
'Featurebase-Version'?: string;
|
|
627
|
+
}
|
|
628
|
+
export declare namespace PostCreateParams {
|
|
629
|
+
/**
|
|
630
|
+
* Push the created post to third-party integrations configured on your
|
|
631
|
+
* organization. Each integration must be explicitly set to true to trigger;
|
|
632
|
+
* omitted integrations will not be pushed to.
|
|
633
|
+
*/
|
|
634
|
+
interface Integrations {
|
|
635
|
+
/**
|
|
636
|
+
* Push to ClickUp
|
|
637
|
+
*/
|
|
638
|
+
clickup?: boolean;
|
|
639
|
+
/**
|
|
640
|
+
* Push to Discord
|
|
641
|
+
*/
|
|
642
|
+
discord?: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* Push to GitHub
|
|
645
|
+
*/
|
|
646
|
+
github?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Push to Jira
|
|
649
|
+
*/
|
|
650
|
+
jira?: boolean;
|
|
651
|
+
/**
|
|
652
|
+
* Push to Linear
|
|
653
|
+
*/
|
|
654
|
+
linear?: boolean;
|
|
655
|
+
/**
|
|
656
|
+
* Push to Slack
|
|
657
|
+
*/
|
|
658
|
+
slack?: boolean;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
export interface PostRetrieveParams {
|
|
662
|
+
/**
|
|
663
|
+
* API version for this request. Defaults to your organization's configured API
|
|
664
|
+
* version if not specified.
|
|
665
|
+
*/
|
|
666
|
+
'Featurebase-Version'?: string;
|
|
667
|
+
}
|
|
668
|
+
export interface PostUpdateParams {
|
|
669
|
+
/**
|
|
670
|
+
* Body param: Admin ID to assign this post to (null to unassign)
|
|
671
|
+
*/
|
|
672
|
+
assigneeId?: string | null;
|
|
673
|
+
/**
|
|
674
|
+
* Body param: Author to attribute the post to. If not provided, uses the
|
|
675
|
+
* authenticated user. Supports multiple identification methods: id (Featurebase
|
|
676
|
+
* ID), userId (external SSO ID), or email.
|
|
677
|
+
*/
|
|
678
|
+
author?: TicketsAPI.AuthorInput;
|
|
679
|
+
/**
|
|
680
|
+
* Body param: Board ID to move post to
|
|
681
|
+
*/
|
|
682
|
+
boardId?: string;
|
|
683
|
+
/**
|
|
684
|
+
* Body param: Whether comments are enabled on this post
|
|
685
|
+
*/
|
|
686
|
+
commentsEnabled?: boolean | null;
|
|
687
|
+
/**
|
|
688
|
+
* Body param: Post content (HTML)
|
|
689
|
+
*/
|
|
690
|
+
content?: string;
|
|
691
|
+
/**
|
|
692
|
+
* Body param: Creation date (for backdating)
|
|
693
|
+
*/
|
|
694
|
+
createdAt?: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* Body param: Custom field values. Keys must be valid ObjectIds. Values can be:
|
|
697
|
+
* string, boolean, number, ISO date string, array of strings, ObjectId string, or
|
|
698
|
+
* null.
|
|
699
|
+
*/
|
|
700
|
+
customFields?: {
|
|
701
|
+
[key: string]: Array<string> | boolean | number | string | string | null;
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
* Body param: Estimated completion date (null to clear)
|
|
705
|
+
*/
|
|
706
|
+
eta?: string | null;
|
|
707
|
+
/**
|
|
708
|
+
* Body param: Whether post is pending moderation
|
|
709
|
+
*/
|
|
710
|
+
inReview?: boolean | null;
|
|
711
|
+
/**
|
|
712
|
+
* Body param: Whether to send status update email to voters
|
|
713
|
+
*/
|
|
714
|
+
sendStatusUpdateEmail?: boolean | null;
|
|
715
|
+
/**
|
|
716
|
+
* Body param: Status ID to set
|
|
717
|
+
*/
|
|
718
|
+
statusId?: string;
|
|
719
|
+
/**
|
|
720
|
+
* Body param: Tag names to set (replaces existing)
|
|
721
|
+
*/
|
|
722
|
+
tags?: string | Array<string>;
|
|
723
|
+
/**
|
|
724
|
+
* Body param: Post title
|
|
725
|
+
*/
|
|
726
|
+
title?: string;
|
|
727
|
+
/**
|
|
728
|
+
* Body param: Set the upvotes count directly. Use with caution as this overrides
|
|
729
|
+
* the actual vote count.
|
|
730
|
+
*/
|
|
731
|
+
upvotes?: number | null;
|
|
732
|
+
/**
|
|
733
|
+
* Body param: Post visibility. 'public' = visible to all users, 'authorOnly' =
|
|
734
|
+
* only visible to the author and admins, 'companyOnly' = only visible to users in
|
|
735
|
+
* the same company as the author
|
|
736
|
+
*/
|
|
737
|
+
visibility?: 'public' | 'authorOnly' | 'companyOnly';
|
|
738
|
+
/**
|
|
739
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
740
|
+
* configured API version if not specified.
|
|
741
|
+
*/
|
|
742
|
+
'Featurebase-Version'?: string;
|
|
743
|
+
}
|
|
744
|
+
export interface PostListParams {
|
|
745
|
+
/**
|
|
746
|
+
* Query param: Filter by board (category) ID(s)
|
|
747
|
+
*/
|
|
748
|
+
boardId?: string | Array<string>;
|
|
749
|
+
/**
|
|
750
|
+
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
751
|
+
* previous response to fetch the next page of results.
|
|
752
|
+
*/
|
|
753
|
+
cursor?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Query param: Include posts that are in review
|
|
756
|
+
*/
|
|
757
|
+
inReview?: boolean | null;
|
|
758
|
+
/**
|
|
759
|
+
* Query param: A limit on the number of posts to be returned, between 1 and 100.
|
|
760
|
+
*/
|
|
761
|
+
limit?: number;
|
|
762
|
+
/**
|
|
763
|
+
* Query param: Search query to filter posts by title/content
|
|
764
|
+
*/
|
|
765
|
+
q?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Query param: Sort order for posts
|
|
768
|
+
*/
|
|
769
|
+
sortBy?: 'createdAt' | 'upvotes' | 'trending' | 'recent';
|
|
770
|
+
/**
|
|
771
|
+
* Query param: Sort direction
|
|
772
|
+
*/
|
|
773
|
+
sortOrder?: 'asc' | 'desc';
|
|
774
|
+
/**
|
|
775
|
+
* Query param: Filter by status ID(s)
|
|
776
|
+
*/
|
|
777
|
+
statusId?: string | Array<string>;
|
|
778
|
+
/**
|
|
779
|
+
* Query param: Filter by tag names
|
|
780
|
+
*/
|
|
781
|
+
tags?: string | Array<string>;
|
|
782
|
+
/**
|
|
783
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
784
|
+
* configured API version if not specified.
|
|
785
|
+
*/
|
|
786
|
+
'Featurebase-Version'?: string;
|
|
787
|
+
}
|
|
788
|
+
export interface PostDeleteParams {
|
|
789
|
+
/**
|
|
790
|
+
* API version for this request. Defaults to your organization's configured API
|
|
791
|
+
* version if not specified.
|
|
792
|
+
*/
|
|
793
|
+
'Featurebase-Version'?: string;
|
|
794
|
+
}
|
|
795
|
+
export declare namespace Posts {
|
|
796
|
+
export { type Post as Post, type PostListResponse as PostListResponse, type PostDeleteResponse as PostDeleteResponse, type PostCreateParams as PostCreateParams, type PostRetrieveParams as PostRetrieveParams, type PostUpdateParams as PostUpdateParams, type PostListParams as PostListParams, type PostDeleteParams as PostDeleteParams, };
|
|
797
|
+
export { Voters as Voters, type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
|
|
798
|
+
}
|
|
799
|
+
//# sourceMappingURL=posts.d.mts.map
|