@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,744 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// SuperOffice Code Generator
|
|
3
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
//----------------------------------------------------------------------------
|
|
9
|
+
// G E N E R A T E D F I L E ! D O N O T E D I T !
|
|
10
|
+
//----------------------------------------------------------------------------
|
|
11
|
+
//
|
|
12
|
+
// File: WebApi/DiagnosticsAgent.ts
|
|
13
|
+
//
|
|
14
|
+
//----------------------------------------------------------------------------
|
|
15
|
+
// Copyright (C) SuperOffice AS
|
|
16
|
+
//----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
import { AxiosRequestConfig } from 'axios';
|
|
19
|
+
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
+
import * as enums from './Enums.js';
|
|
21
|
+
import * as base from './WebApiBase.js';
|
|
22
|
+
import * as carriers from './Carriers.js';
|
|
23
|
+
import * as converters from './Converters.js';
|
|
24
|
+
import { FromBase64ToString, ToBase64 } from './Base64.js';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Diagnostics, usage data collection, caches and flushing
|
|
28
|
+
*/
|
|
29
|
+
export interface IDiagnosticsAgent {
|
|
30
|
+
flushCachesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
31
|
+
getCacheNamesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >;
|
|
32
|
+
flushCachesByNameAsync(request: carriers.Diagnostics_FlushCachesByNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
33
|
+
flushCachesByNameAsync(cacheNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
34
|
+
getCacheStateAsync(request: carriers.Diagnostics_GetCacheStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
35
|
+
getCacheStateAsync(cacheNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
36
|
+
getEntityCountsForCurrentUserAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EntityCounts[] >;
|
|
37
|
+
logViewStateAsync(request: carriers.Diagnostics_LogViewStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
38
|
+
logViewStateAsync(viewState: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
39
|
+
changeLogSettingsAsync(request: carriers.Diagnostics_ChangeLogSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
40
|
+
changeLogSettingsAsync(logWarning: boolean, logInformation: boolean, logSuccessAudit: boolean, logFailureAudit: boolean, logToEventLog: boolean, logToSuperOffice: boolean, logToFile: boolean, logToTrace: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
41
|
+
collectDataAdditionsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
42
|
+
collectWinUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
43
|
+
collectWebUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
44
|
+
collectTableSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
45
|
+
resyncUsersAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
46
|
+
performTasksAfterUpgradeAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
47
|
+
addWebAppUsageAsync(request: carriers.Diagnostics_AddWebAppUsageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
48
|
+
addWebAppUsageAsync(webAppUsages: carriers.WebAppUsage[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
49
|
+
webAppUsageExistsInPeriodAsync(request: carriers.Diagnostics_WebAppUsageExistsInPeriodRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
50
|
+
webAppUsageExistsInPeriodAsync(associateId: number, viewState: string, fromDate: Date, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
51
|
+
getWebAppUsagesForPeriodAsync(request: carriers.Diagnostics_GetWebAppUsagesForPeriodRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] >;
|
|
52
|
+
getWebAppUsagesForPeriodAsync(fromDate: Date, toDate: Date, searchTerm: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] >;
|
|
53
|
+
} // interface IDiagnosticsAgent
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Diagnostics, usage data collection, caches and flushing
|
|
60
|
+
*/
|
|
61
|
+
export class DiagnosticsAgent extends base.WebApiBase implements IDiagnosticsAgent {
|
|
62
|
+
constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
|
|
63
|
+
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
64
|
+
constructor(baseUrl: string, resourceManager:any);
|
|
65
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
|
|
66
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
67
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
|
|
68
|
+
constructor(options: base.WebApiOptions);
|
|
69
|
+
|
|
70
|
+
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
71
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
72
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
73
|
+
cultureCode?: string,
|
|
74
|
+
) {
|
|
75
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
76
|
+
options.basePath = "v1/Agents/Diagnostics/";
|
|
77
|
+
super(options);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
private async _flushCachesAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
83
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
84
|
+
base.WebApiBase.SetPending(options);
|
|
85
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
86
|
+
try {
|
|
87
|
+
config.baseURL = this._options.baseUrl;
|
|
88
|
+
const response = await this._axios.post("FlushCaches", undefined , config);
|
|
89
|
+
base.WebApiBase.SetCompleted(options);
|
|
90
|
+
const res = response.data;
|
|
91
|
+
resolve(res);
|
|
92
|
+
}
|
|
93
|
+
catch( err ) {
|
|
94
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
95
|
+
reject(err);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Flushes all NetServer caches
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
public async flushCachesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
106
|
+
{
|
|
107
|
+
return this._flushCachesAsync(webapi_options);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
private async _getCacheNamesAsync( options?:base.WebApiRequestOptions) : Promise< string[] > {
|
|
112
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
113
|
+
base.WebApiBase.SetPending(options);
|
|
114
|
+
return new Promise< string[] >(async (resolve, reject) => {
|
|
115
|
+
try {
|
|
116
|
+
config.baseURL = this._options.baseUrl;
|
|
117
|
+
const response = await this._axios.post("GetCacheNames", undefined , config);
|
|
118
|
+
base.WebApiBase.SetCompleted(options);
|
|
119
|
+
const res : string[] = response.data as string[];
|
|
120
|
+
resolve(res);
|
|
121
|
+
}
|
|
122
|
+
catch( err ) {
|
|
123
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
124
|
+
reject(err);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Get the name of the caches that can be flushed
|
|
132
|
+
* @returns Name of the caches that can be flusehd
|
|
133
|
+
*/
|
|
134
|
+
public async getCacheNamesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >
|
|
135
|
+
{
|
|
136
|
+
return this._getCacheNamesAsync(webapi_options);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
private async _flushCachesByNameAsync(request: carriers.Diagnostics_FlushCachesByNameRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
141
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
142
|
+
base.WebApiBase.SetPending(options);
|
|
143
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
144
|
+
try {
|
|
145
|
+
config.baseURL = this._options.baseUrl;
|
|
146
|
+
const response = await this._axios.post("FlushCachesByName", request , config);
|
|
147
|
+
base.WebApiBase.SetCompleted(options);
|
|
148
|
+
const res = response.data;
|
|
149
|
+
resolve(res);
|
|
150
|
+
}
|
|
151
|
+
catch( err ) {
|
|
152
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
153
|
+
reject(err);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Flushes all NetServer caches named
|
|
162
|
+
* @param request - CacheNames
|
|
163
|
+
* @returns This method has no return value
|
|
164
|
+
*/
|
|
165
|
+
public async flushCachesByNameAsync(request: carriers.Diagnostics_FlushCachesByNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Flushes all NetServer caches named
|
|
169
|
+
* @param cacheNames - Name of the cachnes to flush
|
|
170
|
+
* @returns This method has no return value
|
|
171
|
+
*/
|
|
172
|
+
public async flushCachesByNameAsync(cacheNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
173
|
+
|
|
174
|
+
public async flushCachesByNameAsync(cacheNames:string[]|carriers.Diagnostics_FlushCachesByNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
175
|
+
let _request : carriers.Diagnostics_FlushCachesByNameRequest = null;
|
|
176
|
+
let _options : base.WebApiRequestOptions = null;
|
|
177
|
+
const first : any = cacheNames;
|
|
178
|
+
if( typeof( first ) === "object" && first && ( typeof(first.cacheNames)!='undefined' ) )
|
|
179
|
+
{
|
|
180
|
+
_request = cacheNames as carriers.Diagnostics_FlushCachesByNameRequest;
|
|
181
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
182
|
+
}
|
|
183
|
+
else
|
|
184
|
+
{
|
|
185
|
+
_request = {
|
|
186
|
+
cacheNames: cacheNames as string[],
|
|
187
|
+
};
|
|
188
|
+
_options = webapi_options;
|
|
189
|
+
}
|
|
190
|
+
return this._flushCachesByNameAsync( _request, _options );
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
private async _getCacheStateAsync(request: carriers.Diagnostics_GetCacheStateRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
195
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
196
|
+
base.WebApiBase.SetPending(options);
|
|
197
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
198
|
+
try {
|
|
199
|
+
config.baseURL = this._options.baseUrl;
|
|
200
|
+
const response = await this._axios.post("GetCacheState", request , config);
|
|
201
|
+
base.WebApiBase.SetCompleted(options);
|
|
202
|
+
const res : string = response.data as string;
|
|
203
|
+
resolve(res);
|
|
204
|
+
}
|
|
205
|
+
catch( err ) {
|
|
206
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
207
|
+
reject(err);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Get the current generation value of the named caches. State is opaque.
|
|
216
|
+
* @param request - CacheNames
|
|
217
|
+
* @returns Current state of the caches named. If not the same as previous value, then it is time to flush
|
|
218
|
+
*/
|
|
219
|
+
public async getCacheStateAsync(request: carriers.Diagnostics_GetCacheStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Get the current generation value of the named caches. State is opaque.
|
|
223
|
+
* @param cacheNames - Names of the caches to check
|
|
224
|
+
* @returns Current state of the caches named. If not the same as previous value, then it is time to flush
|
|
225
|
+
*/
|
|
226
|
+
public async getCacheStateAsync(cacheNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
227
|
+
|
|
228
|
+
public async getCacheStateAsync(cacheNames:string[]|carriers.Diagnostics_GetCacheStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
229
|
+
let _request : carriers.Diagnostics_GetCacheStateRequest = null;
|
|
230
|
+
let _options : base.WebApiRequestOptions = null;
|
|
231
|
+
const first : any = cacheNames;
|
|
232
|
+
if( typeof( first ) === "object" && first && ( typeof(first.cacheNames)!='undefined' ) )
|
|
233
|
+
{
|
|
234
|
+
_request = cacheNames as carriers.Diagnostics_GetCacheStateRequest;
|
|
235
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
236
|
+
}
|
|
237
|
+
else
|
|
238
|
+
{
|
|
239
|
+
_request = {
|
|
240
|
+
cacheNames: cacheNames as string[],
|
|
241
|
+
};
|
|
242
|
+
_options = webapi_options;
|
|
243
|
+
}
|
|
244
|
+
return this._getCacheStateAsync( _request, _options );
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
private async _getEntityCountsForCurrentUserAsync( options?:base.WebApiRequestOptions) : Promise< carriers.EntityCounts[] > {
|
|
249
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
250
|
+
base.WebApiBase.SetPending(options);
|
|
251
|
+
return new Promise< carriers.EntityCounts[] >(async (resolve, reject) => {
|
|
252
|
+
try {
|
|
253
|
+
config.baseURL = this._options.baseUrl;
|
|
254
|
+
const response = await this._axios.post("GetEntityCountsForCurrentUser", undefined , config);
|
|
255
|
+
base.WebApiBase.SetCompleted(options);
|
|
256
|
+
const res : carriers.EntityCounts[] = converters.Create_EntityCountsArray_From( response.data );
|
|
257
|
+
resolve(res);
|
|
258
|
+
}
|
|
259
|
+
catch( err ) {
|
|
260
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
261
|
+
reject(err);
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Get an array of entities and number of entities created for the current associate
|
|
269
|
+
* @returns Array of EntityCounts[] for the current associate
|
|
270
|
+
*/
|
|
271
|
+
public async getEntityCountsForCurrentUserAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EntityCounts[] >
|
|
272
|
+
{
|
|
273
|
+
return this._getEntityCountsForCurrentUserAsync(webapi_options);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
private async _logViewStateAsync(request: carriers.Diagnostics_LogViewStateRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
278
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
279
|
+
base.WebApiBase.SetPending(options);
|
|
280
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
281
|
+
try {
|
|
282
|
+
config.baseURL = this._options.baseUrl;
|
|
283
|
+
const response = await this._axios.post("LogViewState", request , config);
|
|
284
|
+
base.WebApiBase.SetCompleted(options);
|
|
285
|
+
const res = response.data;
|
|
286
|
+
resolve(res);
|
|
287
|
+
}
|
|
288
|
+
catch( err ) {
|
|
289
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
290
|
+
reject(err);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Log a change in view state. The granularity of the logging depends on the current configuration. This call returns asynchronously, leaving the server to finish processing later on.
|
|
299
|
+
* @param request - ViewState
|
|
300
|
+
* @returns
|
|
301
|
+
*/
|
|
302
|
+
public async logViewStateAsync(request: carriers.Diagnostics_LogViewStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Log a change in view state. The granularity of the logging depends on the current configuration. This call returns asynchronously, leaving the server to finish processing later on.
|
|
306
|
+
* @param viewState - Current view state to be logged
|
|
307
|
+
* @returns
|
|
308
|
+
*/
|
|
309
|
+
public async logViewStateAsync(viewState: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
310
|
+
|
|
311
|
+
public async logViewStateAsync(viewState:string|carriers.Diagnostics_LogViewStateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
312
|
+
let _request : carriers.Diagnostics_LogViewStateRequest = null;
|
|
313
|
+
let _options : base.WebApiRequestOptions = null;
|
|
314
|
+
const first : any = viewState;
|
|
315
|
+
if( typeof( first ) === "object" && first && ( typeof(first.viewState)!='undefined' ) )
|
|
316
|
+
{
|
|
317
|
+
_request = viewState as carriers.Diagnostics_LogViewStateRequest;
|
|
318
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
319
|
+
}
|
|
320
|
+
else
|
|
321
|
+
{
|
|
322
|
+
_request = {
|
|
323
|
+
viewState: viewState as string,
|
|
324
|
+
};
|
|
325
|
+
_options = webapi_options;
|
|
326
|
+
}
|
|
327
|
+
return this._logViewStateAsync( _request, _options );
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
private async _changeLogSettingsAsync(request: carriers.Diagnostics_ChangeLogSettingsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
332
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
333
|
+
base.WebApiBase.SetPending(options);
|
|
334
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
335
|
+
try {
|
|
336
|
+
config.baseURL = this._options.baseUrl;
|
|
337
|
+
const response = await this._axios.post("ChangeLogSettings", request , config);
|
|
338
|
+
base.WebApiBase.SetCompleted(options);
|
|
339
|
+
const res = response.data;
|
|
340
|
+
resolve(res);
|
|
341
|
+
}
|
|
342
|
+
catch( err ) {
|
|
343
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
344
|
+
reject(err);
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Change NetServer log settings.
|
|
353
|
+
* @param request - LogWarning, LogInformation, LogSuccessAudit, LogFailureAudit, LogToEventLog, LogToSuperOffice, LogToFile, LogToTrace
|
|
354
|
+
* @returns
|
|
355
|
+
*/
|
|
356
|
+
public async changeLogSettingsAsync(request: carriers.Diagnostics_ChangeLogSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Change NetServer log settings.
|
|
360
|
+
* @param logWarning - Turn on warning log
|
|
361
|
+
* @param logInformation - Turn on information log
|
|
362
|
+
* @param logSuccessAudit - Turn on success audit log
|
|
363
|
+
* @param logFailureAudit - Turn on failure audit log
|
|
364
|
+
* @param logToEventLog - Log to event log
|
|
365
|
+
* @param logToSuperOffice - Log to SuperOffice
|
|
366
|
+
* @param logToFile - Log to file
|
|
367
|
+
* @param logToTrace - Log to trace
|
|
368
|
+
* @returns
|
|
369
|
+
*/
|
|
370
|
+
public async changeLogSettingsAsync(logWarning: boolean, logInformation: boolean, logSuccessAudit: boolean, logFailureAudit: boolean, logToEventLog: boolean, logToSuperOffice: boolean, logToFile: boolean, logToTrace: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
371
|
+
|
|
372
|
+
public async changeLogSettingsAsync(logWarning:boolean|carriers.Diagnostics_ChangeLogSettingsRequest, logInformation?:boolean|base.WebApiRequestOptions, logSuccessAudit?:boolean, logFailureAudit?:boolean, logToEventLog?:boolean, logToSuperOffice?:boolean, logToFile?:boolean, logToTrace?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
373
|
+
let _request : carriers.Diagnostics_ChangeLogSettingsRequest = null;
|
|
374
|
+
let _options : base.WebApiRequestOptions = null;
|
|
375
|
+
const first : any = logWarning;
|
|
376
|
+
if( typeof( first ) === "object" && first && ( typeof(first.logWarning)!='undefined' || typeof(first.logInformation)!='undefined' || typeof(first.logSuccessAudit)!='undefined' || typeof(first.logFailureAudit)!='undefined' || typeof(first.logToEventLog)!='undefined' || typeof(first.logToSuperOffice)!='undefined' || typeof(first.logToFile)!='undefined' || typeof(first.logToTrace)!='undefined' ) )
|
|
377
|
+
{
|
|
378
|
+
_request = logWarning as carriers.Diagnostics_ChangeLogSettingsRequest;
|
|
379
|
+
_options = logInformation as base.WebApiRequestOptions;
|
|
380
|
+
}
|
|
381
|
+
else
|
|
382
|
+
{
|
|
383
|
+
_request = {
|
|
384
|
+
logWarning: logWarning as boolean,
|
|
385
|
+
logInformation: logInformation as boolean,
|
|
386
|
+
logSuccessAudit: logSuccessAudit as boolean,
|
|
387
|
+
logFailureAudit: logFailureAudit as boolean,
|
|
388
|
+
logToEventLog: logToEventLog as boolean,
|
|
389
|
+
logToSuperOffice: logToSuperOffice as boolean,
|
|
390
|
+
logToFile: logToFile as boolean,
|
|
391
|
+
logToTrace: logToTrace as boolean,
|
|
392
|
+
};
|
|
393
|
+
_options = webapi_options;
|
|
394
|
+
}
|
|
395
|
+
return this._changeLogSettingsAsync( _request, _options );
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
private async _collectDataAdditionsAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
400
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
401
|
+
base.WebApiBase.SetPending(options);
|
|
402
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
403
|
+
try {
|
|
404
|
+
config.baseURL = this._options.baseUrl;
|
|
405
|
+
const response = await this._axios.post("CollectDataAdditions", undefined , config);
|
|
406
|
+
base.WebApiBase.SetCompleted(options);
|
|
407
|
+
const res = response.data;
|
|
408
|
+
resolve(res);
|
|
409
|
+
}
|
|
410
|
+
catch( err ) {
|
|
411
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
412
|
+
reject(err);
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Collect and transmit usage statistics: Database Additions. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
|
|
420
|
+
* @returns This method has no return value
|
|
421
|
+
*/
|
|
422
|
+
public async collectDataAdditionsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
423
|
+
{
|
|
424
|
+
return this._collectDataAdditionsAsync(webapi_options);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
private async _collectWinUsageAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
429
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
430
|
+
base.WebApiBase.SetPending(options);
|
|
431
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
432
|
+
try {
|
|
433
|
+
config.baseURL = this._options.baseUrl;
|
|
434
|
+
const response = await this._axios.post("CollectWinUsage", undefined , config);
|
|
435
|
+
base.WebApiBase.SetCompleted(options);
|
|
436
|
+
const res = response.data;
|
|
437
|
+
resolve(res);
|
|
438
|
+
}
|
|
439
|
+
catch( err ) {
|
|
440
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
441
|
+
reject(err);
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Collect and transmit usage statistics: Windows CRM Client Usage. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
|
|
449
|
+
* @returns This method has no return value
|
|
450
|
+
*/
|
|
451
|
+
public async collectWinUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
452
|
+
{
|
|
453
|
+
return this._collectWinUsageAsync(webapi_options);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
private async _collectWebUsageAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
458
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
459
|
+
base.WebApiBase.SetPending(options);
|
|
460
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
461
|
+
try {
|
|
462
|
+
config.baseURL = this._options.baseUrl;
|
|
463
|
+
const response = await this._axios.post("CollectWebUsage", undefined , config);
|
|
464
|
+
base.WebApiBase.SetCompleted(options);
|
|
465
|
+
const res = response.data;
|
|
466
|
+
resolve(res);
|
|
467
|
+
}
|
|
468
|
+
catch( err ) {
|
|
469
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
470
|
+
reject(err);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Collect and transmit usage statistics: Web-based clients Usage. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
|
|
478
|
+
* @returns This method has no return value
|
|
479
|
+
*/
|
|
480
|
+
public async collectWebUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
481
|
+
{
|
|
482
|
+
return this._collectWebUsageAsync(webapi_options);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
private async _collectTableSizesAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
487
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
488
|
+
base.WebApiBase.SetPending(options);
|
|
489
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
490
|
+
try {
|
|
491
|
+
config.baseURL = this._options.baseUrl;
|
|
492
|
+
const response = await this._axios.post("CollectTableSizes", undefined , config);
|
|
493
|
+
base.WebApiBase.SetCompleted(options);
|
|
494
|
+
const res = response.data;
|
|
495
|
+
resolve(res);
|
|
496
|
+
}
|
|
497
|
+
catch( err ) {
|
|
498
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
499
|
+
reject(err);
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Collect and transmit usage statistics: Table Sizes. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
|
|
507
|
+
* @returns This method has no return value
|
|
508
|
+
*/
|
|
509
|
+
public async collectTableSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
510
|
+
{
|
|
511
|
+
return this._collectTableSizesAsync(webapi_options);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
private async _resyncUsersAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
516
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
517
|
+
base.WebApiBase.SetPending(options);
|
|
518
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
519
|
+
try {
|
|
520
|
+
config.baseURL = this._options.baseUrl;
|
|
521
|
+
const response = await this._axios.post("ResyncUsers", undefined , config);
|
|
522
|
+
base.WebApiBase.SetCompleted(options);
|
|
523
|
+
const res = response.data;
|
|
524
|
+
resolve(res);
|
|
525
|
+
}
|
|
526
|
+
catch( err ) {
|
|
527
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
528
|
+
reject(err);
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Resynchronize user information with SuperOffice Community, if opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
|
|
536
|
+
* @returns This method has no return value
|
|
537
|
+
*/
|
|
538
|
+
public async resyncUsersAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
539
|
+
{
|
|
540
|
+
return this._resyncUsersAsync(webapi_options);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
private async _performTasksAfterUpgradeAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
545
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
546
|
+
base.WebApiBase.SetPending(options);
|
|
547
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
548
|
+
try {
|
|
549
|
+
config.baseURL = this._options.baseUrl;
|
|
550
|
+
const response = await this._axios.post("PerformTasksAfterUpgrade", undefined , config);
|
|
551
|
+
base.WebApiBase.SetCompleted(options);
|
|
552
|
+
const res : string = response.data as string;
|
|
553
|
+
resolve(res);
|
|
554
|
+
}
|
|
555
|
+
catch( err ) {
|
|
556
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
557
|
+
reject(err);
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* After upgrading to a new fileset, there may be tasks that need to be done. Examples - import new TypicalSearches, if present. Tasks performed here need to be idempotent and independent of the actual upgrade jump (what was the previous version). They should complete in a reasonable time, not more than a few minutes maximum.
|
|
565
|
+
* @returns Message that can be shown to the user, summarizing what has been done, if anything.
|
|
566
|
+
*/
|
|
567
|
+
public async performTasksAfterUpgradeAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
568
|
+
{
|
|
569
|
+
return this._performTasksAfterUpgradeAsync(webapi_options);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
private async _addWebAppUsageAsync(request: carriers.Diagnostics_AddWebAppUsageRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
574
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
575
|
+
base.WebApiBase.SetPending(options);
|
|
576
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
577
|
+
try {
|
|
578
|
+
config.baseURL = this._options.baseUrl;
|
|
579
|
+
const response = await this._axios.post("AddWebAppUsage", request , config);
|
|
580
|
+
base.WebApiBase.SetCompleted(options);
|
|
581
|
+
const res = response.data;
|
|
582
|
+
resolve(res);
|
|
583
|
+
}
|
|
584
|
+
catch( err ) {
|
|
585
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
586
|
+
reject(err);
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Adds WebApp usage to existing log
|
|
595
|
+
* @param request - WebAppUsages
|
|
596
|
+
* @returns
|
|
597
|
+
*/
|
|
598
|
+
public async addWebAppUsageAsync(request: carriers.Diagnostics_AddWebAppUsageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Adds WebApp usage to existing log
|
|
602
|
+
* @param webAppUsages - Web app usage.
|
|
603
|
+
* @returns
|
|
604
|
+
*/
|
|
605
|
+
public async addWebAppUsageAsync(webAppUsages: carriers.WebAppUsage[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
606
|
+
|
|
607
|
+
public async addWebAppUsageAsync(webAppUsages:carriers.WebAppUsage[]|carriers.Diagnostics_AddWebAppUsageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
608
|
+
let _request : carriers.Diagnostics_AddWebAppUsageRequest = null;
|
|
609
|
+
let _options : base.WebApiRequestOptions = null;
|
|
610
|
+
const first : any = webAppUsages;
|
|
611
|
+
if( typeof( first ) === "object" && first && ( typeof(first.webAppUsages)!='undefined' ) )
|
|
612
|
+
{
|
|
613
|
+
_request = webAppUsages as carriers.Diagnostics_AddWebAppUsageRequest;
|
|
614
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
615
|
+
}
|
|
616
|
+
else
|
|
617
|
+
{
|
|
618
|
+
_request = {
|
|
619
|
+
webAppUsages: webAppUsages as carriers.WebAppUsage[],
|
|
620
|
+
};
|
|
621
|
+
_options = webapi_options;
|
|
622
|
+
}
|
|
623
|
+
return this._addWebAppUsageAsync( _request, _options );
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
private async _webAppUsageExistsInPeriodAsync(request: carriers.Diagnostics_WebAppUsageExistsInPeriodRequest, options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
628
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
629
|
+
base.WebApiBase.SetPending(options);
|
|
630
|
+
return new Promise< boolean >(async (resolve, reject) => {
|
|
631
|
+
try {
|
|
632
|
+
config.baseURL = this._options.baseUrl;
|
|
633
|
+
const response = await this._axios.post("WebAppUsageExistsInPeriod", request , config);
|
|
634
|
+
base.WebApiBase.SetCompleted(options);
|
|
635
|
+
const res : boolean = response.data as boolean;
|
|
636
|
+
resolve(res);
|
|
637
|
+
}
|
|
638
|
+
catch( err ) {
|
|
639
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
640
|
+
reject(err);
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Returns true if viewState has been clicked at least once since FromDate, if asscoiateId < 0 or FromDate is DateTime.MinValue no restriction given for those parameters
|
|
649
|
+
* @param request - AssociateId, ViewState, FromDate
|
|
650
|
+
* @returns Returns true if viewState has been clicked at least once since FromDate
|
|
651
|
+
*/
|
|
652
|
+
public async webAppUsageExistsInPeriodAsync(request: carriers.Diagnostics_WebAppUsageExistsInPeriodRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Returns true if viewState has been clicked at least once since FromDate, if asscoiateId < 0 or FromDate is DateTime.MinValue no restriction given for those parameters
|
|
656
|
+
* @param associateId - The asscoiate id to look for webapp usage
|
|
657
|
+
* @param viewState - The viewState to search for
|
|
658
|
+
* @param fromDate - The datetime to restrict webapp usage on
|
|
659
|
+
* @returns Returns true if viewState has been clicked at least once since FromDate
|
|
660
|
+
*/
|
|
661
|
+
public async webAppUsageExistsInPeriodAsync(associateId: number, viewState: string, fromDate: Date, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
662
|
+
|
|
663
|
+
public async webAppUsageExistsInPeriodAsync(associateId:number|carriers.Diagnostics_WebAppUsageExistsInPeriodRequest, viewState?:string|base.WebApiRequestOptions, fromDate?:Date, webapi_options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
664
|
+
let _request : carriers.Diagnostics_WebAppUsageExistsInPeriodRequest = null;
|
|
665
|
+
let _options : base.WebApiRequestOptions = null;
|
|
666
|
+
const first : any = associateId;
|
|
667
|
+
if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' || typeof(first.viewState)!='undefined' || typeof(first.fromDate)!='undefined' ) )
|
|
668
|
+
{
|
|
669
|
+
_request = associateId as carriers.Diagnostics_WebAppUsageExistsInPeriodRequest;
|
|
670
|
+
_options = viewState as base.WebApiRequestOptions;
|
|
671
|
+
}
|
|
672
|
+
else
|
|
673
|
+
{
|
|
674
|
+
_request = {
|
|
675
|
+
associateId: associateId as number,
|
|
676
|
+
viewState: viewState as string,
|
|
677
|
+
fromDate: fromDate as Date,
|
|
678
|
+
};
|
|
679
|
+
_options = webapi_options;
|
|
680
|
+
}
|
|
681
|
+
return this._webAppUsageExistsInPeriodAsync( _request, _options );
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
private async _getWebAppUsagesForPeriodAsync(request: carriers.Diagnostics_GetWebAppUsagesForPeriodRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] > {
|
|
686
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
687
|
+
base.WebApiBase.SetPending(options);
|
|
688
|
+
return new Promise< carriers.WebAppUsage[] >(async (resolve, reject) => {
|
|
689
|
+
try {
|
|
690
|
+
config.baseURL = this._options.baseUrl;
|
|
691
|
+
const response = await this._axios.post("GetWebAppUsagesForPeriod", request , config);
|
|
692
|
+
base.WebApiBase.SetCompleted(options);
|
|
693
|
+
const res : carriers.WebAppUsage[] = converters.Create_WebAppUsageArray_From( response.data );
|
|
694
|
+
resolve(res);
|
|
695
|
+
}
|
|
696
|
+
catch( err ) {
|
|
697
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
698
|
+
reject(err);
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Get all WebAppUsages for a given period, that match an optional search term
|
|
707
|
+
* @param request - FromDate, ToDate, SearchTerm
|
|
708
|
+
* @returns
|
|
709
|
+
*/
|
|
710
|
+
public async getWebAppUsagesForPeriodAsync(request: carriers.Diagnostics_GetWebAppUsagesForPeriodRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] >;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Get all WebAppUsages for a given period, that match an optional search term
|
|
714
|
+
* @param fromDate -
|
|
715
|
+
* @param toDate -
|
|
716
|
+
* @param searchTerm - ViewState search term. '%' is the wildcard character, for example 'Pocket%' will match all viewstates starting with 'Pocket'. If empty, all viewstates will be matched
|
|
717
|
+
* @returns
|
|
718
|
+
*/
|
|
719
|
+
public async getWebAppUsagesForPeriodAsync(fromDate: Date, toDate: Date, searchTerm: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] >;
|
|
720
|
+
|
|
721
|
+
public async getWebAppUsagesForPeriodAsync(fromDate:Date|carriers.Diagnostics_GetWebAppUsagesForPeriodRequest, toDate?:Date|base.WebApiRequestOptions, searchTerm?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WebAppUsage[] > {
|
|
722
|
+
let _request : carriers.Diagnostics_GetWebAppUsagesForPeriodRequest = null;
|
|
723
|
+
let _options : base.WebApiRequestOptions = null;
|
|
724
|
+
const first : any = fromDate;
|
|
725
|
+
if( typeof( first ) === "object" && first && ( typeof(first.fromDate)!='undefined' || typeof(first.toDate)!='undefined' || typeof(first.searchTerm)!='undefined' ) )
|
|
726
|
+
{
|
|
727
|
+
_request = fromDate as carriers.Diagnostics_GetWebAppUsagesForPeriodRequest;
|
|
728
|
+
_options = toDate as base.WebApiRequestOptions;
|
|
729
|
+
}
|
|
730
|
+
else
|
|
731
|
+
{
|
|
732
|
+
_request = {
|
|
733
|
+
fromDate: fromDate as Date,
|
|
734
|
+
toDate: toDate as Date,
|
|
735
|
+
searchTerm: searchTerm as string,
|
|
736
|
+
};
|
|
737
|
+
_options = webapi_options;
|
|
738
|
+
}
|
|
739
|
+
return this._getWebAppUsagesForPeriodAsync( _request, _options );
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
} // class v1DiagnosticsAgentController
|
|
743
|
+
|
|
744
|
+
|