@ikatec/digisac-api-sdk 4.9.0 → 4.10.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.
- package/README.md +36 -12
- package/dist/apis/absence/AbsenceApi.cjs +12 -0
- package/dist/apis/absence/AbsenceApi.cjs.map +1 -1
- package/dist/apis/absence/AbsenceApi.d.ts +9 -0
- package/dist/apis/absence/AbsenceApi.d.ts.map +1 -1
- package/dist/apis/absence/AbsenceApi.mjs +12 -0
- package/dist/apis/absence/AbsenceApi.mjs.map +1 -1
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.cjs +8 -0
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.cjs.map +1 -1
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.d.ts +8 -1
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.d.ts.map +1 -1
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.mjs +8 -0
- package/dist/apis/acceptanceTerms/AcceptanceTermsApi.mjs.map +1 -1
- package/dist/apis/accounts/AccountsApi.cjs +5 -0
- package/dist/apis/accounts/AccountsApi.cjs.map +1 -1
- package/dist/apis/accounts/AccountsApi.d.ts +5 -0
- package/dist/apis/accounts/AccountsApi.d.ts.map +1 -1
- package/dist/apis/accounts/AccountsApi.mjs +5 -0
- package/dist/apis/accounts/AccountsApi.mjs.map +1 -1
- package/dist/apis/accounts/types.d.ts +2 -0
- package/dist/apis/accounts/types.d.ts.map +1 -1
- package/dist/apis/activityLog/ActivityLogApi.cjs +12 -0
- package/dist/apis/activityLog/ActivityLogApi.cjs.map +1 -1
- package/dist/apis/activityLog/ActivityLogApi.d.ts +8 -0
- package/dist/apis/activityLog/ActivityLogApi.d.ts.map +1 -1
- package/dist/apis/activityLog/ActivityLogApi.mjs +12 -0
- package/dist/apis/activityLog/ActivityLogApi.mjs.map +1 -1
- package/dist/apis/categories/CategoriesApi.cjs +7 -0
- package/dist/apis/categories/CategoriesApi.cjs.map +1 -1
- package/dist/apis/categories/CategoriesApi.d.ts +7 -1
- package/dist/apis/categories/CategoriesApi.d.ts.map +1 -1
- package/dist/apis/categories/CategoriesApi.mjs +7 -0
- package/dist/apis/categories/CategoriesApi.mjs.map +1 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.cjs +5 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.cjs.map +1 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts +5 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.d.ts.map +1 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.mjs +5 -1
- package/dist/apis/clientFeedback/ClientFeedbackApi.mjs.map +1 -1
- package/dist/apis/contactBlockLists/ContactBlockListsApi.cjs +8 -0
- package/dist/apis/contactBlockLists/ContactBlockListsApi.cjs.map +1 -1
- package/dist/apis/contactBlockLists/ContactBlockListsApi.d.ts +8 -1
- package/dist/apis/contactBlockLists/ContactBlockListsApi.d.ts.map +1 -1
- package/dist/apis/contactBlockLists/ContactBlockListsApi.mjs +8 -0
- package/dist/apis/contactBlockLists/ContactBlockListsApi.mjs.map +1 -1
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.cjs +7 -0
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.cjs.map +1 -1
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.d.ts +7 -1
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.d.ts.map +1 -1
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.mjs +7 -0
- package/dist/apis/contactBlockListsControls/ContactBlockListsControlsApi.mjs.map +1 -1
- package/dist/apis/contacts/ContactsApi.cjs +16 -3
- package/dist/apis/contacts/ContactsApi.cjs.map +1 -1
- package/dist/apis/contacts/ContactsApi.d.ts +16 -5
- package/dist/apis/contacts/ContactsApi.d.ts.map +1 -1
- package/dist/apis/contacts/ContactsApi.mjs +16 -3
- package/dist/apis/contacts/ContactsApi.mjs.map +1 -1
- package/dist/apis/contacts/types.d.ts +6 -1
- package/dist/apis/contacts/types.d.ts.map +1 -1
- package/dist/apis/creditMovements/CreditMovementsApi.cjs +17 -0
- package/dist/apis/creditMovements/CreditMovementsApi.cjs.map +1 -1
- package/dist/apis/creditMovements/CreditMovementsApi.d.ts +11 -0
- package/dist/apis/creditMovements/CreditMovementsApi.d.ts.map +1 -1
- package/dist/apis/creditMovements/CreditMovementsApi.mjs +17 -0
- package/dist/apis/creditMovements/CreditMovementsApi.mjs.map +1 -1
- package/dist/apis/customFields/CustomFieldsApi.cjs +7 -0
- package/dist/apis/customFields/CustomFieldsApi.cjs.map +1 -1
- package/dist/apis/customFields/CustomFieldsApi.d.ts +7 -1
- package/dist/apis/customFields/CustomFieldsApi.d.ts.map +1 -1
- package/dist/apis/customFields/CustomFieldsApi.mjs +7 -0
- package/dist/apis/customFields/CustomFieldsApi.mjs.map +1 -1
- package/dist/apis/departments/DepartmentsApi.cjs +21 -0
- package/dist/apis/departments/DepartmentsApi.cjs.map +1 -1
- package/dist/apis/departments/DepartmentsApi.d.ts +20 -2
- package/dist/apis/departments/DepartmentsApi.d.ts.map +1 -1
- package/dist/apis/departments/DepartmentsApi.mjs +21 -0
- package/dist/apis/departments/DepartmentsApi.mjs.map +1 -1
- package/dist/apis/departments/types.d.ts +5 -0
- package/dist/apis/departments/types.d.ts.map +1 -1
- package/dist/apis/distribution/DistributionApi.cjs +7 -0
- package/dist/apis/distribution/DistributionApi.cjs.map +1 -1
- package/dist/apis/distribution/DistributionApi.d.ts +7 -1
- package/dist/apis/distribution/DistributionApi.d.ts.map +1 -1
- package/dist/apis/distribution/DistributionApi.mjs +7 -0
- package/dist/apis/distribution/DistributionApi.mjs.map +1 -1
- package/dist/apis/files/FilesApi.cjs +49 -0
- package/dist/apis/files/FilesApi.cjs.map +1 -1
- package/dist/apis/files/FilesApi.d.ts +45 -2
- package/dist/apis/files/FilesApi.d.ts.map +1 -1
- package/dist/apis/files/FilesApi.mjs +49 -0
- package/dist/apis/files/FilesApi.mjs.map +1 -1
- package/dist/apis/files/types.d.ts +45 -7
- package/dist/apis/files/types.d.ts.map +1 -1
- package/dist/apis/holiday/HolidayApi.cjs +7 -0
- package/dist/apis/holiday/HolidayApi.cjs.map +1 -1
- package/dist/apis/holiday/HolidayApi.d.ts +7 -1
- package/dist/apis/holiday/HolidayApi.d.ts.map +1 -1
- package/dist/apis/holiday/HolidayApi.mjs +7 -0
- package/dist/apis/holiday/HolidayApi.mjs.map +1 -1
- package/dist/apis/integrations/IntegrationsApi.cjs +7 -0
- package/dist/apis/integrations/IntegrationsApi.cjs.map +1 -1
- package/dist/apis/integrations/IntegrationsApi.d.ts +7 -1
- package/dist/apis/integrations/IntegrationsApi.d.ts.map +1 -1
- package/dist/apis/integrations/IntegrationsApi.mjs +7 -0
- package/dist/apis/integrations/IntegrationsApi.mjs.map +1 -1
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.cjs +7 -0
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.cjs.map +1 -1
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.d.ts +7 -1
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.d.ts.map +1 -1
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.mjs +7 -0
- package/dist/apis/interactiveMessages/InteractiveMessagesApi.mjs.map +1 -1
- package/dist/apis/kanbanBoards/KanbanBoardsApi.cjs +7 -0
- package/dist/apis/kanbanBoards/KanbanBoardsApi.cjs.map +1 -1
- package/dist/apis/kanbanBoards/KanbanBoardsApi.d.ts +7 -1
- package/dist/apis/kanbanBoards/KanbanBoardsApi.d.ts.map +1 -1
- package/dist/apis/kanbanBoards/KanbanBoardsApi.mjs +7 -0
- package/dist/apis/kanbanBoards/KanbanBoardsApi.mjs.map +1 -1
- package/dist/apis/kanbanCards/KanbanCardsApi.cjs +7 -0
- package/dist/apis/kanbanCards/KanbanCardsApi.cjs.map +1 -1
- package/dist/apis/kanbanCards/KanbanCardsApi.d.ts +7 -1
- package/dist/apis/kanbanCards/KanbanCardsApi.d.ts.map +1 -1
- package/dist/apis/kanbanCards/KanbanCardsApi.mjs +7 -0
- package/dist/apis/kanbanCards/KanbanCardsApi.mjs.map +1 -1
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.cjs +8 -0
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.cjs.map +1 -1
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.d.ts +8 -1
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.d.ts.map +1 -1
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.mjs +8 -0
- package/dist/apis/knowledgeBase/KnowledgeBaseApi.mjs.map +1 -1
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.cjs +8 -0
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.cjs.map +1 -1
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.d.ts +8 -1
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.d.ts.map +1 -1
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.mjs +8 -0
- package/dist/apis/knowledgeBaseItem/KnowledgeBaseItemApi.mjs.map +1 -1
- package/dist/apis/messages/MessagesApi.cjs +23 -3
- package/dist/apis/messages/MessagesApi.cjs.map +1 -1
- package/dist/apis/messages/MessagesApi.d.ts +19 -3
- package/dist/apis/messages/MessagesApi.d.ts.map +1 -1
- package/dist/apis/messages/MessagesApi.mjs +23 -3
- package/dist/apis/messages/MessagesApi.mjs.map +1 -1
- package/dist/apis/messages/types.d.ts +3 -0
- package/dist/apis/messages/types.d.ts.map +1 -1
- package/dist/apis/notifications/NotificationsApi.cjs +7 -0
- package/dist/apis/notifications/NotificationsApi.cjs.map +1 -1
- package/dist/apis/notifications/NotificationsApi.d.ts +7 -1
- package/dist/apis/notifications/NotificationsApi.d.ts.map +1 -1
- package/dist/apis/notifications/NotificationsApi.mjs +7 -0
- package/dist/apis/notifications/NotificationsApi.mjs.map +1 -1
- package/dist/apis/organizations/OrganizationsApi.cjs +7 -0
- package/dist/apis/organizations/OrganizationsApi.cjs.map +1 -1
- package/dist/apis/organizations/OrganizationsApi.d.ts +7 -1
- package/dist/apis/organizations/OrganizationsApi.d.ts.map +1 -1
- package/dist/apis/organizations/OrganizationsApi.mjs +7 -0
- package/dist/apis/organizations/OrganizationsApi.mjs.map +1 -1
- package/dist/apis/people/PeopleApi.cjs +7 -0
- package/dist/apis/people/PeopleApi.cjs.map +1 -1
- package/dist/apis/people/PeopleApi.d.ts +7 -1
- package/dist/apis/people/PeopleApi.d.ts.map +1 -1
- package/dist/apis/people/PeopleApi.mjs +7 -0
- package/dist/apis/people/PeopleApi.mjs.map +1 -1
- package/dist/apis/planAiHistory/PlanAiHistoryApi.cjs +16 -0
- package/dist/apis/planAiHistory/PlanAiHistoryApi.cjs.map +1 -1
- package/dist/apis/planAiHistory/PlanAiHistoryApi.d.ts +10 -0
- package/dist/apis/planAiHistory/PlanAiHistoryApi.d.ts.map +1 -1
- package/dist/apis/planAiHistory/PlanAiHistoryApi.mjs +16 -0
- package/dist/apis/planAiHistory/PlanAiHistoryApi.mjs.map +1 -1
- package/dist/apis/roles/RolesApi.cjs +7 -0
- package/dist/apis/roles/RolesApi.cjs.map +1 -1
- package/dist/apis/roles/RolesApi.d.ts +6 -1
- package/dist/apis/roles/RolesApi.d.ts.map +1 -1
- package/dist/apis/roles/RolesApi.mjs +7 -0
- package/dist/apis/roles/RolesApi.mjs.map +1 -1
- package/dist/apis/services/ServicesApi.cjs +68 -0
- package/dist/apis/services/ServicesApi.cjs.map +1 -1
- package/dist/apis/services/ServicesApi.d.ts +53 -1
- package/dist/apis/services/ServicesApi.d.ts.map +1 -1
- package/dist/apis/services/ServicesApi.mjs +68 -0
- package/dist/apis/services/ServicesApi.mjs.map +1 -1
- package/dist/apis/services/types.d.ts +15 -0
- package/dist/apis/services/types.d.ts.map +1 -1
- package/dist/apis/stickers/StickersApi.cjs +20 -0
- package/dist/apis/stickers/StickersApi.cjs.map +1 -1
- package/dist/apis/stickers/StickersApi.d.ts +15 -0
- package/dist/apis/stickers/StickersApi.d.ts.map +1 -1
- package/dist/apis/stickers/StickersApi.mjs +20 -0
- package/dist/apis/stickers/StickersApi.mjs.map +1 -1
- package/dist/apis/tags/TagsApi.cjs +7 -0
- package/dist/apis/tags/TagsApi.cjs.map +1 -1
- package/dist/apis/tags/TagsApi.d.ts +7 -1
- package/dist/apis/tags/TagsApi.d.ts.map +1 -1
- package/dist/apis/tags/TagsApi.mjs +7 -0
- package/dist/apis/tags/TagsApi.mjs.map +1 -1
- package/dist/apis/timetable/TimetableApi.cjs +7 -0
- package/dist/apis/timetable/TimetableApi.cjs.map +1 -1
- package/dist/apis/timetable/TimetableApi.d.ts +7 -1
- package/dist/apis/timetable/TimetableApi.d.ts.map +1 -1
- package/dist/apis/timetable/TimetableApi.mjs +7 -0
- package/dist/apis/timetable/TimetableApi.mjs.map +1 -1
- package/dist/apis/users/UsersApi.cjs +8 -0
- package/dist/apis/users/UsersApi.cjs.map +1 -1
- package/dist/apis/users/UsersApi.d.ts +8 -1
- package/dist/apis/users/UsersApi.d.ts.map +1 -1
- package/dist/apis/users/UsersApi.mjs +8 -0
- package/dist/apis/users/UsersApi.mjs.map +1 -1
- package/dist/apis/users/types.d.ts +15 -0
- package/dist/apis/users/types.d.ts.map +1 -1
- package/dist/apis/webhooks/WebhooksApi.cjs +7 -0
- package/dist/apis/webhooks/WebhooksApi.cjs.map +1 -1
- package/dist/apis/webhooks/WebhooksApi.d.ts +7 -1
- package/dist/apis/webhooks/WebhooksApi.d.ts.map +1 -1
- package/dist/apis/webhooks/WebhooksApi.mjs +7 -0
- package/dist/apis/webhooks/WebhooksApi.mjs.map +1 -1
- package/dist/core/ApiClient.d.ts +14 -0
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ArchivableCrudApi.cjs.map +1 -1
- package/dist/core/ArchivableCrudApi.d.ts +1 -1
- package/dist/core/ArchivableCrudApi.d.ts.map +1 -1
- package/dist/core/ArchivableCrudApi.mjs.map +1 -1
- package/dist/core/BaseApiClient.cjs +24 -3
- package/dist/core/BaseApiClient.cjs.map +1 -1
- package/dist/core/BaseApiClient.d.ts +14 -0
- package/dist/core/BaseApiClient.d.ts.map +1 -1
- package/dist/core/BaseApiClient.mjs +24 -3
- package/dist/core/BaseApiClient.mjs.map +1 -1
- package/dist/core/requestExternal.cjs +33 -0
- package/dist/core/requestExternal.cjs.map +1 -0
- package/dist/core/requestExternal.d.ts +9 -0
- package/dist/core/requestExternal.d.ts.map +1 -0
- package/dist/core/requestExternal.mjs +32 -0
- package/dist/core/requestExternal.mjs.map +1 -0
- package/package.json +1 -1
- package/src/apis/absence/AbsenceApi.ts +19 -0
- package/src/apis/acceptanceTerms/AcceptanceTermsApi.ts +13 -1
- package/src/apis/accounts/AccountsApi.ts +5 -0
- package/src/apis/accounts/types.ts +2 -0
- package/src/apis/activityLog/ActivityLogApi.ts +18 -0
- package/src/apis/categories/CategoriesApi.ts +12 -1
- package/src/apis/clientFeedback/ClientFeedbackApi.ts +5 -1
- package/src/apis/contactBlockLists/ContactBlockListsApi.ts +13 -1
- package/src/apis/contactBlockListsControls/ContactBlockListsControlsApi.ts +12 -1
- package/src/apis/contacts/ContactsApi.test.ts +20 -4
- package/src/apis/contacts/ContactsApi.ts +24 -5
- package/src/apis/contacts/types.ts +7 -1
- package/src/apis/creditMovements/CreditMovementsApi.ts +27 -0
- package/src/apis/customFields/CustomFieldsApi.ts +12 -1
- package/src/apis/departments/DepartmentsApi.test.ts +88 -0
- package/src/apis/departments/DepartmentsApi.ts +41 -2
- package/src/apis/departments/types.ts +6 -0
- package/src/apis/distribution/DistributionApi.ts +12 -1
- package/src/apis/files/FilesApi.test.ts +122 -0
- package/src/apis/files/FilesApi.ts +107 -2
- package/src/apis/files/types.ts +48 -7
- package/src/apis/holiday/HolidayApi.ts +16 -1
- package/src/apis/integrations/IntegrationsApi.ts +12 -1
- package/src/apis/interactiveMessages/InteractiveMessagesApi.ts +12 -1
- package/src/apis/kanbanBoards/KanbanBoardsApi.ts +12 -1
- package/src/apis/kanbanCards/KanbanCardsApi.ts +12 -1
- package/src/apis/knowledgeBase/KnowledgeBaseApi.ts +13 -1
- package/src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts +13 -1
- package/src/apis/messages/MessagesApi.test.ts +13 -7
- package/src/apis/messages/MessagesApi.ts +29 -3
- package/src/apis/messages/types.ts +3 -0
- package/src/apis/notifications/NotificationsApi.ts +12 -1
- package/src/apis/organizations/OrganizationsApi.ts +12 -1
- package/src/apis/payloads.test-d.ts +114 -0
- package/src/apis/people/PeopleApi.ts +16 -1
- package/src/apis/planAiHistory/PlanAiHistoryApi.ts +26 -0
- package/src/apis/roles/RolesApi.ts +10 -1
- package/src/apis/services/ServicesApi.test.ts +45 -0
- package/src/apis/services/ServicesApi.ts +91 -1
- package/src/apis/services/types.ts +16 -0
- package/src/apis/stickers/StickersApi.ts +32 -0
- package/src/apis/tags/TagsApi.ts +16 -1
- package/src/apis/timetable/TimetableApi.ts +12 -1
- package/src/apis/users/UsersApi.ts +17 -1
- package/src/apis/users/types.ts +11 -0
- package/src/apis/webhooks/WebhooksApi.ts +16 -1
- package/src/core/ApiClient.ts +24 -0
- package/src/core/ArchivableCrudApi.ts +2 -1
- package/src/core/BaseApiClient.test.ts +98 -0
- package/src/core/BaseApiClient.ts +49 -4
- package/src/core/requestExternal.ts +43 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HolidayApi.d.ts","sourceRoot":"","sources":["../../../src/apis/holiday/HolidayApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAElF,qBAAa,UAAW,SAAQ,WAAW,
|
|
1
|
+
{"version":3,"file":"HolidayApi.d.ts","sourceRoot":"","sources":["../../../src/apis/holiday/HolidayApi.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,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAElF,qBAAa,UAAW,SAAQ,WAAW,CACzC,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,SAAS,CAAC,OAAO,CAAC,EAClB,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;CAGjF"}
|
|
@@ -5,6 +5,13 @@ var HolidayApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/holiday");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a holiday. Resolves the text `'OK'`.
|
|
10
|
+
* @permissions holidays.view OR holidays.destroy
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id, headers) {
|
|
13
|
+
return super.deleteById(id, headers);
|
|
14
|
+
}
|
|
8
15
|
};
|
|
9
16
|
|
|
10
17
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HolidayApi.mjs","names":[],"sources":["../../../src/apis/holiday/HolidayApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Holiday, CreateHolidayPayload, UpdateHolidayPayload } from './types'\n\nexport class HolidayApi extends BaseCrudApi
|
|
1
|
+
{"version":3,"file":"HolidayApi.mjs","names":[],"sources":["../../../src/apis/holiday/HolidayApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Holiday, CreateHolidayPayload, UpdateHolidayPayload } from './types'\n\nexport class HolidayApi extends BaseCrudApi<\n Holiday,\n CreateHolidayPayload,\n UpdateHolidayPayload,\n ListQuery<Holiday>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/holiday')\n }\n\n /**\n * Deletes a holiday. Resolves the text `'OK'`.\n * @permissions holidays.view OR holidays.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAKA,IAAa,aAAb,cAAgC,YAM9B;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,WAAW;;;;;;CAO3B,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -6,6 +6,13 @@ var IntegrationsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
super(client, "/integrations");
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes an integration. Resolves the text `'OK'`; an unknown id answers 500.
|
|
11
|
+
* @permissions integrations.view OR integrations.destroy
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
9
16
|
};
|
|
10
17
|
|
|
11
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/integrations/IntegrationsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Integration, CreateIntegrationPayload, UpdateIntegrationPayload } from './types'\n\nexport class IntegrationsApi extends BaseCrudApi<\n Integration,\n CreateIntegrationPayload,\n UpdateIntegrationPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/integrations')\n }\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"IntegrationsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/integrations/IntegrationsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Integration, CreateIntegrationPayload, UpdateIntegrationPayload } from './types'\n\nexport class IntegrationsApi extends BaseCrudApi<\n Integration,\n CreateIntegrationPayload,\n UpdateIntegrationPayload,\n ListQuery<Integration>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/integrations')\n }\n\n /**\n * Deletes an integration. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions integrations.view OR integrations.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AAKA,IAAa,kBAAb,cAAqCA,qCAMnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { Integration, CreateIntegrationPayload, UpdateIntegrationPayload } from './types';
|
|
4
|
-
export declare class IntegrationsApi extends BaseCrudApi<Integration, CreateIntegrationPayload, UpdateIntegrationPayload> {
|
|
5
|
+
export declare class IntegrationsApi extends BaseCrudApi<Integration, CreateIntegrationPayload, UpdateIntegrationPayload, ListQuery<Integration>, 'OK'> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes an integration. Resolves the text `'OK'`; an unknown id answers 500.
|
|
9
|
+
* @permissions integrations.view OR integrations.destroy
|
|
10
|
+
*/
|
|
11
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=IntegrationsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/integrations/IntegrationsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE9F,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,WAAW,EACX,wBAAwB,EACxB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"IntegrationsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/integrations/IntegrationsApi.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,WAAW,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE9F,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACxB,SAAS,CAAC,WAAW,CAAC,EACtB,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;CAGjF"}
|
|
@@ -5,6 +5,13 @@ var IntegrationsApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/integrations");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes an integration. Resolves the text `'OK'`; an unknown id answers 500.
|
|
10
|
+
* @permissions integrations.view OR integrations.destroy
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id, headers) {
|
|
13
|
+
return super.deleteById(id, headers);
|
|
14
|
+
}
|
|
8
15
|
};
|
|
9
16
|
|
|
10
17
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsApi.mjs","names":[],"sources":["../../../src/apis/integrations/IntegrationsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Integration, CreateIntegrationPayload, UpdateIntegrationPayload } from './types'\n\nexport class IntegrationsApi extends BaseCrudApi<\n Integration,\n CreateIntegrationPayload,\n UpdateIntegrationPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/integrations')\n }\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IntegrationsApi.mjs","names":[],"sources":["../../../src/apis/integrations/IntegrationsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { Integration, CreateIntegrationPayload, UpdateIntegrationPayload } from './types'\n\nexport class IntegrationsApi extends BaseCrudApi<\n Integration,\n CreateIntegrationPayload,\n UpdateIntegrationPayload,\n ListQuery<Integration>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/integrations')\n }\n\n /**\n * Deletes an integration. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions integrations.view OR integrations.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAKA,IAAa,kBAAb,cAAqC,YAMnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,gBAAgB;;;;;;CAOhC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -6,6 +6,13 @@ var InteractiveMessagesApi = class extends require_core_BaseCrudApi.BaseCrudApi
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
super(client, "/interactive-messages");
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes an interactive message. Resolves the text `'OK'`; an unknown id answers 500.
|
|
11
|
+
* @permissions interactive-messages.destroy OR interactive-messages.management.all.departments
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
9
16
|
};
|
|
10
17
|
|
|
11
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveMessagesApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n} from './types'\n\nexport class InteractiveMessagesApi extends BaseCrudApi<\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload\n> {\n constructor(client: ApiClient) {\n super(client, '/interactive-messages')\n }\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"InteractiveMessagesApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n} from './types'\n\nexport class InteractiveMessagesApi extends BaseCrudApi<\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n ListQuery<InteractiveMessage>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/interactive-messages')\n }\n\n /**\n * Deletes an interactive message. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions interactive-messages.destroy OR interactive-messages.management.all.departments\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AASA,IAAa,yBAAb,cAA4CA,qCAM1C;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,wBAAwB;;;;;;CAOxC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { InteractiveMessage, CreateInteractiveMessagePayload, UpdateInteractiveMessagePayload } from './types';
|
|
4
|
-
export declare class InteractiveMessagesApi extends BaseCrudApi<InteractiveMessage, CreateInteractiveMessagePayload, UpdateInteractiveMessagePayload> {
|
|
5
|
+
export declare class InteractiveMessagesApi extends BaseCrudApi<InteractiveMessage, CreateInteractiveMessagePayload, UpdateInteractiveMessagePayload, ListQuery<InteractiveMessage>, 'OK'> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes an interactive message. Resolves the text `'OK'`; an unknown id answers 500.
|
|
9
|
+
* @permissions interactive-messages.destroy OR interactive-messages.management.all.departments
|
|
10
|
+
*/
|
|
11
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=InteractiveMessagesApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveMessagesApi.d.ts","sourceRoot":"","sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,SAAS,CAAA;AAEhB,qBAAa,sBAAuB,SAAQ,WAAW,CACrD,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,
|
|
1
|
+
{"version":3,"file":"InteractiveMessagesApi.d.ts","sourceRoot":"","sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.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,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,SAAS,CAAA;AAEhB,qBAAa,sBAAuB,SAAQ,WAAW,CACrD,kBAAkB,EAClB,+BAA+B,EAC/B,+BAA+B,EAC/B,SAAS,CAAC,kBAAkB,CAAC,EAC7B,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;CAGjF"}
|
|
@@ -5,6 +5,13 @@ var InteractiveMessagesApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/interactive-messages");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes an interactive message. Resolves the text `'OK'`; an unknown id answers 500.
|
|
10
|
+
* @permissions interactive-messages.destroy OR interactive-messages.management.all.departments
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id, headers) {
|
|
13
|
+
return super.deleteById(id, headers);
|
|
14
|
+
}
|
|
8
15
|
};
|
|
9
16
|
|
|
10
17
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveMessagesApi.mjs","names":[],"sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n} from './types'\n\nexport class InteractiveMessagesApi extends BaseCrudApi<\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload\n> {\n constructor(client: ApiClient) {\n super(client, '/interactive-messages')\n }\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InteractiveMessagesApi.mjs","names":[],"sources":["../../../src/apis/interactiveMessages/InteractiveMessagesApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n} from './types'\n\nexport class InteractiveMessagesApi extends BaseCrudApi<\n InteractiveMessage,\n CreateInteractiveMessagePayload,\n UpdateInteractiveMessagePayload,\n ListQuery<InteractiveMessage>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/interactive-messages')\n }\n\n /**\n * Deletes an interactive message. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions interactive-messages.destroy OR interactive-messages.management.all.departments\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AASA,IAAa,yBAAb,cAA4C,YAM1C;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,wBAAwB;;;;;;CAOxC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -6,6 +6,13 @@ var KanbanBoardsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
super(client, "/kanban-boards");
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes a board with its columns. Resolves the text `'OK'`; an unknown id answers 500.
|
|
11
|
+
* @permissions kanban.boards.destroy
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
9
16
|
};
|
|
10
17
|
|
|
11
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoardsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload } from './types'\n\nexport class KanbanBoardsApi extends BaseCrudApi<\n KanbanBoard,\n CreateKanbanBoardPayload,\n UpdateKanbanBoardPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-boards')\n }\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"KanbanBoardsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload } from './types'\n\nexport class KanbanBoardsApi extends BaseCrudApi<\n KanbanBoard,\n CreateKanbanBoardPayload,\n UpdateKanbanBoardPayload,\n ListQuery<KanbanBoard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-boards')\n }\n\n /**\n * Deletes a board with its columns. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions kanban.boards.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AAKA,IAAa,kBAAb,cAAqCA,qCAMnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,iBAAiB;;;;;;CAOjC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload } from './types';
|
|
4
|
-
export declare class KanbanBoardsApi extends BaseCrudApi<KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload> {
|
|
5
|
+
export declare class KanbanBoardsApi extends BaseCrudApi<KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload, ListQuery<KanbanBoard>, 'OK'> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes a board with its columns. Resolves the text `'OK'`; an unknown id answers 500.
|
|
9
|
+
* @permissions kanban.boards.destroy
|
|
10
|
+
*/
|
|
11
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=KanbanBoardsApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoardsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE9F,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,WAAW,EACX,wBAAwB,EACxB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"KanbanBoardsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.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,WAAW,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE9F,qBAAa,eAAgB,SAAQ,WAAW,CAC9C,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACxB,SAAS,CAAC,WAAW,CAAC,EACtB,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;CAGjF"}
|
|
@@ -5,6 +5,13 @@ var KanbanBoardsApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/kanban-boards");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a board with its columns. Resolves the text `'OK'`; an unknown id answers 500.
|
|
10
|
+
* @permissions kanban.boards.destroy
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id, headers) {
|
|
13
|
+
return super.deleteById(id, headers);
|
|
14
|
+
}
|
|
8
15
|
};
|
|
9
16
|
|
|
10
17
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoardsApi.mjs","names":[],"sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload } from './types'\n\nexport class KanbanBoardsApi extends BaseCrudApi<\n KanbanBoard,\n CreateKanbanBoardPayload,\n UpdateKanbanBoardPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-boards')\n }\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KanbanBoardsApi.mjs","names":[],"sources":["../../../src/apis/kanbanBoards/KanbanBoardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KanbanBoard, CreateKanbanBoardPayload, UpdateKanbanBoardPayload } from './types'\n\nexport class KanbanBoardsApi extends BaseCrudApi<\n KanbanBoard,\n CreateKanbanBoardPayload,\n UpdateKanbanBoardPayload,\n ListQuery<KanbanBoard>,\n 'OK'\n> {\n constructor(client: ApiClient) {\n super(client, '/kanban-boards')\n }\n\n /**\n * Deletes a board with its columns. Resolves the text `'OK'`; an unknown id answers 500.\n * @permissions kanban.boards.destroy\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<'OK'> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAKA,IAAa,kBAAb,cAAqC,YAMnC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,iBAAiB;;;;;;CAOjC,AAAS,WAAW,IAAY,SAAiD;AAC/E,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -7,6 +7,13 @@ var KanbanCardsApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
7
7
|
super(client, "/kanban-cards");
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
+
* Deletes a card. Resolves the text `'OK'`.
|
|
11
|
+
* @permissions kanban.cards.move
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
10
17
|
* Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).
|
|
11
18
|
* Resolves to the card with its new `position` and `columnId`.
|
|
12
19
|
* @permissions kanban.cards.move
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanCardsApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\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> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\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":";;;;
|
|
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,8 +1,14 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { KanbanCard, CreateKanbanCardPayload, ReorderKanbanCardPayload, UpdateKanbanCardPayload } from './types';
|
|
4
|
-
export declare class KanbanCardsApi extends BaseCrudApi<KanbanCard, CreateKanbanCardPayload, UpdateKanbanCardPayload> {
|
|
5
|
+
export declare class KanbanCardsApi extends BaseCrudApi<KanbanCard, CreateKanbanCardPayload, UpdateKanbanCardPayload, ListQuery<KanbanCard>, 'OK'> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes a card. Resolves the text `'OK'`.
|
|
9
|
+
* @permissions kanban.cards.move
|
|
10
|
+
*/
|
|
11
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<'OK'>;
|
|
6
12
|
/**
|
|
7
13
|
* Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).
|
|
8
14
|
* Resolves to the card with its new `position` and `columnId`.
|
|
@@ -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,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,
|
|
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"}
|
|
@@ -6,6 +6,13 @@ var KanbanCardsApi = class extends BaseCrudApi {
|
|
|
6
6
|
super(client, "/kanban-cards");
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
+
* Deletes a card. Resolves the text `'OK'`.
|
|
10
|
+
* @permissions kanban.cards.move
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id, headers) {
|
|
13
|
+
return super.deleteById(id, headers);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
9
16
|
* Moves a card within its column or to another column (see {@link ReorderKanbanCardPayload}).
|
|
10
17
|
* Resolves to the card with its new `position` and `columnId`.
|
|
11
18
|
* @permissions kanban.cards.move
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanCardsApi.mjs","names":[],"sources":["../../../src/apis/kanbanCards/KanbanCardsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\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> {\n constructor(client: ApiClient) {\n super(client, '/kanban-cards')\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":";;;
|
|
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"}
|
|
@@ -6,6 +6,14 @@ var KnowledgeBaseApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
super(client, "/knowledge-base");
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes a knowledge base. Resolves `false` even when it deleted (the backend answers nothing
|
|
11
|
+
* from the deletion), so do not read it as the result: check with `getById`. An unknown id
|
|
12
|
+
* answers 500.
|
|
13
|
+
*/
|
|
14
|
+
deleteById(id, headers) {
|
|
15
|
+
return super.deleteById(id, headers);
|
|
16
|
+
}
|
|
9
17
|
};
|
|
10
18
|
|
|
11
19
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload } from './types'\n\nexport class KnowledgeBaseApi extends BaseCrudApi<\n KnowledgeBase,\n CreateKnowledgeBasePayload,\n UpdateKnowledgeBasePayload\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base')\n }\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload } from './types'\n\nexport class KnowledgeBaseApi extends BaseCrudApi<\n KnowledgeBase,\n CreateKnowledgeBasePayload,\n UpdateKnowledgeBasePayload,\n ListQuery<KnowledgeBase>,\n false\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base')\n }\n\n /**\n * Deletes a knowledge base. Resolves `false` even when it deleted (the backend answers nothing\n * from the deletion), so do not read it as the result: check with `getById`. An unknown id\n * answers 500.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<false> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AAKA,IAAa,mBAAb,cAAsCA,qCAMpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;CAQlC,AAAS,WAAW,IAAY,SAAkD;AAChF,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload } from './types';
|
|
4
|
-
export declare class KnowledgeBaseApi extends BaseCrudApi<KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload> {
|
|
5
|
+
export declare class KnowledgeBaseApi extends BaseCrudApi<KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload, ListQuery<KnowledgeBase>, false> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes a knowledge base. Resolves `false` even when it deleted (the backend answers nothing
|
|
9
|
+
* from the deletion), so do not read it as the result: check with `getById`. An unknown id
|
|
10
|
+
* answers 500.
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<false>;
|
|
6
13
|
}
|
|
7
14
|
//# sourceMappingURL=KnowledgeBaseApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseApi.d.ts","sourceRoot":"","sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpG,qBAAa,gBAAiB,SAAQ,WAAW,CAC/C,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseApi.d.ts","sourceRoot":"","sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.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,aAAa,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AAEpG,qBAAa,gBAAiB,SAAQ,WAAW,CAC/C,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,SAAS,CAAC,aAAa,CAAC,EACxB,KAAK,CACN;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;CAGlF"}
|
|
@@ -5,6 +5,14 @@ var KnowledgeBaseApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/knowledge-base");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a knowledge base. Resolves `false` even when it deleted (the backend answers nothing
|
|
10
|
+
* from the deletion), so do not read it as the result: check with `getById`. An unknown id
|
|
11
|
+
* answers 500.
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
8
16
|
};
|
|
9
17
|
|
|
10
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseApi.mjs","names":[],"sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload } from './types'\n\nexport class KnowledgeBaseApi extends BaseCrudApi<\n KnowledgeBase,\n CreateKnowledgeBasePayload,\n UpdateKnowledgeBasePayload\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base')\n }\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseApi.mjs","names":[],"sources":["../../../src/apis/knowledgeBase/KnowledgeBaseApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type { KnowledgeBase, CreateKnowledgeBasePayload, UpdateKnowledgeBasePayload } from './types'\n\nexport class KnowledgeBaseApi extends BaseCrudApi<\n KnowledgeBase,\n CreateKnowledgeBasePayload,\n UpdateKnowledgeBasePayload,\n ListQuery<KnowledgeBase>,\n false\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base')\n }\n\n /**\n * Deletes a knowledge base. Resolves `false` even when it deleted (the backend answers nothing\n * from the deletion), so do not read it as the result: check with `getById`. An unknown id\n * answers 500.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<false> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AAKA,IAAa,mBAAb,cAAsC,YAMpC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,kBAAkB;;;;;;;CAQlC,AAAS,WAAW,IAAY,SAAkD;AAChF,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -6,6 +6,14 @@ var KnowledgeBaseItemApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
6
6
|
constructor(client) {
|
|
7
7
|
super(client, "/knowledge-base-item");
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Deletes a knowledge base item (and its documents in the AI service). Resolves `false` even when
|
|
11
|
+
* it deleted (the backend answers nothing from the deletion), so do not read it as the result:
|
|
12
|
+
* check with `getById`.
|
|
13
|
+
*/
|
|
14
|
+
deleteById(id, headers) {
|
|
15
|
+
return super.deleteById(id, headers);
|
|
16
|
+
}
|
|
9
17
|
};
|
|
10
18
|
|
|
11
19
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseItemApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n} from './types'\n\nexport class KnowledgeBaseItemApi extends BaseCrudApi<\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base-item')\n }\n}\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseItemApi.cjs","names":["BaseCrudApi"],"sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n} from './types'\n\nexport class KnowledgeBaseItemApi extends BaseCrudApi<\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n ListQuery<KnowledgeBaseItem>,\n false\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base-item')\n }\n\n /**\n * Deletes a knowledge base item (and its documents in the AI service). Resolves `false` even when\n * it deleted (the backend answers nothing from the deletion), so do not read it as the result:\n * check with `getById`.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<false> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;;AASA,IAAa,uBAAb,cAA0CA,qCAMxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB;;;;;;;CAQvC,AAAS,WAAW,IAAY,SAAkD;AAChF,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ApiClient } from '../../core/ApiClient';
|
|
2
|
+
import type { ListQuery } from '../../core/types';
|
|
2
3
|
import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
3
4
|
import type { KnowledgeBaseItem, CreateKnowledgeBaseItemPayload, UpdateKnowledgeBaseItemPayload } from './types';
|
|
4
|
-
export declare class KnowledgeBaseItemApi extends BaseCrudApi<KnowledgeBaseItem, CreateKnowledgeBaseItemPayload, UpdateKnowledgeBaseItemPayload> {
|
|
5
|
+
export declare class KnowledgeBaseItemApi extends BaseCrudApi<KnowledgeBaseItem, CreateKnowledgeBaseItemPayload, UpdateKnowledgeBaseItemPayload, ListQuery<KnowledgeBaseItem>, false> {
|
|
5
6
|
constructor(client: ApiClient);
|
|
7
|
+
/**
|
|
8
|
+
* Deletes a knowledge base item (and its documents in the AI service). Resolves `false` even when
|
|
9
|
+
* it deleted (the backend answers nothing from the deletion), so do not read it as the result:
|
|
10
|
+
* check with `getById`.
|
|
11
|
+
*/
|
|
12
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<false>;
|
|
6
13
|
}
|
|
7
14
|
//# sourceMappingURL=KnowledgeBaseItemApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseItemApi.d.ts","sourceRoot":"","sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,SAAS,CAAA;AAEhB,qBAAa,oBAAqB,SAAQ,WAAW,CACnD,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseItemApi.d.ts","sourceRoot":"","sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.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,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,SAAS,CAAA;AAEhB,qBAAa,oBAAqB,SAAQ,WAAW,CACnD,iBAAiB,EACjB,8BAA8B,EAC9B,8BAA8B,EAC9B,SAAS,CAAC,iBAAiB,CAAC,EAC5B,KAAK,CACN;gBACa,MAAM,EAAE,SAAS;IAI7B;;;;OAIG;IACM,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;CAGlF"}
|
|
@@ -5,6 +5,14 @@ var KnowledgeBaseItemApi = class extends BaseCrudApi {
|
|
|
5
5
|
constructor(client) {
|
|
6
6
|
super(client, "/knowledge-base-item");
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Deletes a knowledge base item (and its documents in the AI service). Resolves `false` even when
|
|
10
|
+
* it deleted (the backend answers nothing from the deletion), so do not read it as the result:
|
|
11
|
+
* check with `getById`.
|
|
12
|
+
*/
|
|
13
|
+
deleteById(id, headers) {
|
|
14
|
+
return super.deleteById(id, headers);
|
|
15
|
+
}
|
|
8
16
|
};
|
|
9
17
|
|
|
10
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnowledgeBaseItemApi.mjs","names":[],"sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n} from './types'\n\nexport class KnowledgeBaseItemApi extends BaseCrudApi<\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base-item')\n }\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"KnowledgeBaseItemApi.mjs","names":[],"sources":["../../../src/apis/knowledgeBaseItem/KnowledgeBaseItemApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { ListQuery } from '../../core/types'\nimport { BaseCrudApi } from '../../core/BaseCrudApi'\nimport type {\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n} from './types'\n\nexport class KnowledgeBaseItemApi extends BaseCrudApi<\n KnowledgeBaseItem,\n CreateKnowledgeBaseItemPayload,\n UpdateKnowledgeBaseItemPayload,\n ListQuery<KnowledgeBaseItem>,\n false\n> {\n constructor(client: ApiClient) {\n super(client, '/knowledge-base-item')\n }\n\n /**\n * Deletes a knowledge base item (and its documents in the AI service). Resolves `false` even when\n * it deleted (the backend answers nothing from the deletion), so do not read it as the result:\n * check with `getById`.\n */\n override deleteById(id: string, headers?: Record<string, string>): Promise<false> {\n return super.deleteById(id, headers)\n }\n}\n"],"mappings":";;;AASA,IAAa,uBAAb,cAA0C,YAMxC;CACA,YAAY,QAAmB;AAC7B,QAAM,QAAQ,uBAAuB;;;;;;;CAQvC,AAAS,WAAW,IAAY,SAAkD;AAChF,SAAO,MAAM,WAAW,IAAI,QAAQ"}
|
|
@@ -9,6 +9,22 @@ var MessagesApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
9
9
|
constructor(client) {
|
|
10
10
|
super(client, "/messages");
|
|
11
11
|
}
|
|
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
|
|
17
|
+
*/
|
|
18
|
+
updateById(id, body, headers) {
|
|
19
|
+
return this.client.patch(`${this.basePath}/${id}`, body, headers);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Not served: the backend has no DELETE /messages/:id, so this route answers 404.
|
|
23
|
+
* Use {@link bulkDestroy}.
|
|
24
|
+
*/
|
|
25
|
+
deleteById(id, headers) {
|
|
26
|
+
return super.deleteById(id, headers);
|
|
27
|
+
}
|
|
12
28
|
/** Forwards one or more messages to one or more contacts (max 20 messages to 5 contacts). */
|
|
13
29
|
forward(body, headers) {
|
|
14
30
|
return this.client.post(`${this.basePath}/forward`, body, headers);
|
|
@@ -45,8 +61,9 @@ var MessagesApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
45
61
|
return this.client.request("DELETE", `${this.basePath}/many`, body, headers);
|
|
46
62
|
}
|
|
47
63
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
64
|
+
* Regenerates an existing AI summary: `id` is the id of the message of `type: 'summary'`. When
|
|
65
|
+
* there is no such message (or the AI limit was reached) nothing is done and it still resolves
|
|
66
|
+
* `'OK'`. To summarize the open ticket of a contact, use `ContactsApi.summarizeTicket`.
|
|
50
67
|
*/
|
|
51
68
|
summarize(id, headers) {
|
|
52
69
|
return this.client.post(`${this.basePath}/${id}/summarize`, void 0, headers);
|
|
@@ -56,7 +73,10 @@ var MessagesApi = class extends require_core_BaseCrudApi.BaseCrudApi {
|
|
|
56
73
|
const queryString = limit ? `?${qs.default.stringify({ limit })}` : "";
|
|
57
74
|
return this.client.get(`${this.basePath}/${id}/out-of-range${queryString}`, headers);
|
|
58
75
|
}
|
|
59
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Re-downloads and syncs the file attachment for a message from the messaging service. Resolves
|
|
78
|
+
* what the driver answers; an unknown message answers 500.
|
|
79
|
+
*/
|
|
60
80
|
syncFile(id, headers) {
|
|
61
81
|
return this.client.post(`${this.basePath}/${id}/sync-file`, void 0, headers);
|
|
62
82
|
}
|
|
@@ -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 /** 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 *
|
|
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"}
|
|
@@ -3,6 +3,18 @@ import { BaseCrudApi } from '../../core/BaseCrudApi';
|
|
|
3
3
|
import type { Message, CreateMessagePayload, UpdateMessagePayload, ForwardMessagesPayload, ForwardMessagesResult, SendVcardsPayload, SendReactionPayload, MagicTextPayload, MagicTextResult, CheckSummaryPayload, CheckSummaryResult, BulkDestroyPayload, OutOfRangeResult, LoadAroundQuery } from './types';
|
|
4
4
|
export declare class MessagesApi extends BaseCrudApi<Message, CreateMessagePayload, UpdateMessagePayload> {
|
|
5
5
|
constructor(client: ApiClient);
|
|
6
|
+
/**
|
|
7
|
+
* Edits the text (or the file) of a message sent by the account, up to 15 minutes after it was
|
|
8
|
+
* sent (403 `Cannot edit message` after that). `contactId` is required (without it the route
|
|
9
|
+
* answers 500), and `text` or `file` (400 without both). Sent as `PATCH /messages/:id`.
|
|
10
|
+
* @permissions messages.update
|
|
11
|
+
*/
|
|
12
|
+
updateById(id: string, body: UpdateMessagePayload, headers?: Record<string, string>): Promise<Message>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Not served: the backend has no DELETE /messages/:id, so this route answers 404.
|
|
15
|
+
* Use {@link bulkDestroy}.
|
|
16
|
+
*/
|
|
17
|
+
deleteById(id: string, headers?: Record<string, string>): Promise<Message>;
|
|
6
18
|
/** Forwards one or more messages to one or more contacts (max 20 messages to 5 contacts). */
|
|
7
19
|
forward(body: ForwardMessagesPayload, headers?: Record<string, string>): Promise<ForwardMessagesResult>;
|
|
8
20
|
/** Revokes (soft-deletes) a sent message so it is no longer visible to the recipient. */
|
|
@@ -23,13 +35,17 @@ export declare class MessagesApi extends BaseCrudApi<Message, CreateMessagePaylo
|
|
|
23
35
|
*/
|
|
24
36
|
bulkDestroy(body: BulkDestroyPayload, headers?: Record<string, string>): Promise<boolean>;
|
|
25
37
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
38
|
+
* Regenerates an existing AI summary: `id` is the id of the message of `type: 'summary'`. When
|
|
39
|
+
* there is no such message (or the AI limit was reached) nothing is done and it still resolves
|
|
40
|
+
* `'OK'`. To summarize the open ticket of a contact, use `ContactsApi.summarizeTicket`.
|
|
28
41
|
*/
|
|
29
42
|
summarize(id: string, headers?: Record<string, string>): Promise<string>;
|
|
30
43
|
/** Checks whether a message is out of the visible range (i.e. there are more than `limit` messages after it). */
|
|
31
44
|
outOfRange(id: string, limit?: number, headers?: Record<string, string>): Promise<OutOfRangeResult>;
|
|
32
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Re-downloads and syncs the file attachment for a message from the messaging service. Resolves
|
|
47
|
+
* what the driver answers; an unknown message answers 500.
|
|
48
|
+
*/
|
|
33
49
|
syncFile(id: string, headers?: Record<string, string>): Promise<unknown>;
|
|
34
50
|
/** Loads messages surrounding a target message (N before and N after), useful for jumping to a specific point in a conversation. */
|
|
35
51
|
around(id: string, query?: LoadAroundQuery, headers?: Record<string, string>): Promise<Message[]>;
|