@ikatec/digisac-api-sdk 4.15.0 → 4.17.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 (189) hide show
  1. package/README.md +3 -1
  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/bots/BotsApi.cjs +16 -7
  17. package/dist/apis/bots/BotsApi.cjs.map +1 -1
  18. package/dist/apis/bots/BotsApi.d.ts +13 -7
  19. package/dist/apis/bots/BotsApi.d.ts.map +1 -1
  20. package/dist/apis/bots/BotsApi.mjs +16 -7
  21. package/dist/apis/bots/BotsApi.mjs.map +1 -1
  22. package/dist/apis/bots/types.d.ts +12 -2
  23. package/dist/apis/bots/types.d.ts.map +1 -1
  24. package/dist/apis/campaigns/CampaignsApi.cjs +25 -1
  25. package/dist/apis/campaigns/CampaignsApi.cjs.map +1 -1
  26. package/dist/apis/campaigns/CampaignsApi.d.ts +16 -1
  27. package/dist/apis/campaigns/CampaignsApi.d.ts.map +1 -1
  28. package/dist/apis/campaigns/CampaignsApi.mjs +25 -1
  29. package/dist/apis/campaigns/CampaignsApi.mjs.map +1 -1
  30. package/dist/apis/campaigns/types.d.ts +98 -6
  31. package/dist/apis/campaigns/types.d.ts.map +1 -1
  32. package/dist/apis/cards/types.d.ts +5 -5
  33. package/dist/apis/categories/CategoriesApi.cjs +1 -2
  34. package/dist/apis/categories/CategoriesApi.cjs.map +1 -1
  35. package/dist/apis/categories/CategoriesApi.d.ts +1 -2
  36. package/dist/apis/categories/CategoriesApi.d.ts.map +1 -1
  37. package/dist/apis/categories/CategoriesApi.mjs +1 -2
  38. package/dist/apis/categories/CategoriesApi.mjs.map +1 -1
  39. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs +2 -3
  40. package/dist/apis/clientFeedback/ClientFeedbackApi.cjs.map +1 -1
  41. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts +2 -3
  42. package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts.map +1 -1
  43. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs +2 -3
  44. package/dist/apis/clientFeedback/ClientFeedbackApi.mjs.map +1 -1
  45. package/dist/apis/contacts/ContactsApi.cjs +10 -6
  46. package/dist/apis/contacts/ContactsApi.cjs.map +1 -1
  47. package/dist/apis/contacts/ContactsApi.d.ts +19 -3
  48. package/dist/apis/contacts/ContactsApi.d.ts.map +1 -1
  49. package/dist/apis/contacts/ContactsApi.mjs +10 -6
  50. package/dist/apis/contacts/ContactsApi.mjs.map +1 -1
  51. package/dist/apis/contacts/types.d.ts +25 -0
  52. package/dist/apis/contacts/types.d.ts.map +1 -1
  53. package/dist/apis/customFields/types.d.ts +4 -4
  54. package/dist/apis/dashboard/DashboardApi.cjs +3 -3
  55. package/dist/apis/dashboard/DashboardApi.cjs.map +1 -1
  56. package/dist/apis/dashboard/DashboardApi.d.ts +3 -3
  57. package/dist/apis/dashboard/DashboardApi.mjs +3 -3
  58. package/dist/apis/dashboard/DashboardApi.mjs.map +1 -1
  59. package/dist/apis/dashboard/types.d.ts +11 -4
  60. package/dist/apis/dashboard/types.d.ts.map +1 -1
  61. package/dist/apis/departments/DepartmentsApi.cjs +5 -5
  62. package/dist/apis/departments/DepartmentsApi.cjs.map +1 -1
  63. package/dist/apis/departments/DepartmentsApi.d.ts +5 -5
  64. package/dist/apis/departments/DepartmentsApi.mjs +5 -5
  65. package/dist/apis/departments/DepartmentsApi.mjs.map +1 -1
  66. package/dist/apis/departments/types.d.ts +6 -0
  67. package/dist/apis/departments/types.d.ts.map +1 -1
  68. package/dist/apis/distribution/DistributionApi.cjs +3 -4
  69. package/dist/apis/distribution/DistributionApi.cjs.map +1 -1
  70. package/dist/apis/distribution/DistributionApi.d.ts +3 -4
  71. package/dist/apis/distribution/DistributionApi.d.ts.map +1 -1
  72. package/dist/apis/distribution/DistributionApi.mjs +3 -4
  73. package/dist/apis/distribution/DistributionApi.mjs.map +1 -1
  74. package/dist/apis/kanbanCards/KanbanCardsApi.cjs +32 -0
  75. package/dist/apis/kanbanCards/KanbanCardsApi.cjs.map +1 -1
  76. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts +27 -1
  77. package/dist/apis/kanbanCards/KanbanCardsApi.d.ts.map +1 -1
  78. package/dist/apis/kanbanCards/KanbanCardsApi.mjs +32 -0
  79. package/dist/apis/kanbanCards/KanbanCardsApi.mjs.map +1 -1
  80. package/dist/apis/kanbanCards/types.d.ts +1 -1
  81. package/dist/apis/kanbanCards/types.d.ts.map +1 -1
  82. package/dist/apis/kanbanColumns/KanbanColumnsApi.cjs +19 -0
  83. package/dist/apis/kanbanColumns/KanbanColumnsApi.cjs.map +1 -1
  84. package/dist/apis/kanbanColumns/KanbanColumnsApi.d.ts +16 -1
  85. package/dist/apis/kanbanColumns/KanbanColumnsApi.d.ts.map +1 -1
  86. package/dist/apis/kanbanColumns/KanbanColumnsApi.mjs +19 -0
  87. package/dist/apis/kanbanColumns/KanbanColumnsApi.mjs.map +1 -1
  88. package/dist/apis/kanbanColumns/types.d.ts +4 -0
  89. package/dist/apis/kanbanColumns/types.d.ts.map +1 -1
  90. package/dist/apis/messages/MessagesApi.cjs +13 -4
  91. package/dist/apis/messages/MessagesApi.cjs.map +1 -1
  92. package/dist/apis/messages/MessagesApi.d.ts +13 -4
  93. package/dist/apis/messages/MessagesApi.d.ts.map +1 -1
  94. package/dist/apis/messages/MessagesApi.mjs +13 -4
  95. package/dist/apis/messages/MessagesApi.mjs.map +1 -1
  96. package/dist/apis/messages/types.d.ts +30 -0
  97. package/dist/apis/messages/types.d.ts.map +1 -1
  98. package/dist/apis/pipeline/types.d.ts +7 -8
  99. package/dist/apis/pipeline/types.d.ts.map +1 -1
  100. package/dist/apis/quickReplies/types.d.ts +4 -1
  101. package/dist/apis/quickReplies/types.d.ts.map +1 -1
  102. package/dist/apis/schedule/types.d.ts +41 -10
  103. package/dist/apis/schedule/types.d.ts.map +1 -1
  104. package/dist/apis/terms/TermsApi.cjs +2 -2
  105. package/dist/apis/terms/TermsApi.cjs.map +1 -1
  106. package/dist/apis/terms/TermsApi.d.ts +2 -2
  107. package/dist/apis/terms/TermsApi.mjs +2 -2
  108. package/dist/apis/terms/TermsApi.mjs.map +1 -1
  109. package/dist/apis/tickets/TicketsApi.cjs +18 -8
  110. package/dist/apis/tickets/TicketsApi.cjs.map +1 -1
  111. package/dist/apis/tickets/TicketsApi.d.ts +15 -8
  112. package/dist/apis/tickets/TicketsApi.d.ts.map +1 -1
  113. package/dist/apis/tickets/TicketsApi.mjs +18 -8
  114. package/dist/apis/tickets/TicketsApi.mjs.map +1 -1
  115. package/dist/apis/tickets/types.d.ts +4 -1
  116. package/dist/apis/tickets/types.d.ts.map +1 -1
  117. package/dist/apis/timetable/TimetableApi.cjs +6 -0
  118. package/dist/apis/timetable/TimetableApi.cjs.map +1 -1
  119. package/dist/apis/timetable/TimetableApi.d.ts +6 -0
  120. package/dist/apis/timetable/TimetableApi.d.ts.map +1 -1
  121. package/dist/apis/timetable/TimetableApi.mjs +6 -0
  122. package/dist/apis/timetable/TimetableApi.mjs.map +1 -1
  123. package/dist/apis/timetable/types.d.ts +8 -0
  124. package/dist/apis/timetable/types.d.ts.map +1 -1
  125. package/dist/apis/users/UsersApi.cjs +11 -3
  126. package/dist/apis/users/UsersApi.cjs.map +1 -1
  127. package/dist/apis/users/UsersApi.d.ts +10 -4
  128. package/dist/apis/users/UsersApi.d.ts.map +1 -1
  129. package/dist/apis/users/UsersApi.mjs +11 -3
  130. package/dist/apis/users/UsersApi.mjs.map +1 -1
  131. package/dist/apis/users/types.d.ts +26 -0
  132. package/dist/apis/users/types.d.ts.map +1 -1
  133. package/dist/apis/webhooks/types.d.ts +51 -6
  134. package/dist/apis/webhooks/types.d.ts.map +1 -1
  135. package/dist/core/errors.cjs +4 -1
  136. package/dist/core/errors.cjs.map +1 -1
  137. package/dist/core/errors.d.ts +4 -1
  138. package/dist/core/errors.d.ts.map +1 -1
  139. package/dist/core/errors.mjs +4 -1
  140. package/dist/core/errors.mjs.map +1 -1
  141. package/package.json +1 -1
  142. package/src/apis/absence/AbsenceApi.ts +2 -2
  143. package/src/apis/absence/types.ts +1 -1
  144. package/src/apis/answers/AnswersApi.test.ts +32 -0
  145. package/src/apis/answers/AnswersApi.ts +38 -2
  146. package/src/apis/answers/types.ts +1 -2
  147. package/src/apis/bots/BotsApi.test.ts +16 -0
  148. package/src/apis/bots/BotsApi.ts +25 -7
  149. package/src/apis/bots/types.ts +12 -2
  150. package/src/apis/campaigns/CampaignsApi.test.ts +48 -0
  151. package/src/apis/campaigns/CampaignsApi.ts +31 -2
  152. package/src/apis/campaigns/types.ts +101 -3
  153. package/src/apis/cards/types.ts +5 -5
  154. package/src/apis/categories/CategoriesApi.ts +1 -2
  155. package/src/apis/clientFeedback/ClientFeedbackApi.ts +2 -3
  156. package/src/apis/contacts/ContactsApi.test.ts +36 -2
  157. package/src/apis/contacts/ContactsApi.ts +41 -3
  158. package/src/apis/contacts/types.ts +28 -0
  159. package/src/apis/creditMovements/CreditMovementsApi.test.ts +1 -1
  160. package/src/apis/customFields/types.ts +4 -4
  161. package/src/apis/dashboard/DashboardApi.test-d.ts +9 -0
  162. package/src/apis/dashboard/DashboardApi.ts +3 -3
  163. package/src/apis/dashboard/types.ts +11 -4
  164. package/src/apis/departments/DepartmentsApi.ts +5 -5
  165. package/src/apis/departments/types.ts +13 -0
  166. package/src/apis/distribution/DistributionApi.ts +3 -4
  167. package/src/apis/kanbanCards/KanbanCardsApi.test.ts +21 -0
  168. package/src/apis/kanbanCards/KanbanCardsApi.ts +47 -1
  169. package/src/apis/kanbanCards/types.ts +1 -1
  170. package/src/apis/kanbanColumns/KanbanColumnsApi.test.ts +26 -0
  171. package/src/apis/kanbanColumns/KanbanColumnsApi.ts +31 -0
  172. package/src/apis/kanbanColumns/types.ts +5 -0
  173. package/src/apis/messages/MessagesApi.ts +13 -4
  174. package/src/apis/messages/types.ts +31 -0
  175. package/src/apis/payloads.test-d.ts +217 -4
  176. package/src/apis/pipeline/types.ts +7 -8
  177. package/src/apis/queryFormat.test.ts +13 -0
  178. package/src/apis/quickReplies/types.ts +4 -1
  179. package/src/apis/schedule/types.ts +42 -10
  180. package/src/apis/terms/TermsApi.ts +2 -2
  181. package/src/apis/tickets/TicketsApi.ts +28 -8
  182. package/src/apis/tickets/types.ts +4 -1
  183. package/src/apis/timetable/TimetableApi.ts +6 -0
  184. package/src/apis/timetable/types.ts +9 -0
  185. package/src/apis/users/UsersApi.test.ts +17 -0
  186. package/src/apis/users/UsersApi.ts +21 -3
  187. package/src/apis/users/types.ts +28 -0
  188. package/src/apis/webhooks/types.ts +53 -6
  189. package/src/core/errors.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DepartmentsApi.cjs","names":["ArchivableCrudApi"],"sources":["../../../src/apis/departments/DepartmentsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { ArchivableCrudApi } from '../../core/ArchivableCrudApi'\nimport type {\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ArchiveDepartmentPayload,\n} from './types'\n\nexport class DepartmentsApi extends ArchivableCrudApi<\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ListQuery<Department>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/departments')\n }\n\n /**\n * Archives (`archive: true`) or restores (`archive: false`) a department through the route used\n * by the UI, which enforces what {@link archive}/{@link unarchive} (a plain `PUT { archivedAt }`)\n * skip: archiving refuses (403 `Cannot archive department.`, with the reasons and the open\n * tickets count) a department in use, and clears it as the default department of contacts and\n * connections, marks its schedules as done and unlinks its users and quick replies. Resolves the\n * stored department (not transformed); an unknown id answers 500.\n * @permissions departments.view OR departments.archive\n */\n archiveWithValidation(\n id: string,\n body: ArchiveDepartmentPayload,\n headers?: Record<string, string>,\n ): Promise<Department> {\n return this.client.post<Department, ArchiveDepartmentPayload>(\n `${this.basePath}/${id}/archive`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes a department. Resolves the text `'OK'`; a department that is the default of the account\n * or that is referenced in the attendant name visibility settings is refused, and an unknown id\n * answers 500.\n * @permissions departments.view OR departments.archive\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AAUA,IAAa,iBAAb,cAAoCA,iDAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,eAAe;;;;;;;;;;;CAY/B,sBACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD;;;;;;;;CASH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
