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,153 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Team members who manage your Featurebase organization. Admins have roles that define their permissions.
|
|
7
|
+
*/
|
|
8
|
+
export class Admins extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a single admin by their unique identifier.
|
|
11
|
+
*
|
|
12
|
+
* Returns the admin object if found and they belong to your organization.
|
|
13
|
+
*
|
|
14
|
+
* ### Response
|
|
15
|
+
*
|
|
16
|
+
* Returns an admin object with:
|
|
17
|
+
*
|
|
18
|
+
* - `id` - Unique admin identifier
|
|
19
|
+
* - `name` - Admin's display name
|
|
20
|
+
* - `email` - Admin's email address
|
|
21
|
+
* - `picture` - Profile picture URL
|
|
22
|
+
* - `roleId` - ID of the role assigned to this admin
|
|
23
|
+
*
|
|
24
|
+
* ### Errors
|
|
25
|
+
*
|
|
26
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
27
|
+
*/
|
|
28
|
+
retrieve(id, params = {}, options) {
|
|
29
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
30
|
+
return this._client.get(path `/v2/admins/${id}`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([
|
|
33
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
34
|
+
options?.headers,
|
|
35
|
+
]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns all admins for your organization.
|
|
40
|
+
*
|
|
41
|
+
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
42
|
+
* is supported.
|
|
43
|
+
*
|
|
44
|
+
* ### Response Format
|
|
45
|
+
*
|
|
46
|
+
* Returns a list object with:
|
|
47
|
+
*
|
|
48
|
+
* - `object` - Always "list"
|
|
49
|
+
* - `data` - Array of admin objects
|
|
50
|
+
* - `nextCursor` - Always null
|
|
51
|
+
*
|
|
52
|
+
* ### Admin Object
|
|
53
|
+
*
|
|
54
|
+
* Each admin includes:
|
|
55
|
+
*
|
|
56
|
+
* - `id` - Unique admin identifier
|
|
57
|
+
* - `name` - Admin's display name
|
|
58
|
+
* - `email` - Admin's email address
|
|
59
|
+
* - `picture` - Profile picture URL
|
|
60
|
+
* - `roleId` - ID of the role assigned to this admin
|
|
61
|
+
*/
|
|
62
|
+
list(params = {}, options) {
|
|
63
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
64
|
+
return this._client.get('/v2/admins', {
|
|
65
|
+
...options,
|
|
66
|
+
headers: buildHeaders([
|
|
67
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
68
|
+
options?.headers,
|
|
69
|
+
]),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns all available admin roles and their permissions.
|
|
74
|
+
*
|
|
75
|
+
* This endpoint returns all roles at once (typically a small list). No pagination
|
|
76
|
+
* is supported.
|
|
77
|
+
*
|
|
78
|
+
* ### Response Format
|
|
79
|
+
*
|
|
80
|
+
* Returns a list object with:
|
|
81
|
+
*
|
|
82
|
+
* - `object` - Always "list"
|
|
83
|
+
* - `data` - Array of admin role objects
|
|
84
|
+
* - `nextCursor` - Always null
|
|
85
|
+
*
|
|
86
|
+
* ### Admin Role Object
|
|
87
|
+
*
|
|
88
|
+
* Each role includes:
|
|
89
|
+
*
|
|
90
|
+
* - `id` - Unique role identifier
|
|
91
|
+
* - `name` - Role name (e.g., "Admin", "Viewer")
|
|
92
|
+
* - `permissions` - Object containing permission flags
|
|
93
|
+
*
|
|
94
|
+
* ### Permissions
|
|
95
|
+
*
|
|
96
|
+
* The permissions object contains boolean flags for each permission:
|
|
97
|
+
*
|
|
98
|
+
* - `view_comments_private` - Can view private comments
|
|
99
|
+
* - `manage_comments` - Can manage comments
|
|
100
|
+
* - `manage_comments_private` - Can manage private comments
|
|
101
|
+
* - `set_comment_pinned` - Can pin comments
|
|
102
|
+
* - `moderate_comments` - Can moderate comments
|
|
103
|
+
* - `set_post_category` - Can change post categories
|
|
104
|
+
* - `set_post_pinned` - Can pin posts
|
|
105
|
+
* - `set_post_eta` - Can set post ETA
|
|
106
|
+
* - `set_post_tags` - Can manage post tags
|
|
107
|
+
* - `set_post_author` - Can change post author
|
|
108
|
+
* - `set_post_status` - Can change post status
|
|
109
|
+
* - `set_post_assignee` - Can assign posts
|
|
110
|
+
* - `set_post_custom_fields` - Can edit custom fields
|
|
111
|
+
* - `post_vote_on_behalf` - Can vote on behalf of users
|
|
112
|
+
* - `post_merge` - Can merge posts
|
|
113
|
+
* - `post_import` - Can import posts
|
|
114
|
+
* - `post_export` - Can export posts
|
|
115
|
+
* - `moderate_posts` - Can moderate posts
|
|
116
|
+
* - `view_users` - Can view users
|
|
117
|
+
* - `manage_users` - Can manage users
|
|
118
|
+
* - `view_posts_private` - Can view private posts
|
|
119
|
+
* - `view_private_post_tags` - Can view private tags
|
|
120
|
+
* - `manage_changelogs` - Can manage changelogs
|
|
121
|
+
* - `manage_surveys` - Can manage surveys
|
|
122
|
+
* - `manage_branding` - Can manage branding
|
|
123
|
+
* - `manage_billing` - Can manage billing
|
|
124
|
+
* - `manage_team_members` - Can manage team members
|
|
125
|
+
* - `manage_sso` - Can manage SSO settings
|
|
126
|
+
* - `manage_api` - Can manage API settings
|
|
127
|
+
* - `manage_statuses` - Can manage statuses
|
|
128
|
+
* - `manage_boards` - Can manage boards
|
|
129
|
+
* - `manage_post_tags` - Can manage post tags
|
|
130
|
+
* - `manage_custom_fields` - Can manage custom fields
|
|
131
|
+
* - `manage_moderation_settings` - Can manage moderation
|
|
132
|
+
* - `manage_roadmap` - Can manage roadmap
|
|
133
|
+
* - `manage_user_roles` - Can manage user roles
|
|
134
|
+
* - `manage_prioritization` - Can manage prioritization
|
|
135
|
+
* - `manage_notifications` - Can manage notifications
|
|
136
|
+
* - `manage_custom_domain` - Can manage custom domain
|
|
137
|
+
* - `manage_integrations` - Can manage integrations
|
|
138
|
+
* - `use_integrations` - Can use integrations
|
|
139
|
+
* - `manage_help_center` - Can manage help center
|
|
140
|
+
* - `auto_approve_posts` - Posts auto-approved
|
|
141
|
+
*/
|
|
142
|
+
listRoles(params = {}, options) {
|
|
143
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
144
|
+
return this._client.get('/v2/admins/roles', {
|
|
145
|
+
...options,
|
|
146
|
+
headers: buildHeaders([
|
|
147
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
148
|
+
options?.headers,
|
|
149
|
+
]),
|
|
150
|
+
});
|
|
151
|
+
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H,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACH,SAAS,CACP,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Boards (post categories) organize feedback into distinct containers with their own settings.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Boards extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a single board by its unique identifier.
|
|
10
|
+
*
|
|
11
|
+
* Returns the full board object including all access controls, feature toggles,
|
|
12
|
+
* and localization settings.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, params?: BoardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Board>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns all boards (post categories) for the authenticated organization.
|
|
17
|
+
*
|
|
18
|
+
* Boards are containers for posts/feedback. Each board can have different:
|
|
19
|
+
*
|
|
20
|
+
* - Access controls (public, private, segment-restricted)
|
|
21
|
+
* - Feature toggles (comments, posting enabled)
|
|
22
|
+
* - Custom fields
|
|
23
|
+
*
|
|
24
|
+
* This endpoint returns all boards without pagination. Organizations typically
|
|
25
|
+
* have a small number of boards.
|
|
26
|
+
*/
|
|
27
|
+
list(params?: BoardListParams | null | undefined, options?: RequestOptions): APIPromise<BoardListResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface Board {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
access: Board.Access;
|
|
35
|
+
/**
|
|
36
|
+
* ISO 8601 timestamp when created
|
|
37
|
+
*/
|
|
38
|
+
createdAt: string;
|
|
39
|
+
/**
|
|
40
|
+
* Custom field IDs attached to this board
|
|
41
|
+
*/
|
|
42
|
+
customFields: Array<string>;
|
|
43
|
+
features: Board.Features;
|
|
44
|
+
/**
|
|
45
|
+
* The board's icon. Can be one of three types:
|
|
46
|
+
*
|
|
47
|
+
* - **emoji**: A single emoji character (e.g., 💡, 🚀, ⭐)
|
|
48
|
+
* - **icon**: A predefined icon from the built-in library (e.g., lightbulb, bug,
|
|
49
|
+
* star)
|
|
50
|
+
* - **url**: A custom image URL (HTTPS required)
|
|
51
|
+
*
|
|
52
|
+
* Can be `null` if no icon is set.
|
|
53
|
+
*/
|
|
54
|
+
icon: Board.EmojiIcon | Board.PredefinedIcon | Board.URLIcon | null;
|
|
55
|
+
localization: Board.Localization;
|
|
56
|
+
/**
|
|
57
|
+
* Display name in organization's default locale
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Object type identifier
|
|
62
|
+
*/
|
|
63
|
+
object: 'board';
|
|
64
|
+
postDefaults: Board.PostDefaults;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace Board {
|
|
67
|
+
interface Access {
|
|
68
|
+
/**
|
|
69
|
+
* If true, only admins can see this board
|
|
70
|
+
*/
|
|
71
|
+
adminOnly: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Role IDs allowed access (empty = all)
|
|
74
|
+
*/
|
|
75
|
+
allowedRoles: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Role IDs explicitly denied access
|
|
78
|
+
*/
|
|
79
|
+
deniedRoles: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Segment IDs that can access (empty = all)
|
|
82
|
+
*/
|
|
83
|
+
segments: Array<string>;
|
|
84
|
+
}
|
|
85
|
+
interface Features {
|
|
86
|
+
/**
|
|
87
|
+
* Whether users can comment on posts
|
|
88
|
+
*/
|
|
89
|
+
commentsEnabled: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether creation dates are visible on posts
|
|
92
|
+
*/
|
|
93
|
+
createdDatesVisible: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether users can create new posts
|
|
96
|
+
*/
|
|
97
|
+
postingEnabled: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* An emoji character as the board icon
|
|
101
|
+
*/
|
|
102
|
+
interface EmojiIcon {
|
|
103
|
+
/**
|
|
104
|
+
* Emoji icon type
|
|
105
|
+
*/
|
|
106
|
+
type: 'emoji';
|
|
107
|
+
/**
|
|
108
|
+
* A single emoji character
|
|
109
|
+
*/
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A predefined icon from the built-in icon library
|
|
114
|
+
*/
|
|
115
|
+
interface PredefinedIcon {
|
|
116
|
+
/**
|
|
117
|
+
* Predefined icon type
|
|
118
|
+
*/
|
|
119
|
+
type: 'icon';
|
|
120
|
+
/**
|
|
121
|
+
* Icon name from the predefined icon set (e.g., lightbulb, bug, star, rocket,
|
|
122
|
+
* flag, heart, check, question, megaphone, gift)
|
|
123
|
+
*/
|
|
124
|
+
value: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A custom icon loaded from an external URL
|
|
128
|
+
*/
|
|
129
|
+
interface URLIcon {
|
|
130
|
+
/**
|
|
131
|
+
* External URL icon type
|
|
132
|
+
*/
|
|
133
|
+
type: 'url';
|
|
134
|
+
/**
|
|
135
|
+
* HTTPS URL to a custom icon image (PNG, SVG, or WebP recommended)
|
|
136
|
+
*/
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
interface Localization {
|
|
140
|
+
/**
|
|
141
|
+
* Localized description
|
|
142
|
+
*/
|
|
143
|
+
description: {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
} | null;
|
|
146
|
+
/**
|
|
147
|
+
* Placeholder text in the post creation form
|
|
148
|
+
*/
|
|
149
|
+
formPlaceholder: {
|
|
150
|
+
[key: string]: string;
|
|
151
|
+
} | null;
|
|
152
|
+
/**
|
|
153
|
+
* Hero description/subtitle
|
|
154
|
+
*/
|
|
155
|
+
heroDescription: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
} | null;
|
|
158
|
+
/**
|
|
159
|
+
* Hero title shown on the board page
|
|
160
|
+
*/
|
|
161
|
+
heroTitle: {
|
|
162
|
+
[key: string]: string;
|
|
163
|
+
} | null;
|
|
164
|
+
/**
|
|
165
|
+
* Localized board name (language code → text)
|
|
166
|
+
*/
|
|
167
|
+
name: {
|
|
168
|
+
[key: string]: string;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Submit button text
|
|
172
|
+
*/
|
|
173
|
+
submitButtonText: {
|
|
174
|
+
[key: string]: string;
|
|
175
|
+
} | null;
|
|
176
|
+
}
|
|
177
|
+
interface PostDefaults {
|
|
178
|
+
/**
|
|
179
|
+
* Default visibility for new posts
|
|
180
|
+
*/
|
|
181
|
+
visibility: 'public' | 'authorOnly' | 'companyOnly';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export type BoardListResponse = Array<Board>;
|
|
185
|
+
export interface BoardRetrieveParams {
|
|
186
|
+
/**
|
|
187
|
+
* API version for this request. Defaults to your organization's configured API
|
|
188
|
+
* version if not specified.
|
|
189
|
+
*/
|
|
190
|
+
'Featurebase-Version'?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface BoardListParams {
|
|
193
|
+
/**
|
|
194
|
+
* API version for this request. Defaults to your organization's configured API
|
|
195
|
+
* version if not specified.
|
|
196
|
+
*/
|
|
197
|
+
'Featurebase-Version'?: string;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace Boards {
|
|
200
|
+
export { type Board as Board, type BoardListResponse as BoardListResponse, type BoardRetrieveParams as BoardRetrieveParams, type BoardListParams as BoardListParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=boards.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boards.d.mts","sourceRoot":"","sources":["../src/resources/boards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAWpB;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAUjC;AAED,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;IAEzB;;;;;;;;;OASG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;IAEpE,YAAY,EAAE,KAAK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M,GAAG,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;QAElD;;WAEG;QACH,SAAS,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;QAE5C;;WAEG;QACH,IAAI,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QAEhC;;WAEG;QACH,gBAAgB,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,GAAG,IAAI,CAAC;KACpD;IAED,UAAiB,YAAY;QAC3B;;WAEG;QACH,UAAU,EAAE,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;KACrD;CACF;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Boards (post categories) organize feedback into distinct containers with their own settings.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Boards extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a single board by its unique identifier.
|
|
10
|
+
*
|
|
11
|
+
* Returns the full board object including all access controls, feature toggles,
|
|
12
|
+
* and localization settings.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, params?: BoardRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Board>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns all boards (post categories) for the authenticated organization.
|
|
17
|
+
*
|
|
18
|
+
* Boards are containers for posts/feedback. Each board can have different:
|
|
19
|
+
*
|
|
20
|
+
* - Access controls (public, private, segment-restricted)
|
|
21
|
+
* - Feature toggles (comments, posting enabled)
|
|
22
|
+
* - Custom fields
|
|
23
|
+
*
|
|
24
|
+
* This endpoint returns all boards without pagination. Organizations typically
|
|
25
|
+
* have a small number of boards.
|
|
26
|
+
*/
|
|
27
|
+
list(params?: BoardListParams | null | undefined, options?: RequestOptions): APIPromise<BoardListResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface Board {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
access: Board.Access;
|
|
35
|
+
/**
|
|
36
|
+
* ISO 8601 timestamp when created
|
|
37
|
+
*/
|
|
38
|
+
createdAt: string;
|
|
39
|
+
/**
|
|
40
|
+
* Custom field IDs attached to this board
|
|
41
|
+
*/
|
|
42
|
+
customFields: Array<string>;
|
|
43
|
+
features: Board.Features;
|
|
44
|
+
/**
|
|
45
|
+
* The board's icon. Can be one of three types:
|
|
46
|
+
*
|
|
47
|
+
* - **emoji**: A single emoji character (e.g., 💡, 🚀, ⭐)
|
|
48
|
+
* - **icon**: A predefined icon from the built-in library (e.g., lightbulb, bug,
|
|
49
|
+
* star)
|
|
50
|
+
* - **url**: A custom image URL (HTTPS required)
|
|
51
|
+
*
|
|
52
|
+
* Can be `null` if no icon is set.
|
|
53
|
+
*/
|
|
54
|
+
icon: Board.EmojiIcon | Board.PredefinedIcon | Board.URLIcon | null;
|
|
55
|
+
localization: Board.Localization;
|
|
56
|
+
/**
|
|
57
|
+
* Display name in organization's default locale
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Object type identifier
|
|
62
|
+
*/
|
|
63
|
+
object: 'board';
|
|
64
|
+
postDefaults: Board.PostDefaults;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace Board {
|
|
67
|
+
interface Access {
|
|
68
|
+
/**
|
|
69
|
+
* If true, only admins can see this board
|
|
70
|
+
*/
|
|
71
|
+
adminOnly: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Role IDs allowed access (empty = all)
|
|
74
|
+
*/
|
|
75
|
+
allowedRoles: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Role IDs explicitly denied access
|
|
78
|
+
*/
|
|
79
|
+
deniedRoles: Array<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Segment IDs that can access (empty = all)
|
|
82
|
+
*/
|
|
83
|
+
segments: Array<string>;
|
|
84
|
+
}
|
|
85
|
+
interface Features {
|
|
86
|
+
/**
|
|
87
|
+
* Whether users can comment on posts
|
|
88
|
+
*/
|
|
89
|
+
commentsEnabled: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether creation dates are visible on posts
|
|
92
|
+
*/
|
|
93
|
+
createdDatesVisible: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether users can create new posts
|
|
96
|
+
*/
|
|
97
|
+
postingEnabled: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* An emoji character as the board icon
|
|
101
|
+
*/
|
|
102
|
+
interface EmojiIcon {
|
|
103
|
+
/**
|
|
104
|
+
* Emoji icon type
|
|
105
|
+
*/
|
|
106
|
+
type: 'emoji';
|
|
107
|
+
/**
|
|
108
|
+
* A single emoji character
|
|
109
|
+
*/
|
|
110
|
+
value: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* A predefined icon from the built-in icon library
|
|
114
|
+
*/
|
|
115
|
+
interface PredefinedIcon {
|
|
116
|
+
/**
|
|
117
|
+
* Predefined icon type
|
|
118
|
+
*/
|
|
119
|
+
type: 'icon';
|
|
120
|
+
/**
|
|
121
|
+
* Icon name from the predefined icon set (e.g., lightbulb, bug, star, rocket,
|
|
122
|
+
* flag, heart, check, question, megaphone, gift)
|
|
123
|
+
*/
|
|
124
|
+
value: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A custom icon loaded from an external URL
|
|
128
|
+
*/
|
|
129
|
+
interface URLIcon {
|
|
130
|
+
/**
|
|
131
|
+
* External URL icon type
|
|
132
|
+
*/
|
|
133
|
+
type: 'url';
|
|
134
|
+
/**
|
|
135
|
+
* HTTPS URL to a custom icon image (PNG, SVG, or WebP recommended)
|
|
136
|
+
*/
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
interface Localization {
|
|
140
|
+
/**
|
|
141
|
+
* Localized description
|
|
142
|
+
*/
|
|
143
|
+
description: {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
} | null;
|
|
146
|
+
/**
|
|
147
|
+
* Placeholder text in the post creation form
|
|
148
|
+
*/
|
|
149
|
+
formPlaceholder: {
|
|
150
|
+
[key: string]: string;
|
|
151
|
+
} | null;
|
|
152
|
+
/**
|
|
153
|
+
* Hero description/subtitle
|
|
154
|
+
*/
|
|
155
|
+
heroDescription: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
} | null;
|
|
158
|
+
/**
|
|
159
|
+
* Hero title shown on the board page
|
|
160
|
+
*/
|
|
161
|
+
heroTitle: {
|
|
162
|
+
[key: string]: string;
|
|
163
|
+
} | null;
|
|
164
|
+
/**
|
|
165
|
+
* Localized board name (language code → text)
|
|
166
|
+
*/
|
|
167
|
+
name: {
|
|
168
|
+
[key: string]: string;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Submit button text
|
|
172
|
+
*/
|
|
173
|
+
submitButtonText: {
|
|
174
|
+
[key: string]: string;
|
|
175
|
+
} | null;
|
|
176
|
+
}
|
|
177
|
+
interface PostDefaults {
|
|
178
|
+
/**
|
|
179
|
+
* Default visibility for new posts
|
|
180
|
+
*/
|
|
181
|
+
visibility: 'public' | 'authorOnly' | 'companyOnly';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
export type BoardListResponse = Array<Board>;
|
|
185
|
+
export interface BoardRetrieveParams {
|
|
186
|
+
/**
|
|
187
|
+
* API version for this request. Defaults to your organization's configured API
|
|
188
|
+
* version if not specified.
|
|
189
|
+
*/
|
|
190
|
+
'Featurebase-Version'?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface BoardListParams {
|
|
193
|
+
/**
|
|
194
|
+
* API version for this request. Defaults to your organization's configured API
|
|
195
|
+
* version if not specified.
|
|
196
|
+
*/
|
|
197
|
+
'Featurebase-Version'?: string;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace Boards {
|
|
200
|
+
export { type Board as Board, type BoardListResponse as BoardListResponse, type BoardRetrieveParams as BoardRetrieveParams, type BoardListParams as BoardListParams, };
|
|
201
|
+
}
|
|
202
|
+
//# sourceMappingURL=boards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boards.d.ts","sourceRoot":"","sources":["../src/resources/boards.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAWpB;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAUjC;AAED,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,MAAM,EAAE,KA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
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Boards = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Boards (post categories) organize feedback into distinct containers with their own settings.
|
|
10
|
+
*/
|
|
11
|
+
class Boards extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a single board by its unique identifier.
|
|
14
|
+
*
|
|
15
|
+
* Returns the full board object including all access controls, feature toggles,
|
|
16
|
+
* and localization settings.
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id, params = {}, options) {
|
|
19
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
20
|
+
return this._client.get((0, path_1.path) `/v2/boards/${id}`, {
|
|
21
|
+
...options,
|
|
22
|
+
headers: (0, headers_1.buildHeaders)([
|
|
23
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
24
|
+
options?.headers,
|
|
25
|
+
]),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns all boards (post categories) for the authenticated organization.
|
|
30
|
+
*
|
|
31
|
+
* Boards are containers for posts/feedback. Each board can have different:
|
|
32
|
+
*
|
|
33
|
+
* - Access controls (public, private, segment-restricted)
|
|
34
|
+
* - Feature toggles (comments, posting enabled)
|
|
35
|
+
* - Custom fields
|
|
36
|
+
*
|
|
37
|
+
* This endpoint returns all boards without pagination. Organizations typically
|
|
38
|
+
* have a small number of boards.
|
|
39
|
+
*/
|
|
40
|
+
list(params = {}, options) {
|
|
41
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
42
|
+
return this._client.get('/v2/boards', {
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([
|
|
45
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
46
|
+
options?.headers,
|
|
47
|
+
]),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Boards = Boards;
|
|
52
|
+
//# sourceMappingURL=boards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boards.js","sourceRoot":"","sources":["../src/resources/boards.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,QAAQ,CACN,EAAU,EACV,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,wBA+CC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Boards (post categories) organize feedback into distinct containers with their own settings.
|
|
7
|
+
*/
|
|
8
|
+
export class Boards extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a single board by its unique identifier.
|
|
11
|
+
*
|
|
12
|
+
* Returns the full board object including all access controls, feature toggles,
|
|
13
|
+
* and localization settings.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, params = {}, options) {
|
|
16
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
17
|
+
return this._client.get(path `/v2/boards/${id}`, {
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([
|
|
20
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
21
|
+
options?.headers,
|
|
22
|
+
]),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns all boards (post categories) for the authenticated organization.
|
|
27
|
+
*
|
|
28
|
+
* Boards are containers for posts/feedback. Each board can have different:
|
|
29
|
+
*
|
|
30
|
+
* - Access controls (public, private, segment-restricted)
|
|
31
|
+
* - Feature toggles (comments, posting enabled)
|
|
32
|
+
* - Custom fields
|
|
33
|
+
*
|
|
34
|
+
* This endpoint returns all boards without pagination. Organizations typically
|
|
35
|
+
* have a small number of boards.
|
|
36
|
+
*/
|
|
37
|
+
list(params = {}, options) {
|
|
38
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
39
|
+
return this._client.get('/v2/boards', {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([
|
|
42
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
43
|
+
options?.headers,
|
|
44
|
+
]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=boards.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boards.mjs","sourceRoot":"","sources":["../src/resources/boards.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,QAAQ,CACN,EAAU,EACV,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,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