featurebase-node 0.14.2 → 0.14.3

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/resources/feedback/feedback.d.mts +2 -2
  4. package/resources/feedback/feedback.d.mts.map +1 -1
  5. package/resources/feedback/feedback.d.ts +2 -2
  6. package/resources/feedback/feedback.d.ts.map +1 -1
  7. package/resources/feedback/feedback.js.map +1 -1
  8. package/resources/feedback/feedback.mjs.map +1 -1
  9. package/resources/feedback/index.d.mts +1 -1
  10. package/resources/feedback/index.d.mts.map +1 -1
  11. package/resources/feedback/index.d.ts +1 -1
  12. package/resources/feedback/index.d.ts.map +1 -1
  13. package/resources/feedback/index.js.map +1 -1
  14. package/resources/feedback/index.mjs.map +1 -1
  15. package/resources/feedback/posts/index.d.mts +1 -1
  16. package/resources/feedback/posts/index.d.mts.map +1 -1
  17. package/resources/feedback/posts/index.d.ts +1 -1
  18. package/resources/feedback/posts/index.d.ts.map +1 -1
  19. package/resources/feedback/posts/index.js.map +1 -1
  20. package/resources/feedback/posts/index.mjs.map +1 -1
  21. package/resources/feedback/posts/posts.d.mts +68 -1
  22. package/resources/feedback/posts/posts.d.mts.map +1 -1
  23. package/resources/feedback/posts/posts.d.ts +68 -1
  24. package/resources/feedback/posts/posts.d.ts.map +1 -1
  25. package/resources/feedback/posts/posts.js +69 -0
  26. package/resources/feedback/posts/posts.js.map +1 -1
  27. package/resources/feedback/posts/posts.mjs +69 -0
  28. package/resources/feedback/posts/posts.mjs.map +1 -1
  29. package/resources/reports.d.mts +138 -5
  30. package/resources/reports.d.mts.map +1 -1
  31. package/resources/reports.d.ts +138 -5
  32. package/resources/reports.d.ts.map +1 -1
  33. package/resources/reports.js +27 -2
  34. package/resources/reports.js.map +1 -1
  35. package/resources/reports.mjs +27 -2
  36. package/resources/reports.mjs.map +1 -1
  37. package/resources/support/conversations/conversations.d.mts +60 -19
  38. package/resources/support/conversations/conversations.d.mts.map +1 -1
  39. package/resources/support/conversations/conversations.d.ts +60 -19
  40. package/resources/support/conversations/conversations.d.ts.map +1 -1
  41. package/resources/support/conversations/conversations.js +47 -12
  42. package/resources/support/conversations/conversations.js.map +1 -1
  43. package/resources/support/conversations/conversations.mjs +47 -12
  44. package/resources/support/conversations/conversations.mjs.map +1 -1
  45. package/src/resources/feedback/feedback.ts +4 -0
  46. package/src/resources/feedback/index.ts +2 -0
  47. package/src/resources/feedback/posts/index.ts +2 -0
  48. package/src/resources/feedback/posts/posts.ts +104 -0
  49. package/src/resources/reports.ts +177 -4
  50. package/src/resources/support/conversations/conversations.ts +60 -19
  51. package/src/version.ts +1 -1
  52. package/version.d.mts +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. package/version.mjs +1 -1
@@ -984,18 +984,53 @@ export class Conversations extends APIResource {
984
984
  * `participant_id`, `company_id`, `created_at`) are still accepted for back-compat
985
985
  * but are deprecated — please migrate to camelCase in new code.
986
986
  *