1
+ {"version":3,"file":"DepartmentsApi.cjs","names":["ArchivableCrudApi"],"sources":["../../../src/apis/departments/DepartmentsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { ArchivableCrudApi } from '../../core/ArchivableCrudApi'\nimport type {\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ArchiveDepartmentPayload,\n} from './types'\n\nexport class DepartmentsApi extends ArchivableCrudApi<\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ListQuery<Department>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/departments')\n }\n\n /**\n * Archives (`archive: true`) or restores (`archive: false`) a department through the route used\n * by the UI: archiving refuses (403 `Cannot archive department.`) a department in use, or when it\n * is the only active department of the account (the `extra` of the error is an\n * `ArchiveDepartmentErrorExtra`). Archiving also clears it as the default department of contacts\n * and connections, marks its schedules as done and unlinks its users and quick replies. Resolves\n * the stored department (not transformed); an unknown id answers 500.\n * @permissions departments.view OR departments.archive\n */\n archiveWithValidation(\n id: string,\n body: ArchiveDepartmentPayload,\n headers?: Record<string, string>,\n ): Promise<Department> {\n return this.client.post<Department, ArchiveDepartmentPayload>(\n `${this.basePath}/${id}/archive`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes a department. Resolves the text `'OK'`; a department that is the default of the account\n * or that is referenced in the attendant name visibility settings is refused, and an unknown id\n * answers 500.\n * @permissions departments.view OR departments.archive\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AAUA,IAAa,iBAAb,cAAoCA,iDAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,eAAe;;;;;;;;;;;CAY/B,sBACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD;;;;;;;;CASH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -6,11 +6,11 @@ export declare class DepartmentsApi extends ArchivableCrudApi<Department, Create
6
6
  constructor(client: ApiClient);
7
7
  /**
8
8
  * Archives (`archive: true`) or restores (`archive: false`) a department through the route used
9
- * by the UI, which enforces what {@link archive}/{@link unarchive} (a plain `PUT { archivedAt }`)
10
- * skip: archiving refuses (403 `Cannot archive department.`, with the reasons and the open
11
- * tickets count) a department in use, and clears it as the default department of contacts and
12
- * connections, marks its schedules as done and unlinks its users and quick replies. Resolves the
13
- * stored department (not transformed); an unknown id answers 500.
9
+ * by the UI: archiving refuses (403 `Cannot archive department.`) a department in use, or when it
10
+ * is the only active department of the account (the `extra` of the error is an
11
+ * `ArchiveDepartmentErrorExtra`). Archiving also clears it as the default department of contacts
12
+ * and connections, marks its schedules as done and unlinks its users and quick replies. Resolves
13
+ * the stored department (not transformed); an unknown id answers 500.
14
14
  * @permissions departments.view OR departments.archive
15
15
  */
16
16
  archiveWithValidation(id: string, body: ArchiveDepartmentPayload, headers?: Record<string, string>): Promise<Department>;
@@ -7,11 +7,11 @@ var DepartmentsApi = class extends ArchivableCrudApi {
7
7
  }
8
8
  /**
9
9
  * Archives (`archive: true`) or restores (`archive: false`) a department through the route used
10
- * by the UI, which enforces what {@link archive}/{@link unarchive} (a plain `PUT { archivedAt }`)
11
- * skip: archiving refuses (403 `Cannot archive department.`, with the reasons and the open
12
- * tickets count) a department in use, and clears it as the default department of contacts and
13
- * connections, marks its schedules as done and unlinks its users and quick replies. Resolves the
14
- * stored department (not transformed); an unknown id answers 500.
10
+ * by the UI: archiving refuses (403 `Cannot archive department.`) a department in use, or when it
11
+ * is the only active department of the account (the `extra` of the error is an
12
+ * `ArchiveDepartmentErrorExtra`). Archiving also clears it as the default department of contacts
13
+ * and connections, marks its schedules as done and unlinks its users and quick replies. Resolves
14
+ * the stored department (not transformed); an unknown id answers 500.
15
15
  * @permissions departments.view OR departments.archive
16
16
  */
17
17
  archiveWithValidation(id, body, headers) {
@@ -1 +1 @@
1
- {"version":3,"file":"DepartmentsApi.mjs","names":[],"sources":["../../../src/apis/departments/DepartmentsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { ArchivableCrudApi } from '../../core/ArchivableCrudApi'\nimport type {\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ArchiveDepartmentPayload,\n} from './types'\n\nexport class DepartmentsApi extends ArchivableCrudApi<\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ListQuery<Department>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/departments')\n }\n\n /**\n * Archives (`archive: true`) or restores (`archive: false`) a department through the route used\n * by the UI, which enforces what {@link archive}/{@link unarchive} (a plain `PUT { archivedAt }`)\n * skip: archiving refuses (403 `Cannot archive department.`, with the reasons and the open\n * tickets count) a department in use, and clears it as the default department of contacts and\n * connections, marks its schedules as done and unlinks its users and quick replies. Resolves the\n * stored department (not transformed); an unknown id answers 500.\n * @permissions departments.view OR departments.archive\n */\n archiveWithValidation(\n id: string,\n body: ArchiveDepartmentPayload,\n headers?: Record<string, string>,\n ): Promise<Department> {\n return this.client.post<Department, ArchiveDepartmentPayload>(\n `${this.basePath}/${id}/archive`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes a department. Resolves the text `'OK'`; a department that is the default of the account\n * or that is referenced in the attendant name visibility settings is refused, and an unknown id\n * answers 500.\n * @permissions departments.view OR departments.archive\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAUA,IAAa,iBAAb,cAAoC,kBAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,eAAe;;;;;;;;;;;CAY/B,sBACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD;;;;;;;;CASH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
1
+ {"version":3,"file":"DepartmentsApi.mjs","names":[],"sources":["../../../src/apis/departments/DepartmentsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { ArchivableCrudApi } from '../../core/ArchivableCrudApi'\nimport type {\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ArchiveDepartmentPayload,\n} from './types'\n\nexport class DepartmentsApi extends ArchivableCrudApi<\n Department,\n CreateDepartmentPayload,\n UpdateDepartmentPayload,\n ListQuery<Department>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/departments')\n }\n\n /**\n * Archives (`archive: true`) or restores (`archive: false`) a department through the route used\n * by the UI: archiving refuses (403 `Cannot archive department.`) a department in use, or when it\n * is the only active department of the account (the `extra` of the error is an\n * `ArchiveDepartmentErrorExtra`). Archiving also clears it as the default department of contacts\n * and connections, marks its schedules as done and unlinks its users and quick replies. Resolves\n * the stored department (not transformed); an unknown id answers 500.\n * @permissions departments.view OR departments.archive\n */\n archiveWithValidation(\n id: string,\n body: ArchiveDepartmentPayload,\n headers?: Record<string, string>,\n ): Promise<Department> {\n return this.client.post<Department, ArchiveDepartmentPayload>(\n `${this.basePath}/${id}/archive`,\n body,\n headers,\n )\n }\n\n /**\n * Deletes a department. Resolves the text `'OK'`; a department that is the default of the account\n * or that is referenced in the attendant name visibility settings is refused, and an unknown id\n * answers 500.\n * @permissions departments.view OR departments.archive\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAUA,IAAa,iBAAb,cAAoC,kBAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,eAAe;;;;;;;;;;;CAY/B,sBACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD;;;;;;;;CASH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -26,4 +26,10 @@ export type ArchiveDepartmentPayload = {
26
26
  /** `true` archives, `false` restores. */
27
27
  archive: boolean;
28
28
  };
29
+ /** The `extra` of the 403 `Cannot archive department.` error of `archiveWithValidation`. */
30
+ export type ArchiveDepartmentErrorExtra = {
31
+ reasons: ('ONLY_ONE' | 'USED_BOT' | 'DEFAULT_DEPARTMENT' | 'VISIBILITY_SETTINGS' | 'OPEN_TICKETS')[];
32
+ /** Only with open tickets. */
33
+ openTicketsCount?: number;
34
+ };
29
35
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/departments/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAClC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;CACb,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,MAAM,CAAA;AAE7D,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AAED,sDAAsD;AACtD,MAAM,MAAM,wBAAwB,GAAG;IACrC,yCAAyC;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/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Api {
19
19
  return super.create(body, headers);
20
20
  }
21
21
  /**
22
- * Updates a distribution. The backend reads the id from the body, so it is sent there too. It replaces
23
- * the links: omitting `roles` or `departments` clears them. Resolves the stored distribution (with
24
- * `deletedAt`, without the links) or, when `departments` is sent, the updated departments. An unknown id
25
- * answers 500.
22
+ * Updates a distribution. It replaces the links: omitting `roles` or `departments` clears them.
23
+ * Resolves the stored distribution (with `deletedAt`, without the links) or, when `departments`
24
+ * is sent, the updated departments. An unknown id answers 500.
26
25
  * @permissions distribution.view OR distribution.update
27
26
  */
28
27
  updateById(id, body, headers) {
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/distribution/DistributionApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Department } from '../departments/types'\nimport type { Distribution, CreateDistributionPayload, UpdateDistributionPayload } from './types'\n\n/**\n * Ticket distribution rules. `getById` answers `null` for an unknown id and always includes `departments` and\n * `roles` (the query is ignored).\n */\nexport class DistributionApi extends BaseCrudApi<\n Distribution,\n CreateDistributionPayload,\n UpdateDistributionPayload,\n ListQuery<Distribution>,\n void,\n Distribution | undefined,\n Distribution | Department[]\n> {\n constructor(client: ApiClient) {\n super(client, '/distribution')\n }\n\n /**\n * Creates a distribution. Resolves the distribution (without `departments`/`roles`), or no body\n * (`undefined`) when `departments` is sent — find it by name with `getMany` in that case.\n * @permissions distribution.create\n */\n override create(\n body: CreateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | undefined> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a distribution. The backend reads the id from the body, so it is sent there too. It replaces\n * the links: omitting `roles` or `departments` clears them. Resolves the stored distribution (with\n * `deletedAt`, without the links) or, when `departments` is sent, the updated departments. An unknown id\n * answers 500.\n * @permissions distribution.view OR distribution.update\n */\n override updateById(\n id: string,\n body: UpdateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | Department[]> {\n return this.client.put<Distribution | Department[], UpdateDistributionPayload & { id: string }>(\n `${this.basePath}/${id}`,\n { ...body, id },\n headers,\n )\n }\n\n /**\n * Deletes a distribution. Resolves with no body, also for an unknown id (200).\n * @permissions distribution.view OR distribution.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<void> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;;AAUA,IAAa,kBAAb,cAAqCA,qCAQnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;;CAQhC,AAAS,OACP,MACA,SACmC;AACnC,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;;CAUpC,AAAS,WACP,IACA,MACA,SACsC;AACtC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,MACpB;GAAE,GAAG;GAAM;GAAI,EACf,QACD;;;;;;CAOH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
1
+ {"version":3,"file":"DistributionApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/distribution/DistributionApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Department } from '../departments/types'\nimport type { Distribution, CreateDistributionPayload, UpdateDistributionPayload } from './types'\n\n/**\n * Ticket distribution rules. `getById` answers `null` for an unknown id and always includes `departments` and\n * `roles` (the query is ignored).\n */\nexport class DistributionApi extends BaseCrudApi<\n Distribution,\n CreateDistributionPayload,\n UpdateDistributionPayload,\n ListQuery<Distribution>,\n void,\n Distribution | undefined,\n Distribution | Department[]\n> {\n constructor(client: ApiClient) {\n super(client, '/distribution')\n }\n\n /**\n * Creates a distribution. Resolves the distribution (without `departments`/`roles`), or no body\n * (`undefined`) when `departments` is sent — find it by name with `getMany` in that case.\n * @permissions distribution.create\n */\n override create(\n body: CreateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | undefined> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a distribution. It replaces the links: omitting `roles` or `departments` clears them.\n * Resolves the stored distribution (with `deletedAt`, without the links) or, when `departments`\n * is sent, the updated departments. An unknown id answers 500.\n * @permissions distribution.view OR distribution.update\n */\n override updateById(\n id: string,\n body: UpdateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | Department[]> {\n return this.client.put<Distribution | Department[], UpdateDistributionPayload & { id: string }>(\n `${this.basePath}/${id}`,\n { ...body, id },\n headers,\n )\n }\n\n /**\n * Deletes a distribution. Resolves with no body, also for an unknown id (200).\n * @permissions distribution.view OR distribution.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<void> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;;AAUA,IAAa,kBAAb,cAAqCA,qCAQnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;;CAQhC,AAAS,OACP,MACA,SACmC;AACnC,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;CASpC,AAAS,WACP,IACA,MACA,SACsC;AACtC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,MACpB;GAAE,GAAG;GAAM;GAAI,EACf,QACD;;;;;;CAOH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -16,10 +16,9 @@ export declare class DistributionApi extends BaseCrudApi<Distribution, CreateDis
16
16
  */
17
17
  create(body: CreateDistributionPayload, headers?: Record<string, string>): Promise<Distribution | undefined>;
18
18
  /**
19
- * Updates a distribution. The backend reads the id from the body, so it is sent there too. It replaces
20
- * the links: omitting `roles` or `departments` clears them. Resolves the stored distribution (with
21
- * `deletedAt`, without the links) or, when `departments` is sent, the updated departments. An unknown id
22
- * answers 500.
19
+ * Updates a distribution. It replaces the links: omitting `roles` or `departments` clears them.
20
+ * Resolves the stored distribution (with `deletedAt`, without the links) or, when `departments`
21
+ * is sent, the updated departments. An unknown id answers 500.
23
22
  * @permissions distribution.view OR distribution.update
24
23
  */
25
24
  updateById(id: string, body: UpdateDistributionPayload, headers?: Record<string, string>): Promise<Distribution | Department[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionApi.d.ts","sourceRoot":"","sources":["../../../src/apis/distribution/DistributionApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAEjG;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,SAAS,CAAC,YAAY,CAAC,EACvB,IAAI,EACJ,YAAY,GAAG,SAAS,EACxB,YAAY,GAAG,UAAU,EAAE,CAC5B;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACM,MAAM,CACb,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAIpC;;;;;;OAMG;IACM,UAAU,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,YAAY,GAAG,UAAU,EAAE,CAAC;IAQvC;;;OAGG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjF"}
1
+ {"version":3,"file":"DistributionApi.d.ts","sourceRoot":"","sources":["../../../src/apis/distribution/DistributionApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAEjG;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,SAAS,CAAC,YAAY,CAAC,EACvB,IAAI,EACJ,YAAY,GAAG,SAAS,EACxB,YAAY,GAAG,UAAU,EAAE,CAC5B;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACM,MAAM,CACb,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAIpC;;;;;OAKG;IACM,UAAU,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,YAAY,GAAG,UAAU,EAAE,CAAC;IAQvC;;;OAGG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjF"}
@@ -18,10 +18,9 @@ var DistributionApi = class extends BaseCrudApi {
18
18
  return super.create(body, headers);
19
19
  }
20
20
  /**
21
- * Updates a distribution. The backend reads the id from the body, so it is sent there too. It replaces
22
- * the links: omitting `roles` or `departments` clears them. Resolves the stored distribution (with
23
- * `deletedAt`, without the links) or, when `departments` is sent, the updated departments. An unknown id
24
- * answers 500.
21
+ * Updates a distribution. It replaces the links: omitting `roles` or `departments` clears them.
22
+ * Resolves the stored distribution (with `deletedAt`, without the links) or, when `departments`
23
+ * is sent, the updated departments. An unknown id answers 500.
25
24
  * @permissions distribution.view OR distribution.update
26
25
  */
27
26
  updateById(id, body, headers) {
@@ -1 +1 @@
1
- {"version":3,"file":"DistributionApi.mjs","names":[],"sources":["../../../src/apis/distribution/DistributionApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Department } from '../departments/types'\nimport type { Distribution, CreateDistributionPayload, UpdateDistributionPayload } from './types'\n\n/**\n * Ticket distribution rules. `getById` answers `null` for an unknown id and always includes `departments` and\n * `roles` (the query is ignored).\n */\nexport class DistributionApi extends BaseCrudApi<\n Distribution,\n CreateDistributionPayload,\n UpdateDistributionPayload,\n ListQuery<Distribution>,\n void,\n Distribution | undefined,\n Distribution | Department[]\n> {\n constructor(client: ApiClient) {\n super(client, '/distribution')\n }\n\n /**\n * Creates a distribution. Resolves the distribution (without `departments`/`roles`), or no body\n * (`undefined`) when `departments` is sent — find it by name with `getMany` in that case.\n * @permissions distribution.create\n */\n override create(\n body: CreateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | undefined> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a distribution. The backend reads the id from the body, so it is sent there too. It replaces\n * the links: omitting `roles` or `departments` clears them. Resolves the stored distribution (with\n * `deletedAt`, without the links) or, when `departments` is sent, the updated departments. An unknown id\n * answers 500.\n * @permissions distribution.view OR distribution.update\n */\n override updateById(\n id: string,\n body: UpdateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | Department[]> {\n return this.client.put<Distribution | Department[], UpdateDistributionPayload & { id: string }>(\n `${this.basePath}/${id}`,\n { ...body, id },\n headers,\n )\n }\n\n /**\n * Deletes a distribution. Resolves with no body, also for an unknown id (200).\n * @permissions distribution.view OR distribution.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<void> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;AAUA,IAAa,kBAAb,cAAqC,YAQnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;;CAQhC,AAAS,OACP,MACA,SACmC;AACnC,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;;CAUpC,AAAS,WACP,IACA,MACA,SACsC;AACtC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,MACpB;GAAE,GAAG;GAAM;GAAI,EACf,QACD;;;;;;CAOH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
1
+ {"version":3,"file":"DistributionApi.mjs","names":[],"sources":["../../../src/apis/distribution/DistributionApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Department } from '../departments/types'\nimport type { Distribution, CreateDistributionPayload, UpdateDistributionPayload } from './types'\n\n/**\n * Ticket distribution rules. `getById` answers `null` for an unknown id and always includes `departments` and\n * `roles` (the query is ignored).\n */\nexport class DistributionApi extends BaseCrudApi<\n Distribution,\n CreateDistributionPayload,\n UpdateDistributionPayload,\n ListQuery<Distribution>,\n void,\n Distribution | undefined,\n Distribution | Department[]\n> {\n constructor(client: ApiClient) {\n super(client, '/distribution')\n }\n\n /**\n * Creates a distribution. Resolves the distribution (without `departments`/`roles`), or no body\n * (`undefined`) when `departments` is sent — find it by name with `getMany` in that case.\n * @permissions distribution.create\n */\n override create(\n body: CreateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | undefined> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a distribution. It replaces the links: omitting `roles` or `departments` clears them.\n * Resolves the stored distribution (with `deletedAt`, without the links) or, when `departments`\n * is sent, the updated departments. An unknown id answers 500.\n * @permissions distribution.view OR distribution.update\n */\n override updateById(\n id: string,\n body: UpdateDistributionPayload,\n headers?: Record<string, string>,\n ): Promise<Distribution | Department[]> {\n return this.client.put<Distribution | Department[], UpdateDistributionPayload & { id: string }>(\n `${this.basePath}/${id}`,\n { ...body, id },\n headers,\n )\n }\n\n /**\n * Deletes a distribution. Resolves with no body, also for an unknown id (200).\n * @permissions distribution.view OR distribution.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<void> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;;;;AAUA,IAAa,kBAAb,cAAqC,YAQnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;;CAQhC,AAAS,OACP,MACA,SACmC;AACnC,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;CASpC,AAAS,WACP,IACA,MACA,SACsC;AACtC,SAAO,KAAK,OAAO,IACjB,GAAG,KAAK,SAAS,GAAG,MACpB;GAAE,GAAG;GAAM;GAAI,EACf,QACD;;;;;;CAOH,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
@@ -2,11 +2,43 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_core_BaseCrudApi = require('../../core/BaseCrudApi.cjs');
3
3
 
4
4
  //#region src/apis/kanbanCards/KanbanCardsApi.ts
5
+ /**
6
+ * Cards of the kanban boards: one per ticket in each board. The reads need `kanban.boards.view`
7
+ * and the writes `kanban.cards.move`. `getMany` takes the column in `where.columnId`. The errors of
8
+ * the writes (unknown column or ticket, ticket of a department not linked to the board, a second
9
+ * card of the ticket in the board, an update by a user outside the department of the ticket)
10
+ * answer 500.
11
+ */
5
12
  var KanbanCardsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
6
13
  constructor(client) {
7
14
  super(client, "/kanban-cards");
8
15
  }
9
16
  /**
17
+ * Returns a card by ID. An unknown id answers 404 `Kanban card not found.`.
18
+ * @permissions kanban.boards.view
19
+ */
20
+ getById(id, query, headers) {
21
+ return super.getById(id, query, headers);
22
+ }
23
+ /**
24
+ * Creates the card of a ticket in a column. The ticket must be of a department linked to the
25
+ * board and have no card in it yet.
26
+ * @permissions kanban.cards.move
27
+ */
28
+ create(body, headers) {
29
+ return super.create(body, headers);
30
+ }
31
+ /**
32
+ * Updates a card. To move it, use {@link reorder}: `updateById` does not recalculate the
33
+ * `position` and does not close or reopen the ticket. The user must belong to the
34
+ * department of the card's ticket (of the new `ticketId` when sent), or have
35
+ * `tickets.transfer.all`, or be admin; otherwise 500.
36
+ * @permissions kanban.cards.move
37
+ */
38
+ updateById(id, body, headers) {
39
+ return super.updateById(id, body, headers);
40
+ }
41
+ /**
10
42
  * Deletes a card. Resolves the text `'OK'`.
11
43
  * @permissions kanban.cards.move
12
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanCardsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanCard,\n CreateKanbanCardPayload,\n ReorderKanbanCardPayload,\n UpdateKanbanCardPayload,\n} from './types'\n\nexport class KanbanCardsApi extends BaseCrudApi<\n KanbanCard,\n CreateKanbanCardPayload,\n UpdateKanbanCardPayload,\n ListQuery<KanbanCard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\n }\n\n /**\n * Deletes a card. Resolves the text `'OK'`.\n * @permissions kanban.cards.move\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).\n * Resolves to the card with its new `position` and `columnId`.\n * @permissions kanban.cards.move\n */\n reorder(\n id: string,\n body: ReorderKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return this.client.patch<KanbanCard, ReorderKanbanCardPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;AAUA,IAAa,iBAAb,cAAoCA,qCAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;CAQtC,QACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
1
+ {"version":3,"file":"KanbanCardsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { GetByIdQuery, ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanCard,\n CreateKanbanCardPayload,\n ReorderKanbanCardPayload,\n UpdateKanbanCardPayload,\n} from './types'\n\n/**\n * Cards of the kanban boards: one per ticket in each board. The reads need `kanban.boards.view`\n * and the writes `kanban.cards.move`. `getMany` takes the column in `where.columnId`. The errors of\n * the writes (unknown column or ticket, ticket of a department not linked to the board, a second\n * card of the ticket in the board, an update by a user outside the department of the ticket)\n * answer 500.\n */\nexport class KanbanCardsApi extends BaseCrudApi<\n KanbanCard,\n CreateKanbanCardPayload,\n UpdateKanbanCardPayload,\n ListQuery<KanbanCard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\n }\n\n /**\n * Returns a card by ID. An unknown id answers 404 `Kanban card not found.`.\n * @permissions kanban.boards.view\n */\n override getById(\n id: string,\n query?: GetByIdQuery<KanbanCard>,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.getById(id, query, headers)\n }\n\n /**\n * Creates the card of a ticket in a column. The ticket must be of a department linked to the\n * board and have no card in it yet.\n * @permissions kanban.cards.move\n */\n override create(\n body: CreateKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a card. To move it, use {@link reorder}: `updateById` does not recalculate the\n * `position` and does not close or reopen the ticket. The user must belong to the\n * department of the card's ticket (of the new `ticketId` when sent), or have\n * `tickets.transfer.all`, or be admin; otherwise 500.\n * @permissions kanban.cards.move\n */\n override updateById(\n id: string,\n body: UpdateKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a card. Resolves the text `'OK'`.\n * @permissions kanban.cards.move\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).\n * Resolves to the card with its new `position` and `columnId`.\n * @permissions kanban.cards.move\n */\n reorder(\n id: string,\n body: ReorderKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return this.client.patch<KanbanCard, ReorderKanbanCardPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;;AAiBA,IAAa,iBAAb,cAAoCA,qCAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,QACP,IACA,OACA,SACqB;AACrB,SAAO,MAAM,QAAQ,IAAI,OAAO,QAAQ;;;;;;;CAQ1C,AAAS,OACP,MACA,SACqB;AACrB,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;;CAUpC,AAAS,WACP,IACA,MACA,SACqB;AACrB,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;CAO5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;CAQtC,QACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
@@ -1,9 +1,35 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
- import type { ListQuery } from '../../core/types';
2
+ import type { GetByIdQuery, ListQuery } from '../../core/types';
3
3
  import { BaseCrudApi } from '../../core/BaseCrudApi';
4
4
  import type { KanbanCard, CreateKanbanCardPayload, ReorderKanbanCardPayload, UpdateKanbanCardPayload } from './types';
5
+ /**
6
+ * Cards of the kanban boards: one per ticket in each board. The reads need `kanban.boards.view`
7
+ * and the writes `kanban.cards.move`. `getMany` takes the column in `where.columnId`. The errors of
8
+ * the writes (unknown column or ticket, ticket of a department not linked to the board, a second
9
+ * card of the ticket in the board, an update by a user outside the department of the ticket)
10
+ * answer 500.
11
+ */
5
12
  export declare class KanbanCardsApi extends BaseCrudApi<KanbanCard, CreateKanbanCardPayload, UpdateKanbanCardPayload, ListQuery<KanbanCard>, 'OK'> {
6
13
  constructor(client: ApiClient);
14
+ /**
15
+ * Returns a card by ID. An unknown id answers 404 `Kanban card not found.`.
16
+ * @permissions kanban.boards.view
17
+ */
18
+ getById(id: string, query?: GetByIdQuery<KanbanCard>, headers?: Record<string, string>): Promise<KanbanCard>;
19
+ /**
20
+ * Creates the card of a ticket in a column. The ticket must be of a department linked to the
21
+ * board and have no card in it yet.
22
+ * @permissions kanban.cards.move
23
+ */
24
+ create(body: CreateKanbanCardPayload, headers?: Record<string, string>): Promise<KanbanCard>;
25
+ /**
26
+ * Updates a card. To move it, use {@link reorder}: `updateById` does not recalculate the
27
+ * `position` and does not close or reopen the ticket. The user must belong to the
28
+ * department of the card's ticket (of the new `ticketId` when sent), or have
29
+ * `tickets.transfer.all`, or be admin; otherwise 500.
30
+ * @permissions kanban.cards.move
31
+ */
32
+ updateById(id: string, body: UpdateKanbanCardPayload, headers?: Record<string, string>): Promise<KanbanCard>;
7
33
  /**
8
34
  * Deletes a card. Resolves the text `'OK'`.
9
35
  * @permissions kanban.cards.move
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanCardsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,qBAAa,cAAe,SAAQ,WAAW,CAC7C,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,SAAS,CAAC,UAAU,CAAC,EACrB,IAAI,CACL;gBACa,MAAM,EAAE,SAAS;IAI7B;;;OAGG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhF;;;;OAIG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,UAAU,CAAC;CAOvB"}
1
+ {"version":3,"file":"KanbanCardsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC/D,OAAO,EAAE,WAAW,E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the kanban boards: one per ticket in each board. The reads need `kanban.boards.view`
6
+ * and the writes `kanban.cards.move`. `getMany` takes the column in `where.columnId`. The errors of
7
+ * the writes (unknown column or ticket, ticket of a department not linked to the board, a second
8
+ * card of the ticket in the board, an update by a user outside the department of the ticket)
9
+ * answer 500.
10
+ */
4
11
  var KanbanCardsApi = class extends BaseCrudApi {
5
12
  constructor(client) {
6
13
  super(client, "/kanban-cards");
7
14
  }
8
15
  /**
16
+ * Returns a card by ID. An unknown id answers 404 `Kanban card not found.`.
17
+ * @permissions kanban.boards.view
18
+ */
19
+ getById(id, query, headers) {
20
+ return super.getById(id, query, headers);
21
+ }
22
+ /**
23
+ * Creates the card of a ticket in a column. The ticket must be of a department linked to the
24
+ * board and have no card in it yet.
25
+ * @permissions kanban.cards.move
26
+ */
27
+ create(body, headers) {
28
+ return super.create(body, headers);
29
+ }
30
+ /**
31
+ * Updates a card. To move it, use {@link reorder}: `updateById` does not recalculate the
32
+ * `position` and does not close or reopen the ticket. The user must belong to the
33
+ * department of the card's ticket (of the new `ticketId` when sent), or have
34
+ * `tickets.transfer.all`, or be admin; otherwise 500.
35
+ * @permissions kanban.cards.move
36
+ */
37
+ updateById(id, body, headers) {
38
+ return super.updateById(id, body, headers);
39
+ }
40
+ /**
9
41
  * Deletes a card. Resolves the text `'OK'`.
10
42
  * @permissions kanban.cards.move
11
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanCardsApi.mjs","names":[],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanCard,\n CreateKanbanCardPayload,\n ReorderKanbanCardPayload,\n UpdateKanbanCardPayload,\n} from './types'\n\nexport class KanbanCardsApi extends BaseCrudApi<\n KanbanCard,\n CreateKanbanCardPayload,\n UpdateKanbanCardPayload,\n ListQuery<KanbanCard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\n }\n\n /**\n * Deletes a card. Resolves the text `'OK'`.\n * @permissions kanban.cards.move\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).\n * Resolves to the card with its new `position` and `columnId`.\n * @permissions kanban.cards.move\n */\n reorder(\n id: string,\n body: ReorderKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return this.client.patch<KanbanCard, ReorderKanbanCardPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;AAUA,IAAa,iBAAb,cAAoC,YAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;CAQtC,QACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
1
+ {"version":3,"file":"KanbanCardsApi.mjs","names":[],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { GetByIdQuery, ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanCard,\n CreateKanbanCardPayload,\n ReorderKanbanCardPayload,\n UpdateKanbanCardPayload,\n} from './types'\n\n/**\n * Cards of the kanban boards: one per ticket in each board. The reads need `kanban.boards.view`\n * and the writes `kanban.cards.move`. `getMany` takes the column in `where.columnId`. The errors of\n * the writes (unknown column or ticket, ticket of a department not linked to the board, a second\n * card of the ticket in the board, an update by a user outside the department of the ticket)\n * answer 500.\n */\nexport class KanbanCardsApi extends BaseCrudApi<\n KanbanCard,\n CreateKanbanCardPayload,\n UpdateKanbanCardPayload,\n ListQuery<KanbanCard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\n }\n\n /**\n * Returns a card by ID. An unknown id answers 404 `Kanban card not found.`.\n * @permissions kanban.boards.view\n */\n override getById(\n id: string,\n query?: GetByIdQuery<KanbanCard>,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.getById(id, query, headers)\n }\n\n /**\n * Creates the card of a ticket in a column. The ticket must be of a department linked to the\n * board and have no card in it yet.\n * @permissions kanban.cards.move\n */\n override create(\n body: CreateKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.create(body, headers)\n }\n\n /**\n * Updates a card. To move it, use {@link reorder}: `updateById` does not recalculate the\n * `position` and does not close or reopen the ticket. The user must belong to the\n * department of the card's ticket (of the new `ticketId` when sent), or have\n * `tickets.transfer.all`, or be admin; otherwise 500.\n * @permissions kanban.cards.move\n */\n override updateById(\n id: string,\n body: UpdateKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return super.updateById(id, body, headers)\n }\n\n /**\n * Deletes a card. Resolves the text `'OK'`.\n * @permissions kanban.cards.move\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).\n * Resolves to the card with its new `position` and `columnId`.\n * @permissions kanban.cards.move\n */\n reorder(\n id: string,\n body: ReorderKanbanCardPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanCard> {\n return this.client.patch<KanbanCard, ReorderKanbanCardPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;;;;;;;AAiBA,IAAa,iBAAb,cAAoC,YAMlC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,QACP,IACA,OACA,SACqB;AACrB,SAAO,MAAM,QAAQ,IAAI,OAAO,QAAQ;;;;;;;CAQ1C,AAAS,OACP,MACA,SACqB;AACrB,SAAO,MAAM,OAAO,MAAM,QAAQ;;;;;;;;;CAUpC,AAAS,WACP,IACA,MACA,SACqB;AACrB,SAAO,MAAM,WAAW,IAAI,MAAM,QAAQ;;;;;;CAO5C,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;CAQtC,QACE,IACA,MACA,SACqB;AACrB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
@@ -22,7 +22,7 @@ export type CreateKanbanCardPayload = {
22
22
  export type UpdateKanbanCardPayload = {
23
23
  columnId?: string;
24
24
  position?: string;
25
- /** The caller must share a department with the ticket (or transfer to all / be admin). */
25
+ /** Moves the card to another ticket (see `KanbanCardsApi.updateById` for who can update it). */
26
26
  ticketId?: string;
27
27
  };
28
28
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanCards/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,uB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B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACzB,CAAA"}
@@ -7,6 +7,25 @@ var KanbanColumnsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
7
7
  super(client, "/kanban-columns");
8
8
  }
9
9
  /**
10
+ * Deletes a column and its cards (their tickets are kept as they are). The `'initial'` and
11
+ * `'final'` columns cannot be deleted (500). Resolves to the deleted column. To keep the cards,
12
+ * use {@link deleteMovingCards}.
13
+ * @permissions kanban.columns.destroy
14
+ */
15
+ deleteById(id, headers) {
16
+ return super.deleteById(id, headers);
17
+ }
18
+ /**
19
+ * Deletes a column after moving its cards to the top of another column of the board, in their
20
+ * order. The cards move as `KanbanCardsApi.reorder` moves them: to the `'final'` column,
21
+ * their open tickets are closed. The `'initial'` and `'final'` columns cannot be deleted (500).
22
+ * Resolves to the deleted column.
23
+ * @permissions kanban.columns.destroy
24
+ */
25
+ deleteMovingCards(id, body, headers) {
26
+ return this.client.request("DELETE", `${this.basePath}/${id}`, body, headers);
27
+ }
28
+ /**
10
29
  * Moves a column between two neighbours of the same board. Both the column and a neighbour
11
30
  * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the
12
31
  * column with its new `position`.
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanColumnsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanColumns/KanbanColumnsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanColumn,\n CreateKanbanColumnPayload,\n ReorderKanbanColumnPayload,\n UpdateKanbanColumnPayload,\n} from './types'\n\nexport class KanbanColumnsApi extends BaseCrudApi<\n KanbanColumn,\n CreateKanbanColumnPayload,\n UpdateKanbanColumnPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-columns')\n }\n\n /**\n * Moves a column between two neighbours of the same board. Both the column and a neighbour\n * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the\n * column with its new `position`.\n * @permissions kanban.columns.update\n */\n reorder(\n id: string,\n body: ReorderKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.patch<KanbanColumn, ReorderKanbanColumnPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;AASA,IAAa,mBAAb,cAAsCA,qCAIpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;;CASlC,QACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
1
+ {"version":3,"file":"KanbanColumnsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanColumns/KanbanColumnsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanColumn,\n CreateKanbanColumnPayload,\n DeleteKanbanColumnPayload,\n ReorderKanbanColumnPayload,\n UpdateKanbanColumnPayload,\n} from './types'\n\nexport class KanbanColumnsApi extends BaseCrudApi<\n KanbanColumn,\n CreateKanbanColumnPayload,\n UpdateKanbanColumnPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-columns')\n }\n\n /**\n * Deletes a column and its cards (their tickets are kept as they are). The `'initial'` and\n * `'final'` columns cannot be deleted (500). Resolves to the deleted column. To keep the cards,\n * use {@link deleteMovingCards}.\n * @permissions kanban.columns.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<KanbanColumn> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Deletes a column after moving its cards to the top of another column of the board, in their\n * order. The cards move as `KanbanCardsApi.reorder` moves them: to the `'final'` column,\n * their open tickets are closed. The `'initial'` and `'final'` columns cannot be deleted (500).\n * Resolves to the deleted column.\n * @permissions kanban.columns.destroy\n */\n deleteMovingCards(\n id: string,\n body: DeleteKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.request<KanbanColumn, DeleteKanbanColumnPayload>(\n 'DELETE',\n `${this.basePath}/${id}`,\n body,\n headers,\n )\n }\n\n /**\n * Moves a column between two neighbours of the same board. Both the column and a neighbour\n * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the\n * column with its new `position`.\n * @permissions kanban.columns.update\n */\n reorder(\n id: string,\n body: ReorderKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.patch<KanbanColumn, ReorderKanbanColumnPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;;AAUA,IAAa,mBAAb,cAAsCA,qCAIpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;;CASlC,AAAS,WAAW,IAAY,SAAyD;AACvF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;;;CAUtC,kBACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,QACjB,UACA,GAAG,KAAK,SAAS,GAAG,MACpB,MACA,QACD;;;;;;;;CASH,QACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
@@ -1,8 +1,23 @@
1
1
  import type { ApiClient } from '../../core/ApiClient';
2
2
  import { BaseCrudApi } from '../../core/BaseCrudApi';
3
- import type { KanbanColumn, CreateKanbanColumnPayload, ReorderKanbanColumnPayload, UpdateKanbanColumnPayload } from './types';
3
+ import type { KanbanColumn, CreateKanbanColumnPayload, DeleteKanbanColumnPayload, ReorderKanbanColumnPayload, UpdateKanbanColumnPayload } from './types';
4
4
  export declare class KanbanColumnsApi extends BaseCrudApi<KanbanColumn, CreateKanbanColumnPayload, UpdateKanbanColumnPayload> {
5
5
  constructor(client: ApiClient);
6
+ /**
7
+ * Deletes a column and its cards (their tickets are kept as they are). The `'initial'` and
8
+ * `'final'` columns cannot be deleted (500). Resolves to the deleted column. To keep the cards,
9
+ * use {@link deleteMovingCards}.
10
+ * @permissions kanban.columns.destroy
11
+ */
12
+ deleteById(id: string, headers?: Record<string, string>): Promise<KanbanColumn>;
13
+ /**
14
+ * Deletes a column after moving its cards to the top of another column of the board, in their
15
+ * order. The cards move as `KanbanCardsApi.reorder` moves them: to the `'final'` column,
16
+ * their open tickets are closed. The `'initial'` and `'final'` columns cannot be deleted (500).
17
+ * Resolves to the deleted column.
18
+ * @permissions kanban.columns.destroy
19
+ */
20
+ deleteMovingCards(id: string, body: DeleteKanbanColumnPayload, headers?: Record<string, string>): Promise<KanbanColumn>;
6
21
  /**
7
22
  * Moves a column between two neighbours of the same board. Both the column and a neighbour
8
23
  * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanColumnsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanColumns/KanbanColumnsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAA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,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,OAAO,CAAC,YAAY,CAAC;CAOzB"}
@@ -6,6 +6,25 @@ var KanbanColumnsApi = class extends BaseCrudApi {
6
6
  super(client, "/kanban-columns");
7
7
  }
8
8
  /**
9
+ * Deletes a column and its cards (their tickets are kept as they are). The `'initial'` and
10
+ * `'final'` columns cannot be deleted (500). Resolves to the deleted column. To keep the cards,
11
+ * use {@link deleteMovingCards}.
12
+ * @permissions kanban.columns.destroy
13
+ */
14
+ deleteById(id, headers) {
15
+ return super.deleteById(id, headers);
16
+ }
17
+ /**
18
+ * Deletes a column after moving its cards to the top of another column of the board, in their
19
+ * order. The cards move as `KanbanCardsApi.reorder` moves them: to the `'final'` column,
20
+ * their open tickets are closed. The `'initial'` and `'final'` columns cannot be deleted (500).
21
+ * Resolves to the deleted column.
22
+ * @permissions kanban.columns.destroy
23
+ */
24
+ deleteMovingCards(id, body, headers) {
25
+ return this.client.request("DELETE", `${this.basePath}/${id}`, body, headers);
26
+ }
27
+ /**
9
28
  * Moves a column between two neighbours of the same board. Both the column and a neighbour
10
29
  * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the
11
30
  * column with its new `position`.
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanColumnsApi.mjs","names":[],"sources":["../../../src/apis/kanbanColumns/KanbanColumnsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanColumn,\n CreateKanbanColumnPayload,\n ReorderKanbanColumnPayload,\n UpdateKanbanColumnPayload,\n} from './types'\n\nexport class KanbanColumnsApi extends BaseCrudApi<\n KanbanColumn,\n CreateKanbanColumnPayload,\n UpdateKanbanColumnPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-columns')\n }\n\n /**\n * Moves a column between two neighbours of the same board. Both the column and a neighbour\n * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the\n * column with its new `position`.\n * @permissions kanban.columns.update\n */\n reorder(\n id: string,\n body: ReorderKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.patch<KanbanColumn, ReorderKanbanColumnPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;AASA,IAAa,mBAAb,cAAsC,YAIpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;;CASlC,QACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
1
+ {"version":3,"file":"KanbanColumnsApi.mjs","names":[],"sources":["../../../src/apis/kanbanColumns/KanbanColumnsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KanbanColumn,\n CreateKanbanColumnPayload,\n DeleteKanbanColumnPayload,\n ReorderKanbanColumnPayload,\n UpdateKanbanColumnPayload,\n} from './types'\n\nexport class KanbanColumnsApi extends BaseCrudApi<\n KanbanColumn,\n CreateKanbanColumnPayload,\n UpdateKanbanColumnPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-columns')\n }\n\n /**\n * Deletes a column and its cards (their tickets are kept as they are). The `'initial'` and\n * `'final'` columns cannot be deleted (500). Resolves to the deleted column. To keep the cards,\n * use {@link deleteMovingCards}.\n * @permissions kanban.columns.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<KanbanColumn> {\n return super.deleteById(id, headers)\n }\n\n /**\n * Deletes a column after moving its cards to the top of another column of the board, in their\n * order. The cards move as `KanbanCardsApi.reorder` moves them: to the `'final'` column,\n * their open tickets are closed. The `'initial'` and `'final'` columns cannot be deleted (500).\n * Resolves to the deleted column.\n * @permissions kanban.columns.destroy\n */\n deleteMovingCards(\n id: string,\n body: DeleteKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.request<KanbanColumn, DeleteKanbanColumnPayload>(\n 'DELETE',\n `${this.basePath}/${id}`,\n body,\n headers,\n )\n }\n\n /**\n * Moves a column between two neighbours of the same board. Both the column and a neighbour\n * must be draggable; swapped neighbours (`before` after `after`) fail with 500. Resolves to the\n * column with its new `position`.\n * @permissions kanban.columns.update\n */\n reorder(\n id: string,\n body: ReorderKanbanColumnPayload,\n headers?: Record<string, string>,\n ): Promise<KanbanColumn> {\n return this.client.patch<KanbanColumn, ReorderKanbanColumnPayload>(\n `${this.basePath}/${id}/reorder`,\n body,\n headers,\n )\n }\n}\n"],"mappings":";;;AAUA,IAAa,mBAAb,cAAsC,YAIpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;;CASlC,AAAS,WAAW,IAAY,SAAyD;AACvF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;;;;;;;CAUtC,kBACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,QACjB,UACA,GAAG,KAAK,SAAS,GAAG,MACpB,MACA,QACD;;;;;;;;CASH,QACE,IACA,MACA,SACuB;AACvB,SAAO,KAAK,OAAO,MACjB,GAAG,KAAK,SAAS,GAAG,GAAG,WACvB,MACA,QACD"}
@@ -43,4 +43,8 @@ export type ReorderKanbanColumnPayload = {
43
43
  /** The column that ends up on the right. */
44
44
  afterColumnId?: string;
45
45
  };
46
+ export type DeleteKanbanColumnPayload = {
47
+ /** The column of the same board that receives the cards of the deleted one. */
48
+ cardsDestinationColumnId: string;
49
+ };
46
50
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanColumns/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAA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AA;IACjB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,2FAA2F;AAC3F,MAAM,MAAM,0BAA0B,GAAG;IACvC,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,+EAA+E;IAC/E,wBAAwB,EAAE,MAAM,CAAA;CACjC,CAAA"}
@@ -10,10 +10,19 @@ var MessagesApi = class extends require_core_BaseCrudApi.BaseCrudApi {
10
10
  super(client, "/messages");
11
11
  }
12
12
  /**
13
- * Edits the text (or the file) of a message sent by the account, up to 15 minutes after it was
14
- * sent (403 `Cannot edit message` after that). `contactId` is required (without it the route
15
- * answers 500), and `text` or `file` (400 without both). Sent as `PATCH /messages/:id`.
16
- * @permissions messages.update
13
+ * Edits the text of a message sent by the account, up to 15 minutes after it was sent. Sent as
14
+ * `PATCH /messages/:id`. `contactId` is required: without it the route answers 500, and an
15
+ * unknown or blocked contact answers 400 `The given data was invalid.` (the error comes in
16
+ * `contactId`). So is `text`: `text: ''` alone answers 400 (`At least one field (text or file)
17
+ * must be provided`), and a `text` with only spaces answers 400 `Text cannot be empty`. Only the
18
+ * text is edited: `file` is not sent to the connection. A message received, or sent more than
19
+ * 15 minutes ago, answers 403 `Cannot edit message`; an unknown message answers 404
20
+ * `Message not found`. The message passes to the user who edited it.
21
+ *
22
+ * The message is answered once the edit is sent to the connection, before the connection
23
+ * confirms it: read it again until `text` changes (`data.edited` is set to `true` when the
24
+ * connection reports the edit). On WhatsApp Business and Telegram connections the route answers
25
+ * the result of the edit job, not the message: read it again with `getById`.
17
26
  */
18
27
  updateById(id, body, headers) {
19
28
  return this.client.patch(`${this.basePath}/${id}`, body, headers);
@@ -1 +1 @@
1
- {"version":3,"file":"MessagesApi.cjs","names":["BaseCrudApi"],"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,cAAiCA,qCAAiE;CAChG,YAAY,QAAmB;AAC7B,QAAM,QAAQ,YAAY;;;;;;;;CAS5B,AAAS,WACP,IACA,MACA,SACkB;AAClB,SAAO,KAAK,OAAO,MAAqC,GAAG,KAAK,SAAS,GAAG,MAAM,MAAM,QAAQ;;;;;;CAOlG,AAAS,WAAW,IAAY,SAAoD;AAClF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;CAItC,QACE,MACA,SACgC;AAChC,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,WACjB,MACA,QACD;;;CAIH,OAAO,IAAY,SAAoD;AACrE,SAAO,KAAK,OAAO,KAAc,GAAG,KAAK,SAAS,GAAG,GAAG,UAAU,QAAW,QAAQ;;;CAIvF,eAAe,IAAY,SAAoD;AAC7E,SAAO,KAAK,OAAO,IAAa,GAAG,KAAK,SAAS,GAAG,GAAG,mBAAmB,QAAW,QAAQ;;;CAI/F,WAAW,MAAyB,SAAoD;AACtF,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,eACjB,MACA,QACD;;;CAIH,aACE,IACA,MACA,SACkB;AAClB,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,GAAG,GAAG,iBACvB,MACA,QACD;;;CAIH,UAAU,MAAwB,SAA4D;AAC5F,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,cACjB,MACA,QACD;;;CAIH,aACE,MACA,SAC6B;AAC7B,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,iBACjB,MACA,QACD;;;;;;CAOH,YAAY,MAA0B,SAAoD;AACxF,SAAO,KAAK,OAAO,QACjB,UACA,GAAG,KAAK,SAAS,QACjB,MACA,QACD;;;;;;;CAQH,UAAU,IAAY,SAAmD;AACvE,SAAO,KAAK,OAAO,KAAa,GAAG,KAAK,SAAS,GAAG,GAAG,aAAa,QAAW,QAAQ;;;CAIzF,WACE,IACA,OACA,SAC2B;EAC3B,MAAM,cAAc,QAAQ,IAAI,WAAG,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,WAAG,UAAU,MAAM,KAAK;AACxD,SAAO,KAAK,OAAO,IAAe,GAAG,KAAK,SAAS,GAAG,GAAG,SAAS,eAAe,QAAQ"}
1
+ {"version":3,"file":"MessagesApi.cjs","names":["BaseCrudApi"],"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,cAAiCA,qCAAiE;CAChG,YAAY,QAAmB;AAC7B,QAAM,QAAQ,YAAY;;;;;;;;;;;;;;;;;CAkB5B,AAAS,WACP,IACA,MACA,SACkB;AAClB,SAAO,KAAK,OAAO,MAAqC,GAAG,KAAK,SAAS,GAAG,MAAM,MAAM,QAAQ;;;;;;CAOlG,AAAS,WAAW,IAAY,SAAoD;AAClF,SAAO,MAAM,WAAW,IAAI,QAAQ;;;CAItC,QACE,MACA,SACgC;AAChC,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,WACjB,MACA,QACD;;;CAIH,OAAO,IAAY,SAAoD;AACrE,SAAO,KAAK,OAAO,KAAc,GAAG,KAAK,SAAS,GAAG,GAAG,UAAU,QAAW,QAAQ;;;CAIvF,eAAe,IAAY,SAAoD;AAC7E,SAAO,KAAK,OAAO,IAAa,GAAG,KAAK,SAAS,GAAG,GAAG,mBAAmB,QAAW,QAAQ;;;CAI/F,WAAW,MAAyB,SAAoD;AACtF,SAAO,KAAK,OAAO,KACjB,GAAG,KAAK,SAAS,eACjB,MACA,QACD;;;CAIH,aACE,IACA,MACA,SACk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