@ikatec/digisac-api-sdk 4.14.0 → 4.16.0

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 (217) hide show
  1. package/README.md +10 -3
  2. package/dist/apis/absence/AbsenceApi.cjs +2 -2
  3. package/dist/apis/absence/AbsenceApi.cjs.map +1 -1
  4. package/dist/apis/absence/AbsenceApi.d.ts +2 -2
  5. package/dist/apis/absence/AbsenceApi.mjs +2 -2
  6. package/dist/apis/absence/AbsenceApi.mjs.map +1 -1
  7. package/dist/apis/absence/types.d.ts +1 -1
  8. package/dist/apis/answers/AnswersApi.cjs +23 -2
  9. package/dist/apis/answers/AnswersApi.cjs.map +1 -1
  10. package/dist/apis/answers/AnswersApi.d.ts +16 -2
  11. package/dist/apis/answers/AnswersApi.d.ts.map +1 -1
  12. package/dist/apis/answers/AnswersApi.mjs +23 -2
  13. package/dist/apis/answers/AnswersApi.mjs.map +1 -1
  14. package/dist/apis/answers/types.d.ts +1 -2
  15. package/dist/apis/answers/types.d.ts.map +1 -1
  16. package/dist/apis/authHistory/AuthHistoryApi.cjs +9 -2
  17. package/dist/apis/authHistory/AuthHistoryApi.cjs.map +1 -1
  18. package/dist/apis/authHistory/AuthHistoryApi.d.ts +7 -2
  19. package/dist/apis/authHistory/AuthHistoryApi.d.ts.map +1 -1
  20. package/dist/apis/authHistory/AuthHistoryApi.mjs +9 -2
  21. package/dist/apis/authHistory/AuthHistoryApi.mjs.map +1 -1
  22. package/dist/apis/authHistory/types.d.ts +6 -1
  23. package/dist/apis/authHistory/types.d.ts.map +1 -1
  24. package/dist/apis/bots/BotsApi.cjs +16 -7
  25. package/dist/apis/bots/BotsApi.cjs.map +1 -1
  26. package/dist/apis/bots/BotsApi.d.ts +13 -7
  27. package/dist/apis/bots/BotsApi.d.ts.map +1 -1
  28. package/dist/apis/bots/BotsApi.mjs +16 -7
  29. package/dist/apis/bots/BotsApi.mjs.map +1 -1
  30. package/dist/apis/bots/types.d.ts +12 -2
  31. package/dist/apis/bots/types.d.ts.map +1 -1
  32. package/dist/apis/campaigns/CampaignsApi.cjs +25 -1
  33. package/dist/apis/campaigns/CampaignsApi.cjs.map +1 -1
  34. package/dist/apis/campaigns/CampaignsApi.d.ts +16 -1
  35. package/dist/apis/campaigns/CampaignsApi.d.ts.map +1 -1
  36. package/dist/apis/campaigns/CampaignsApi.mjs +25 -1
  37. package/dist/apis/campaigns/CampaignsApi.mjs.map +1 -1
  38. package/dist/apis/campaigns/types.d.ts +98 -6
  39. package/dist/apis/campaigns/types.d.ts.map +1 -1
  40. package/dist/apis/cards/types.d.ts +5 -5
  41. package/dist/apis/categories/CategoriesApi.cjs +1 -2
  42. package/dist/apis/categories/CategoriesApi.cjs.map +1 -1
  43. package/dist/apis/categories/CategoriesApi.d.ts +1 -2
  44. package/dist/apis/categories/CategoriesApi.d.ts.map +1 -1
  45. package/dist/apis/categories/CategoriesApi.mjs +1 -2
  46. package/dist/apis/categories/CategoriesApi.mjs.map +1 -1
  47. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs +2 -3
  48. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs.map +1 -1
  49. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts +2 -3
  50. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts.map +1 -1
  51. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs +2 -3
  52. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs.map +1 -1
  53. package/dist/apis/contacts/ContactsApi.cjs +20 -6
  54. package/dist/apis/contacts/ContactsApi.cjs.map +1 -1
  55. package/dist/apis/contacts/ContactsApi.d.ts +28 -4
  56. package/dist/apis/contacts/ContactsApi.d.ts.map +1 -1
  57. package/dist/apis/contacts/ContactsApi.mjs +20 -6
  58. package/dist/apis/contacts/ContactsApi.mjs.map +1 -1
  59. package/dist/apis/contacts/types.d.ts +101 -2
  60. package/dist/apis/contacts/types.d.ts.map +1 -1
  61. package/dist/apis/customFields/types.d.ts +4 -4
  62. package/dist/apis/dashboard/DashboardApi.cjs +3 -3
  63. package/dist/apis/dashboard/DashboardApi.cjs.map +1 -1
  64. package/dist/apis/dashboard/DashboardApi.d.ts +3 -3
  65. package/dist/apis/dashboard/DashboardApi.mjs +3 -3
  66. package/dist/apis/dashboard/DashboardApi.mjs.map +1 -1
  67. package/dist/apis/dashboard/types.d.ts +11 -4
  68. package/dist/apis/dashboard/types.d.ts.map +1 -1
  69. package/dist/apis/departments/DepartmentsApi.cjs +5 -5
  70. package/dist/apis/departments/DepartmentsApi.cjs.map +1 -1
  71. package/dist/apis/departments/DepartmentsApi.d.ts +5 -5
  72. package/dist/apis/departments/DepartmentsApi.mjs +5 -5
  73. package/dist/apis/departments/DepartmentsApi.mjs.map +1 -1
  74. package/dist/apis/departments/types.d.ts +6 -0
  75. package/dist/apis/departments/types.d.ts.map +1 -1
  76. package/dist/apis/distribution/DistributionApi.cjs +3 -4
  77. package/dist/apis/distribution/DistributionApi.cjs.map +1 -1
  78. package/dist/apis/distribution/DistributionApi.d.ts +3 -4
  79. package/dist/apis/distribution/DistributionApi.d.ts.map +1 -1
  80. package/dist/apis/distribution/DistributionApi.mjs +3 -4
  81. package/dist/apis/distribution/DistributionApi.mjs.map +1 -1
  82. package/dist/apis/files/FilesApi.cjs +13 -1
  83. package/dist/apis/files/FilesApi.cjs.map +1 -1
  84. package/dist/apis/files/FilesApi.d.ts +12 -2
  85. package/dist/apis/files/FilesApi.d.ts.map +1 -1
  86. package/dist/apis/files/FilesApi.mjs +13 -1
  87. package/dist/apis/files/FilesApi.mjs.map +1 -1
  88. package/dist/apis/files/types.d.ts +19 -1
  89. package/dist/apis/files/types.d.ts.map +1 -1
  90. package/dist/apis/kanbanCards/KanbanCardsApi.cjs +32 -0
  91. package/dist/apis/kanbanCards/KanbanCardsApi.cjs.map +1 -1
  92. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts +27 -1
  93. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts.map +1 -1
  94. package/dist/apis/kanbanCards/KanbanCardsApi.mjs +32 -0
  95. package/dist/apis/kanbanCards/KanbanCardsApi.mjs.map +1 -1
  96. package/dist/apis/kanbanCards/types.d.ts +1 -1
  97. package/dist/apis/kanbanCards/types.d.ts.map +1 -1
  98. package/dist/apis/kanbanColumns/KanbanColumnsApi.cjs +19 -0
  99. package/dist/apis/kanbanColumns/KanbanColumnsApi.cjs.map +1 -1
  100. package/dist/apis/kanbanColumns/KanbanColumnsApi.d.ts +16 -1
  101. package/dist/apis/kanbanColumns/KanbanColumnsApi.d.ts.map +1 -1
  102. package/dist/apis/kanbanColumns/KanbanColumnsApi.mjs +19 -0
  103. package/dist/apis/kanbanColumns/KanbanColumnsApi.mjs.map +1 -1
  104. package/dist/apis/kanbanColumns/types.d.ts +4 -0
  105. package/dist/apis/kanbanColumns/types.d.ts.map +1 -1
  106. package/dist/apis/messages/MessagesApi.cjs +13 -4
  107. package/dist/apis/messages/MessagesApi.cjs.map +1 -1
  108. package/dist/apis/messages/MessagesApi.d.ts +13 -4
  109. package/dist/apis/messages/MessagesApi.d.ts.map +1 -1
  110. package/dist/apis/messages/MessagesApi.mjs +13 -4
  111. package/dist/apis/messages/MessagesApi.mjs.map +1 -1
  112. package/dist/apis/messages/types.d.ts +5 -0
  113. package/dist/apis/messages/types.d.ts.map +1 -1
  114. package/dist/apis/pipeline/types.d.ts +7 -8
  115. package/dist/apis/pipeline/types.d.ts.map +1 -1
  116. package/dist/apis/quickReplies/types.d.ts +4 -1
  117. package/dist/apis/quickReplies/types.d.ts.map +1 -1
  118. package/dist/apis/schedule/types.d.ts +41 -10
  119. package/dist/apis/schedule/types.d.ts.map +1 -1
  120. package/dist/apis/terms/TermsApi.cjs +2 -2
  121. package/dist/apis/terms/TermsApi.cjs.map +1 -1
  122. package/dist/apis/terms/TermsApi.d.ts +2 -2
  123. package/dist/apis/terms/TermsApi.mjs +2 -2
  124. package/dist/apis/terms/TermsApi.mjs.map +1 -1
  125. package/dist/apis/tickets/TicketsApi.cjs +18 -8
  126. package/dist/apis/tickets/TicketsApi.cjs.map +1 -1
  127. package/dist/apis/tickets/TicketsApi.d.ts +15 -8
  128. package/dist/apis/tickets/TicketsApi.d.ts.map +1 -1
  129. package/dist/apis/tickets/TicketsApi.mjs +18 -8
  130. package/dist/apis/tickets/TicketsApi.mjs.map +1 -1
  131. package/dist/apis/tickets/types.d.ts +4 -1
  132. package/dist/apis/tickets/types.d.ts.map +1 -1
  133. package/dist/apis/timetable/TimetableApi.cjs +6 -0
  134. package/dist/apis/timetable/TimetableApi.cjs.map +1 -1
  135. package/dist/apis/timetable/TimetableApi.d.ts +6 -0
  136. package/dist/apis/timetable/TimetableApi.d.ts.map +1 -1
  137. package/dist/apis/timetable/TimetableApi.mjs +6 -0
  138. package/dist/apis/timetable/TimetableApi.mjs.map +1 -1
  139. package/dist/apis/timetable/types.d.ts +8 -0
  140. package/dist/apis/timetable/types.d.ts.map +1 -1
  141. package/dist/apis/users/UsersApi.cjs +11 -3
  142. package/dist/apis/users/UsersApi.cjs.map +1 -1
  143. package/dist/apis/users/UsersApi.d.ts +10 -4
  144. package/dist/apis/users/UsersApi.d.ts.map +1 -1
  145. package/dist/apis/users/UsersApi.mjs +11 -3
  146. package/dist/apis/users/UsersApi.mjs.map +1 -1
  147. package/dist/apis/users/types.d.ts +26 -0
  148. package/dist/apis/users/types.d.ts.map +1 -1
  149. package/dist/apis/webhooks/types.d.ts +51 -6
  150. package/dist/apis/webhooks/types.d.ts.map +1 -1
  151. package/dist/core/BaseReadApi.cjs +2 -2
  152. package/dist/core/BaseReadApi.cjs.map +1 -1
  153. package/dist/core/BaseReadApi.d.ts +2 -2
  154. package/dist/core/BaseReadApi.mjs +2 -2
  155. package/dist/core/BaseReadApi.mjs.map +1 -1
  156. package/dist/core/errors.cjs +4 -1
  157. package/dist/core/errors.cjs.map +1 -1
  158. package/dist/core/errors.d.ts +4 -1
  159. package/dist/core/errors.d.ts.map +1 -1
  160. package/dist/core/errors.mjs +4 -1
  161. package/dist/core/errors.mjs.map +1 -1
  162. package/package.json +1 -1
  163. package/src/apis/absence/AbsenceApi.ts +2 -2
  164. package/src/apis/absence/types.ts +1 -1
  165. package/src/apis/answers/AnswersApi.test.ts +32 -0
  166. package/src/apis/answers/AnswersApi.ts +38 -2
  167. package/src/apis/answers/types.ts +1 -2
  168. package/src/apis/authHistory/AuthHistoryApi.test.ts +16 -0
  169. package/src/apis/authHistory/AuthHistoryApi.ts +10 -2
  170. package/src/apis/authHistory/types.ts +6 -1
  171. package/src/apis/bots/BotsApi.test.ts +16 -0
  172. package/src/apis/bots/BotsApi.ts +25 -7
  173. package/src/apis/bots/types.ts +12 -2
  174. package/src/apis/campaigns/CampaignsApi.test.ts +48 -0
  175. package/src/apis/campaigns/CampaignsApi.ts +31 -2
  176. package/src/apis/campaigns/types.ts +101 -3
  177. package/src/apis/cards/types.ts +5 -5
  178. package/src/apis/categories/CategoriesApi.ts +1 -2
  179. package/src/apis/clientFeedback/ClientFeedbackApi.ts +2 -3
  180. package/src/apis/contacts/ContactsApi.test.ts +49 -2
  181. package/src/apis/contacts/ContactsApi.ts +64 -4
  182. package/src/apis/contacts/types.ts +111 -1
  183. package/src/apis/creditMovements/CreditMovementsApi.test.ts +1 -1
  184. package/src/apis/customFields/types.ts +4 -4
  185. package/src/apis/dashboard/DashboardApi.test-d.ts +9 -0
  186. package/src/apis/dashboard/DashboardApi.ts +3 -3
  187. package/src/apis/dashboard/types.ts +11 -4
  188. package/src/apis/departments/DepartmentsApi.ts +5 -5
  189. package/src/apis/departments/types.ts +13 -0
  190. package/src/apis/distribution/DistributionApi.ts +3 -4
  191. package/src/apis/files/FilesApi.test.ts +21 -0
  192. package/src/apis/files/FilesApi.ts +19 -1
  193. package/src/apis/files/types.ts +20 -1
  194. package/src/apis/kanbanCards/KanbanCardsApi.test.ts +21 -0
  195. package/src/apis/kanbanCards/KanbanCardsApi.ts +47 -1
  196. package/src/apis/kanbanCards/types.ts +1 -1
  197. package/src/apis/kanbanColumns/KanbanColumnsApi.test.ts +26 -0
  198. package/src/apis/kanbanColumns/KanbanColumnsApi.ts +31 -0
  199. package/src/apis/kanbanColumns/types.ts +5 -0
  200. package/src/apis/messages/MessagesApi.ts +13 -4
  201. package/src/apis/messages/types.ts +5 -0
  202. package/src/apis/payloads.test-d.ts +245 -5
  203. package/src/apis/pipeline/types.ts +7 -8
  204. package/src/apis/queryFormat.test.ts +13 -0
  205. package/src/apis/quickReplies/types.ts +4 -1
  206. package/src/apis/schedule/types.ts +42 -10
  207. package/src/apis/terms/TermsApi.ts +2 -2
  208. package/src/apis/tickets/TicketsApi.ts +28 -8
  209. package/src/apis/tickets/types.ts +4 -1
  210. package/src/apis/timetable/TimetableApi.ts +6 -0
  211. package/src/apis/timetable/types.ts +9 -0
  212. package/src/apis/users/UsersApi.test.ts +17 -0
  213. package/src/apis/users/UsersApi.ts +21 -3
  214. package/src/apis/users/types.ts +28 -0
  215. package/src/apis/webhooks/types.ts +53 -6
  216. package/src/core/BaseReadApi.ts +2 -2
  217. package/src/core/errors.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"MessagesApi.d.ts","sourceRoot":"","sources":["../../../src/apis/messages/MessagesApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EAChB,MAAM,SAAS,CAAA;AAEhB,qBAAa,WAAY,SAAQ,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,CAAC;gBACnF,MAAM,EAAE,SAAS;IAI7B;;;;;OAK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CAAC,OAAO,CAAC;IAQnB,iHAAiH;IACjH,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAQ7F,gFAAgF;IAChF,YAAY,CACV,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,kBAAkB,CAAC;IAQ9B;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IASzF;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IAIxE,iHAAiH;IACjH,UAAU,CACR,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAQ5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAIxE,oIAAoI;IACpI,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,OAAO,EAAE,CAAC;CAItB"}
