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,794 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as PostStatusesAPI from "../post-statuses.js";
|
|
3
|
+
import * as ConversationsAPI from "../conversations/conversations.js";
|
|
4
|
+
import * as CategoriesAPI from "./categories.js";
|
|
5
|
+
import { Categories, CategoryListParams, CategoryListResponse, CategoryRetrieveParams } from "./categories.js";
|
|
6
|
+
import * as CustomFieldsAPI from "./custom-fields.js";
|
|
7
|
+
import { CustomFieldListParams, CustomFieldRetrieveParams, CustomFields } from "./custom-fields.js";
|
|
8
|
+
import * as StatusesAPI from "./statuses.js";
|
|
9
|
+
import { StatusListParams, StatusListResponse, StatusRetrieveParams, Statuses } from "./statuses.js";
|
|
10
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
11
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
12
|
+
/**
|
|
13
|
+
* Tickets represent support requests in your Featurebase organization. Create, update, reply to, and manage tickets via these endpoints.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Tickets extends APIResource {
|
|
16
|
+
customFields: CustomFieldsAPI.CustomFields;
|
|
17
|
+
categories: CategoriesAPI.Categories;
|
|
18
|
+
statuses: StatusesAPI.Statuses;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new ticket.
|
|
21
|
+
*
|
|
22
|
+
* ### Required Fields
|
|
23
|
+
*
|
|
24
|
+
* | Field | Type | Description |
|
|
25
|
+
* | ------------------ | ------ | ------------------------------------------------------------- |
|
|
26
|
+
* | `ticketCategoryId` | string | Ticket category ID |
|
|
27
|
+
* | `title` | string | Ticket title (min 2 characters) |
|
|
28
|
+
* | `author` | object | Author/contact info (id, userId, email, name, profilePicture) |
|
|
29
|
+
*
|
|
30
|
+
* ### Optional Fields
|
|
31
|
+
*
|
|
32
|
+
* | Field | Type | Description |
|
|
33
|
+
* | ---------------------- | ------- | ------------------------------------------ |
|
|
34
|
+
* | `content` | string | Ticket description (HTML) |
|
|
35
|
+
* | `customFields` | object | Custom field values |
|
|
36
|
+
* | `companyId` | string | Company to associate |
|
|
37
|
+
* | `linkedConversationId` | string | Conversation to link |
|
|
38
|
+
* | `assigneeId` | string | Admin to assign |
|
|
39
|
+
* | `statusId` | string | Initial status |
|
|
40
|
+
* | `createdAt` | string | ISO 8601 timestamp for backdating |
|
|
41
|
+
* | `skipNotifications` | boolean | Skip sending notifications (default false) |
|
|
42
|
+
*
|
|
43
|
+
* ### File Custom Fields
|
|
44
|
+
*
|
|
45
|
+
* File-type custom fields can be provided in two ways:
|
|
46
|
+
*
|
|
47
|
+
* **Method 1: Multipart upload** — Send the request as `multipart/form-data`. Put
|
|
48
|
+
* the JSON body in a field named `data`, and attach files with field names like
|
|
49
|
+
* `customFields.<fieldId>`. For `allowMultiple` fields, send multiple files with
|
|
50
|
+
* the same field name.
|
|
51
|
+
*
|
|
52
|
+
* **Method 2: External URL** — In the JSON body, set the file custom field value
|
|
53
|
+
* to `{ "url": "https://..." }`. Optionally include `"name"` to set the filename
|
|
54
|
+
* (e.g. `{ "url": "https://...", "name": "report.pdf" }`); if omitted, the
|
|
55
|
+
* filename is extracted from the download response. For `allowMultiple` fields,
|
|
56
|
+
* use an array: `[{ "url": "..." }, ...]`. The server downloads the file (max
|
|
57
|
+
* 10MB, HTTPS only) and stores it.
|
|
58
|
+
*
|
|
59
|
+
* Both methods produce signed download URLs in the response.
|
|
60
|
+
*
|
|
61
|
+
* **Limits:** Max 10 files per request, 400MB total upload size. Executable file
|
|
62
|
+
* types (.exe, .bat, .js, .sh, etc.) are blocked.
|
|
63
|
+
*
|
|
64
|
+
* **Response format:** File custom field values in the response are JSON strings
|
|
65
|
+
* containing `{ "key": "...", "name": "...", "url": "https://signed-url..." }`.
|
|
66
|
+
* For `allowMultiple` fields, an array of these objects. The `url` is a
|
|
67
|
+
* time-limited signed download URL (expires in 1 hour).
|
|
68
|
+
*
|
|
69
|
+
* ### Response
|
|
70
|
+
*
|
|
71
|
+
* Returns the created ticket object with **201 Created** status.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const ticket = await client.tickets.create({
|
|
76
|
+
* author: {},
|
|
77
|
+
* ticketCategoryId: '507f1f77bcf86cd799439011',
|
|
78
|
+
* title: 'Cannot login to dashboard',
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
create(params: TicketCreateParams, options?: RequestOptions): APIPromise<Ticket>;
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves a single ticket by its ticket number.
|
|
85
|
+
*
|
|
86
|
+
* ### Path Parameters
|
|
87
|
+
*
|
|
88
|
+
* - `id` - The ticket number (e.g. 42 from TK-42)
|
|
89
|
+
*
|
|
90
|
+
* ### Response
|
|
91
|
+
*
|
|
92
|
+
* Returns the ticket object, including `conversationParts` from the linked
|
|
93
|
+
* conversation (message history).
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const ticket = await client.tickets.retrieve(1);
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
retrieve(id: number, params?: TicketRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Ticket>;
|
|
101
|
+
/**
|
|
102
|
+
* Updates a ticket's properties. Only provided fields will be updated.
|
|
103
|
+
*
|
|
104
|
+
* ### Path Parameters
|
|
105
|
+
*
|
|
106
|
+
* - `id` - The ticket number
|
|
107
|
+
*
|
|
108
|
+
* ### Request Body
|
|
109
|
+
*
|
|
110
|
+
* All fields are optional.
|
|
111
|
+
*
|
|
112
|
+
* | Field | Type | Description |
|
|
113
|
+
* | ------------------- | ----------- | -------------------------------------------------- |
|
|
114
|
+
* | `title` | string | Update title |
|
|
115
|
+
* | `content` | string | Update description (HTML) |
|
|
116
|
+
* | `statusId` | string | Set status by ID |
|
|
117
|
+
* | `open` | boolean | Close (false) or reopen (true) the ticket |
|
|
118
|
+
* | `assigneeId` | string/null | Assign/unassign admin |
|
|
119
|
+
* | `companyId` | string/null | Update company association |
|
|
120
|
+
* | `customFields` | object | Update custom field values |
|
|
121
|
+
* | `snoozedUntil` | string/null | Snooze until ISO 8601 timestamp (null to unsnooze) |
|
|
122
|
+
* | `skipNotifications` | boolean | Skip notifications (default false) |
|
|
123
|
+
*
|
|
124
|
+
* ### Closing a Ticket
|
|
125
|
+
*
|
|
126
|
+
* Set `open: false` to close the ticket. Closing a ticket will also unsnooze it.
|
|
127
|
+
* The status is not changed automatically — use `statusId` to change the status
|
|
128
|
+
* explicitly.
|
|
129
|
+
*
|
|
130
|
+
* ### File Custom Fields
|
|
131
|
+
*
|
|
132
|
+
* File-type custom fields support the same two upload methods as ticket creation:
|
|
133
|
+
* multipart upload (`customFields.<fieldId>` file parts with JSON in the `data`
|
|
134
|
+
* field) and external URLs (`{ "url": "https://..." }` with optional `"name"` in
|
|
135
|
+
* the custom field value). Same limits apply (10 files, 400MB total, executable
|
|
136
|
+
* types blocked).
|
|
137
|
+
*
|
|
138
|
+
* ### Response
|
|
139
|
+
*
|
|
140
|
+
* Returns the updated ticket object.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const ticket = await client.tickets.update(1);
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
update(id: number, params: TicketUpdateParams, options?: RequestOptions): APIPromise<Ticket>;
|
|
148
|
+
/**
|
|
149
|
+
* Returns a list of tickets in your organization using cursor-based pagination.
|
|
150
|
+
*
|
|
151
|
+
* ### Query Parameters
|
|
152
|
+
*
|
|
153
|
+
* | Parameter | Type | Description |
|
|
154
|
+
* | ------------------- | -------- | ---------------------------------------------------------------- |
|
|
155
|
+
* | `limit` | number | Number of tickets to return (1-100, default 10) |
|
|
156
|
+
* | `cursor` | string | Cursor from previous response for pagination |
|
|
157
|
+
* | `ticketCategoryIds` | string[] | Filter by ticket category IDs |
|
|
158
|
+
* | `statusIds` | string[] | Filter by status IDs |
|
|
159
|
+
* | `q` | string | Search query |
|
|
160
|
+
* | `assigneeId` | string | Filter by assignee ID |
|
|
161
|
+
* | `categoryType` | string | Filter by category type: "customer", "tracker", or "back-office" |
|
|
162
|
+
* | `sortBy` | string | Sort field: "date" (default), "recent", or "ticketNumber" |
|
|
163
|
+
* | `sortOrder` | string | Sort direction: "asc" or "desc" (default) |
|
|
164
|
+
*
|
|
165
|
+
* ### Response
|
|
166
|
+
*
|
|
167
|
+
* Returns a list object with `data` (array of ticket objects) and `nextCursor`.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```ts
|
|
171
|
+
* const tickets = await client.tickets.list();
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
list(params?: TicketListParams | null | undefined, options?: RequestOptions): APIPromise<TicketListResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Permanently deletes a ticket by its ticket number.
|
|
177
|
+
*
|
|
178
|
+
* ### Path Parameters
|
|
179
|
+
*
|
|
180
|
+
* - `id` - The ticket number
|
|
181
|
+
*
|
|
182
|
+
* ### Response
|
|
183
|
+
*
|
|
184
|
+
* Returns a deletion confirmation:
|
|
185
|
+
*
|
|
186
|
+
* ```json
|
|
187
|
+
* {
|
|
188
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
189
|
+
* "object": "ticket",
|
|
190
|
+
* "deleted": true
|
|
191
|
+
* }
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* ### Behavior
|
|
195
|
+
*
|
|
196
|
+
* - **Customer-facing tickets**: Deletes the ticket and its linked conversation.
|
|
197
|
+
* - **Back-office / tracker tickets**: Deletes the ticket and unlinks it from the
|
|
198
|
+
* conversation (conversation is preserved).
|
|
199
|
+
*
|
|
200
|
+
* ### Caution
|
|
201
|
+
*
|
|
202
|
+
* This operation is **irreversible**.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```ts
|
|
206
|
+
* const ticket = await client.tickets.delete(1);
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
delete(id: number, params?: TicketDeleteParams | null | undefined, options?: RequestOptions): APIPromise<TicketDeleteResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* Adds a reply to a ticket's linked conversation. Supports both contact and admin
|
|
212
|
+
* replies.
|
|
213
|
+
*
|
|
214
|
+
* ### Path Parameters
|
|
215
|
+
*
|
|
216
|
+
* - `id` - The ticket number
|
|
217
|
+
*
|
|
218
|
+
* ### Contact Reply
|
|
219
|
+
*
|
|
220
|
+
* | Field | Type | Required | Description |
|
|
221
|
+
* | ------------------- | -------- | -------- | ---------------------------------------- |
|
|
222
|
+
* | `type` | string | Yes | Must be "contact" |
|
|
223
|
+
* | `contactId` | string | No\* | Featurebase contact ID |
|
|
224
|
+
* | `contactEmail` | string | No\* | Contact email |
|
|
225
|
+
* | `body` | string | Yes | Message content (HTML) |
|
|
226
|
+
* | `messageType` | string | No | Always "comment" for contacts |
|
|
227
|
+
* | `attachmentUrls` | string[] | No | Attachment URLs (max 10) |
|
|
228
|
+
* | `skipNotifications` | boolean | No | Skip notifications (default false) |
|
|
229
|
+
* | `createdAt` | string | No | ISO 8601 timestamp to backdate the reply |
|
|
230
|
+
*
|
|
231
|
+
* \*At least one of `contactId` or `contactEmail` is required.
|
|
232
|
+
*
|
|
233
|
+
* ### Admin Reply
|
|
234
|
+
*
|
|
235
|
+
* | Field | Type | Required | Description |
|
|
236
|
+
* | ------------------- | -------- | -------- | ------------------------------------------------ |
|
|
237
|
+
* | `type` | string | Yes | Must be "admin" |
|
|
238
|
+
* | `adminId` | string | Yes | ID of the admin authoring the reply |
|
|
239
|
+
* | `body` | string | Yes | Message content (HTML) |
|
|
240
|
+
* | `messageType` | string | No | "comment" (default) or "note" for internal notes |
|
|
241
|
+
* | `attachmentUrls` | string[] | No | Attachment URLs (max 10) |
|
|
242
|
+
* | `skipNotifications` | boolean | No | Skip notifications (default false) |
|
|
243
|
+
* | `createdAt` | string | No | ISO 8601 timestamp to backdate the reply |
|
|
244
|
+
*
|
|
245
|
+
* ### Response
|
|
246
|
+
*
|
|
247
|
+
* Returns a reply confirmation object.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```ts
|
|
251
|
+
* const ticket = await client.tickets.reply(1, {
|
|
252
|
+
* body: '<p>Thank you for your help!</p>',
|
|
253
|
+
* type: 'contact',
|
|
254
|
+
* });
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
reply(id: number, params: TicketReplyParams, options?: RequestOptions): APIPromise<Ticket>;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Author to attribute the post to. If not provided, uses the authenticated user.
|
|
261
|
+
* Supports multiple identification methods: id (Featurebase ID), userId (external
|
|
262
|
+
* SSO ID), or email.
|
|
263
|
+
*/
|
|
264
|
+
export interface AuthorInput {
|
|
265
|
+
/**
|
|
266
|
+
* Featurebase user ID to attribute content to
|
|
267
|
+
*/
|
|
268
|
+
id?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Author email (used to find or create user)
|
|
271
|
+
*/
|
|
272
|
+
email?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Author display name
|
|
275
|
+
*/
|
|
276
|
+
name?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Author profile picture URL
|
|
279
|
+
*/
|
|
280
|
+
profilePicture?: string;
|
|
281
|
+
/**
|
|
282
|
+
* External user ID from your system (matched via SSO)
|
|
283
|
+
*/
|
|
284
|
+
userId?: string;
|
|
285
|
+
}
|
|
286
|
+
export interface Ticket {
|
|
287
|
+
/**
|
|
288
|
+
* Unique identifier (MongoDB ID)
|
|
289
|
+
*/
|
|
290
|
+
id: string;
|
|
291
|
+
/**
|
|
292
|
+
* Assigned admin ID
|
|
293
|
+
*/
|
|
294
|
+
assigneeId: string | null;
|
|
295
|
+
/**
|
|
296
|
+
* Contact who created the ticket
|
|
297
|
+
*/
|
|
298
|
+
author: Ticket.Author | null;
|
|
299
|
+
/**
|
|
300
|
+
* Ticket category type
|
|
301
|
+
*/
|
|
302
|
+
categoryType: 'customer' | 'tracker' | 'back-office';
|
|
303
|
+
/**
|
|
304
|
+
* Associated company ID
|
|
305
|
+
*/
|
|
306
|
+
companyId: string | null;
|
|
307
|
+
/**
|
|
308
|
+
* Ticket content/description (HTML)
|
|
309
|
+
*/
|
|
310
|
+
content: string;
|
|
311
|
+
/**
|
|
312
|
+
* ISO 8601 creation timestamp
|
|
313
|
+
*/
|
|
314
|
+
createdAt: string;
|
|
315
|
+
/**
|
|
316
|
+
* Custom field values keyed by field ID. File-type fields contain a JSON string of
|
|
317
|
+
* { key, name, url } with a signed download URL (1 hour expiry). For allowMultiple
|
|
318
|
+
* file fields, the value is a JSON string of an array of these objects.
|
|
319
|
+
*/
|
|
320
|
+
customFields: {
|
|
321
|
+
[key: string]: unknown;
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Third-party integration links
|
|
325
|
+
*/
|
|
326
|
+
integrations: Ticket.Integrations;
|
|
327
|
+
/**
|
|
328
|
+
* Linked conversations
|
|
329
|
+
*/
|
|
330
|
+
linkedConversations: Array<Ticket.LinkedConversation>;
|
|
331
|
+
/**
|
|
332
|
+
* Object type identifier
|
|
333
|
+
*/
|
|
334
|
+
object: 'ticket';
|
|
335
|
+
/**
|
|
336
|
+
* Whether the ticket is open
|
|
337
|
+
*/
|
|
338
|
+
open: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* ISO 8601 timestamp until snoozed (from linked conversation)
|
|
341
|
+
*/
|
|
342
|
+
snoozedUntil: string | null;
|
|
343
|
+
/**
|
|
344
|
+
* Current ticket status
|
|
345
|
+
*/
|
|
346
|
+
status: PostStatusesAPI.PostStatus;
|
|
347
|
+
/**
|
|
348
|
+
* Assigned team ID (from linked conversation)
|
|
349
|
+
*/
|
|
350
|
+
teamAssigneeId: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Ticket category ID
|
|
353
|
+
*/
|
|
354
|
+
ticketCategoryId: string;
|
|
355
|
+
/**
|
|
356
|
+
* Sequential display ID (e.g. TK-42)
|
|
357
|
+
*/
|
|
358
|
+
ticketNumber: number;
|
|
359
|
+
/**
|
|
360
|
+
* Full URL to view the ticket
|
|
361
|
+
*/
|
|
362
|
+
ticketUrl: string;
|
|
363
|
+
/**
|
|
364
|
+
* Ticket title
|
|
365
|
+
*/
|
|
366
|
+
title: string;
|
|
367
|
+
/**
|
|
368
|
+
* ISO 8601 last updated timestamp
|
|
369
|
+
*/
|
|
370
|
+
updatedAt: string;
|
|
371
|
+
/**
|
|
372
|
+
* Conversation message history. Only included when fetching a single ticket by ID.
|
|
373
|
+
*/
|
|
374
|
+
conversationParts?: Array<ConversationsAPI.ConversationPart>;
|
|
375
|
+
}
|
|
376
|
+
export declare namespace Ticket {
|
|
377
|
+
/**
|
|
378
|
+
* Contact who created the ticket
|
|
379
|
+
*/
|
|
380
|
+
interface Author {
|
|
381
|
+
/**
|
|
382
|
+
* Author unique identifier
|
|
383
|
+
*/
|
|
384
|
+
id: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* Author email
|
|
387
|
+
*/
|
|
388
|
+
email: string | null;
|
|
389
|
+
/**
|
|
390
|
+
* Author display name
|
|
391
|
+
*/
|
|
392
|
+
name: string;
|
|
393
|
+
/**
|
|
394
|
+
* Author profile picture URL
|
|
395
|
+
*/
|
|
396
|
+
profilePicture: string | null;
|
|
397
|
+
/**
|
|
398
|
+
* Type of user
|
|
399
|
+
*/
|
|
400
|
+
type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Third-party integration links
|
|
404
|
+
*/
|
|
405
|
+
interface Integrations {
|
|
406
|
+
clickup: Array<Integrations.Clickup>;
|
|
407
|
+
devops: Array<Integrations.Devop>;
|
|
408
|
+
github: Array<Integrations.GitHub>;
|
|
409
|
+
hubspot: Array<Integrations.Hubspot>;
|
|
410
|
+
jira: Array<Integrations.Jira>;
|
|
411
|
+
linear: Array<Integrations.Linear>;
|
|
412
|
+
}
|
|
413
|
+
namespace Integrations {
|
|
414
|
+
interface Clickup {
|
|
415
|
+
/**
|
|
416
|
+
* ClickUp task ID
|
|
417
|
+
*/
|
|
418
|
+
id: string;
|
|
419
|
+
/**
|
|
420
|
+
* ClickUp task title
|
|
421
|
+
*/
|
|
422
|
+
title: string;
|
|
423
|
+
/**
|
|
424
|
+
* URL to the ClickUp task
|
|
425
|
+
*/
|
|
426
|
+
url: string;
|
|
427
|
+
}
|
|
428
|
+
interface Devop {
|
|
429
|
+
/**
|
|
430
|
+
* Azure DevOps work item ID
|
|
431
|
+
*/
|
|
432
|
+
id: number;
|
|
433
|
+
/**
|
|
434
|
+
* Azure DevOps project ID
|
|
435
|
+
*/
|
|
436
|
+
projectId: string;
|
|
437
|
+
/**
|
|
438
|
+
* Azure DevOps project name
|
|
439
|
+
*/
|
|
440
|
+
projectName: string;
|
|
441
|
+
/**
|
|
442
|
+
* Work item title
|
|
443
|
+
*/
|
|
444
|
+
title: string;
|
|
445
|
+
/**
|
|
446
|
+
* URL to the work item
|
|
447
|
+
*/
|
|
448
|
+
url: string;
|
|
449
|
+
}
|
|
450
|
+
interface GitHub {
|
|
451
|
+
/**
|
|
452
|
+
* GitHub issue ID
|
|
453
|
+
*/
|
|
454
|
+
id: string;
|
|
455
|
+
/**
|
|
456
|
+
* GitHub issue number
|
|
457
|
+
*/
|
|
458
|
+
number: string;
|
|
459
|
+
/**
|
|
460
|
+
* Full repository name (owner/repo)
|
|
461
|
+
*/
|
|
462
|
+
repositoryFullName: string;
|
|
463
|
+
/**
|
|
464
|
+
* Repository name
|
|
465
|
+
*/
|
|
466
|
+
repositoryName: string;
|
|
467
|
+
/**
|
|
468
|
+
* GitHub issue title
|
|
469
|
+
*/
|
|
470
|
+
title: string;
|
|
471
|
+
/**
|
|
472
|
+
* URL to the GitHub issue
|
|
473
|
+
*/
|
|
474
|
+
url: string;
|
|
475
|
+
}
|
|
476
|
+
interface Hubspot {
|
|
477
|
+
/**
|
|
478
|
+
* Deal amount (for DEAL type)
|
|
479
|
+
*/
|
|
480
|
+
dealAmount: number | null;
|
|
481
|
+
/**
|
|
482
|
+
* Whether the deal is closed (for DEAL type)
|
|
483
|
+
*/
|
|
484
|
+
dealClosed: boolean | null;
|
|
485
|
+
/**
|
|
486
|
+
* HubSpot object ID
|
|
487
|
+
*/
|
|
488
|
+
objectId: number;
|
|
489
|
+
/**
|
|
490
|
+
* HubSpot object type
|
|
491
|
+
*/
|
|
492
|
+
type: 'TICKET' | 'DEAL' | 'CONTACT';
|
|
493
|
+
}
|
|
494
|
+
interface Jira {
|
|
495
|
+
/**
|
|
496
|
+
* Jira issue ID
|
|
497
|
+
*/
|
|
498
|
+
issueId: string;
|
|
499
|
+
/**
|
|
500
|
+
* URL to the Jira issue
|
|
501
|
+
*/
|
|
502
|
+
issueUrl: string | null;
|
|
503
|
+
}
|
|
504
|
+
interface Linear {
|
|
505
|
+
/**
|
|
506
|
+
* Linear issue ID
|
|
507
|
+
*/
|
|
508
|
+
issueId: string;
|
|
509
|
+
/**
|
|
510
|
+
* URL to the Linear issue
|
|
511
|
+
*/
|
|
512
|
+
issueUrl: string | null;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
interface LinkedConversation {
|
|
516
|
+
/**
|
|
517
|
+
* Conversation ID
|
|
518
|
+
*/
|
|
519
|
+
id: string;
|
|
520
|
+
/**
|
|
521
|
+
* Link role
|
|
522
|
+
*/
|
|
523
|
+
role: 'customer' | 'tracker' | 'back-office';
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
export interface TicketListResponse {
|
|
527
|
+
/**
|
|
528
|
+
* Array of tickets
|
|
529
|
+
*/
|
|
530
|
+
data: Array<Ticket>;
|
|
531
|
+
/**
|
|
532
|
+
* Cursor for fetching the next page
|
|
533
|
+
*/
|
|
534
|
+
nextCursor: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* Object type identifier
|
|
537
|
+
*/
|
|
538
|
+
object: 'list';
|
|
539
|
+
}
|
|
540
|
+
export interface TicketDeleteResponse {
|
|
541
|
+
/**
|
|
542
|
+
* Unique identifier of the deleted ticket
|
|
543
|
+
*/
|
|
544
|
+
id: string;
|
|
545
|
+
/**
|
|
546
|
+
* Indicates the resource was deleted
|
|
547
|
+
*/
|
|
548
|
+
deleted: true;
|
|
549
|
+
/**
|
|
550
|
+
* Object type identifier
|
|
551
|
+
*/
|
|
552
|
+
object: 'ticket';
|
|
553
|
+
}
|
|
554
|
+
export interface TicketCreateParams {
|
|
555
|
+
/**
|
|
556
|
+
* Body param: Author to attribute the post to. If not provided, uses the
|
|
557
|
+
* authenticated user. Supports multiple identification methods: id (Featurebase
|
|
558
|
+
* ID), userId (external SSO ID), or email.
|
|
559
|
+
*/
|
|
560
|
+
author: AuthorInput;
|
|
561
|
+
/**
|
|
562
|
+
* Body param
|
|
563
|
+
*/
|
|
564
|
+
ticketCategoryId: string;
|
|
565
|
+
/**
|
|
566
|
+
* Body param
|
|
567
|
+
*/
|
|
568
|
+
title: string;
|
|
569
|
+
/**
|
|
570
|
+
* Body param
|
|
571
|
+
*/
|
|
572
|
+
assigneeId?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Body param
|
|
575
|
+
*/
|
|
576
|
+
companyId?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Body param
|
|
579
|
+
*/
|
|
580
|
+
content?: string;
|
|
581
|
+
/**
|
|
582
|
+
* Body param
|
|
583
|
+
*/
|
|
584
|
+
createdAt?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* Body param
|
|
587
|
+
*/
|
|
588
|
+
customFields?: {
|
|
589
|
+
[key: string]: unknown;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Body param
|
|
593
|
+
*/
|
|
594
|
+
linkedConversationId?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Body param
|
|
597
|
+
*/
|
|
598
|
+
skipNotifications?: boolean;
|
|
599
|
+
/**
|
|
600
|
+
* Body param
|
|
601
|
+
*/
|
|
602
|
+
statusId?: string;
|
|
603
|
+
/**
|
|
604
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
605
|
+
* configured API version if not specified.
|
|
606
|
+
*/
|
|
607
|
+
'Featurebase-Version'?: string;
|
|
608
|
+
}
|
|
609
|
+
export interface TicketRetrieveParams {
|
|
610
|
+
/**
|
|
611
|
+
* API version for this request. Defaults to your organization's configured API
|
|
612
|
+
* version if not specified.
|
|
613
|
+
*/
|
|
614
|
+
'Featurebase-Version'?: string;
|
|
615
|
+
}
|
|
616
|
+
export interface TicketUpdateParams {
|
|
617
|
+
/**
|
|
618
|
+
* Body param
|
|
619
|
+
*/
|
|
620
|
+
assigneeId?: string | null;
|
|
621
|
+
/**
|
|
622
|
+
* Body param
|
|
623
|
+
*/
|
|
624
|
+
companyId?: string | null;
|
|
625
|
+
/**
|
|
626
|
+
* Body param
|
|
627
|
+
*/
|
|
628
|
+
content?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Body param
|
|
631
|
+
*/
|
|
632
|
+
customFields?: {
|
|
633
|
+
[key: string]: unknown;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Body param
|
|
637
|
+
*/
|
|
638
|
+
open?: boolean;
|
|
639
|
+
/**
|
|
640
|
+
* Body param
|
|
641
|
+
*/
|
|
642
|
+
skipNotifications?: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* Body param
|
|
645
|
+
*/
|
|
646
|
+
snoozedUntil?: string | null;
|
|
647
|
+
/**
|
|
648
|
+
* Body param
|
|
649
|
+
*/
|
|
650
|
+
statusId?: string;
|
|
651
|
+
/**
|
|
652
|
+
* Body param
|
|
653
|
+
*/
|
|
654
|
+
title?: string;
|
|
655
|
+
/**
|
|
656
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
657
|
+
* configured API version if not specified.
|
|
658
|
+
*/
|
|
659
|
+
'Featurebase-Version'?: string;
|
|
660
|
+
}
|
|
661
|
+
export interface TicketListParams {
|
|
662
|
+
/**
|
|
663
|
+
* Query param
|
|
664
|
+
*/
|
|
665
|
+
assigneeId?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Query param
|
|
668
|
+
*/
|
|
669
|
+
categoryType?: 'customer' | 'tracker' | 'back-office';
|
|
670
|
+
/**
|
|
671
|
+
* Query param
|
|
672
|
+
*/
|
|
673
|
+
cursor?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Query param
|
|
676
|
+
*/
|
|
677
|
+
limit?: number;
|
|
678
|
+
/**
|
|
679
|
+
* Query param
|
|
680
|
+
*/
|
|
681
|
+
q?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Query param
|
|
684
|
+
*/
|
|
685
|
+
sortBy?: 'date' | 'recent' | 'ticketNumber';
|
|
686
|
+
/**
|
|
687
|
+
* Query param
|
|
688
|
+
*/
|
|
689
|
+
sortOrder?: 'asc' | 'desc';
|
|
690
|
+
/**
|
|
691
|
+
* Query param
|
|
692
|
+
*/
|
|
693
|
+
statusIds?: Array<string>;
|
|
694
|
+
/**
|
|
695
|
+
* Query param
|
|
696
|
+
*/
|
|
697
|
+
ticketCategoryIds?: Array<string>;
|
|
698
|
+
/**
|
|
699
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
700
|
+
* configured API version if not specified.
|
|
701
|
+
*/
|
|
702
|
+
'Featurebase-Version'?: string;
|
|
703
|
+
}
|
|
704
|
+
export interface TicketDeleteParams {
|
|
705
|
+
/**
|
|
706
|
+
* API version for this request. Defaults to your organization's configured API
|
|
707
|
+
* version if not specified.
|
|
708
|
+
*/
|
|
709
|
+
'Featurebase-Version'?: string;
|
|
710
|
+
}
|
|
711
|
+
export type TicketReplyParams = TicketReplyParams.Variant0 | TicketReplyParams.Variant1;
|
|
712
|
+
export declare namespace TicketReplyParams {
|
|
713
|
+
interface Variant0 {
|
|
714
|
+
/**
|
|
715
|
+
* Body param
|
|
716
|
+
*/
|
|
717
|
+
body: string;
|
|
718
|
+
/**
|
|
719
|
+
* Body param
|
|
720
|
+
*/
|
|
721
|
+
type: 'contact';
|
|
722
|
+
/**
|
|
723
|
+
* Body param
|
|
724
|
+
*/
|
|
725
|
+
attachmentUrls?: Array<string>;
|
|
726
|
+
/**
|
|
727
|
+
* Body param
|
|
728
|
+
*/
|
|
729
|
+
contactEmail?: string;
|
|
730
|
+
/**
|
|
731
|
+
* Body param
|
|
732
|
+
*/
|
|
733
|
+
contactId?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Body param
|
|
736
|
+
*/
|
|
737
|
+
createdAt?: string | null;
|
|
738
|
+
/**
|
|
739
|
+
* Body param
|
|
740
|
+
*/
|
|
741
|
+
messageType?: 'comment';
|
|
742
|
+
/**
|
|
743
|
+
* Body param
|
|
744
|
+
*/
|
|
745
|
+
skipNotifications?: boolean;
|
|
746
|
+
/**
|
|
747
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
748
|
+
* configured API version if not specified.
|
|
749
|
+
*/
|
|
750
|
+
'Featurebase-Version'?: string;
|
|
751
|
+
}
|
|
752
|
+
interface Variant1 {
|
|
753
|
+
/**
|
|
754
|
+
* Body param
|
|
755
|
+
*/
|
|
756
|
+
adminId: string;
|
|
757
|
+
/**
|
|
758
|
+
* Body param
|
|
759
|
+
*/
|
|
760
|
+
body: string;
|
|
761
|
+
/**
|
|
762
|
+
* Body param
|
|
763
|
+
*/
|
|
764
|
+
type: 'admin';
|
|
765
|
+
/**
|
|
766
|
+
* Body param
|
|
767
|
+
*/
|
|
768
|
+
attachmentUrls?: Array<string>;
|
|
769
|
+
/**
|
|
770
|
+
* Body param
|
|
771
|
+
*/
|
|
772
|
+
createdAt?: string | null;
|
|
773
|
+
/**
|
|
774
|
+
* Body param
|
|
775
|
+
*/
|
|
776
|
+
messageType?: 'comment' | 'note';
|
|
777
|
+
/**
|
|
778
|
+
* Body param
|
|
779
|
+
*/
|
|
780
|
+
skipNotifications?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
783
|
+
* configured API version if not specified.
|
|
784
|
+
*/
|
|
785
|
+
'Featurebase-Version'?: string;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
export declare namespace Tickets {
|
|
789
|
+
export { type AuthorInput as AuthorInput, type Ticket as Ticket, type TicketListResponse as TicketListResponse, type TicketDeleteResponse as TicketDeleteResponse, type TicketCreateParams as TicketCreateParams, type TicketRetrieveParams as TicketRetrieveParams, type TicketUpdateParams as TicketUpdateParams, type TicketListParams as TicketListParams, type TicketDeleteParams as TicketDeleteParams, type TicketReplyParams as TicketReplyParams, };
|
|
790
|
+
export { CustomFields as CustomFields, type CustomFieldRetrieveParams as CustomFieldRetrieveParams, type CustomFieldListParams as CustomFieldListParams, };
|
|
791
|
+
export { Categories as Categories, type CategoryListResponse as CategoryListResponse, type CategoryRetrieveParams as CategoryRetrieveParams, type CategoryListParams as CategoryListParams, };
|
|
792
|
+
export { Statuses as Statuses, type StatusListResponse as StatusListResponse, type StatusRetrieveParams as StatusRetrieveParams, type StatusListParams as StatusListParams, };
|
|
793
|
+
}
|
|
794
|
+
//# sourceMappingURL=tickets.d.ts.map
|