@superoffice/webapi 10.2.9
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/LICENSE.md +15 -0
- package/README.md +184 -0
- package/__tests__/Appointment63-notz.json +1925 -0
- package/__tests__/Appointment63-utctz.json +1925 -0
- package/__tests__/Appointment63.json +1925 -0
- package/__tests__/AppointmentTzTest.ts +114 -0
- package/__tests__/AxiosNockTest.ts +28 -0
- package/__tests__/ContactDefault.json +699 -0
- package/__tests__/ContactEntity.json +273 -0
- package/__tests__/ContactRestTest.ts +144 -0
- package/__tests__/ContactTest.ts +395 -0
- package/__tests__/ConvertersTest.ts +97 -0
- package/__tests__/DocumentGetTemplateStream.json +1 -0
- package/__tests__/DocumentGetTemplateStreamBinary.json +1 -0
- package/__tests__/DocumentTest.ts +101 -0
- package/__tests__/Person210-notz.json +1932 -0
- package/__tests__/Person210-utctz.json +1932 -0
- package/__tests__/Person210.json +1932 -0
- package/__tests__/PersonImageData.nock +23 -0
- package/__tests__/PersonTest.ts +41 -0
- package/__tests__/PersonTzTest.ts +113 -0
- package/__tests__/RecurrenceInfo.json +55 -0
- package/__tests__/TableRights.json +441 -0
- package/__tests__/WebapiTest.ts +264 -0
- package/__tests__/Webhook.json +17 -0
- package/__tests__/WebhookTest.ts +209 -0
- package/dist/cjs/AIAgent.d.ts +265 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -0
- package/dist/cjs/AIAgent.js +535 -0
- package/dist/cjs/AIAgent.js.map +1 -0
- package/dist/cjs/AppointmentAgent.d.ts +1539 -0
- package/dist/cjs/AppointmentAgent.d.ts.map +1 -0
- package/dist/cjs/AppointmentAgent.js +3363 -0
- package/dist/cjs/AppointmentAgent.js.map +1 -0
- package/dist/cjs/AppointmentRestApi.d.ts +46 -0
- package/dist/cjs/AppointmentRestApi.d.ts.map +1 -0
- package/dist/cjs/AppointmentRestApi.js +168 -0
- package/dist/cjs/AppointmentRestApi.js.map +1 -0
- package/dist/cjs/ArchiveAgent.d.ts +582 -0
- package/dist/cjs/ArchiveAgent.d.ts.map +1 -0
- package/dist/cjs/ArchiveAgent.js +1135 -0
- package/dist/cjs/ArchiveAgent.js.map +1 -0
- package/dist/cjs/AssociateAgent.d.ts +109 -0
- package/dist/cjs/AssociateAgent.d.ts.map +1 -0
- package/dist/cjs/AssociateAgent.js +257 -0
- package/dist/cjs/AssociateAgent.js.map +1 -0
- package/dist/cjs/AudienceAgent.d.ts +359 -0
- package/dist/cjs/AudienceAgent.d.ts.map +1 -0
- package/dist/cjs/AudienceAgent.js +888 -0
- package/dist/cjs/AudienceAgent.js.map +1 -0
- package/dist/cjs/AxiosCacheHandler.d.ts +20 -0
- package/dist/cjs/AxiosCacheHandler.d.ts.map +1 -0
- package/dist/cjs/AxiosCacheHandler.js +68 -0
- package/dist/cjs/AxiosCacheHandler.js.map +1 -0
- package/dist/cjs/BLOBAgent.d.ts +538 -0
- package/dist/cjs/BLOBAgent.d.ts.map +1 -0
- package/dist/cjs/BLOBAgent.js +1364 -0
- package/dist/cjs/BLOBAgent.js.map +1 -0
- package/dist/cjs/Base64.d.ts +4 -0
- package/dist/cjs/Base64.d.ts.map +1 -0
- package/dist/cjs/Base64.js +233 -0
- package/dist/cjs/Base64.js.map +1 -0
- package/dist/cjs/BatchAgent.d.ts +252 -0
- package/dist/cjs/BatchAgent.d.ts.map +1 -0
- package/dist/cjs/BatchAgent.js +522 -0
- package/dist/cjs/BatchAgent.js.map +1 -0
- package/dist/cjs/BulkUpdateAgent.d.ts +144 -0
- package/dist/cjs/BulkUpdateAgent.d.ts.map +1 -0
- package/dist/cjs/BulkUpdateAgent.js +288 -0
- package/dist/cjs/BulkUpdateAgent.js.map +1 -0
- package/dist/cjs/CRMScriptAgent.d.ts +330 -0
- package/dist/cjs/CRMScriptAgent.d.ts.map +1 -0
- package/dist/cjs/CRMScriptAgent.js +799 -0
- package/dist/cjs/CRMScriptAgent.js.map +1 -0
- package/dist/cjs/Carriers.d.ts +36976 -0
- package/dist/cjs/Carriers.d.ts.map +1 -0
- package/dist/cjs/Carriers.js +8 -0
- package/dist/cjs/Carriers.js.map +1 -0
- package/dist/cjs/ChatAgent.d.ts +366 -0
- package/dist/cjs/ChatAgent.d.ts.map +1 -0
- package/dist/cjs/ChatAgent.js +919 -0
- package/dist/cjs/ChatAgent.js.map +1 -0
- package/dist/cjs/ConfigurationAgent.d.ts +534 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -0
- package/dist/cjs/ConfigurationAgent.js +1429 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -0
- package/dist/cjs/ContactAgent.d.ts +415 -0
- package/dist/cjs/ContactAgent.d.ts.map +1 -0
- package/dist/cjs/ContactAgent.js +1005 -0
- package/dist/cjs/ContactAgent.js.map +1 -0
- package/dist/cjs/ContactRestApi.d.ts +46 -0
- package/dist/cjs/ContactRestApi.d.ts.map +1 -0
- package/dist/cjs/ContactRestApi.js +168 -0
- package/dist/cjs/ContactRestApi.js.map +1 -0
- package/dist/cjs/Converters.d.ts +1359 -0
- package/dist/cjs/Converters.d.ts.map +1 -0
- package/dist/cjs/Converters.js +18996 -0
- package/dist/cjs/Converters.js.map +1 -0
- package/dist/cjs/CustomerServiceAgent.d.ts +447 -0
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -0
- package/dist/cjs/CustomerServiceAgent.js +1123 -0
- package/dist/cjs/CustomerServiceAgent.js.map +1 -0
- package/dist/cjs/DashAgent.d.ts +370 -0
- package/dist/cjs/DashAgent.d.ts.map +1 -0
- package/dist/cjs/DashAgent.js +1028 -0
- package/dist/cjs/DashAgent.js.map +1 -0
- package/dist/cjs/DashboardAgent.d.ts +163 -0
- package/dist/cjs/DashboardAgent.d.ts.map +1 -0
- package/dist/cjs/DashboardAgent.js +436 -0
- package/dist/cjs/DashboardAgent.js.map +1 -0
- package/dist/cjs/DatabaseAgent.d.ts +35 -0
- package/dist/cjs/DatabaseAgent.d.ts.map +1 -0
- package/dist/cjs/DatabaseAgent.js +70 -0
- package/dist/cjs/DatabaseAgent.js.map +1 -0
- package/dist/cjs/DatabaseTableAgent.d.ts +155 -0
- package/dist/cjs/DatabaseTableAgent.d.ts.map +1 -0
- package/dist/cjs/DatabaseTableAgent.js +299 -0
- package/dist/cjs/DatabaseTableAgent.js.map +1 -0
- package/dist/cjs/Day_js.d.ts +4 -0
- package/dist/cjs/Day_js.d.ts.map +1 -0
- package/dist/cjs/Day_js.js +44 -0
- package/dist/cjs/Day_js.js.map +1 -0
- package/dist/cjs/DiagnosticsAgent.d.ts +200 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -0
- package/dist/cjs/DiagnosticsAgent.js +480 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -0
- package/dist/cjs/DocumentAgent.d.ts +1345 -0
- package/dist/cjs/DocumentAgent.d.ts.map +1 -0
- package/dist/cjs/DocumentAgent.js +3058 -0
- package/dist/cjs/DocumentAgent.js.map +1 -0
- package/dist/cjs/DocumentMigrationAgent.d.ts +145 -0
- package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -0
- package/dist/cjs/DocumentMigrationAgent.js +297 -0
- package/dist/cjs/DocumentMigrationAgent.js.map +1 -0
- package/dist/cjs/DocumentRestApi.d.ts +46 -0
- package/dist/cjs/DocumentRestApi.d.ts.map +1 -0
- package/dist/cjs/DocumentRestApi.js +168 -0
- package/dist/cjs/DocumentRestApi.js.map +1 -0
- package/dist/cjs/EMailAgent.d.ts +1417 -0
- package/dist/cjs/EMailAgent.d.ts.map +1 -0
- package/dist/cjs/EMailAgent.js +3202 -0
- package/dist/cjs/EMailAgent.js.map +1 -0
- package/dist/cjs/Enums.d.ts +6083 -0
- package/dist/cjs/Enums.d.ts.map +1 -0
- package/dist/cjs/Enums.js +6270 -0
- package/dist/cjs/Enums.js.map +1 -0
- package/dist/cjs/ErpSyncAgent.d.ts +725 -0
- package/dist/cjs/ErpSyncAgent.d.ts.map +1 -0
- package/dist/cjs/ErpSyncAgent.js +1601 -0
- package/dist/cjs/ErpSyncAgent.js.map +1 -0
- package/dist/cjs/FavouriteAgent.d.ts +208 -0
- package/dist/cjs/FavouriteAgent.d.ts.map +1 -0
- package/dist/cjs/FavouriteAgent.js +407 -0
- package/dist/cjs/FavouriteAgent.js.map +1 -0
- package/dist/cjs/FindAgent.d.ts +688 -0
- package/dist/cjs/FindAgent.d.ts.map +1 -0
- package/dist/cjs/FindAgent.js +1337 -0
- package/dist/cjs/FindAgent.js.map +1 -0
- package/dist/cjs/ForeignSystemAgent.d.ts +478 -0
- package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -0
- package/dist/cjs/ForeignSystemAgent.js +1022 -0
- package/dist/cjs/ForeignSystemAgent.js.map +1 -0
- package/dist/cjs/FreeTextAgent.d.ts +172 -0
- package/dist/cjs/FreeTextAgent.d.ts.map +1 -0
- package/dist/cjs/FreeTextAgent.js +368 -0
- package/dist/cjs/FreeTextAgent.js.map +1 -0
- package/dist/cjs/ImportAgent.d.ts +92 -0
- package/dist/cjs/ImportAgent.d.ts.map +1 -0
- package/dist/cjs/ImportAgent.js +164 -0
- package/dist/cjs/ImportAgent.js.map +1 -0
- package/dist/cjs/LicenseAgent.d.ts +298 -0
- package/dist/cjs/LicenseAgent.d.ts.map +1 -0
- package/dist/cjs/LicenseAgent.js +639 -0
- package/dist/cjs/LicenseAgent.js.map +1 -0
- package/dist/cjs/ListAgent.d.ts +2423 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -0
- package/dist/cjs/ListAgent.js +7813 -0
- package/dist/cjs/ListAgent.js.map +1 -0
- package/dist/cjs/MDOAgent.d.ts +214 -0
- package/dist/cjs/MDOAgent.d.ts.map +1 -0
- package/dist/cjs/MDOAgent.js +430 -0
- package/dist/cjs/MDOAgent.js.map +1 -0
- package/dist/cjs/MarketingAgent.d.ts +170 -0
- package/dist/cjs/MarketingAgent.d.ts.map +1 -0
- package/dist/cjs/MarketingAgent.js +570 -0
- package/dist/cjs/MarketingAgent.js.map +1 -0
- package/dist/cjs/MessagingAgent.d.ts +111 -0
- package/dist/cjs/MessagingAgent.d.ts.map +1 -0
- package/dist/cjs/MessagingAgent.js +217 -0
- package/dist/cjs/MessagingAgent.js.map +1 -0
- package/dist/cjs/NavigatorAgent.d.ts +40 -0
- package/dist/cjs/NavigatorAgent.d.ts.map +1 -0
- package/dist/cjs/NavigatorAgent.js +99 -0
- package/dist/cjs/NavigatorAgent.js.map +1 -0
- package/dist/cjs/NumberAllocationAgent.d.ts +72 -0
- package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -0
- package/dist/cjs/NumberAllocationAgent.js +199 -0
- package/dist/cjs/NumberAllocationAgent.js.map +1 -0
- package/dist/cjs/PersonAgent.d.ts +774 -0
- package/dist/cjs/PersonAgent.d.ts.map +1 -0
- package/dist/cjs/PersonAgent.js +1814 -0
- package/dist/cjs/PersonAgent.js.map +1 -0
- package/dist/cjs/PersonRestApi.d.ts +46 -0
- package/dist/cjs/PersonRestApi.d.ts.map +1 -0
- package/dist/cjs/PersonRestApi.js +168 -0
- package/dist/cjs/PersonRestApi.js.map +1 -0
- package/dist/cjs/PhoneListAgent.d.ts +126 -0
- package/dist/cjs/PhoneListAgent.d.ts.map +1 -0
- package/dist/cjs/PhoneListAgent.js +269 -0
- package/dist/cjs/PhoneListAgent.js.map +1 -0
- package/dist/cjs/PocketAgent.d.ts +218 -0
- package/dist/cjs/PocketAgent.d.ts.map +1 -0
- package/dist/cjs/PocketAgent.js +451 -0
- package/dist/cjs/PocketAgent.js.map +1 -0
- package/dist/cjs/PreferenceAgent.d.ts +497 -0
- package/dist/cjs/PreferenceAgent.d.ts.map +1 -0
- package/dist/cjs/PreferenceAgent.js +1194 -0
- package/dist/cjs/PreferenceAgent.js.map +1 -0
- package/dist/cjs/PreviewsAgent.d.ts +36 -0
- package/dist/cjs/PreviewsAgent.d.ts.map +1 -0
- package/dist/cjs/PreviewsAgent.js +54 -0
- package/dist/cjs/PreviewsAgent.js.map +1 -0
- package/dist/cjs/ProjectAgent.d.ts +558 -0
- package/dist/cjs/ProjectAgent.d.ts.map +1 -0
- package/dist/cjs/ProjectAgent.js +1482 -0
- package/dist/cjs/ProjectAgent.js.map +1 -0
- package/dist/cjs/ProjectRestApi.d.ts +46 -0
- package/dist/cjs/ProjectRestApi.d.ts.map +1 -0
- package/dist/cjs/ProjectRestApi.js +168 -0
- package/dist/cjs/ProjectRestApi.js.map +1 -0
- package/dist/cjs/QuoteAgent.d.ts +1415 -0
- package/dist/cjs/QuoteAgent.d.ts.map +1 -0
- package/dist/cjs/QuoteAgent.js +3224 -0
- package/dist/cjs/QuoteAgent.js.map +1 -0
- package/dist/cjs/RelationAgent.d.ts +61 -0
- package/dist/cjs/RelationAgent.d.ts.map +1 -0
- package/dist/cjs/RelationAgent.js +132 -0
- package/dist/cjs/RelationAgent.js.map +1 -0
- package/dist/cjs/ReplicationAgent.d.ts +77 -0
- package/dist/cjs/ReplicationAgent.d.ts.map +1 -0
- package/dist/cjs/ReplicationAgent.js +223 -0
- package/dist/cjs/ReplicationAgent.js.map +1 -0
- package/dist/cjs/ReportAgent.d.ts +144 -0
- package/dist/cjs/ReportAgent.d.ts.map +1 -0
- package/dist/cjs/ReportAgent.js +380 -0
- package/dist/cjs/ReportAgent.js.map +1 -0
- package/dist/cjs/ResourceAgent.d.ts +105 -0
- package/dist/cjs/ResourceAgent.d.ts.map +1 -0
- package/dist/cjs/ResourceAgent.js +196 -0
- package/dist/cjs/ResourceAgent.js.map +1 -0
- package/dist/cjs/SaintAgent.d.ts +157 -0
- package/dist/cjs/SaintAgent.d.ts.map +1 -0
- package/dist/cjs/SaintAgent.js +402 -0
- package/dist/cjs/SaintAgent.js.map +1 -0
- package/dist/cjs/SaleAgent.d.ts +477 -0
- package/dist/cjs/SaleAgent.d.ts.map +1 -0
- package/dist/cjs/SaleAgent.js +1182 -0
- package/dist/cjs/SaleAgent.js.map +1 -0
- package/dist/cjs/SaleRestApi.d.ts +46 -0
- package/dist/cjs/SaleRestApi.d.ts.map +1 -0
- package/dist/cjs/SaleRestApi.js +168 -0
- package/dist/cjs/SaleRestApi.js.map +1 -0
- package/dist/cjs/SelectionAgent.d.ts +814 -0
- package/dist/cjs/SelectionAgent.d.ts.map +1 -0
- package/dist/cjs/SelectionAgent.js +1795 -0
- package/dist/cjs/SelectionAgent.js.map +1 -0
- package/dist/cjs/SentryAgent.d.ts +113 -0
- package/dist/cjs/SentryAgent.d.ts.map +1 -0
- package/dist/cjs/SentryAgent.js +238 -0
- package/dist/cjs/SentryAgent.js.map +1 -0
- package/dist/cjs/SoApiConstants.d.ts +8 -0
- package/dist/cjs/SoApiConstants.d.ts.map +1 -0
- package/dist/cjs/SoApiConstants.js +12 -0
- package/dist/cjs/SoApiConstants.js.map +1 -0
- package/dist/cjs/TargetsAgent.d.ts +289 -0
- package/dist/cjs/TargetsAgent.d.ts.map +1 -0
- package/dist/cjs/TargetsAgent.js +728 -0
- package/dist/cjs/TargetsAgent.js.map +1 -0
- package/dist/cjs/TicketAgent.d.ts +802 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -0
- package/dist/cjs/TicketAgent.js +1865 -0
- package/dist/cjs/TicketAgent.js.map +1 -0
- package/dist/cjs/TimeZoneAgent.d.ts +139 -0
- package/dist/cjs/TimeZoneAgent.d.ts.map +1 -0
- package/dist/cjs/TimeZoneAgent.js +348 -0
- package/dist/cjs/TimeZoneAgent.js.map +1 -0
- package/dist/cjs/TooltipsAgent.d.ts +36 -0
- package/dist/cjs/TooltipsAgent.d.ts.map +1 -0
- package/dist/cjs/TooltipsAgent.js +54 -0
- package/dist/cjs/TooltipsAgent.js.map +1 -0
- package/dist/cjs/UserAgent.d.ts +1260 -0
- package/dist/cjs/UserAgent.d.ts.map +1 -0
- package/dist/cjs/UserAgent.js +2978 -0
- package/dist/cjs/UserAgent.js.map +1 -0
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +474 -0
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -0
- package/dist/cjs/UserDefinedFieldInfoAgent.js +1067 -0
- package/dist/cjs/UserDefinedFieldInfoAgent.js.map +1 -0
- package/dist/cjs/ViewStateAgent.d.ts +230 -0
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -0
- package/dist/cjs/ViewStateAgent.js +518 -0
- package/dist/cjs/ViewStateAgent.js.map +1 -0
- package/dist/cjs/WebApi.d.ts +427 -0
- package/dist/cjs/WebApi.d.ts.map +1 -0
- package/dist/cjs/WebApi.js +656 -0
- package/dist/cjs/WebApi.js.map +1 -0
- package/dist/cjs/WebApiBase.d.ts +152 -0
- package/dist/cjs/WebApiBase.d.ts.map +1 -0
- package/dist/cjs/WebApiBase.js +442 -0
- package/dist/cjs/WebApiBase.js.map +1 -0
- package/dist/cjs/WebhookAgent.d.ts +102 -0
- package/dist/cjs/WebhookAgent.d.ts.map +1 -0
- package/dist/cjs/WebhookAgent.js +245 -0
- package/dist/cjs/WebhookAgent.js.map +1 -0
- package/dist/cjs/WorkflowAgent.d.ts +250 -0
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -0
- package/dist/cjs/WorkflowAgent.js +763 -0
- package/dist/cjs/WorkflowAgent.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/AIAgent.d.ts +265 -0
- package/dist/esm/AIAgent.d.ts.map +1 -0
- package/dist/esm/AIAgent.js +530 -0
- package/dist/esm/AIAgent.js.map +1 -0
- package/dist/esm/AppointmentAgent.d.ts +1539 -0
- package/dist/esm/AppointmentAgent.d.ts.map +1 -0
- package/dist/esm/AppointmentAgent.js +3358 -0
- package/dist/esm/AppointmentAgent.js.map +1 -0
- package/dist/esm/AppointmentRestApi.d.ts +46 -0
- package/dist/esm/AppointmentRestApi.d.ts.map +1 -0
- package/dist/esm/AppointmentRestApi.js +163 -0
- package/dist/esm/AppointmentRestApi.js.map +1 -0
- package/dist/esm/ArchiveAgent.d.ts +582 -0
- package/dist/esm/ArchiveAgent.d.ts.map +1 -0
- package/dist/esm/ArchiveAgent.js +1130 -0
- package/dist/esm/ArchiveAgent.js.map +1 -0
- package/dist/esm/AssociateAgent.d.ts +109 -0
- package/dist/esm/AssociateAgent.d.ts.map +1 -0
- package/dist/esm/AssociateAgent.js +252 -0
- package/dist/esm/AssociateAgent.js.map +1 -0
- package/dist/esm/AudienceAgent.d.ts +359 -0
- package/dist/esm/AudienceAgent.d.ts.map +1 -0
- package/dist/esm/AudienceAgent.js +883 -0
- package/dist/esm/AudienceAgent.js.map +1 -0
- package/dist/esm/AxiosCacheHandler.d.ts +20 -0
- package/dist/esm/AxiosCacheHandler.d.ts.map +1 -0
- package/dist/esm/AxiosCacheHandler.js +64 -0
- package/dist/esm/AxiosCacheHandler.js.map +1 -0
- package/dist/esm/BLOBAgent.d.ts +538 -0
- package/dist/esm/BLOBAgent.d.ts.map +1 -0
- package/dist/esm/BLOBAgent.js +1359 -0
- package/dist/esm/BLOBAgent.js.map +1 -0
- package/dist/esm/Base64.d.ts +4 -0
- package/dist/esm/Base64.d.ts.map +1 -0
- package/dist/esm/Base64.js +228 -0
- package/dist/esm/Base64.js.map +1 -0
- package/dist/esm/BatchAgent.d.ts +252 -0
- package/dist/esm/BatchAgent.d.ts.map +1 -0
- package/dist/esm/BatchAgent.js +517 -0
- package/dist/esm/BatchAgent.js.map +1 -0
- package/dist/esm/BulkUpdateAgent.d.ts +144 -0
- package/dist/esm/BulkUpdateAgent.d.ts.map +1 -0
- package/dist/esm/BulkUpdateAgent.js +283 -0
- package/dist/esm/BulkUpdateAgent.js.map +1 -0
- package/dist/esm/CRMScriptAgent.d.ts +330 -0
- package/dist/esm/CRMScriptAgent.d.ts.map +1 -0
- package/dist/esm/CRMScriptAgent.js +794 -0
- package/dist/esm/CRMScriptAgent.js.map +1 -0
- package/dist/esm/Carriers.d.ts +36976 -0
- package/dist/esm/Carriers.d.ts.map +1 -0
- package/dist/esm/Carriers.js +6 -0
- package/dist/esm/Carriers.js.map +1 -0
- package/dist/esm/ChatAgent.d.ts +366 -0
- package/dist/esm/ChatAgent.d.ts.map +1 -0
- package/dist/esm/ChatAgent.js +914 -0
- package/dist/esm/ChatAgent.js.map +1 -0
- package/dist/esm/ConfigurationAgent.d.ts +534 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -0
- package/dist/esm/ConfigurationAgent.js +1424 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -0
- package/dist/esm/ContactAgent.d.ts +415 -0
- package/dist/esm/ContactAgent.d.ts.map +1 -0
- package/dist/esm/ContactAgent.js +1000 -0
- package/dist/esm/ContactAgent.js.map +1 -0
- package/dist/esm/ContactRestApi.d.ts +46 -0
- package/dist/esm/ContactRestApi.d.ts.map +1 -0
- package/dist/esm/ContactRestApi.js +163 -0
- package/dist/esm/ContactRestApi.js.map +1 -0
- package/dist/esm/Converters.d.ts +1359 -0
- package/dist/esm/Converters.d.ts.map +1 -0
- package/dist/esm/Converters.js +17609 -0
- package/dist/esm/Converters.js.map +1 -0
- package/dist/esm/CustomerServiceAgent.d.ts +447 -0
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -0
- package/dist/esm/CustomerServiceAgent.js +1118 -0
- package/dist/esm/CustomerServiceAgent.js.map +1 -0
- package/dist/esm/DashAgent.d.ts +370 -0
- package/dist/esm/DashAgent.d.ts.map +1 -0
- package/dist/esm/DashAgent.js +1023 -0
- package/dist/esm/DashAgent.js.map +1 -0
- package/dist/esm/DashboardAgent.d.ts +163 -0
- package/dist/esm/DashboardAgent.d.ts.map +1 -0
- package/dist/esm/DashboardAgent.js +431 -0
- package/dist/esm/DashboardAgent.js.map +1 -0
- package/dist/esm/DatabaseAgent.d.ts +35 -0
- package/dist/esm/DatabaseAgent.d.ts.map +1 -0
- package/dist/esm/DatabaseAgent.js +65 -0
- package/dist/esm/DatabaseAgent.js.map +1 -0
- package/dist/esm/DatabaseTableAgent.d.ts +155 -0
- package/dist/esm/DatabaseTableAgent.d.ts.map +1 -0
- package/dist/esm/DatabaseTableAgent.js +294 -0
- package/dist/esm/DatabaseTableAgent.js.map +1 -0
- package/dist/esm/Day_js.d.ts +4 -0
- package/dist/esm/Day_js.d.ts.map +1 -0
- package/dist/esm/Day_js.js +38 -0
- package/dist/esm/Day_js.js.map +1 -0
- package/dist/esm/DiagnosticsAgent.d.ts +200 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -0
- package/dist/esm/DiagnosticsAgent.js +475 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -0
- package/dist/esm/DocumentAgent.d.ts +1345 -0
- package/dist/esm/DocumentAgent.d.ts.map +1 -0
- package/dist/esm/DocumentAgent.js +3053 -0
- package/dist/esm/DocumentAgent.js.map +1 -0
- package/dist/esm/DocumentMigrationAgent.d.ts +145 -0
- package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -0
- package/dist/esm/DocumentMigrationAgent.js +292 -0
- package/dist/esm/DocumentMigrationAgent.js.map +1 -0
- package/dist/esm/DocumentRestApi.d.ts +46 -0
- package/dist/esm/DocumentRestApi.d.ts.map +1 -0
- package/dist/esm/DocumentRestApi.js +163 -0
- package/dist/esm/DocumentRestApi.js.map +1 -0
- package/dist/esm/EMailAgent.d.ts +1417 -0
- package/dist/esm/EMailAgent.d.ts.map +1 -0
- package/dist/esm/EMailAgent.js +3197 -0
- package/dist/esm/EMailAgent.js.map +1 -0
- package/dist/esm/Enums.d.ts +6083 -0
- package/dist/esm/Enums.d.ts.map +1 -0
- package/dist/esm/Enums.js +6264 -0
- package/dist/esm/Enums.js.map +1 -0
- package/dist/esm/ErpSyncAgent.d.ts +725 -0
- package/dist/esm/ErpSyncAgent.d.ts.map +1 -0
- package/dist/esm/ErpSyncAgent.js +1596 -0
- package/dist/esm/ErpSyncAgent.js.map +1 -0
- package/dist/esm/FavouriteAgent.d.ts +208 -0
- package/dist/esm/FavouriteAgent.d.ts.map +1 -0
- package/dist/esm/FavouriteAgent.js +402 -0
- package/dist/esm/FavouriteAgent.js.map +1 -0
- package/dist/esm/FindAgent.d.ts +688 -0
- package/dist/esm/FindAgent.d.ts.map +1 -0
- package/dist/esm/FindAgent.js +1332 -0
- package/dist/esm/FindAgent.js.map +1 -0
- package/dist/esm/ForeignSystemAgent.d.ts +478 -0
- package/dist/esm/ForeignSystemAgent.d.ts.map +1 -0
- package/dist/esm/ForeignSystemAgent.js +1017 -0
- package/dist/esm/ForeignSystemAgent.js.map +1 -0
- package/dist/esm/FreeTextAgent.d.ts +172 -0
- package/dist/esm/FreeTextAgent.d.ts.map +1 -0
- package/dist/esm/FreeTextAgent.js +363 -0
- package/dist/esm/FreeTextAgent.js.map +1 -0
- package/dist/esm/ImportAgent.d.ts +92 -0
- package/dist/esm/ImportAgent.d.ts.map +1 -0
- package/dist/esm/ImportAgent.js +159 -0
- package/dist/esm/ImportAgent.js.map +1 -0
- package/dist/esm/LicenseAgent.d.ts +298 -0
- package/dist/esm/LicenseAgent.d.ts.map +1 -0
- package/dist/esm/LicenseAgent.js +634 -0
- package/dist/esm/LicenseAgent.js.map +1 -0
- package/dist/esm/ListAgent.d.ts +2423 -0
- package/dist/esm/ListAgent.d.ts.map +1 -0
- package/dist/esm/ListAgent.js +7808 -0
- package/dist/esm/ListAgent.js.map +1 -0
- package/dist/esm/MDOAgent.d.ts +214 -0
- package/dist/esm/MDOAgent.d.ts.map +1 -0
- package/dist/esm/MDOAgent.js +425 -0
- package/dist/esm/MDOAgent.js.map +1 -0
- package/dist/esm/MarketingAgent.d.ts +170 -0
- package/dist/esm/MarketingAgent.d.ts.map +1 -0
- package/dist/esm/MarketingAgent.js +565 -0
- package/dist/esm/MarketingAgent.js.map +1 -0
- package/dist/esm/MessagingAgent.d.ts +111 -0
- package/dist/esm/MessagingAgent.d.ts.map +1 -0
- package/dist/esm/MessagingAgent.js +212 -0
- package/dist/esm/MessagingAgent.js.map +1 -0
- package/dist/esm/NavigatorAgent.d.ts +40 -0
- package/dist/esm/NavigatorAgent.d.ts.map +1 -0
- package/dist/esm/NavigatorAgent.js +94 -0
- package/dist/esm/NavigatorAgent.js.map +1 -0
- package/dist/esm/NumberAllocationAgent.d.ts +72 -0
- package/dist/esm/NumberAllocationAgent.d.ts.map +1 -0
- package/dist/esm/NumberAllocationAgent.js +194 -0
- package/dist/esm/NumberAllocationAgent.js.map +1 -0
- package/dist/esm/PersonAgent.d.ts +774 -0
- package/dist/esm/PersonAgent.d.ts.map +1 -0
- package/dist/esm/PersonAgent.js +1809 -0
- package/dist/esm/PersonAgent.js.map +1 -0
- package/dist/esm/PersonRestApi.d.ts +46 -0
- package/dist/esm/PersonRestApi.d.ts.map +1 -0
- package/dist/esm/PersonRestApi.js +163 -0
- package/dist/esm/PersonRestApi.js.map +1 -0
- package/dist/esm/PhoneListAgent.d.ts +126 -0
- package/dist/esm/PhoneListAgent.d.ts.map +1 -0
- package/dist/esm/PhoneListAgent.js +264 -0
- package/dist/esm/PhoneListAgent.js.map +1 -0
- package/dist/esm/PocketAgent.d.ts +218 -0
- package/dist/esm/PocketAgent.d.ts.map +1 -0
- package/dist/esm/PocketAgent.js +446 -0
- package/dist/esm/PocketAgent.js.map +1 -0
- package/dist/esm/PreferenceAgent.d.ts +497 -0
- package/dist/esm/PreferenceAgent.d.ts.map +1 -0
- package/dist/esm/PreferenceAgent.js +1189 -0
- package/dist/esm/PreferenceAgent.js.map +1 -0
- package/dist/esm/PreviewsAgent.d.ts +36 -0
- package/dist/esm/PreviewsAgent.d.ts.map +1 -0
- package/dist/esm/PreviewsAgent.js +49 -0
- package/dist/esm/PreviewsAgent.js.map +1 -0
- package/dist/esm/ProjectAgent.d.ts +558 -0
- package/dist/esm/ProjectAgent.d.ts.map +1 -0
- package/dist/esm/ProjectAgent.js +1477 -0
- package/dist/esm/ProjectAgent.js.map +1 -0
- package/dist/esm/ProjectRestApi.d.ts +46 -0
- package/dist/esm/ProjectRestApi.d.ts.map +1 -0
- package/dist/esm/ProjectRestApi.js +163 -0
- package/dist/esm/ProjectRestApi.js.map +1 -0
- package/dist/esm/QuoteAgent.d.ts +1415 -0
- package/dist/esm/QuoteAgent.d.ts.map +1 -0
- package/dist/esm/QuoteAgent.js +3219 -0
- package/dist/esm/QuoteAgent.js.map +1 -0
- package/dist/esm/RelationAgent.d.ts +61 -0
- package/dist/esm/RelationAgent.d.ts.map +1 -0
- package/dist/esm/RelationAgent.js +127 -0
- package/dist/esm/RelationAgent.js.map +1 -0
- package/dist/esm/ReplicationAgent.d.ts +77 -0
- package/dist/esm/ReplicationAgent.d.ts.map +1 -0
- package/dist/esm/ReplicationAgent.js +218 -0
- package/dist/esm/ReplicationAgent.js.map +1 -0
- package/dist/esm/ReportAgent.d.ts +144 -0
- package/dist/esm/ReportAgent.d.ts.map +1 -0
- package/dist/esm/ReportAgent.js +375 -0
- package/dist/esm/ReportAgent.js.map +1 -0
- package/dist/esm/ResourceAgent.d.ts +105 -0
- package/dist/esm/ResourceAgent.d.ts.map +1 -0
- package/dist/esm/ResourceAgent.js +191 -0
- package/dist/esm/ResourceAgent.js.map +1 -0
- package/dist/esm/SaintAgent.d.ts +157 -0
- package/dist/esm/SaintAgent.d.ts.map +1 -0
- package/dist/esm/SaintAgent.js +397 -0
- package/dist/esm/SaintAgent.js.map +1 -0
- package/dist/esm/SaleAgent.d.ts +477 -0
- package/dist/esm/SaleAgent.d.ts.map +1 -0
- package/dist/esm/SaleAgent.js +1177 -0
- package/dist/esm/SaleAgent.js.map +1 -0
- package/dist/esm/SaleRestApi.d.ts +46 -0
- package/dist/esm/SaleRestApi.d.ts.map +1 -0
- package/dist/esm/SaleRestApi.js +163 -0
- package/dist/esm/SaleRestApi.js.map +1 -0
- package/dist/esm/SelectionAgent.d.ts +814 -0
- package/dist/esm/SelectionAgent.d.ts.map +1 -0
- package/dist/esm/SelectionAgent.js +1790 -0
- package/dist/esm/SelectionAgent.js.map +1 -0
- package/dist/esm/SentryAgent.d.ts +113 -0
- package/dist/esm/SentryAgent.d.ts.map +1 -0
- package/dist/esm/SentryAgent.js +233 -0
- package/dist/esm/SentryAgent.js.map +1 -0
- package/dist/esm/SoApiConstants.d.ts +8 -0
- package/dist/esm/SoApiConstants.d.ts.map +1 -0
- package/dist/esm/SoApiConstants.js +9 -0
- package/dist/esm/SoApiConstants.js.map +1 -0
- package/dist/esm/TargetsAgent.d.ts +289 -0
- package/dist/esm/TargetsAgent.d.ts.map +1 -0
- package/dist/esm/TargetsAgent.js +723 -0
- package/dist/esm/TargetsAgent.js.map +1 -0
- package/dist/esm/TicketAgent.d.ts +802 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -0
- package/dist/esm/TicketAgent.js +1860 -0
- package/dist/esm/TicketAgent.js.map +1 -0
- package/dist/esm/TimeZoneAgent.d.ts +139 -0
- package/dist/esm/TimeZoneAgent.d.ts.map +1 -0
- package/dist/esm/TimeZoneAgent.js +343 -0
- package/dist/esm/TimeZoneAgent.js.map +1 -0
- package/dist/esm/TooltipsAgent.d.ts +36 -0
- package/dist/esm/TooltipsAgent.d.ts.map +1 -0
- package/dist/esm/TooltipsAgent.js +49 -0
- package/dist/esm/TooltipsAgent.js.map +1 -0
- package/dist/esm/UserAgent.d.ts +1260 -0
- package/dist/esm/UserAgent.d.ts.map +1 -0
- package/dist/esm/UserAgent.js +2973 -0
- package/dist/esm/UserAgent.js.map +1 -0
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts +474 -0
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -0
- package/dist/esm/UserDefinedFieldInfoAgent.js +1062 -0
- package/dist/esm/UserDefinedFieldInfoAgent.js.map +1 -0
- package/dist/esm/ViewStateAgent.d.ts +230 -0
- package/dist/esm/ViewStateAgent.d.ts.map +1 -0
- package/dist/esm/ViewStateAgent.js +513 -0
- package/dist/esm/ViewStateAgent.js.map +1 -0
- package/dist/esm/WebApi.d.ts +427 -0
- package/dist/esm/WebApi.d.ts.map +1 -0
- package/dist/esm/WebApi.js +649 -0
- package/dist/esm/WebApi.js.map +1 -0
- package/dist/esm/WebApiBase.d.ts +152 -0
- package/dist/esm/WebApiBase.d.ts.map +1 -0
- package/dist/esm/WebApiBase.js +437 -0
- package/dist/esm/WebApiBase.js.map +1 -0
- package/dist/esm/WebhookAgent.d.ts +102 -0
- package/dist/esm/WebhookAgent.d.ts.map +1 -0
- package/dist/esm/WebhookAgent.js +240 -0
- package/dist/esm/WebhookAgent.js.map +1 -0
- package/dist/esm/WorkflowAgent.d.ts +250 -0
- package/dist/esm/WorkflowAgent.d.ts.map +1 -0
- package/dist/esm/WorkflowAgent.js +758 -0
- package/dist/esm/WorkflowAgent.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/examples-js/hello.js +12 -0
- package/examples-ts/hello.ts +8 -0
- package/package.json +89 -0
- package/scripts/setVersion.js +46 -0
- package/src/AIAgent.ts +928 -0
- package/src/AppointmentAgent.ts +5573 -0
- package/src/AppointmentRestApi.ts +225 -0
- package/src/ArchiveAgent.ts +1950 -0
- package/src/AssociateAgent.ts +422 -0
- package/src/AudienceAgent.ts +1430 -0
- package/src/AxiosCacheHandler.ts +74 -0
- package/src/BLOBAgent.ts +2214 -0
- package/src/Base64.ts +285 -0
- package/src/BatchAgent.ts +910 -0
- package/src/BulkUpdateAgent.ts +504 -0
- package/src/CRMScriptAgent.ts +1276 -0
- package/src/Carriers.ts +49791 -0
- package/src/ChatAgent.ts +1422 -0
- package/src/ConfigurationAgent.ts +2138 -0
- package/src/ContactAgent.ts +1586 -0
- package/src/ContactRestApi.ts +235 -0
- package/src/Converters.ts +21633 -0
- package/src/CustomerServiceAgent.ts +1734 -0
- package/src/DashAgent.ts +1504 -0
- package/src/DashboardAgent.ts +658 -0
- package/src/DatabaseAgent.ts +120 -0
- package/src/DatabaseTableAgent.ts +534 -0
- package/src/Day_js.ts +41 -0
- package/src/DiagnosticsAgent.ts +744 -0
- package/src/DocumentAgent.ts +5018 -0
- package/src/DocumentMigrationAgent.ts +494 -0
- package/src/DocumentRestApi.ts +259 -0
- package/src/EMailAgent.ts +5210 -0
- package/src/Enums.ts +6438 -0
- package/src/ErpSyncAgent.ts +2658 -0
- package/src/FavouriteAgent.ts +720 -0
- package/src/FindAgent.ts +2330 -0
- package/src/ForeignSystemAgent.ts +1710 -0
- package/src/FreeTextAgent.ts +626 -0
- package/src/ImportAgent.ts +304 -0
- package/src/LicenseAgent.ts +1088 -0
- package/src/ListAgent.ts +10894 -0
- package/src/MDOAgent.ts +748 -0
- package/src/MarketingAgent.ts +776 -0
- package/src/MessagingAgent.ts +384 -0
- package/src/NavigatorAgent.ts +164 -0
- package/src/NumberAllocationAgent.ts +296 -0
- package/src/PersonAgent.ts +2919 -0
- package/src/PersonRestApi.ts +239 -0
- package/src/PhoneListAgent.ts +458 -0
- package/src/PocketAgent.ts +780 -0
- package/src/PreferenceAgent.ts +1900 -0
- package/src/PreviewsAgent.ts +116 -0
- package/src/ProjectAgent.ts +2275 -0
- package/src/ProjectRestApi.ts +239 -0
- package/src/QuoteAgent.ts +5294 -0
- package/src/RelationAgent.ts +220 -0
- package/src/ReplicationAgent.ts +325 -0
- package/src/ReportAgent.ts +575 -0
- package/src/ResourceAgent.ts +358 -0
- package/src/SaintAgent.ts +601 -0
- package/src/SaleAgent.ts +1862 -0
- package/src/SaleRestApi.ts +233 -0
- package/src/SelectionAgent.ts +2980 -0
- package/src/SentryAgent.ts +406 -0
- package/src/SoApiConstants.ts +8 -0
- package/src/TargetsAgent.ts +1104 -0
- package/src/TicketAgent.ts +3032 -0
- package/src/TimeZoneAgent.ts +528 -0
- package/src/TooltipsAgent.ts +116 -0
- package/src/UserAgent.ts +4798 -0
- package/src/UserDefinedFieldInfoAgent.ts +1764 -0
- package/src/ViewStateAgent.ts +858 -0
- package/src/WebApi.ts +908 -0
- package/src/WebApiBase.ts +562 -0
- package/src/WebhookAgent.ts +388 -0
- package/src/WorkflowAgent.ts +1054 -0
- package/tsconfig.esm.json +8 -0
- package/tsconfig.jest.json +12 -0
- package/tsconfig.json +35 -0
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// SuperOffice Code Generator
|
|
3
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
import * as base from './WebApiBase.js';
|
|
6
|
+
import * as converters from './Converters.js';
|
|
7
|
+
/**
|
|
8
|
+
* Agent used for Customer Service methods
|
|
9
|
+
*/
|
|
10
|
+
export class CustomerServiceAgent extends base.WebApiBase {
|
|
11
|
+
constructor(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode) {
|
|
12
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
13
|
+
options.basePath = "v1/Agents/CustomerService/";
|
|
14
|
+
super(options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Set default values into a new CustomerCenterConfig.
|
|
18
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
19
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
20
|
+
* @returns A blank entity.
|
|
21
|
+
*/
|
|
22
|
+
async createDefaultCustomerCenterConfigAsync(options) {
|
|
23
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
24
|
+
base.WebApiBase.SetPending(options);
|
|
25
|
+
return new Promise(async (resolve, reject) => {
|
|
26
|
+
try {
|
|
27
|
+
const response = await this._axios.post("CreateDefaultCustomerCenterConfig", null, config);
|
|
28
|
+
base.WebApiBase.SetCompleted(options);
|
|
29
|
+
const res = converters.Create_CustomerCenterConfig_From(response.data);
|
|
30
|
+
resolve(res);
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
34
|
+
reject(err);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/*
|
|
39
|
+
* Replace the existing CustomerCenterConfig or creates a new CustomerCenterConfig if the id parameter is empty
|
|
40
|
+
* @param entity - The CustomerCenterConfig to be saved.
|
|
41
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
42
|
+
* @returns New or updated CustomerCenterConfig
|
|
43
|
+
*/
|
|
44
|
+
async saveCustomerCenterConfigAsync(entity, options) {
|
|
45
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
46
|
+
base.WebApiBase.SetPending(options);
|
|
47
|
+
return new Promise(async (resolve, reject) => {
|
|
48
|
+
try {
|
|
49
|
+
const response = await this._axios.post("SaveCustomerCenterConfig", entity, config);
|
|
50
|
+
base.WebApiBase.SetCompleted(options);
|
|
51
|
+
const res = converters.Create_CustomerCenterConfig_From(response.data);
|
|
52
|
+
resolve(res);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
56
|
+
reject(err);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/*
|
|
61
|
+
* Deletes the CustomerCenterConfig
|
|
62
|
+
* @param CustomerCenterConfigId - The id of the CustomerCenterConfig to be deleted.
|
|
63
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
64
|
+
*/
|
|
65
|
+
async deleteCustomerCenterConfigAsync(CustomerCenterConfigId, options) {
|
|
66
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
67
|
+
base.WebApiBase.SetPending(options);
|
|
68
|
+
return new Promise(async (resolve, reject) => {
|
|
69
|
+
try {
|
|
70
|
+
const response = await this._axios.post("DeleteCustomerCenterConfig?CustomerCenterConfigId=" + CustomerCenterConfigId, null, config);
|
|
71
|
+
base.WebApiBase.SetCompleted(options);
|
|
72
|
+
const res = response.data;
|
|
73
|
+
resolve(res);
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
77
|
+
reject(err);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Set default values into a new MailboxEntity.
|
|
83
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
84
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
85
|
+
* @returns A blank entity.
|
|
86
|
+
*/
|
|
87
|
+
async createDefaultMailboxEntityAsync(options) {
|
|
88
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
89
|
+
base.WebApiBase.SetPending(options);
|
|
90
|
+
return new Promise(async (resolve, reject) => {
|
|
91
|
+
try {
|
|
92
|
+
const response = await this._axios.post("CreateDefaultMailboxEntity", null, config);
|
|
93
|
+
base.WebApiBase.SetCompleted(options);
|
|
94
|
+
const res = converters.Create_MailboxEntity_From(response.data);
|
|
95
|
+
resolve(res);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
99
|
+
reject(err);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/*
|
|
104
|
+
* Replace the existing MailboxEntity or creates a new MailboxEntity if the id parameter is empty
|
|
105
|
+
* @param entity - The MailboxEntity to be saved.
|
|
106
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
107
|
+
* @returns New or updated MailboxEntity
|
|
108
|
+
*/
|
|
109
|
+
async saveMailboxEntityAsync(entity, options) {
|
|
110
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
111
|
+
base.WebApiBase.SetPending(options);
|
|
112
|
+
return new Promise(async (resolve, reject) => {
|
|
113
|
+
try {
|
|
114
|
+
const response = await this._axios.post("SaveMailboxEntity", entity, config);
|
|
115
|
+
base.WebApiBase.SetCompleted(options);
|
|
116
|
+
const res = converters.Create_MailboxEntity_From(response.data);
|
|
117
|
+
resolve(res);
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
121
|
+
reject(err);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Set default values into a new SmsConfig.
|
|
127
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
128
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
129
|
+
* @returns A blank entity.
|
|
130
|
+
*/
|
|
131
|
+
async createDefaultSmsConfigAsync(options) {
|
|
132
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
133
|
+
base.WebApiBase.SetPending(options);
|
|
134
|
+
return new Promise(async (resolve, reject) => {
|
|
135
|
+
try {
|
|
136
|
+
const response = await this._axios.post("CreateDefaultSmsConfig", null, config);
|
|
137
|
+
base.WebApiBase.SetCompleted(options);
|
|
138
|
+
const res = converters.Create_SmsConfig_From(response.data);
|
|
139
|
+
resolve(res);
|
|
140
|
+
}
|
|
141
|
+
catch (err) {
|
|
142
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
143
|
+
reject(err);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/*
|
|
148
|
+
* Replace the existing SmsConfig or creates a new SmsConfig if the id parameter is empty
|
|
149
|
+
* @param entity - The SmsConfig to be saved.
|
|
150
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
151
|
+
* @returns New or updated SmsConfig
|
|
152
|
+
*/
|
|
153
|
+
async saveSmsConfigAsync(entity, options) {
|
|
154
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
155
|
+
base.WebApiBase.SetPending(options);
|
|
156
|
+
return new Promise(async (resolve, reject) => {
|
|
157
|
+
try {
|
|
158
|
+
const response = await this._axios.post("SaveSmsConfig", entity, config);
|
|
159
|
+
base.WebApiBase.SetCompleted(options);
|
|
160
|
+
const res = converters.Create_SmsConfig_From(response.data);
|
|
161
|
+
resolve(res);
|
|
162
|
+
}
|
|
163
|
+
catch (err) {
|
|
164
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
165
|
+
reject(err);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
async _updateFeatureTogglesAsync(request, options) {
|
|
170
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
171
|
+
base.WebApiBase.SetPending(options);
|
|
172
|
+
return new Promise(async (resolve, reject) => {
|
|
173
|
+
try {
|
|
174
|
+
config.baseURL = this._options.baseUrl;
|
|
175
|
+
const response = await this._axios.post("UpdateFeatureToggles", request, config);
|
|
176
|
+
base.WebApiBase.SetCompleted(options);
|
|
177
|
+
const res = response.data;
|
|
178
|
+
resolve(res);
|
|
179
|
+
}
|
|
180
|
+
catch (err) {
|
|
181
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
182
|
+
reject(err);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
async updateFeatureTogglesAsync(featureToggles, webapi_options) {
|
|
187
|
+
let _request = null;
|
|
188
|
+
let _options = null;
|
|
189
|
+
const first = featureToggles;
|
|
190
|
+
if (typeof (first) === "object" && first && (typeof (first.featureToggles) != 'undefined')) {
|
|
191
|
+
_request = featureToggles;
|
|
192
|
+
_options = webapi_options;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
_request = {
|
|
196
|
+
featureToggles: featureToggles,
|
|
197
|
+
};
|
|
198
|
+
_options = webapi_options;
|
|
199
|
+
}
|
|
200
|
+
return this._updateFeatureTogglesAsync(_request, _options);
|
|
201
|
+
}
|
|
202
|
+
async _eventHandlerExistsAsync(request, options) {
|
|
203
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
204
|
+
base.WebApiBase.SetPending(options);
|
|
205
|
+
return new Promise(async (resolve, reject) => {
|
|
206
|
+
try {
|
|
207
|
+
config.baseURL = this._options.baseUrl;
|
|
208
|
+
const response = await this._axios.post("EventHandlerExists", request, config);
|
|
209
|
+
base.WebApiBase.SetCompleted(options);
|
|
210
|
+
const res = response.data;
|
|
211
|
+
resolve(res);
|
|
212
|
+
}
|
|
213
|
+
catch (err) {
|
|
214
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
215
|
+
reject(err);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
async eventHandlerExistsAsync(eventHandlerType, webapi_options) {
|
|
220
|
+
let _request = null;
|
|
221
|
+
let _options = null;
|
|
222
|
+
const first = eventHandlerType;
|
|
223
|
+
if (typeof (first) === "object" && first && (typeof (first.eventHandlerType) != 'undefined')) {
|
|
224
|
+
_request = eventHandlerType;
|
|
225
|
+
_options = webapi_options;
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
_request = {
|
|
229
|
+
eventHandlerType: eventHandlerType,
|
|
230
|
+
};
|
|
231
|
+
_options = webapi_options;
|
|
232
|
+
}
|
|
233
|
+
return this._eventHandlerExistsAsync(_request, _options);
|
|
234
|
+
}
|
|
235
|
+
async _createSessionAsync(request, options) {
|
|
236
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
237
|
+
base.WebApiBase.SetPending(options);
|
|
238
|
+
return new Promise(async (resolve, reject) => {
|
|
239
|
+
try {
|
|
240
|
+
config.baseURL = this._options.baseUrl;
|
|
241
|
+
const response = await this._axios.post("CreateSession", request, config);
|
|
242
|
+
base.WebApiBase.SetCompleted(options);
|
|
243
|
+
const res = converters.Create_CsSessionKey_From(response.data);
|
|
244
|
+
resolve(res);
|
|
245
|
+
}
|
|
246
|
+
catch (err) {
|
|
247
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
248
|
+
reject(err);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
async createSessionAsync(remoteIp, webapi_options) {
|
|
253
|
+
let _request = null;
|
|
254
|
+
let _options = null;
|
|
255
|
+
const first = remoteIp;
|
|
256
|
+
if (typeof (first) === "object" && first && (typeof (first.remoteIp) != 'undefined')) {
|
|
257
|
+
_request = remoteIp;
|
|
258
|
+
_options = webapi_options;
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
_request = {
|
|
262
|
+
remoteIp: remoteIp,
|
|
263
|
+
};
|
|
264
|
+
_options = webapi_options;
|
|
265
|
+
}
|
|
266
|
+
return this._createSessionAsync(_request, _options);
|
|
267
|
+
}
|
|
268
|
+
async _removeSessionAsync(request, options) {
|
|
269
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
270
|
+
base.WebApiBase.SetPending(options);
|
|
271
|
+
return new Promise(async (resolve, reject) => {
|
|
272
|
+
try {
|
|
273
|
+
config.baseURL = this._options.baseUrl;
|
|
274
|
+
const response = await this._axios.post("RemoveSession", request, config);
|
|
275
|
+
base.WebApiBase.SetCompleted(options);
|
|
276
|
+
const res = response.data;
|
|
277
|
+
resolve(res);
|
|
278
|
+
}
|
|
279
|
+
catch (err) {
|
|
280
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
281
|
+
reject(err);
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
async removeSessionAsync(loginId, webapi_options) {
|
|
286
|
+
let _request = null;
|
|
287
|
+
let _options = null;
|
|
288
|
+
const first = loginId;
|
|
289
|
+
if (typeof (first) === "object" && first && (typeof (first.loginId) != 'undefined')) {
|
|
290
|
+
_request = loginId;
|
|
291
|
+
_options = webapi_options;
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
_request = {
|
|
295
|
+
loginId: loginId,
|
|
296
|
+
};
|
|
297
|
+
_options = webapi_options;
|
|
298
|
+
}
|
|
299
|
+
return this._removeSessionAsync(_request, _options);
|
|
300
|
+
}
|
|
301
|
+
async _sessionIsValidAsync(request, options) {
|
|
302
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
303
|
+
base.WebApiBase.SetPending(options);
|
|
304
|
+
return new Promise(async (resolve, reject) => {
|
|
305
|
+
try {
|
|
306
|
+
config.baseURL = this._options.baseUrl;
|
|
307
|
+
const response = await this._axios.post("SessionIsValid", request, config);
|
|
308
|
+
base.WebApiBase.SetCompleted(options);
|
|
309
|
+
const res = response.data;
|
|
310
|
+
resolve(res);
|
|
311
|
+
}
|
|
312
|
+
catch (err) {
|
|
313
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
314
|
+
reject(err);
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
async sessionIsValidAsync(csSessionKey, webapi_options) {
|
|
319
|
+
let _request = null;
|
|
320
|
+
let _options = null;
|
|
321
|
+
const first = csSessionKey;
|
|
322
|
+
if (typeof (first) === "object" && first && (typeof (first.csSessionKey) != 'undefined')) {
|
|
323
|
+
_request = csSessionKey;
|
|
324
|
+
_options = webapi_options;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
_request = {
|
|
328
|
+
csSessionKey: csSessionKey,
|
|
329
|
+
};
|
|
330
|
+
_options = webapi_options;
|
|
331
|
+
}
|
|
332
|
+
return this._sessionIsValidAsync(_request, _options);
|
|
333
|
+
}
|
|
334
|
+
async _hasChatNotifyAsync(options) {
|
|
335
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
336
|
+
base.WebApiBase.SetPending(options);
|
|
337
|
+
return new Promise(async (resolve, reject) => {
|
|
338
|
+
try {
|
|
339
|
+
config.baseURL = this._options.baseUrl;
|
|
340
|
+
const response = await this._axios.post("HasChatNotify", undefined, config);
|
|
341
|
+
base.WebApiBase.SetCompleted(options);
|
|
342
|
+
const res = response.data;
|
|
343
|
+
resolve(res);
|
|
344
|
+
}
|
|
345
|
+
catch (err) {
|
|
346
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
347
|
+
reject(err);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Check if user has any chat notification
|
|
353
|
+
* @returns True if the user has at least one notification setting on
|
|
354
|
+
*/
|
|
355
|
+
async hasChatNotifyAsync(webapi_options) {
|
|
356
|
+
return this._hasChatNotifyAsync(webapi_options);
|
|
357
|
+
}
|
|
358
|
+
async _checkSymmetricEncryptionAsync(request, options) {
|
|
359
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
360
|
+
base.WebApiBase.SetPending(options);
|
|
361
|
+
return new Promise(async (resolve, reject) => {
|
|
362
|
+
try {
|
|
363
|
+
config.baseURL = this._options.baseUrl;
|
|
364
|
+
const response = await this._axios.post("CheckSymmetricEncryption", request, config);
|
|
365
|
+
base.WebApiBase.SetCompleted(options);
|
|
366
|
+
const res = response.data;
|
|
367
|
+
resolve(res);
|
|
368
|
+
}
|
|
369
|
+
catch (err) {
|
|
370
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
371
|
+
reject(err);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
async checkSymmetricEncryptionAsync(encryptedString, webapi_options) {
|
|
376
|
+
let _request = null;
|
|
377
|
+
let _options = null;
|
|
378
|
+
const first = encryptedString;
|
|
379
|
+
if (typeof (first) === "object" && first && (typeof (first.encryptedString) != 'undefined')) {
|
|
380
|
+
_request = encryptedString;
|
|
381
|
+
_options = webapi_options;
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
_request = {
|
|
385
|
+
encryptedString: encryptedString,
|
|
386
|
+
};
|
|
387
|
+
_options = webapi_options;
|
|
388
|
+
}
|
|
389
|
+
return this._checkSymmetricEncryptionAsync(_request, _options);
|
|
390
|
+
}
|
|
391
|
+
async _reportSessionActiveAsync(request, options) {
|
|
392
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
393
|
+
base.WebApiBase.SetPending(options);
|
|
394
|
+
return new Promise(async (resolve, reject) => {
|
|
395
|
+
try {
|
|
396
|
+
config.baseURL = this._options.baseUrl;
|
|
397
|
+
const response = await this._axios.post("ReportSessionActive", request, config);
|
|
398
|
+
base.WebApiBase.SetCompleted(options);
|
|
399
|
+
const res = response.data;
|
|
400
|
+
resolve(res);
|
|
401
|
+
}
|
|
402
|
+
catch (err) {
|
|
403
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
404
|
+
reject(err);
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
async reportSessionActiveAsync(sessionKey, webapi_options) {
|
|
409
|
+
let _request = null;
|
|
410
|
+
let _options = null;
|
|
411
|
+
const first = sessionKey;
|
|
412
|
+
if (typeof (first) === "object" && first && (typeof (first.sessionKey) != 'undefined')) {
|
|
413
|
+
_request = sessionKey;
|
|
414
|
+
_options = webapi_options;
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
_request = {
|
|
418
|
+
sessionKey: sessionKey,
|
|
419
|
+
};
|
|
420
|
+
_options = webapi_options;
|
|
421
|
+
}
|
|
422
|
+
return this._reportSessionActiveAsync(_request, _options);
|
|
423
|
+
}
|
|
424
|
+
/*
|
|
425
|
+
* Gets a CustomerCenterConfig object.
|
|
426
|
+
* @param customerCenterConfigId - The primary key.
|
|
427
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
428
|
+
* @returns A single CustomerCenterConfig
|
|
429
|
+
*/
|
|
430
|
+
async getCustomerCenterConfigAsync(customerCenterConfigId, options) {
|
|
431
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
432
|
+
base.WebApiBase.SetPending(options);
|
|
433
|
+
return new Promise(async (resolve, reject) => {
|
|
434
|
+
try {
|
|
435
|
+
const response = await this._axios.post("GetCustomerCenterConfig?customerCenterConfigId=" + customerCenterConfigId, null, config);
|
|
436
|
+
base.WebApiBase.SetCompleted(options);
|
|
437
|
+
const res = converters.Create_CustomerCenterConfig_From(response.data);
|
|
438
|
+
resolve(res);
|
|
439
|
+
}
|
|
440
|
+
catch (err) {
|
|
441
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
442
|
+
reject(err);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
async _getAllCustomerCenterConfigsAsync(options) {
|
|
447
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
448
|
+
base.WebApiBase.SetPending(options);
|
|
449
|
+
return new Promise(async (resolve, reject) => {
|
|
450
|
+
try {
|
|
451
|
+
config.baseURL = this._options.baseUrl;
|
|
452
|
+
const response = await this._axios.post("GetAllCustomerCenterConfigs", undefined, config);
|
|
453
|
+
base.WebApiBase.SetCompleted(options);
|
|
454
|
+
const res = converters.Create_CustomerCenterConfigArray_From(response.data);
|
|
455
|
+
resolve(res);
|
|
456
|
+
}
|
|
457
|
+
catch (err) {
|
|
458
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
459
|
+
reject(err);
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Get all rows from cust_config as an array of CustomerCenterConfig entities
|
|
465
|
+
* @returns An array of CustomerCenterConfig entities
|
|
466
|
+
*/
|
|
467
|
+
async getAllCustomerCenterConfigsAsync(webapi_options) {
|
|
468
|
+
return this._getAllCustomerCenterConfigsAsync(webapi_options);
|
|
469
|
+
}
|
|
470
|
+
async _saveAllCustomerCenterConfigsAsync(request, options) {
|
|
471
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
472
|
+
base.WebApiBase.SetPending(options);
|
|
473
|
+
return new Promise(async (resolve, reject) => {
|
|
474
|
+
try {
|
|
475
|
+
config.baseURL = this._options.baseUrl;
|
|
476
|
+
const response = await this._axios.post("SaveAllCustomerCenterConfigs", request, config);
|
|
477
|
+
base.WebApiBase.SetCompleted(options);
|
|
478
|
+
const res = response.data;
|
|
479
|
+
resolve(res);
|
|
480
|
+
}
|
|
481
|
+
catch (err) {
|
|
482
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
483
|
+
reject(err);
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
async saveAllCustomerCenterConfigsAsync(custConfigs, webapi_options) {
|
|
488
|
+
let _request = null;
|
|
489
|
+
let _options = null;
|
|
490
|
+
const first = custConfigs;
|
|
491
|
+
if (typeof (first) === "object" && first && (typeof (first.custConfigs) != 'undefined')) {
|
|
492
|
+
_request = custConfigs;
|
|
493
|
+
_options = webapi_options;
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
_request = {
|
|
497
|
+
custConfigs: custConfigs,
|
|
498
|
+
};
|
|
499
|
+
_options = webapi_options;
|
|
500
|
+
}
|
|
501
|
+
return this._saveAllCustomerCenterConfigsAsync(_request, _options);
|
|
502
|
+
}
|
|
503
|
+
async _checkIfCustomizedTemplatesAsync(options) {
|
|
504
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
505
|
+
base.WebApiBase.SetPending(options);
|
|
506
|
+
return new Promise(async (resolve, reject) => {
|
|
507
|
+
try {
|
|
508
|
+
config.baseURL = this._options.baseUrl;
|
|
509
|
+
const response = await this._axios.post("CheckIfCustomizedTemplates", undefined, config);
|
|
510
|
+
base.WebApiBase.SetCompleted(options);
|
|
511
|
+
const res = response.data;
|
|
512
|
+
resolve(res);
|
|
513
|
+
}
|
|
514
|
+
catch (err) {
|
|
515
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
516
|
+
reject(err);
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Checks whether the core html templates are customized
|
|
522
|
+
* @returns True if the templates are customized
|
|
523
|
+
*/
|
|
524
|
+
async checkIfCustomizedTemplatesAsync(webapi_options) {
|
|
525
|
+
return this._checkIfCustomizedTemplatesAsync(webapi_options);
|
|
526
|
+
}
|
|
527
|
+
async _getProgramUrlAsync(request, options) {
|
|
528
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
529
|
+
base.WebApiBase.SetPending(options);
|
|
530
|
+
return new Promise(async (resolve, reject) => {
|
|
531
|
+
try {
|
|
532
|
+
config.baseURL = this._options.baseUrl;
|
|
533
|
+
const response = await this._axios.post("GetProgramUrl", request, config);
|
|
534
|
+
base.WebApiBase.SetCompleted(options);
|
|
535
|
+
const res = response.data;
|
|
536
|
+
resolve(res);
|
|
537
|
+
}
|
|
538
|
+
catch (err) {
|
|
539
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
540
|
+
reject(err);
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
async getProgramUrlAsync(programName, external, webapi_options) {
|
|
545
|
+
let _request = null;
|
|
546
|
+
let _options = null;
|
|
547
|
+
const first = programName;
|
|
548
|
+
if (typeof (first) === "object" && first && (typeof (first.programName) != 'undefined' || typeof (first.external) != 'undefined')) {
|
|
549
|
+
_request = programName;
|
|
550
|
+
_options = external;
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
_request = {
|
|
554
|
+
programName: programName,
|
|
555
|
+
external: external,
|
|
556
|
+
};
|
|
557
|
+
_options = webapi_options;
|
|
558
|
+
}
|
|
559
|
+
return this._getProgramUrlAsync(_request, _options);
|
|
560
|
+
}
|
|
561
|
+
async _getFaqForCustomerAsync(request, options) {
|
|
562
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
563
|
+
base.WebApiBase.SetPending(options);
|
|
564
|
+
return new Promise(async (resolve, reject) => {
|
|
565
|
+
try {
|
|
566
|
+
config.baseURL = this._options.baseUrl;
|
|
567
|
+
const response = await this._axios.post("GetFaqForCustomer", request, config);
|
|
568
|
+
base.WebApiBase.SetCompleted(options);
|
|
569
|
+
const res = response.data;
|
|
570
|
+
resolve(res);
|
|
571
|
+
}
|
|
572
|
+
catch (err) {
|
|
573
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
574
|
+
reject(err);
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
async getFaqForCustomerAsync(faqEntryId, webapi_options) {
|
|
579
|
+
let _request = null;
|
|
580
|
+
let _options = null;
|
|
581
|
+
const first = faqEntryId;
|
|
582
|
+
if (typeof (first) === "object" && first && (typeof (first.faqEntryId) != 'undefined')) {
|
|
583
|
+
_request = faqEntryId;
|
|
584
|
+
_options = webapi_options;
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
_request = {
|
|
588
|
+
faqEntryId: faqEntryId,
|
|
589
|
+
};
|
|
590
|
+
_options = webapi_options;
|
|
591
|
+
}
|
|
592
|
+
return this._getFaqForCustomerAsync(_request, _options);
|
|
593
|
+
}
|
|
594
|
+
async _getCustomerServiceStartupAsync(options) {
|
|
595
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
596
|
+
base.WebApiBase.SetPending(options);
|
|
597
|
+
return new Promise(async (resolve, reject) => {
|
|
598
|
+
try {
|
|
599
|
+
config.baseURL = this._options.baseUrl;
|
|
600
|
+
const response = await this._axios.post("GetCustomerServiceStartup", undefined, config);
|
|
601
|
+
base.WebApiBase.SetCompleted(options);
|
|
602
|
+
const res = converters.Create_CustomerServiceStartup_From(response.data);
|
|
603
|
+
resolve(res);
|
|
604
|
+
}
|
|
605
|
+
catch (err) {
|
|
606
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
607
|
+
reject(err);
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Get the carrier with data that Service needs when starting up
|
|
613
|
+
* @returns The carrier containing the startup data
|
|
614
|
+
*/
|
|
615
|
+
async getCustomerServiceStartupAsync(webapi_options) {
|
|
616
|
+
return this._getCustomerServiceStartupAsync(webapi_options);
|
|
617
|
+
}
|
|
618
|
+
async _executeEventHandlersAsync(request, options) {
|
|
619
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
620
|
+
base.WebApiBase.SetPending(options);
|
|
621
|
+
return new Promise(async (resolve, reject) => {
|
|
622
|
+
try {
|
|
623
|
+
config.baseURL = this._options.baseUrl;
|
|
624
|
+
const response = await this._axios.post("ExecuteEventHandlers", request, config);
|
|
625
|
+
base.WebApiBase.SetCompleted(options);
|
|
626
|
+
const res = converters.Create_EventData_From(response.data);
|
|
627
|
+
resolve(res);
|
|
628
|
+
}
|
|
629
|
+
catch (err) {
|
|
630
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
631
|
+
reject(err);
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
async executeEventHandlersAsync(eventData, webapi_options) {
|
|
636
|
+
let _request = null;
|
|
637
|
+
let _options = null;
|
|
638
|
+
const first = eventData;
|
|
639
|
+
if (typeof (first) === "object" && first && (typeof (first.eventData) != 'undefined')) {
|
|
640
|
+
_request = eventData;
|
|
641
|
+
_options = webapi_options;
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
_request = {
|
|
645
|
+
eventData: eventData,
|
|
646
|
+
};
|
|
647
|
+
_options = webapi_options;
|
|
648
|
+
}
|
|
649
|
+
return this._executeEventHandlersAsync(_request, _options);
|
|
650
|
+
}
|
|
651
|
+
async _getMailboxesAsync(options) {
|
|
652
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
653
|
+
base.WebApiBase.SetPending(options);
|
|
654
|
+
return new Promise(async (resolve, reject) => {
|
|
655
|
+
try {
|
|
656
|
+
config.baseURL = this._options.baseUrl;
|
|
657
|
+
const response = await this._axios.post("GetMailboxes", undefined, config);
|
|
658
|
+
base.WebApiBase.SetCompleted(options);
|
|
659
|
+
const res = converters.Create_MailboxArray_From(response.data);
|
|
660
|
+
resolve(res);
|
|
661
|
+
}
|
|
662
|
+
catch (err) {
|
|
663
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
664
|
+
reject(err);
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* This method will get all registered mailboxes in Service
|
|
670
|
+
* @returns An array of Mailbox objects
|
|
671
|
+
*/
|
|
672
|
+
async getMailboxesAsync(webapi_options) {
|
|
673
|
+
return this._getMailboxesAsync(webapi_options);
|
|
674
|
+
}
|
|
675
|
+
/*
|
|
676
|
+
* Gets a MailboxEntity object.
|
|
677
|
+
* @param mailboxEntityId - The primary key.
|
|
678
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
679
|
+
* @returns A single MailboxEntity
|
|
680
|
+
*/
|
|
681
|
+
async getMailboxEntityAsync(mailboxEntityId, options) {
|
|
682
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
683
|
+
base.WebApiBase.SetPending(options);
|
|
684
|
+
return new Promise(async (resolve, reject) => {
|
|
685
|
+
try {
|
|
686
|
+
const response = await this._axios.post("GetMailboxEntity?mailboxEntityId=" + mailboxEntityId, null, config);
|
|
687
|
+
base.WebApiBase.SetCompleted(options);
|
|
688
|
+
const res = converters.Create_MailboxEntity_From(response.data);
|
|
689
|
+
resolve(res);
|
|
690
|
+
}
|
|
691
|
+
catch (err) {
|
|
692
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
693
|
+
reject(err);
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
async _getPreviewFaqEntryAsync(request, options) {
|
|
698
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
699
|
+
base.WebApiBase.SetPending(options);
|
|
700
|
+
return new Promise(async (resolve, reject) => {
|
|
701
|
+
try {
|
|
702
|
+
config.baseURL = this._options.baseUrl;
|
|
703
|
+
const response = await this._axios.post("GetPreviewFaqEntry", request, config);
|
|
704
|
+
base.WebApiBase.SetCompleted(options);
|
|
705
|
+
const res = converters.Create_PreviewFaqEntry_From(response.data);
|
|
706
|
+
resolve(res);
|
|
707
|
+
}
|
|
708
|
+
catch (err) {
|
|
709
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
710
|
+
reject(err);
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
async getPreviewFaqEntryAsync(kbEntryId, webapi_options) {
|
|
715
|
+
let _request = null;
|
|
716
|
+
let _options = null;
|
|
717
|
+
const first = kbEntryId;
|
|
718
|
+
if (typeof (first) === "object" && first && (typeof (first.kbEntryId) != 'undefined')) {
|
|
719
|
+
_request = kbEntryId;
|
|
720
|
+
_options = webapi_options;
|
|
721
|
+
}
|
|
722
|
+
else {
|
|
723
|
+
_request = {
|
|
724
|
+
kbEntryId: kbEntryId,
|
|
725
|
+
};
|
|
726
|
+
_options = webapi_options;
|
|
727
|
+
}
|
|
728
|
+
return this._getPreviewFaqEntryAsync(_request, _options);
|
|
729
|
+
}
|
|
730
|
+
async _getPreviewQuickReplyAsync(request, options) {
|
|
731
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
732
|
+
base.WebApiBase.SetPending(options);
|
|
733
|
+
return new Promise(async (resolve, reject) => {
|
|
734
|
+
try {
|
|
735
|
+
config.baseURL = this._options.baseUrl;
|
|
736
|
+
const response = await this._axios.post("GetPreviewQuickReply", request, config);
|
|
737
|
+
base.WebApiBase.SetCompleted(options);
|
|
738
|
+
const res = converters.Create_PreviewQuickReply_From(response.data);
|
|
739
|
+
resolve(res);
|
|
740
|
+
}
|
|
741
|
+
catch (err) {
|
|
742
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
743
|
+
reject(err);
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
async getPreviewQuickReplyAsync(quickReplyId, webapi_options) {
|
|
748
|
+
let _request = null;
|
|
749
|
+
let _options = null;
|
|
750
|
+
const first = quickReplyId;
|
|
751
|
+
if (typeof (first) === "object" && first && (typeof (first.quickReplyId) != 'undefined')) {
|
|
752
|
+
_request = quickReplyId;
|
|
753
|
+
_options = webapi_options;
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
_request = {
|
|
757
|
+
quickReplyId: quickReplyId,
|
|
758
|
+
};
|
|
759
|
+
_options = webapi_options;
|
|
760
|
+
}
|
|
761
|
+
return this._getPreviewQuickReplyAsync(_request, _options);
|
|
762
|
+
}
|
|
763
|
+
async _getPreviewReplyTemplateAsync(request, options) {
|
|
764
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
765
|
+
base.WebApiBase.SetPending(options);
|
|
766
|
+
return new Promise(async (resolve, reject) => {
|
|
767
|
+
try {
|
|
768
|
+
config.baseURL = this._options.baseUrl;
|
|
769
|
+
const response = await this._axios.post("GetPreviewReplyTemplate", request, config);
|
|
770
|
+
base.WebApiBase.SetCompleted(options);
|
|
771
|
+
const res = converters.Create_PreviewReplyTemplate_From(response.data);
|
|
772
|
+
resolve(res);
|
|
773
|
+
}
|
|
774
|
+
catch (err) {
|
|
775
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
776
|
+
reject(err);
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
async getPreviewReplyTemplateAsync(replyTemplateId, webapi_options) {
|
|
781
|
+
let _request = null;
|
|
782
|
+
let _options = null;
|
|
783
|
+
const first = replyTemplateId;
|
|
784
|
+
if (typeof (first) === "object" && first && (typeof (first.replyTemplateId) != 'undefined')) {
|
|
785
|
+
_request = replyTemplateId;
|
|
786
|
+
_options = webapi_options;
|
|
787
|
+
}
|
|
788
|
+
else {
|
|
789
|
+
_request = {
|
|
790
|
+
replyTemplateId: replyTemplateId,
|
|
791
|
+
};
|
|
792
|
+
_options = webapi_options;
|
|
793
|
+
}
|
|
794
|
+
return this._getPreviewReplyTemplateAsync(_request, _options);
|
|
795
|
+
}
|
|
796
|
+
async _getParsedTemplateAsync(request, options) {
|
|
797
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
798
|
+
base.WebApiBase.SetPending(options);
|
|
799
|
+
return new Promise(async (resolve, reject) => {
|
|
800
|
+
try {
|
|
801
|
+
config.baseURL = this._options.baseUrl;
|
|
802
|
+
const response = await this._axios.post("GetParsedTemplate", request, config);
|
|
803
|
+
base.WebApiBase.SetCompleted(options);
|
|
804
|
+
const res = converters.Create_ReplyTemplateParsed_From(response.data);
|
|
805
|
+
resolve(res);
|
|
806
|
+
}
|
|
807
|
+
catch (err) {
|
|
808
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
809
|
+
reject(err);
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
async getParsedTemplateAsync(replyTemplateId, languageId, personId, ticketId, webapi_options) {
|
|
814
|
+
let _request = null;
|
|
815
|
+
let _options = null;
|
|
816
|
+
const first = replyTemplateId;
|
|
817
|
+
if (typeof (first) === "object" && first && (typeof (first.replyTemplateId) != 'undefined' || typeof (first.languageId) != 'undefined' || typeof (first.personId) != 'undefined' || typeof (first.ticketId) != 'undefined')) {
|
|
818
|
+
_request = replyTemplateId;
|
|
819
|
+
_options = languageId;
|
|
820
|
+
}
|
|
821
|
+
else {
|
|
822
|
+
_request = {
|
|
823
|
+
replyTemplateId: replyTemplateId,
|
|
824
|
+
languageId: languageId,
|
|
825
|
+
personId: personId,
|
|
826
|
+
ticketId: ticketId,
|
|
827
|
+
};
|
|
828
|
+
_options = webapi_options;
|
|
829
|
+
}
|
|
830
|
+
return this._getParsedTemplateAsync(_request, _options);
|
|
831
|
+
}
|
|
832
|
+
async _getUnparsedTemplateAsync(request, options) {
|
|
833
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
834
|
+
base.WebApiBase.SetPending(options);
|
|
835
|
+
return new Promise(async (resolve, reject) => {
|
|
836
|
+
try {
|
|
837
|
+
config.baseURL = this._options.baseUrl;
|
|
838
|
+
const response = await this._axios.post("GetUnparsedTemplate", request, config);
|
|
839
|
+
base.WebApiBase.SetCompleted(options);
|
|
840
|
+
const res = converters.Create_ReplyTemplateParsed_From(response.data);
|
|
841
|
+
resolve(res);
|
|
842
|
+
}
|
|
843
|
+
catch (err) {
|
|
844
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
845
|
+
reject(err);
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
async getUnparsedTemplateAsync(replyTemplateId, languageId, webapi_options) {
|
|
850
|
+
let _request = null;
|
|
851
|
+
let _options = null;
|
|
852
|
+
const first = replyTemplateId;
|
|
853
|
+
if (typeof (first) === "object" && first && (typeof (first.replyTemplateId) != 'undefined' || typeof (first.languageId) != 'undefined')) {
|
|
854
|
+
_request = replyTemplateId;
|
|
855
|
+
_options = languageId;
|
|
856
|
+
}
|
|
857
|
+
else {
|
|
858
|
+
_request = {
|
|
859
|
+
replyTemplateId: replyTemplateId,
|
|
860
|
+
languageId: languageId,
|
|
861
|
+
};
|
|
862
|
+
_options = webapi_options;
|
|
863
|
+
}
|
|
864
|
+
return this._getUnparsedTemplateAsync(_request, _options);
|
|
865
|
+
}
|
|
866
|
+
async _getSmsConfigAsync(options) {
|
|
867
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
868
|
+
base.WebApiBase.SetPending(options);
|
|
869
|
+
return new Promise(async (resolve, reject) => {
|
|
870
|
+
try {
|
|
871
|
+
config.baseURL = this._options.baseUrl;
|
|
872
|
+
const response = await this._axios.post("GetSmsConfig", undefined, config);
|
|
873
|
+
base.WebApiBase.SetCompleted(options);
|
|
874
|
+
const res = converters.Create_SmsConfig_From(response.data);
|
|
875
|
+
resolve(res);
|
|
876
|
+
}
|
|
877
|
+
catch (err) {
|
|
878
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
879
|
+
reject(err);
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Get the SmsConfig settings for Customer Service sms providers.
|
|
885
|
+
* @returns Current SMS configuration.
|
|
886
|
+
*/
|
|
887
|
+
async getSmsConfigAsync(webapi_options) {
|
|
888
|
+
return this._getSmsConfigAsync(webapi_options);
|
|
889
|
+
}
|
|
890
|
+
async _testSmtpServerAsync(request, options) {
|
|
891
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
892
|
+
base.WebApiBase.SetPending(options);
|
|
893
|
+
return new Promise(async (resolve, reject) => {
|
|
894
|
+
try {
|
|
895
|
+
config.baseURL = this._options.baseUrl;
|
|
896
|
+
const response = await this._axios.post("TestSmtpServer", request, config);
|
|
897
|
+
base.WebApiBase.SetCompleted(options);
|
|
898
|
+
const res = converters.Create_SmtpTestResult_From(response.data);
|
|
899
|
+
resolve(res);
|
|
900
|
+
}
|
|
901
|
+
catch (err) {
|
|
902
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
903
|
+
reject(err);
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
async testSmtpServerAsync(smtpUri, from, useStoredPassword, webapi_options) {
|
|
908
|
+
let _request = null;
|
|
909
|
+
let _options = null;
|
|
910
|
+
const first = smtpUri;
|
|
911
|
+
if (typeof (first) === "object" && first && (typeof (first.smtpUri) != 'undefined' || typeof (first.from) != 'undefined' || typeof (first.useStoredPassword) != 'undefined')) {
|
|
912
|
+
_request = smtpUri;
|
|
913
|
+
_options = from;
|
|
914
|
+
}
|
|
915
|
+
else {
|
|
916
|
+
_request = {
|
|
917
|
+
smtpUri: smtpUri,
|
|
918
|
+
from: from,
|
|
919
|
+
useStoredPassword: useStoredPassword,
|
|
920
|
+
};
|
|
921
|
+
_options = webapi_options;
|
|
922
|
+
}
|
|
923
|
+
return this._testSmtpServerAsync(_request, _options);
|
|
924
|
+
}
|
|
925
|
+
async _getStatisticsAsync(request, options) {
|
|
926
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
927
|
+
base.WebApiBase.SetPending(options);
|
|
928
|
+
return new Promise(async (resolve, reject) => {
|
|
929
|
+
try {
|
|
930
|
+
config.baseURL = this._options.baseUrl;
|
|
931
|
+
const response = await this._axios.post("GetStatistics", request, config);
|
|
932
|
+
base.WebApiBase.SetCompleted(options);
|
|
933
|
+
const res = converters.Create_StatisticsDataSetArray_From(response.data);
|
|
934
|
+
resolve(res);
|
|
935
|
+
}
|
|
936
|
+
catch (err) {
|
|
937
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
938
|
+
reject(err);
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
async getStatisticsAsync(functions, webapi_options) {
|
|
943
|
+
let _request = null;
|
|
944
|
+
let _options = null;
|
|
945
|
+
const first = functions;
|
|
946
|
+
if (typeof (first) === "object" && first && (typeof (first.functions) != 'undefined')) {
|
|
947
|
+
_request = functions;
|
|
948
|
+
_options = webapi_options;
|
|
949
|
+
}
|
|
950
|
+
else {
|
|
951
|
+
_request = {
|
|
952
|
+
functions: functions,
|
|
953
|
+
};
|
|
954
|
+
_options = webapi_options;
|
|
955
|
+
}
|
|
956
|
+
return this._getStatisticsAsync(_request, _options);
|
|
957
|
+
}
|
|
958
|
+
async _getSystemTemplateSettingsAsync(options) {
|
|
959
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
960
|
+
base.WebApiBase.SetPending(options);
|
|
961
|
+
return new Promise(async (resolve, reject) => {
|
|
962
|
+
try {
|
|
963
|
+
config.baseURL = this._options.baseUrl;
|
|
964
|
+
const response = await this._axios.post("GetSystemTemplateSettings", undefined, config);
|
|
965
|
+
base.WebApiBase.SetCompleted(options);
|
|
966
|
+
const res = converters.Create_SystemTemplateSettings_From(response.data);
|
|
967
|
+
resolve(res);
|
|
968
|
+
}
|
|
969
|
+
catch (err) {
|
|
970
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
971
|
+
reject(err);
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Returns system template settings
|
|
977
|
+
* @returns System template settings item
|
|
978
|
+
*/
|
|
979
|
+
async getSystemTemplateSettingsAsync(webapi_options) {
|
|
980
|
+
return this._getSystemTemplateSettingsAsync(webapi_options);
|
|
981
|
+
}
|
|
982
|
+
async _saveSystemTemplateSettingsAsync(request, options) {
|
|
983
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
984
|
+
base.WebApiBase.SetPending(options);
|
|
985
|
+
return new Promise(async (resolve, reject) => {
|
|
986
|
+
try {
|
|
987
|
+
config.baseURL = this._options.baseUrl;
|
|
988
|
+
const response = await this._axios.post("SaveSystemTemplateSettings", request, config);
|
|
989
|
+
base.WebApiBase.SetCompleted(options);
|
|
990
|
+
const res = converters.Create_SystemTemplateSettings_From(response.data);
|
|
991
|
+
resolve(res);
|
|
992
|
+
}
|
|
993
|
+
catch (err) {
|
|
994
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
995
|
+
reject(err);
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
async saveSystemTemplateSettingsAsync(systemTemplateSettings, webapi_options) {
|
|
1000
|
+
let _request = null;
|
|
1001
|
+
let _options = null;
|
|
1002
|
+
const first = systemTemplateSettings;
|
|
1003
|
+
if (typeof (first) === "object" && first && (typeof (first.systemTemplateSettings) != 'undefined')) {
|
|
1004
|
+
_request = systemTemplateSettings;
|
|
1005
|
+
_options = webapi_options;
|
|
1006
|
+
}
|
|
1007
|
+
else {
|
|
1008
|
+
_request = {
|
|
1009
|
+
systemTemplateSettings: systemTemplateSettings,
|
|
1010
|
+
};
|
|
1011
|
+
_options = webapi_options;
|
|
1012
|
+
}
|
|
1013
|
+
return this._saveSystemTemplateSettingsAsync(_request, _options);
|
|
1014
|
+
}
|
|
1015
|
+
async _createTicketFromMailDataAsync(request, options) {
|
|
1016
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1017
|
+
base.WebApiBase.SetPending(options);
|
|
1018
|
+
return new Promise(async (resolve, reject) => {
|
|
1019
|
+
try {
|
|
1020
|
+
config.baseURL = this._options.baseUrl;
|
|
1021
|
+
const response = await this._axios.post("CreateTicketFromMailData", request, config);
|
|
1022
|
+
base.WebApiBase.SetCompleted(options);
|
|
1023
|
+
const res = converters.Create_TicketInfo_From(response.data);
|
|
1024
|
+
resolve(res);
|
|
1025
|
+
}
|
|
1026
|
+
catch (err) {
|
|
1027
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1028
|
+
reject(err);
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
async createTicketFromMailDataAsync(mailboxId, data, webapi_options) {
|
|
1033
|
+
let _request = null;
|
|
1034
|
+
let _options = null;
|
|
1035
|
+
const first = mailboxId;
|
|
1036
|
+
if (typeof (first) === "object" && first && (typeof (first.mailboxId) != 'undefined' || typeof (first.data) != 'undefined')) {
|
|
1037
|
+
_request = mailboxId;
|
|
1038
|
+
_options = data;
|
|
1039
|
+
}
|
|
1040
|
+
else {
|
|
1041
|
+
_request = {
|
|
1042
|
+
mailboxId: mailboxId,
|
|
1043
|
+
data: data,
|
|
1044
|
+
};
|
|
1045
|
+
_options = webapi_options;
|
|
1046
|
+
}
|
|
1047
|
+
return this._createTicketFromMailDataAsync(_request, _options);
|
|
1048
|
+
}
|
|
1049
|
+
async _addMessageFromMailDataAsync(request, options) {
|
|
1050
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1051
|
+
base.WebApiBase.SetPending(options);
|
|
1052
|
+
return new Promise(async (resolve, reject) => {
|
|
1053
|
+
try {
|
|
1054
|
+
config.baseURL = this._options.baseUrl;
|
|
1055
|
+
const response = await this._axios.post("AddMessageFromMailData", request, config);
|
|
1056
|
+
base.WebApiBase.SetCompleted(options);
|
|
1057
|
+
const res = converters.Create_TicketInfo_From(response.data);
|
|
1058
|
+
resolve(res);
|
|
1059
|
+
}
|
|
1060
|
+
catch (err) {
|
|
1061
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1062
|
+
reject(err);
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
async addMessageFromMailDataAsync(ticketId, data, webapi_options) {
|
|
1067
|
+
let _request = null;
|
|
1068
|
+
let _options = null;
|
|
1069
|
+
const first = ticketId;
|
|
1070
|
+
if (typeof (first) === "object" && first && (typeof (first.ticketId) != 'undefined' || typeof (first.data) != 'undefined')) {
|
|
1071
|
+
_request = ticketId;
|
|
1072
|
+
_options = data;
|
|
1073
|
+
}
|
|
1074
|
+
else {
|
|
1075
|
+
_request = {
|
|
1076
|
+
ticketId: ticketId,
|
|
1077
|
+
data: data,
|
|
1078
|
+
};
|
|
1079
|
+
_options = webapi_options;
|
|
1080
|
+
}
|
|
1081
|
+
return this._addMessageFromMailDataAsync(_request, _options);
|
|
1082
|
+
}
|
|
1083
|
+
async _findTicketsByTitleOrIdAsync(request, options) {
|
|
1084
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1085
|
+
base.WebApiBase.SetPending(options);
|
|
1086
|
+
return new Promise(async (resolve, reject) => {
|
|
1087
|
+
try {
|
|
1088
|
+
config.baseURL = this._options.baseUrl;
|
|
1089
|
+
const response = await this._axios.post("FindTicketsByTitleOrId", request, config);
|
|
1090
|
+
base.WebApiBase.SetCompleted(options);
|
|
1091
|
+
const res = converters.Create_TicketInfoArray_From(response.data);
|
|
1092
|
+
resolve(res);
|
|
1093
|
+
}
|
|
1094
|
+
catch (err) {
|
|
1095
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1096
|
+
reject(err);
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
async findTicketsByTitleOrIdAsync(titleOrId, maxRows, webapi_options) {
|
|
1101
|
+
let _request = null;
|
|
1102
|
+
let _options = null;
|
|
1103
|
+
const first = titleOrId;
|
|
1104
|
+
if (typeof (first) === "object" && first && (typeof (first.titleOrId) != 'undefined' || typeof (first.maxRows) != 'undefined')) {
|
|
1105
|
+
_request = titleOrId;
|
|
1106
|
+
_options = maxRows;
|
|
1107
|
+
}
|
|
1108
|
+
else {
|
|
1109
|
+
_request = {
|
|
1110
|
+
titleOrId: titleOrId,
|
|
1111
|
+
maxRows: maxRows,
|
|
1112
|
+
};
|
|
1113
|
+
_options = webapi_options;
|
|
1114
|
+
}
|
|
1115
|
+
return this._findTicketsByTitleOrIdAsync(_request, _options);
|
|
1116
|
+
}
|
|
1117
|
+
} // class v1CustomerServiceAgentController
|
|
1118
|
+
//# sourceMappingURL=CustomerServiceAgent.js.map
|