@@ -7,10 +7,19 @@ var MessagesApi = class extends BaseCrudApi {
7
7
  super(client, "/messages");
8
8
  }
9
9
  /**
10
- * Edits the text (or the file) of a message sent by the account, up to 15 minutes after it was
11
- * sent (403 `Cannot edit message` after that). `contactId` is required (without it the route
12
- * answers 500), and `text` or `file` (400 without both). Sent as `PATCH /messages/:id`.
13
- * @permissions messages.update
10
+ * Edits the text of a message sent by the account, up to 15 minutes after it was sent. Sent as
11
+ * `PATCH /messages/:id`. `contactId` is required: without it the route answers 500, and an
12
+ * unknown or blocked contact answers 400 `The given data was invalid.` (the error comes in
13
+ * `contactId`). So is `text`: `text: ''` alone answers 400 (`At least one field (text or file)
14
+ * must be provided`), and a `text` with only spaces answers 400 `Text cannot be empty`. Only the
15
+ * text is edited: `file` is not sent to the connection. A message received, or sent more than
16
+ * 15 minutes ago, answers 403 `Cannot edit message`; an unknown message answers 404
17
+ * `Message not found`. The message passes to the user who edited it.
18
+ *
19
+ * The message is answered once the edit is sent to the connection, before the connection
20
+ * confirms it: read it again until `text` changes (`data.edited` is set to `true` when the
21
+ * connection reports the edit). On WhatsApp Business and Telegram connections the route answers
22
+ * the result of the edit job, not the message: read it again with `getById`.
14
23
  */