987
- * | Field | Type | Operators |
988
- * | -------------------------- | --------------------------------------------------------------------------- | ---------------------- |
989
- * | `state` | enum (`open` / `closed` / `snoozed`) | `=`, `!=`, `IN`, `NIN` |
990
- * | `priority` | boolean | `=`, `!=` |
991
- * | `adminAssigneeId` | id or null (unassigned) | `=`, `!=`, `IN`, `NIN` |
992
- * | `teamAssigneeId` | id or null (unassigned) | `=`, `!=`, `IN`, `NIN` |
993
- * | `brandId` | id or null | `=`, `!=`, `IN`, `NIN` |
994
- * | `tagIds` | id (matches any conversation containing this tag) | `=`, `!=`, `IN`, `NIN` |
995
- * | `userId` / `participantId` | id of a conversation participant | `=`, `!=`, `IN`, `NIN` |
996
- * | `companyId` | company id (matches conversations whose participants belong to the company) | `=`, `!=`, `IN`, `NIN` |
997
- * | `mentionedAdminIds` | admin id | `=`, `!=`, `IN`, `NIN` |
998
- * | `createdAt` | unix seconds | `=`, `>`, `<` |
987
+ * | Field | Type | Operators |
988
+ * | -------------------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
989
+ * | `state` | enum (`open` / `closed` / `snoozed`) | `=`, `!=`, `IN`, `NIN` |
990
+ * | `priority` | boolean | `=`, `!=` |
991
+ * | `adminAssigneeId` | id or null (unassigned) | `=`, `!=`, `IN`, `NIN` |
992
+ * | `teamAssigneeId` | id or null (unassigned) | `=`, `!=`, `IN`, `NIN` |
993
+ * | `brandId` | id or null | `=`, `!=`, `IN`, `NIN` |
994
+ * | `tagIds` | id (matches any conversation containing this tag) | `=`, `!=`, `IN`, `NIN` |
995
+ * | `userId` / `participantId` | id of a conversation participant | `=`, `!=`, `IN`, `NIN` |
996
+ * | `companyId` | company id (matches conversations whose participants belong to the company) | `=`, `!=`, `IN`, `NIN` |
997
+ * | `mentionedAdminIds` | admin id | `=`, `!=`, `IN`, `NIN` |
998
+ * | `createdAt` | unix seconds | `=`, `>`, `<` |
999
+ * | `customAttributes.<attributeId>` | conversation custom attribute (see below) | `=`, `!=`, `IN`, `NIN`; plus `>`, `<`, `>=`, `<=` for `number` / `date` |
1000
+ *
1001
+ * ### Filtering by custom attributes
1002
+ *
1003
+ * Any non-archived conversation custom attribute can be used as a filter field via
1004
+ * `customAttributes.<attributeId>`, where `<attributeId>` is the attribute's `id`
1005
+ * from `GET /v2/conversation_attributes`. The accepted value shape follows the
1006
+ * attribute's `fieldSubType`:
1007
+ *
1008
+ * - `select` / `multi-select` — pass an option **label** (e.g.
1009
+ * `"Product question"`) or an option **id**; both are matched interchangeably,
1010
+ * and id-based filters keep working after options are renamed
1011
+ * - `text` — string
1012
+ * - `number` — number; range operators (`>`, `<`, `>=`, `<=`) are supported
1013
+ * - `date` — ISO 8601 string or unix seconds; range operators are supported
1014
+ * - `checkbox` — boolean
1015
+ *
1016
+ * Example — all conversations where the "Issue type" select attribute is "Product
1017
+ * question":
1018
+ *
1019
+ * ```json
1020
+ * {
1021
+ * "query": {
1022
+ * "field": "customAttributes.6863d3fca1234b0d5e15c86c",
1023
+ * "operator": "=",
1024
+ * "value": "Product question"
1025
+ * },
1026
+ * "include": ["customAttributeDefinitions"]
1027
+ * }
1028
+ * ```
1029
+ *
1030
+ * Referencing an attribute id that does not exist (or has been archived) returns a
1031
+ * `field_unknown` error. Set `include` to `["customAttributeDefinitions"]` to get
1032
+ * each returned conversation's attribute values resolved with names and types
1033
+ * alongside the ID-keyed `customAttributes` map.
999
1034
  *
1000
1035
  * For unbounded fields a query consisting only of `!=` or `NIN` clauses is
1001
1036
  * rejected with `query_too_broad` to prevent full-org scans. Combine the negation
@@ -1329,9 +1364,11 @@ export namespace Conversation {
1329
1364
  requestId: string;
1330
1365
 
1331
1366
  /**
1332
- * Source that created the CSAT request
1367
+ * Source that created the CSAT request. `workflow` = Ask For Conversation Rating
1368
+ * workflow action, `fibi_auto` = automatic Fibi AI Agent survey on
1369
+ * resolve/handoff.
1333
1370
  */
1334
- requestSource: 'workflow';
1371
+ requestSource: 'workflow' | 'fibi_auto';
1335
1372
 
1336
1373
  /**
1337
1374
  * Lifecycle status for this historical CSAT request
@@ -1437,7 +1474,7 @@ export namespace Conversation {
1437
1474
  /**
1438
1475
  * Source of the latest CSAT request when known
1439
1476
  */
1440
- requestSource?: 'workflow';
1477
+ requestSource?: 'workflow' | 'fibi_auto';
1441
1478
 
1442
1479
  /**
1443
1480
  * CSAT score from 1 to 5 when rated
@@ -2001,9 +2038,11 @@ export namespace ConversationPart {
2001
2038
  requestId: string;
2002
2039
 
2003
2040
  /**
2004
- * Source that created the CSAT request
2041
+ * Source that created the CSAT request. `workflow` = Ask For Conversation Rating
2042
+ * workflow action, `fibi_auto` = automatic Fibi AI Agent survey on
2043
+ * resolve/handoff.
2005
2044
  */
2006
- requestSource: 'workflow';
2045
+ requestSource: 'workflow' | 'fibi_auto';
2007
2046
 
2008
2047
  /**
2009
2048
  * Status of the CSAT request represented by this part
@@ -2088,9 +2127,11 @@ export namespace ConversationPart {
2088
2127
  requestId: string;
2089
2128
 
2090
2129
  /**
2091
- * Source that created the CSAT request
2130
+ * Source that created the CSAT request. `workflow` = Ask For Conversation Rating
2131
+ * workflow action, `fibi_auto` = automatic Fibi AI Agent survey on
2132
+ * resolve/handoff.
2092
2133
  */
2093
- requestSource: 'workflow';
2134
+ requestSource: 'workflow' | 'fibi_auto';
2094
2135
 
2095
2136
  /**
2096
2137
  * CSAT score from 1 to 5
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.14.2'; // x-release-please-version
1
+ export const VERSION = '0.14.3'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.14.2";
1
+ export declare const VERSION = "0.14.3";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.14.2";
1
+ export declare const VERSION = "0.14.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.14.2'; // x-release-please-version
4
+ exports.VERSION = '0.14.3'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.14.2'; // x-release-please-version
1
+ export const VERSION = '0.14.3'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map