15
24
  updateById(id, body, headers) {
16
25
  return this.client.patch(`${this.basePath}/${id}`, body, headers);
@@ -1 +1 @@
1
- {"version":3,"file":"MessagesApi.mjs","names":[],"sources":["../../../src/apis/messages/MessagesApi.ts"],"sourcesContent":["import qs from 'qs'\nimport type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n Message,\n CreateMessagePayload,\n UpdateMessagePayload,\n ForwardMessagesPayload,\n ForwardMessagesResult,\n SendVcardsPayload,\n SendReactionPayload,\n MagicTextPayload,\n MagicTextResult,\n CheckSummaryPayload,\n CheckSummaryResult,\n BulkDestroyPayload,\n OutOfRangeResult,\n LoadAroundQuery,\n} from './types'\n\nexport class MessagesApi extends BaseCrudApi<Message, CreateMessagePayload, UpdateMessagePayload> {\n constructor(client: ApiClient) {\n super(client, '/messages')\n }\n\n /**\n * Edits the text (or the file) of a message sent by the account, up to 15 minutes after it was\n * sent (403 `Cannot edit message` after that). `contactId` is required (without it the route\n * answers 500), and `text` or `file` (400 without both). Sent as `PATCH /messages/:id`.\n * @permissions messages.update\n */\n override updateById(\n id: string,\n body: UpdateMessagePayload,\n headers?: Record<string, string>,\n ): Promise<Message> {\n return this.client.patch<Message, UpdateMessagePayload>(`${this.basePath}/${id}`, body, headers)\n }\n\n /**\n * @deprecated Not served: the backend has no DELETE /messages/:id, so this route answers 404.\n * Use {@link bulkDestroy}.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<Message> {\n return super.deleteById(id, headers)\n }\n\n /** Forwards one or more messages to one or more contacts (max 20 messages to 5 contacts). */\n forward(\n body: ForwardMessagesPayload,\n headers?: Record<string, string>,\n ): Promise<ForwardMessagesResult> {\n return this.client.post<ForwardMessagesResult, ForwardMessagesPayload>(\n `${this.basePath}/forward`,\n body,\n headers,\n )\n }\n\n /** Revokes (soft-deletes) a sent message so it is no longer visible to the recipient. */\n revoke(id: string, headers?: Record<string, string>): Promise<Message> {\n return this.client.post<Message>(`${this.basePath}/${id}/revoke`, undefined, headers)\n }\n\n /** Removes a previously sent reaction from a message. */\n revokeReaction(id: string, headers?: Record<string, string>): Promise<boolean> {\n return this.client.put<boolean>(`${this.basePath}/${id}/revoke-reaction`, undefined, headers)\n }\n\n /** Sends one or more contacts as vCard messages to a given contact. */\n sendVcards(body: SendVcardsPayload, headers?: Record<string, string>): Promise<Message> {\n return this.client.post<Message, SendVcardsPayload>(\n `${this.basePath}/send-vcards`,\n body,\n headers,\n )\n }\n\n /** Sends an emoji reaction to a message. */\n sendReaction(\n id: string,\n body: SendReactionPayload,\n headers?: Record<string, string>,\n ): Promise<boolean> {\n return this.client.post<boolean, SendReactionPayload>(\n `${this.basePath}/${id}/send-reaction`,\n body,\n headers,\n )\n }\n\n /** Uses AI to rewrite or correct a message text with a given tone (e.g. \"correct\", \"professional\", \"casual\"). */\n magicText(body: MagicTextPayload, headers?: Record<string, string>): Promise<MagicTextResult> {\n return this.client.post<MagicTextResult, MagicTextPayload>(\n `${this.basePath}/magic-text`,\n body,\n headers,\n )\n }\n\n /** Checks whether an AI-generated summary already exists for a given ticket. */\n checkSummary(\n body: CheckSummaryPayload,\n headers?: Record<string, string>,\n ): Promise<CheckSummaryResult> {\n return this.client.post<CheckSummaryResult, CheckSummaryPayload>(\n `${this.basePath}/check-summary`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes multiple messages matching the given where clause.\n * @permissions messages.destroy\n */\n bulkDestroy(body: BulkDestroyPayload, headers?: Record<string, string>): Promise<boolean> {\n return this.client.request<boolean, BulkDestroyPayload>(\n 'DELETE',\n `${this.basePath}/many`,\n body,\n headers,\n )\n }\n\n /**\n * Regenerates an existing AI summary: `id` is the id of the message of `type: 'summary'`. When\n * there is no such message (or the AI limit was reached) nothing is done and it still resolves\n * `'OK'`. To summarize the open ticket of a contact, use `ContactsApi.summarizeTicket`.\n */\n summarize(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(`${this.basePath}/${id}/summarize`, undefined, headers)\n }\n\n /** Checks whether a message is out of the visible range (i.e. there are more than `limit` messages after it). */\n outOfRange(\n id: string,\n limit?: number,\n headers?: Record<string, string>,\n ): Promise<OutOfRangeResult> {\n const queryString = limit ? `?${qs.stringify({ limit })}` : ''\n return this.client.get<OutOfRangeResult>(\n `${this.basePath}/${id}/out-of-range${queryString}`,\n headers,\n )\n }\n\n /**\n * Re-downloads and syncs the file attachment for a message from the messaging service. Resolves\n * what the driver answers; an unknown message answers 500.\n */\n syncFile(id: string, headers?: Record<string, string>): Promise<unknown> {\n return this.client.post<unknown>(`${this.basePath}/${id}/sync-file`, undefined, headers)\n }\n\n /** Loads messages surrounding a target message (N before and N after), useful for jumping to a specific point in a conversation. */\n around(\n id: string,\n query?: LoadAroundQuery,\n headers?: Record<string, string>,\n ): Promise<Message[]> {\n const queryString = query ? `?${qs.stringify(query)}` : ''\n return this.client.get<Message[]>(`${this.basePath}/${id}/around${queryString}`, headers)\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,cAAb,cAAiC,YAA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O,CAAC,KAAK;AAC5D,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,GAAG,eAAe,eACtC,QACD;;;;;;CAOH,SAAS,IAAY,SAAoD;AACvE,SAAO,KAAK,OAAO,KAAc,GAAG,KAAK,SAAS,GAAG,GAAG,aAAa,QAAW,QAAQ;;;CAI1F,OACE,IACA,OACA,SACoB;EACpB,MAAM,cAAc,QAAQ,IAAI,GAAG,UAAU,MAAM,KAAK;AACxD,SAAO,KAAK,OAAO,IAAe,GAAG,KAAK,SAAS,GAAG,GAAG,SAAS,eAAe,QAAQ"}
1
+ {"version":3,"file":"MessagesApi.mjs","names":[],"sources":["../../../src/apis/messages/MessagesApi.ts"],"sourcesContent":["import qs from 'qs'\nimport type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n Message,\n CreateMessagePayload,\n UpdateMessagePayload,\n ForwardMessagesPayload,\n ForwardMessagesResult,\n SendVcardsPayload,\n SendReactionPayload,\n MagicTextPayload,\n MagicTextResult,\n CheckSummaryPayload,\n CheckSummaryResult,\n BulkDestroyPayload,\n OutOfRangeResult,\n LoadAroundQuery,\n} from './types'\n\nexport class MessagesApi extends BaseCrudApi<Message, CreateMessagePayload, UpdateMessagePayload> {\n constructor(client: ApiClient) {\n super(client, '/messages')\n }\n\n /**\n * Edits the text of a message sent by the account, up to 15 minutes after it was sent. Sent as\n * `PATCH /messages/:id`. `contactId` is required: without it the route answers 500, and an\n * unknown or blocked contact answers 400 `The given data was invalid.` (the error comes in\n * `contactId`). So is `text`: `text: ''` alone answers 400 (`At least one field (text or file)\n * must be provided`), and a `text` with only spaces answers 400 `Text cannot be empty`. Only the\n * text is edited: `file` is not sent to the connection. A message received, or sent more than\n * 15 minutes ago, answers 403 `Cannot edit message`; an unknown message answers 404\n * `Message not found`. The message passes to the user who edited it.\n *\n * The message is answered once the edit is sent to the connection, before the connection\n * confirms it: read it again until `text` changes (`data.edited` is set to `true` when the\n * connection reports the edit). On WhatsApp Business and Telegram connections the route answers\n * the result of the edit job, not the message: read it again with `getById`.\n */\n override updateById(\n id: string,\n body: UpdateMessagePayload,\n headers?: Record<string, string>,\n ): Promise<Message> {\n return this.client.patch<Message, UpdateMessagePayload>(`${this.basePath}/${id}`, body, headers)\n }\n\n /**\n * @deprecated Not served: the backend has no DELETE /messages/:id, so this route answers 404.\n * Use {@link bulkDestroy}.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<Message> {\n return super.deleteById(id, headers)\n }\n\n /** Forwards one or more messages to one or more contacts (max 20 messages to 5 contacts). */\n forward(\n body: ForwardMessagesPayload,\n headers?: Record<string, string>,\n ): Promise<ForwardMessagesResult> {\n return this.client.post<ForwardMessagesResult, ForwardMessagesPayload>(\n `${this.basePath}/forward`,\n body,\n headers,\n )\n }\n\n /** Revokes (soft-deletes) a sent message so it is no longer visible to the recipient. */\n revoke(id: string, headers?: Record<string, string>): Promise<Message> {\n return this.client.post<Message>(`${this.basePath}/${id}/revoke`, undefined, headers)\n }\n\n /** Removes a previously sent reaction from a message. */\n revokeReaction(id: string, headers?: Record<string, string>): Promise<boolean> {\n return this.client.put<boolean>(`${this.basePath}/${id}/revoke-reaction`, undefined, headers)\n }\n\n /** Sends one or more contacts as vCard messages to a given contact. */\n sendVcards(body: SendVcardsPayload, headers?: Record<string, string>): Promise<Message> {\n return this.client.post<Message, SendVcardsPayload>(\n `${this.basePath}/send-vcards`,\n body,\n headers,\n )\n }\n\n /** Sends an emoji reaction to a message. */\n sendReaction(\n id: string,\n body: SendReactionPayload,\n headers?: Record<string, string>,\n ): Promise<boolean> {\n return this.client.post<boolean, SendReactionPayload>(\n `${this.basePath}/${id}/send-reaction`,\n body,\n headers,\n )\n }\n\n /** Uses AI to rewrite or correct a message text with a given tone (e.g. \"correct\", \"professional\", \"casual\"). */\n magicText(body: MagicTextPayload, headers?: Record<string, string>): Promise<MagicTextResult> {\n return this.client.post<MagicTextResult, MagicTextPayload>(\n `${this.basePath}/magic-text`,\n body,\n headers,\n )\n }\n\n /** Checks whether an AI-generated summary already exists for a given ticket. */\n checkSummary(\n body: CheckSummaryPayload,\n headers?: Record<string, string>,\n ): Promise<CheckSummaryResult> {\n return this.client.post<CheckSummaryResult, CheckSummaryPayload>(\n `${this.basePath}/check-summary`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes multiple messages matching the given where clause.\n * @permissions messages.destroy\n */\n bulkDestroy(body: BulkDestroyPayload, headers?: Record<string, string>): Promise<boolean> {\n return this.client.request<boolean, BulkDestroyPayload>(\n 'DELETE',\n `${this.basePath}/many`,\n body,\n headers,\n )\n }\n\n /**\n * Regenerates an existing AI summary: `id` is the id of the message of `type: 'summary'`. When\n * there is no such message (or the AI limit was reached) nothing is done and it still resolves\n * `'OK'`. To summarize the open ticket of a contact, use `ContactsApi.summarizeTicket`.\n */\n summarize(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(`${this.basePath}/${id}/summarize`, undefined, headers)\n }\n\n /** Checks whether a message is out of the visible range (i.e. there are more than `limit` messages after it). */\n outOfRange(\n id: string,\n limit?: number,\n headers?: Record<string, string>,\n ): Promise<OutOfRangeResult> {\n const queryString = limit ? `?${qs.stringify({ limit })}` : ''\n return this.client.get<OutOfRangeResult>(\n `${this.basePath}/${id}/out-of-range${queryString}`,\n headers,\n )\n }\n\n /**\n * Re-downloads and syncs the file attachment for a message from the messaging service. Resolves\n * what the driver answers; an unknown message answers 500.\n */\n syncFile(id: string, headers?: Record<string, string>): Promise<unknown> {\n return this.client.post<unknown>(`${this.basePath}/${id}/sync-file`, undefined, headers)\n }\n\n /** Loads messages surrounding a target message (N before and N after), useful for jumping to a specific point in a conversation. */\n around(\n id: string,\n query?: LoadAroundQuery,\n headers?: Record<string, string>,\n ): Promise<Message[]> {\n const queryString = query ? `?${qs.stringify(query)}` : ''\n return this.client.get<Message[]>(`${this.basePath}/${id}/around${queryString}`, headers)\n }\n}\n"],"mappings":";;;;AAoBA,IAAa,cAAb,cA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AAG,UAAU,EAAE,OAAO,CAAC,KAAK;AAC5D,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,GAAG,eAAe,eACtC,QACD;;;;;;CAOH,SAAS,IAAY,SAAoD;AACvE,SAAO,KAAK,OAAO,KAAc,GAAG,KAAK,SAAS,GAAG,GAAG,aAAa,QAAW,QAAQ;;;CAI1F,OACE,IACA,OACA,SACoB;EACpB,MAAM,cAAc,QAAQ,IAAI,GAAG,UAAU,MAAM,KAAK;AACxD,SAAO,KAAK,OAAO,IAAe,GAAG,KAAK,SAAS,GAAG,GAAG,SAAS,eAAe,QAAQ"}
@@ -45,6 +45,11 @@ export type MessageData = {
45
45
  subject?: unknown;
46
46
  resourceId?: string;
47
47
  hasReaction?: boolean;
48
+ /**
49
+ * `true` once the connection reports that the text was edited (see `MessagesApi.updateById`; on
50
+ * WhatsApp, an edit made by the contact included).
51
+ */
52
+ edited?: boolean;
48
53
  whatsappMessageId?: string;
49
54
  startBlockedAt?: string;
50
55
  endBlockedAt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/messages/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAElF,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,G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
116
  export type UpdatePipelineStagePayload = CreatePipelineStagePayload & {
117
117
  /**
118
- * The stage id. Send it: the duplicate-name check compares against the `id` of the body,
119
- * so without it keeping the current name answers `'STAGE_ALREADY_EXIST'`.
118
+ * The stage id. Send it: without it, keeping the current name answers `'STAGE_ALREADY_EXIST'`.
120
119
  */
121
120
  id?: string;
122
121
  };
@@ -130,10 +129,10 @@ export type DeletePipelineStagePayload = {
130
129
  typeAction?: 'move';
131
130
  idNewStage?: string;
132
131
  /**
133
- * Author of the card movements written by `'move'` — the backend reads it from the body, not
134
- * from the token (the UI sends the logged user). Without it, moving a stage that has cards
135
- * fails with 500 (`CardMovement.userId cannot be null`) after the cards were already moved,
136
- * and the stage is kept.
132
+ * The user that moves the cards with `'move'`: send the logged user (`{ id }` of
133
+ * `MeApi.getMe`). Without it, moving a stage that has cards fails with 500
134
+ * (`CardMovement.userId cannot be null`) after the cards were already moved, and the stage is
135
+ * kept.
137
136
  */
138
137
  user?: {
139
138
  id: string;
@@ -151,7 +150,7 @@ export type PipelineStageStatusWithCount = PipelineStageStatus & {
151
150
  };
152
151
  /**
153
152
  * What happens to the cards of a deleted status: `'keep-without-status'` clears their status,
154
- * `'move-to-another'` sets `newStatusId` (not validated by the backend).
153
+ * `'move-to-another'` moves them to the status `newStatusId`.
155
154
  */
156
155
  export type DeletePipelineStatusPayload = {
157
156
  action: 'keep-without-status';
@@ -182,7 +181,7 @@ export type PipelineAutomation = {
182
181
  };
183
182
  export type CreatePipelineAutomationPayload = {
184
183
  pipelineId: string;
185
- /** The backend does not validate it (any string is stored); `'notification'` is the only one used. */
184
+ /** `'notification'` is the only one used. */
186
185
  type: PipelineAutomationType;
187
186
  config?: PipelineAutomationConfig;
188
187
  isArchived?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/pipeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,O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A;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,CAAC,cAAc,GAAG;QAAE,MAAM,EAAE,aAAa,EAAE,CAAC;QAAC,MAAM,EAAE,cAAc,EAAE,CAAA;KAAE,CAAC,EAAE,CAAA;CACjF,CAAA;AAED,8EAA8E;AAC9E,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1B,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA"}
@@ -44,7 +44,10 @@ export type UpdateQuickReplyPayload = {
44
44
  /** The files to keep or attach; `[]` removes all. Required: omitted, the update fails (500). */
45
45
  files: QuickReplyFilePayload[];
46
46
  };
47
- /** The query of `loadOnDemand`, passed to the database as is. */
47
+ /**
48
+ * The query of `loadOnDemand`: the `where`, `include`, `order`, `attributes`, `limit` and `offset`
49
+ * of a list query.
50
+ */
48
51
  export type QuickRepliesLoadOnDemandQuery = Pick<ListQuery<QuickReply>, 'where' | 'include' | 'order' | 'attributes' | 'limit' | 'offset'>;
49
52
  export type QuickRepliesLoadOnDemandResult = {
50
53
  data: QuickReply[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/quickReplies/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAA;IACvB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,YAAY,GAAG,OAAO,CAAA;AAE5E;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAElD,0GAA0G;AAC1G,MAAM,MAAM,uBAAuB,GAAG;IACpC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
2
  import type { Contact } from '../contacts/types';
2
3
  import type { Department } from '../departments/types';
3
4
  import type { File } from '../files/types';
4
5
  import type { User } from '../users/types';
5
- /** `scheduled` until the worker runs it; `error` and `not_sent` come with the `reason`. */
6
+ /**
7
+ * - `scheduled`: waiting for the worker.
8
+ * - `done`: sent, or skipped with `reason: null` (contact blocked, connection off, open ticket
9
+ * without `sendWithOpenTicket`, user without access to the connection). It is stored
10
+ * before the message is sent, so a template schedule can still turn `error` afterwards.
11
+ * Archiving the connection also sets its `scheduled` schedules as `done`, and archiving the
12
+ * department every schedule of it (keeping the `reason` of the ones that had failed).
13
+ * - `not_sent`: only for a template schedule (`hsmId`), with `HSM_IS_BLOCKED` or
14
+ * `SERVICE_IS_BLOCKED`.
15
+ * - `error`: `DDD_BLOCKED` for any schedule; the other reasons only for a template schedule sent
16
+ * with `extraOptions` (a plain schedule is `done` instead).
17
+ */
6
18
  export type ScheduleStatus = 'scheduled' | 'done' | 'error' | 'not_sent';
19
+ /** The template parameters of a WhatsApp Business schedule (`hsmId`), sent with the message. */
20
+ export type ScheduleExtraOptions = {
21
+ /** The parameters of the header, body and buttons of the template, as a campaign takes them. */
22
+ parameters?: CampaignTemplateParameter[];
23
+ [key: string]: unknown;
24
+ };
7
25
  export type Schedule = {
8
26
  id: string;
9
27
  status: ScheduleStatus;
10
28
  /**
11
- * Why it was not sent: `ALREADY_TICKET_OPENED`, `DDD_BLOCKED`, `SERVICE_IS_NOT_ENABLED`,
12
- * `CONTACT_IS_BLOCKED`, `CONTACT_NOT_EXISTS`, `HSM_LIMIT_EXCEEDED`, `HSM_IS_BLOCKED`,
13
- * `SERVICE_IS_BLOCKED`, `INVALID_PAYLOAD`, a WhatsApp Business error code or
14
- * `SCHEDULE_UNKNOWN_REASON`.
29
+ * Why an `error` or `not_sent` schedule was not sent (see {@link ScheduleStatus}):
30
+ * `ALREADY_TICKET_OPENED`, `DDD_BLOCKED`, `SERVICE_IS_NOT_ENABLED`, `CONTACT_IS_BLOCKED`,
31
+ * `CONTACT_NOT_EXISTS`, `HSM_LIMIT_EXCEEDED`, `HSM_IS_BLOCKED`, `SERVICE_IS_BLOCKED`,
32
+ * `INVALID_PAYLOAD`, a WhatsApp Business error code or `SCHEDULE_UNKNOWN_REASON`. Usually `null`
33
+ * for a `done` schedule (see the archiving of the department in {@link ScheduleStatus}).
15
34
  */
16
35
  reason: string | null;
17
- /** For a WhatsApp Business template (`hsmId`), the message the server built from it. */
36
+ /**
37
+ * For a WhatsApp Business template (`hsmId`) sent with `extraOptions`, the message the server
38
+ * built from it; otherwise the `message` sent.
39
+ */
18
40
  message: string | null;
19
41
  notes: string;
20
42
  openTicket: boolean | null;
21
43
  notificateUser: boolean | null;
22
44
  /** Sends the message even when the contact already has an open ticket. */
23
45
  sendWithOpenTicket: boolean | null;
24
- extraOptions: Record<string, unknown> | null;
46
+ extraOptions: ScheduleExtraOptions | null;
25
47
  hsmId: string | null;
26
48
  hsmFileId: string | null;
27
49
  scheduledAt: string;
@@ -61,7 +83,11 @@ export type CreateSchedulePayload = {
61
83
  scheduledAt: string;
62
84
  contactId: string;
63
85
  departmentId: string;
64
- /** Up to 1024 characters. Optional for a WhatsApp Business template, built from `hsmId`. */
86
+ /**
87
+ * Up to 1024 characters. Optional for a WhatsApp Business template sent with `extraOptions` (the
88
+ * server builds it from the template); without both, the schedule turns `done` and no message is
89
+ * sent.
90
+ */
65
91
  message?: string;
66
92
  /**
67
93
  * Up to 1024 characters. Required by the route only with `openTicket: true`, but the column is
@@ -73,8 +99,13 @@ export type CreateSchedulePayload = {
73
99
  sendWithOpenTicket?: boolean;
74
100
  userId?: string;
75
101
  hsmId?: string;
102
+ /** The header file of the template (`hsmId`), uploaded with `attachedType: 'hsm.file'`. */
76
103
  hsmFileId?: string;
77
- extraOptions?: Record<string, unknown>;
104
+ /**
105
+ * Send it with `hsmId` (`{}` is enough for a template without parameters): without it the
106
+ * schedule sends `message` as plain text, not the template.
107
+ */
108
+ extraOptions?: ScheduleExtraOptions;
78
109
  /** New attachments only: the create drops `{ id }` items. */
79
110
  files?: ScheduleNewFilePayload[];
80
111
  };
@@ -94,7 +125,7 @@ export type UpdateSchedulePayload = {
94
125
  sendWithOpenTicket?: boolean;
95
126
  hsmId?: string | null;
96
127
  hsmFileId?: string | null;
97
- extraOptions?: Record<string, unknown> | null;
128
+ extraOptions?: ScheduleExtraOptions | null;
98
129
  /** Replaces the attachments: `{ id }` keeps one, `{ base64, ... }` adds one; omitted or `[]` removes all. */
99
130
  files?: ScheduleFilePayload[];
100
131
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/schedule/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE1C,2FAA2F;AAC3F,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAA;AAExE,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,cAAc,CAAA;IACtB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,wFAAwF;IACxF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,OAAO,GAAG,IAAI,CAAA;IAC1B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAA;IAC9B,0EAA0E;IAC1E,kBAAkB,EAAE,OAAO,GAAG,IAAI,CAAA;IAClC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAC5C,KAAK,EAAE,MAAM,GAAG,IA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IACnC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACjC,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IAC1C,6GAA6G;IAC7G,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC9B,CAAA"}
@@ -6,8 +6,8 @@ const require_core_BaseApi = require('../../core/BaseApi.cjs');
6
6
  * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,
7
7
  * so the `/terms` route has no create/list/update/delete — only the routes below.
8
8
  *
9
- * `GET /terms/:id/export-pdf` is not exposed: it answers a binary PDF, and `ApiClient` only
10
- * handles JSON/text bodies.
9
+ * `GET /terms/:id/export-pdf` (a binary PDF) has no method: read it with `client.requestRaw` (see
10
+ * "Raw responses" in the README).
11
11
  */
12
12
  var TermsApi = class extends require_core_BaseApi.BaseApi {
13
13
  basePath = "/terms";
@@ -1 +1 @@
1
- {"version":3,"file":"TermsApi.cjs","names":["BaseApi"],"sources":["../../../src/apis/terms/TermsApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { GetByIdQuery, HasGetById } from '../../core/types'\nimport type { Term } from './types'\n\n/**\n * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,\n * so the `/terms` route has no create/list/update/delete — only the routes below.\n *\n * `GET /terms/:id/export-pdf` is not exposed: it answers a binary PDF, and `ApiClient` only\n * handles JSON/text bodies.\n */\nexport class TermsApi extends BaseApi implements HasGetById<Term> {\n public readonly basePath = '/terms'\n\n /**\n * Returns a single term by its ID, scoped to the current account. When it does not exist the\n * backend answers 200 with an empty body, which resolves to `undefined`.\n */\n getById(id: string, query?: GetByIdQuery<Term>, headers?: Record<string, string>): Promise<Term> {\n const queryString = this.toQueryString(query)\n return this.client.get<Term>(`${this.basePath}/${id}${queryString}`, headers)\n }\n\n /**\n * Returns the terms of the current account that were not agreed to yet (`agreementDate` null).\n * The backend answers a plain array (not paginated) and ignores query parameters.\n */\n getNotAgreed(headers?: Record<string, string>): Promise<Term[]> {\n return this.client.get<Term[]>(`${this.basePath}/terms-not-agreed`, headers)\n }\n\n /**\n * Agrees to the given terms on behalf of the authenticated user. IRREVERSIBLE: the acceptance is\n * registered on Agnus, the terms get `agreementDate`/`userId`, and the signed PDFs are e-mailed\n * to the user. Only terms of the current account are affected.\n *\n * The response is passed through from Agnus as-is, so it is not typed.\n */\n agree(termIds: string[], headers?: Record<string, string>): Promise<unknown> {\n return this.client.patch<unknown, { terms: string[] }>(\n `${this.basePath}/agree`,\n { terms: termIds },\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;;AAWA,IAAa,WAAb,cAA8BA,6BAAoC;CAChE,AAAgB,WAAW;;;;;CAM3B,QAAQ,IAAY,OAA4B,SAAiD;EAC/F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAU,GAAG,KAAK,SAAS,GAAG,KAAK,eAAe,QAAQ;;;;;;CAO/E,aAAa,SAAmD;AAC9D,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,oBAAoB,QAAQ;;;;;;;;;CAU9E,MAAM,SAAmB,SAAoD;AAC3E,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,SACjB,EAAE,OAAO,SAAS,EAClB,QACD"}
1
+ {"version":3,"file":"TermsApi.cjs","names":["BaseApi"],"sources":["../../../src/apis/terms/TermsApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { GetByIdQuery, HasGetById } from '../../core/types'\nimport type { Term } from './types'\n\n/**\n * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,\n * so the `/terms` route has no create/list/update/delete — only the routes below.\n *\n * `GET /terms/:id/export-pdf` (a binary PDF) has no method: read it with `client.requestRaw` (see\n * \"Raw responses\" in the README).\n */\nexport class TermsApi extends BaseApi implements HasGetById<Term> {\n public readonly basePath = '/terms'\n\n /**\n * Returns a single term by its ID, scoped to the current account. When it does not exist the\n * backend answers 200 with an empty body, which resolves to `undefined`.\n */\n getById(id: string, query?: GetByIdQuery<Term>, headers?: Record<string, string>): Promise<Term> {\n const queryString = this.toQueryString(query)\n return this.client.get<Term>(`${this.basePath}/${id}${queryString}`, headers)\n }\n\n /**\n * Returns the terms of the current account that were not agreed to yet (`agreementDate` null).\n * The backend answers a plain array (not paginated) and ignores query parameters.\n */\n getNotAgreed(headers?: Record<string, string>): Promise<Term[]> {\n return this.client.get<Term[]>(`${this.basePath}/terms-not-agreed`, headers)\n }\n\n /**\n * Agrees to the given terms on behalf of the authenticated user. IRREVERSIBLE: the acceptance is\n * registered on Agnus, the terms get `agreementDate`/`userId`, and the signed PDFs are e-mailed\n * to the user. Only terms of the current account are affected.\n *\n * The response is passed through from Agnus as-is, so it is not typed.\n */\n agree(termIds: string[], headers?: Record<string, string>): Promise<unknown> {\n return this.client.patch<unknown, { terms: string[] }>(\n `${this.basePath}/agree`,\n { terms: termIds },\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;;AAWA,IAAa,WAAb,cAA8BA,6BAAoC;CAChE,AAAgB,WAAW;;;;;CAM3B,QAAQ,IAAY,OAA4B,SAAiD;EAC/F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAU,GAAG,KAAK,SAAS,GAAG,KAAK,eAAe,QAAQ;;;;;;CAO/E,aAAa,SAAmD;AAC9D,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,oBAAoB,QAAQ;;;;;;;;;CAU9E,MAAM,SAAmB,SAAoD;AAC3E,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,SACjB,EAAE,OAAO,SAAS,EAClB,QACD"}
@@ -5,8 +5,8 @@ import type { Term } from './types';
5
5
  * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,
6
6
  * so the `/terms` route has no create/list/update/delete — only the routes below.
7
7
  *
8
- * `GET /terms/:id/export-pdf` is not exposed: it answers a binary PDF, and `ApiClient` only
9
- * handles JSON/text bodies.
8
+ * `GET /terms/:id/export-pdf` (a binary PDF) has no method: read it with `client.requestRaw` (see
9
+ * "Raw responses" in the README).
10
10
  */
11
11
  export declare class TermsApi extends BaseApi implements HasGetById<Term> {
12
12
  readonly basePath = "/terms";
@@ -5,8 +5,8 @@ import { BaseApi } from "../../core/BaseApi.mjs";
5
5
  * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,
6
6
  * so the `/terms` route has no create/list/update/delete — only the routes below.
7
7
  *
8
- * `GET /terms/:id/export-pdf` is not exposed: it answers a binary PDF, and `ApiClient` only
9
- * handles JSON/text bodies.
8
+ * `GET /terms/:id/export-pdf` (a binary PDF) has no method: read it with `client.requestRaw` (see
9
+ * "Raw responses" in the README).
10
10
  */
11
11
  var TermsApi = class extends BaseApi {
12
12
  basePath = "/terms";
@@ -1 +1 @@
1
- {"version":3,"file":"TermsApi.mjs","names":[],"sources":["../../../src/apis/terms/TermsApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { GetByIdQuery, HasGetById } from '../../core/types'\nimport type { Term } from './types'\n\n/**\n * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,\n * so the `/terms` route has no create/list/update/delete — only the routes below.\n *\n * `GET /terms/:id/export-pdf` is not exposed: it answers a binary PDF, and `ApiClient` only\n * handles JSON/text bodies.\n */\nexport class TermsApi extends BaseApi implements HasGetById<Term> {\n public readonly basePath = '/terms'\n\n /**\n * Returns a single term by its ID, scoped to the current account. When it does not exist the\n * backend answers 200 with an empty body, which resolves to `undefined`.\n */\n getById(id: string, query?: GetByIdQuery<Term>, headers?: Record<string, string>): Promise<Term> {\n const queryString = this.toQueryString(query)\n return this.client.get<Term>(`${this.basePath}/${id}${queryString}`, headers)\n }\n\n /**\n * Returns the terms of the current account that were not agreed to yet (`agreementDate` null).\n * The backend answers a plain array (not paginated) and ignores query parameters.\n */\n getNotAgreed(headers?: Record<string, string>): Promise<Term[]> {\n return this.client.get<Term[]>(`${this.basePath}/terms-not-agreed`, headers)\n }\n\n /**\n * Agrees to the given terms on behalf of the authenticated user. IRREVERSIBLE: the acceptance is\n * registered on Agnus, the terms get `agreementDate`/`userId`, and the signed PDFs are e-mailed\n * to the user. Only terms of the current account are affected.\n *\n * The response is passed through from Agnus as-is, so it is not typed.\n */\n agree(termIds: string[], headers?: Record<string, string>): Promise<unknown> {\n return this.client.patch<unknown, { terms: string[] }>(\n `${this.basePath}/agree`,\n { terms: termIds },\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;AAWA,IAAa,WAAb,cAA8B,QAAoC;CAChE,AAAgB,WAAW;;;;;CAM3B,QAAQ,IAAY,OAA4B,SAAiD;EAC/F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAU,GAAG,KAAK,SAAS,GAAG,KAAK,eAAe,QAAQ;;;;;;CAO/E,aAAa,SAAmD;AAC9D,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,oBAAoB,QAAQ;;;;;;;;;CAU9E,MAAM,SAAmB,SAAoD;AAC3E,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,SACjB,EAAE,OAAO,SAAS,EAClB,QACD"}
1
+ {"version":3,"file":"TermsApi.mjs","names":[],"sources":["../../../src/apis/terms/TermsApi.ts"],"sourcesContent":["import { BaseApi } from '../../core/BaseApi'\nimport type { GetByIdQuery, HasGetById } from '../../core/types'\nimport type { Term } from './types'\n\n/**\n * Platform terms of use. Terms are published by Agnus (billing) and accepted by the account users,\n * so the `/terms` route has no create/list/update/delete — only the routes below.\n *\n * `GET /terms/:id/export-pdf` (a binary PDF) has no method: read it with `client.requestRaw` (see\n * \"Raw responses\" in the README).\n */\nexport class TermsApi extends BaseApi implements HasGetById<Term> {\n public readonly basePath = '/terms'\n\n /**\n * Returns a single term by its ID, scoped to the current account. When it does not exist the\n * backend answers 200 with an empty body, which resolves to `undefined`.\n */\n getById(id: string, query?: GetByIdQuery<Term>, headers?: Record<string, string>): Promise<Term> {\n const queryString = this.toQueryString(query)\n return this.client.get<Term>(`${this.basePath}/${id}${queryString}`, headers)\n }\n\n /**\n * Returns the terms of the current account that were not agreed to yet (`agreementDate` null).\n * The backend answers a plain array (not paginated) and ignores query parameters.\n */\n getNotAgreed(headers?: Record<string, string>): Promise<Term[]> {\n return this.client.get<Term[]>(`${this.basePath}/terms-not-agreed`, headers)\n }\n\n /**\n * Agrees to the given terms on behalf of the authenticated user. IRREVERSIBLE: the acceptance is\n * registered on Agnus, the terms get `agreementDate`/`userId`, and the signed PDFs are e-mailed\n * to the user. Only terms of the current account are affected.\n *\n * The response is passed through from Agnus as-is, so it is not typed.\n */\n agree(termIds: string[], headers?: Record<string, string>): Promise<unknown> {\n return this.client.patch<unknown, { terms: string[] }>(\n `${this.basePath}/agree`,\n { terms: termIds },\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;AAWA,IAAa,WAAb,cAA8B,QAAoC;CAChE,AAAgB,WAAW;;;;;CAM3B,QAAQ,IAAY,OAA4B,SAAiD;EAC/F,MAAM,cAAc,KAAK,cAAc,MAAM;AAC7C,SAAO,KAAK,OAAO,IAAU,GAAG,KAAK,SAAS,GAAG,KAAK,eAAe,QAAQ;;;;;;CAO/E,aAAa,SAAmD;AAC9D,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,oBAAoB,QAAQ;;;;;;;;;CAU9E,MAAM,SAAmB,SAAoD;AAC3E,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,SACjB,EAAE,OAAO,SAAS,EAClB,QACD"}
@@ -5,21 +5,31 @@ const require_core_BaseCrudApi = require('../../core/BaseCrudApi.cjs');
5
5
  /**
6
6
  * Tickets. The backend only serves them for reading (`getMany`, `getOne`, `getById`, the counts,
7
7
  * the first waiting time and the exports) plus `closeMany`: a ticket is opened and transferred by
8
- * `ContactsApi.transferTicket`. The reads check no permission (any authenticated user): the
9
- * `@permissions` of the inherited `getMany`, `getOne` and `getById` do not apply here. `getById`
10
- * of an unknown id resolves `null`. For a user who is not an admin, `getMany` leaves out the
11
- * tickets of the contacts of the connections restricted to that user; the counts and `getById`
12
- * do not.
8
+ * `ContactsApi.transferTicket`, and the ticket of one contact is closed by
9
+ * `ContactsApi.closeTicket`. `getById` of an unknown id resolves `null`. For a user who is not an
10
+ * admin, `getMany` leaves out the tickets of the contacts of the connections restricted to that
11
+ * user.
13
12
  */
14
13
  var TicketsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
15
14
  constructor(client) {
16
15
  super(client, "/tickets");
17
16
  }
17
+ /** Returns the first ticket matching the query, or `null` when none match. */
18
+ getOne(query, headers) {
19
+ return super.getOne(query, headers);
20
+ }
21
+ /** Returns a ticket by ID; an unknown id resolves `null`. */
22
+ getById(id, query, headers) {
23
+ return super.getById(id, query, headers);
24
+ }
18
25
  /** @deprecated Not served: `POST /tickets` answers 404 `Route not found.`. Open a ticket through `ContactsApi.transferTicket`. */
19
26
  create(body, headers) {
20
27
  return super.create(body, headers);
21
28
  }
22
- /** @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through `ContactsApi.transferTicket`, close through `closeMany`. */
29
+ /**
30
+ * @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through
31
+ * `ContactsApi.transferTicket`, close through `ContactsApi.closeTicket` or `closeMany`.
32
+ */
23
33
  updateById(id, body, headers) {
24
34
  return super.updateById(id, body, headers);
25
35
  }
@@ -28,8 +38,8 @@ var TicketsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
28
38
  return super.deleteById(id, headers);
29
39
  }
30
40
  /**
31
- * Closes multiple tickets in a single request. This is the only ticket-close
32
- * endpoint exposed by the API — there is no per-ticket close/update route.
41
+ * Closes multiple tickets in a single request. `ContactsApi.closeTicket` closes the ticket of one
42
+ * contact by the contact id, and also takes the rating of the AI summary.
33
43
  *
34
44
  * Pass `{ ids }` to close specific tickets, or `{ allContactsSelected: true, query }`
35
45
  * to close every OPEN ticket matching `query` (the backend forces `isOpen: true`): an empty
@@ -1 +1 @@
1
- {"version":3,"file":"TicketsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/tickets/TicketsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n Ticket,\n CreateTicketPayload,\n UpdateTicketPayload,\n CloseManyTicketsPayload,\n TicketsCount,\n TicketsCountManyQuery,\n TicketsCountPostPayload,\n TicketsCounts,\n TicketsListQuery,\n} from './types'\n\n/**\n * Tickets. The backend only serves them for reading (`getMany`, `getOne`, `getById`, the counts,\n * the first waiting time and the exports) plus `closeMany`: a ticket is opened and transferred by\n * `ContactsApi.transferTicket`. The reads check no permission (any authenticated user): the\n * `@permissions` of the inherited `getMany`, `getOne` and `getById` do not apply here. `getById`\n * of an unknown id resolves `null`. For a user who is not an admin, `getMany` leaves out the\n * tickets of the contacts of the connections restricted to that user; the counts and `getById`\n * do not.\n */\nexport class TicketsApi extends BaseCrudApi<Ticket, CreateTicketPayload, UpdateTicketPayload> {\n constructor(client: ApiClient) {\n super(client, '/tickets')\n }\n\n /** @deprecated Not served: `POST /tickets` answers 404 `Route not found.`. Open a ticket through `ContactsApi.transferTicket`. */\n override create(body: CreateTicketPayload, headers?: Record<string, string>): Promise<Ticket> {\n return super.create(body, headers)\n }\n\n /** @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through `ContactsApi.transferTicket`, close through `closeMany`. */\n override updateById(\n id: string,\n body: UpdateTicketPayload,\n headers?: Record<string, string>,\n ): Promise<Ticket> {\n return super.updateById(id, body, headers)\n }\n\n /** @deprecated Not served: `DELETE /tickets/{id}` answers 404 `Route not found.`. */\n override deleteById(id: string, headers?: Record<string, string>): Promise<Ticket> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Closes multiple tickets in a single request. This is the only ticket-close\n * endpoint exposed by the API — there is no per-ticket close/update route.\n *\n * Pass `{ ids }` to close specific tickets, or `{ allContactsSelected: true, query }`\n * to close every OPEN ticket matching `query` (the backend forces `isOpen: true`): an empty\n * `where` closes every open ticket of the account. The answer has no body. Ids of closed,\n * unknown or other accounts' tickets are skipped in silence; no id and no\n * `allContactsSelected` answers 400 `ids not found`.\n * @permissions tickets.close.all OR tickets.close.me\n */\n closeMany(payload: CloseManyTicketsPayload, headers?: Record<string, string>): Promise<void> {\n return this.client.put<void, CloseManyTicketsPayload>(\n `${this.basePath}/close-many`,\n payload,\n headers,\n )\n }\n\n /**\n * Counts the tickets matching the query. With `queries`, answers one count per query, in the\n * same order (the root filters are then ignored).\n */\n count(query: TicketsCountManyQuery, headers?: Record<string, string>): Promise<TicketsCounts>\n count(query?: TicketsListQuery, headers?: Record<string, string>): Promise<TicketsCount>\n count(\n query?: TicketsListQuery | TicketsCountManyQuery,\n headers?: Record<string, string>,\n ): Promise<TicketsCount | TicketsCounts> {\n return this.client.get<TicketsCount | TicketsCounts>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * POST variant of `count`, for queries too long for the URL. See {@link TicketsCountPostPayload}:\n * `query` is required.\n */\n countPost(\n body: TicketsCountPostPayload & { query: { queries: TicketsListQuery[] } },\n headers?: Record<string, string>,\n ): Promise<TicketsCounts>\n countPost(body: TicketsCountPostPayload, headers?: Record<string, string>): Promise<TicketsCount>\n countPost(\n body: TicketsCountPostPayload,\n headers?: Record<string, string>,\n ): Promise<TicketsCount | TicketsCounts> {\n return this.client.post<TicketsCount | TicketsCounts, TicketsCountPostPayload>(\n `${this.basePath}/count`,\n body,\n headers,\n )\n }\n\n /** Counts the open tickets of the contacts of a connection. An unknown id counts 0. */\n countOpenByService(serviceId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(`${this.basePath}/count-open/${serviceId}`, headers)\n }\n\n /** Counts the open tickets of a department. An unknown id counts 0. */\n countOpenByDepartment(departmentId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(\n `${this.basePath}/count-open-by-department/${departmentId}`,\n headers,\n )\n }\n\n /** Counts the open tickets assigned to a user. An unknown id counts 0. */\n countOpenByUser(userId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(`${this.basePath}/count-open-by-user/${userId}`, headers)\n }\n\n /**\n * The first waiting time of the ticket (`metrics.waitingTime`) as `HH:mm:ss`; `'00:00:00'` while\n * it was not measured. The hours wrap every 24 h (a wait of 25 h answers `'01:00:00'`): read\n * `metrics.waitingTime` (seconds) for the full value. An unknown id answers 500.\n */\n getFirstWaitingTime(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.get<string>(`${this.basePath}/${id}/first-waiting-time`, headers)\n }\n\n /**\n * Exports the conversation of a ticket as text, by its protocol (contact, attendants, subjects,\n * summary, dates and the messages without the internal comments), sent as the attachment\n * `<protocol>.txt` (Content-Type `plain/text`). Without a protocol the body is empty\n * (`undefined`); an unknown protocol never answers.\n */\n exportTxt(protocol: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, { protocol: string }>(\n `${this.basePath}/export`,\n { protocol },\n headers,\n )\n }\n\n /**\n * Exports the tickets matching the query as CSV (`;`, a header of 20 columns in the language of\n * the user, dates in the timezone of the account), streamed without a Content-Type.\n *\n * The query must include `contact` with its `service` (the History screen also includes\n * `contact.tags`, `contact.person`, `user`, `department`, `ticketTopics` and `firstMessage`),\n * and `order` must name unambiguous columns (e.g. `startedAt`): when a row fails after the header\n * is sent, the answer never ends. Leave `page` out: the route pages through every match itself\n * (`perPage` only sets the size of each batch), and a `page` in the query is read on every\n * batch, so its rows are repeated or the CSV comes with the header only.\n */\n exportHistory(query: TicketsListQuery, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(\n `${this.basePath}/export-history${this.toQueryString(query)}`,\n undefined,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAuBA,IAAa,aAAb,cAAgCA,qCAA8D;CAC5F,YAAY,QAAmB;AAC7B,QAAM,QAAQ,WAAW;;;CAI3B,AAAS,OAAO,MAA2B,SAAmD;AAC5F,SAAO,MAAM,OAAO,MAAM,QAAQ;;;CAIpC,AAAS,WACP,IACA,MACA,SACiB;AACjB,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;CAI5C,AAAS,WAAW,IAAY,SAAmD;AACjF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;;;;;;;CActC,UAAU,SAAkC,SAAiD;AAC3F,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,cACjB,SACA,QACD;;CASH,MACE,OACA,SACuC;AACvC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;CAYH,UACE,MACA,SACuC;AACvC,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,SACjB,MACA,QACD;;;CAIH,mBAAmB,WAAmB,SAAmD;AACvF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,cAAc,aAAa,QAAQ;;;CAIrF,sBAAsB,cAAsB,SAAmD;AAC7F,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,4BAA4B,gBAC7C,QACD;;;CAIH,gBAAgB,QAAgB,SAAmD;AACjF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,sBAAsB,UAAU,QAAQ;;;;;;;CAQ1F,oBAAoB,IAAY,SAAmD;AACjF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,GAAG,GAAG,sBAAsB,QAAQ;;;;;;;;CAStF,UAAU,UAAkB,SAAmD;AAC7E,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,UACjB,EAAE,UAAU,EACZ,QACD;;;;;;;;;;;;;CAcH,cAAc,OAAyB,SAAmD;AACxF,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,iBAAiB,KAAK,cAAc,MAAM,IAC3D,QACA,QACD"}
1
+ {"version":3,"file":"TicketsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/tickets/TicketsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { GetByIdQuery } from '../../core/types'\nimport type {\n Ticket,\n CreateTicketPayload,\n UpdateTicketPayload,\n CloseManyTicketsPayload,\n TicketsCount,\n TicketsCountManyQuery,\n TicketsCountPostPayload,\n TicketsCounts,\n TicketsListQuery,\n} from './types'\n\n/**\n * Tickets. The backend only serves them for reading (`getMany`, `getOne`, `getById`, the counts,\n * the first waiting time and the exports) plus `closeMany`: a ticket is opened and transferred by\n * `ContactsApi.transferTicket`, and the ticket of one contact is closed by\n * `ContactsApi.closeTicket`. `getById` of an unknown id resolves `null`. For a user who is not an\n * admin, `getMany` leaves out the tickets of the contacts of the connections restricted to that\n * user.\n */\nexport class TicketsApi extends BaseCrudApi<Ticket, CreateTicketPayload, UpdateTicketPayload> {\n constructor(client: ApiClient) {\n super(client, '/tickets')\n }\n\n /** Returns the first ticket matching the query, or `null` when none match. */\n override getOne(\n query?: TicketsListQuery,\n headers?: Record<string, string>,\n ): Promise<Ticket | null> {\n return super.getOne(query, headers)\n }\n\n /** Returns a ticket by ID; an unknown id resolves `null`. */\n override getById(\n id: string,\n query?: GetByIdQuery<Ticket>,\n headers?: Record<string, string>,\n ): Promise<Ticket> {\n return super.getById(id, query, headers)\n }\n\n /** @deprecated Not served: `POST /tickets` answers 404 `Route not found.`. Open a ticket through `ContactsApi.transferTicket`. */\n override create(body: CreateTicketPayload, headers?: Record<string, string>): Promise<Ticket> {\n return super.create(body, headers)\n }\n\n /**\n * @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through\n * `ContactsApi.transferTicket`, close through `ContactsApi.closeTicket` or `closeMany`.\n */\n override updateById(\n id: string,\n body: UpdateTicketPayload,\n headers?: Record<string, string>,\n ): Promise<Ticket> {\n return super.updateById(id, body, headers)\n }\n\n /** @deprecated Not served: `DELETE /tickets/{id}` answers 404 `Route not found.`. */\n override deleteById(id: string, headers?: Record<string, string>): Promise<Ticket> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Closes multiple tickets in a single request. `ContactsApi.closeTicket` closes the ticket of one\n * contact by the contact id, and also takes the rating of the AI summary.\n *\n * Pass `{ ids }` to close specific tickets, or `{ allContactsSelected: true, query }`\n * to close every OPEN ticket matching `query` (the backend forces `isOpen: true`): an empty\n * `where` closes every open ticket of the account. The answer has no body. Ids of closed,\n * unknown or other accounts' tickets are skipped in silence; no id and no\n * `allContactsSelected` answers 400 `ids not found`.\n * @permissions tickets.close.all OR tickets.close.me\n */\n closeMany(payload: CloseManyTicketsPayload, headers?: Record<string, string>): Promise<void> {\n return this.client.put<void, CloseManyTicketsPayload>(\n `${this.basePath}/close-many`,\n payload,\n headers,\n )\n }\n\n /**\n * Counts the tickets matching the query. With `queries`, answers one count per query, in the\n * same order (the root filters are then ignored).\n */\n count(query: TicketsCountManyQuery, headers?: Record<string, string>): Promise<TicketsCounts>\n count(query?: TicketsListQuery, headers?: Record<string, string>): Promise<TicketsCount>\n count(\n query?: TicketsListQuery | TicketsCountManyQuery,\n headers?: Record<string, string>,\n ): Promise<TicketsCount | TicketsCounts> {\n return this.client.get<TicketsCount | TicketsCounts>(\n `${this.basePath}/count${this.toQueryString(query)}`,\n headers,\n )\n }\n\n /**\n * POST variant of `count`, for queries too long for the URL. See {@link TicketsCountPostPayload}:\n * `query` is required.\n */\n countPost(\n body: TicketsCountPostPayload & { query: { queries: TicketsListQuery[] } },\n headers?: Record<string, string>,\n ): Promise<TicketsCounts>\n countPost(body: TicketsCountPostPayload, headers?: Record<string, string>): Promise<TicketsCount>\n countPost(\n body: TicketsCountPostPayload,\n headers?: Record<string, string>,\n ): Promise<TicketsCount | TicketsCounts> {\n return this.client.post<TicketsCount | TicketsCounts, TicketsCountPostPayload>(\n `${this.basePath}/count`,\n body,\n headers,\n )\n }\n\n /** Counts the open tickets of the contacts of a connection. An unknown id counts 0. */\n countOpenByService(serviceId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(`${this.basePath}/count-open/${serviceId}`, headers)\n }\n\n /** Counts the open tickets of a department. An unknown id counts 0. */\n countOpenByDepartment(departmentId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(\n `${this.basePath}/count-open-by-department/${departmentId}`,\n headers,\n )\n }\n\n /** Counts the open tickets assigned to a user. An unknown id counts 0. */\n countOpenByUser(userId: string, headers?: Record<string, string>): Promise<number> {\n return this.client.get<number>(`${this.basePath}/count-open-by-user/${userId}`, headers)\n }\n\n /**\n * The first waiting time of the ticket (`metrics.waitingTime`) as `HH:mm:ss`; `'00:00:00'` while\n * it was not measured. The hours wrap every 24 h (a wait of 25 h answers `'01:00:00'`): read\n * `metrics.waitingTime` (seconds) for the full value. An unknown id answers 500.\n */\n getFirstWaitingTime(id: string, headers?: Record<string, string>): Promise<string> {\n return this.client.get<string>(`${this.basePath}/${id}/first-waiting-time`, headers)\n }\n\n /**\n * Exports the conversation of a ticket as text, by its protocol (contact, attendants, subjects,\n * summary, dates and the messages without the internal comments), sent as the attachment\n * `<protocol>.txt` (Content-Type `plain/text`). Without a protocol the body is empty\n * (`undefined`); an unknown protocol never answers.\n */\n exportTxt(protocol: string, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string, { protocol: string }>(\n `${this.basePath}/export`,\n { protocol },\n headers,\n )\n }\n\n /**\n * Exports the tickets matching the query as CSV (`;`, a header of 20 columns in the language of\n * the user, dates in the timezone of the account), streamed without a Content-Type.\n *\n * The query must include `contact` with its `service` (the History screen also includes\n * `contact.tags`, `contact.person`, `user`, `department`, `ticketTopics` and `firstMessage`),\n * and `order` must name unambiguous columns (e.g. `startedAt`): when a row fails after the header\n * is sent, the answer never ends. Leave `page` out: the route pages through every match itself\n * (`perPage` only sets the size of each batch), and a `page` in the query is read on every\n * batch, so its rows are repeated or the CSV comes with the header only.\n */\n exportHistory(query: TicketsListQuery, headers?: Record<string, string>): Promise<string> {\n return this.client.post<string>(\n `${this.basePath}/export-history${this.toQueryString(query)}`,\n undefined,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;;;AAuBA,IAAa,aAAb,cAAgCA,qCAA8D;CAC5F,YAAY,QAAmB;AAC7B,QAAM,QAAQ,WAAW;;;CAI3B,AAAS,OACP,OACA,SACwB;AACxB,SAAO,MAAM,OAAO,OAAO,QAAQ;;;CAIrC,AAAS,QACP,IACA,OACA,SACiB;AACjB,SAAO,MAAM,QAAQ,IAAI,OAAO,QAAQ;;;CAI1C,AAAS,OAAO,MAA2B,SAAmD;AAC5F,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;CAOpC,AAAS,WACP,IACA,MACA,SACiB;AACjB,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;CAI5C,AAAS,WAAW,IAAY,SAAmD;AACjF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;;;;;;;CActC,UAAU,SAAkC,SAAiD;AAC3F,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,cACjB,SACA,QACD;;CASH,MACE,OACA,SACuC;AACvC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,QAAQ,KAAK,cAAc,MAAM,IAClD,QACD;;CAYH,UACE,MACA,SACuC;AACvC,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,SACjB,MACA,QACD;;;CAIH,mBAAmB,WAAmB,SAAmD;AACvF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,cAAc,aAAa,QAAQ;;;CAIrF,sBAAsB,cAAsB,SAAmD;AAC7F,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,4BAA4B,gBAC7C,QACD;;;CAIH,gBAAgB,QAAgB,SAAmD;AACjF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,sBAAsB,UAAU,QAAQ;;;;;;;CAQ1F,oBAAoB,IAAY,SAAmD;AACjF,SAAO,KAAK,OAAO,IAAY,GAAG,KAAK,SAAS,GAAG,GAAG,sBAAsB,QAAQ;;;;;;;;CAStF,UAAU,UAAkB,SAAmD;AAC7E,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,UACjB,EAAE,UAAU,EACZ,QACD;;;;;;;;;;;;;CAcH,cAAc,OAAyB,SAAmD;AACxF,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,iBAAiB,KAAK,cAAc,MAAM,IAC3D,QACA,QACD"}
@@ -1,26 +1,33 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
2
  import { BaseCrudApi } from '../../core/BaseCrudApi';
3
+ import type { GetByIdQuery } from '../../core/types';
3
4
  import type { Ticket, CreateTicketPayload, UpdateTicketPayload, CloseManyTicketsPayload, TicketsCount, TicketsCountManyQuery, TicketsCountPostPayload, TicketsCounts, TicketsListQuery } from './types';
4
5
  /**
5
6
  * Tickets. The backend only serves them for reading (`getMany`, `getOne`, `getById`, the counts,
6
7
  * the first waiting time and the exports) plus `closeMany`: a ticket is opened and transferred by
7
- * `ContactsApi.transferTicket`. The reads check no permission (any authenticated user): the
8
- * `@permissions` of the inherited `getMany`, `getOne` and `getById` do not apply here. `getById`
9
- * of an unknown id resolves `null`. For a user who is not an admin, `getMany` leaves out the
10
- * tickets of the contacts of the connections restricted to that user; the counts and `getById`
11
- * do not.
8
+ * `ContactsApi.transferTicket`, and the ticket of one contact is closed by
9
+ * `ContactsApi.closeTicket`. `getById` of an unknown id resolves `null`. For a user who is not an
10
+ * admin, `getMany` leaves out the tickets of the contacts of the connections restricted to that
11
+ * user.
12
12
  */
13
13
  export declare class TicketsApi extends BaseCrudApi<Ticket, CreateTicketPayload, UpdateTicketPayload> {
14
14
  constructor(client: ApiClient);
15
+ /** Returns the first ticket matching the query, or `null` when none match. */
16
+ getOne(query?: TicketsListQuery, headers?: Record<string, string>): Promise<Ticket | null>;
17
+ /** Returns a ticket by ID; an unknown id resolves `null`. */
18
+ getById(id: string, query?: GetByIdQuery<Ticket>, headers?: Record<string, string>): Promise<Ticket>;
15
19
  /** @deprecated Not served: `POST /tickets` answers 404 `Route not found.`. Open a ticket through `ContactsApi.transferTicket`. */
16
20
  create(body: CreateTicketPayload, headers?: Record<string, string>): Promise<Ticket>;
17
- /** @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through `ContactsApi.transferTicket`, close through `closeMany`. */
21
+ /**
22
+ * @deprecated Not served: `PUT /tickets/{id}` answers 404 `Route not found.`. Transfer through
23
+ * `ContactsApi.transferTicket`, close through `ContactsApi.closeTicket` or `closeMany`.
24
+ */
18
25
  updateById(id: string, body: UpdateTicketPayload, headers?: Record<string, string>): Promise<Ticket>;
19
26
  /** @deprecated Not served: `DELETE /tickets/{id}` answers 404 `Route not found.`. */
20
27
  deleteById(id: string, headers?: Record<string, string>): Promise<Ticket>;
21
28
  /**
22
- * Closes multiple tickets in a single request. This is the only ticket-close
23
- * endpoint exposed by the API — there is no per-ticket close/update route.
29
+ * Closes multiple tickets in a single request. `ContactsApi.closeTicket` closes the ticket of one
30
+ * contact by the contact id, and also takes the rating of the AI summary.
24
31
  *
25
32
  * Pass `{ ids }` to close specific tickets, or `{ allContactsSelected: true, query }`
26
33
  * to close every OPEN ticket matching `query` (the backend forces `isOpen: true`): an empty
@@ -1 +1 @@
1
- {"version":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