@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,1429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// <auto-generated>
|
|
3
|
+
// SuperOffice Code Generator
|
|
4
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
5
|
+
// </auto-generated>
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ConfigurationAgent = void 0;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const base = tslib_1.__importStar(require("./WebApiBase.js"));
|
|
10
|
+
const converters = tslib_1.__importStar(require("./Converters.js"));
|
|
11
|
+
/**
|
|
12
|
+
* User interface configuration - XMLs and other elements such as inter-client URLs
|
|
13
|
+
*/
|
|
14
|
+
class ConfigurationAgent extends base.WebApiBase {
|
|
15
|
+
constructor(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode) {
|
|
16
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
17
|
+
options.basePath = "v1/Agents/Configuration/";
|
|
18
|
+
super(options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Set default values into a new ConfigurableScreenDelta.
|
|
22
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
23
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
24
|
+
* @returns A blank entity.
|
|
25
|
+
*/
|
|
26
|
+
async createDefaultConfigurableScreenDeltaAsync(options) {
|
|
27
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
28
|
+
base.WebApiBase.SetPending(options);
|
|
29
|
+
return new Promise(async (resolve, reject) => {
|
|
30
|
+
try {
|
|
31
|
+
const response = await this._axios.post("CreateDefaultConfigurableScreenDelta", null, config);
|
|
32
|
+
base.WebApiBase.SetCompleted(options);
|
|
33
|
+
const res = converters.Create_ConfigurableScreenDelta_From(response.data);
|
|
34
|
+
resolve(res);
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
38
|
+
reject(err);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/*
|
|
43
|
+
* Replace the existing ConfigurableScreenDelta or creates a new ConfigurableScreenDelta if the id parameter is empty
|
|
44
|
+
* @param entity - The ConfigurableScreenDelta to be saved.
|
|
45
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
46
|
+
* @returns New or updated ConfigurableScreenDelta
|
|
47
|
+
*/
|
|
48
|
+
async saveConfigurableScreenDeltaAsync(entity, options) {
|
|
49
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
50
|
+
base.WebApiBase.SetPending(options);
|
|
51
|
+
return new Promise(async (resolve, reject) => {
|
|
52
|
+
try {
|
|
53
|
+
const response = await this._axios.post("SaveConfigurableScreenDelta", entity, config);
|
|
54
|
+
base.WebApiBase.SetCompleted(options);
|
|
55
|
+
const res = converters.Create_ConfigurableScreenDelta_From(response.data);
|
|
56
|
+
resolve(res);
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
60
|
+
reject(err);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/*
|
|
65
|
+
* Deletes the ConfigurableScreenDelta
|
|
66
|
+
* @param ConfigurableScreenDeltaId - The id of the ConfigurableScreenDelta to be deleted.
|
|
67
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
68
|
+
*/
|
|
69
|
+
async deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId, options) {
|
|
70
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
71
|
+
base.WebApiBase.SetPending(options);
|
|
72
|
+
return new Promise(async (resolve, reject) => {
|
|
73
|
+
try {
|
|
74
|
+
const response = await this._axios.post("DeleteConfigurableScreenDelta?ConfigurableScreenDeltaId=" + ConfigurableScreenDeltaId, null, config);
|
|
75
|
+
base.WebApiBase.SetCompleted(options);
|
|
76
|
+
const res = response.data;
|
|
77
|
+
resolve(res);
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
81
|
+
reject(err);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Set default values into a new DiaryViewEntity.
|
|
87
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
88
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
89
|
+
* @returns A blank entity.
|
|
90
|
+
*/
|
|
91
|
+
async createDefaultDiaryViewEntityAsync(options) {
|
|
92
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
93
|
+
base.WebApiBase.SetPending(options);
|
|
94
|
+
return new Promise(async (resolve, reject) => {
|
|
95
|
+
try {
|
|
96
|
+
const response = await this._axios.post("CreateDefaultDiaryViewEntity", null, config);
|
|
97
|
+
base.WebApiBase.SetCompleted(options);
|
|
98
|
+
const res = converters.Create_DiaryViewEntity_From(response.data);
|
|
99
|
+
resolve(res);
|
|
100
|
+
}
|
|
101
|
+
catch (err) {
|
|
102
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
103
|
+
reject(err);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/*
|
|
108
|
+
* Replace the existing DiaryViewEntity or creates a new DiaryViewEntity if the id parameter is empty
|
|
109
|
+
* @param entity - The DiaryViewEntity to be saved.
|
|
110
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
111
|
+
* @returns New or updated DiaryViewEntity
|
|
112
|
+
*/
|
|
113
|
+
async saveDiaryViewEntityAsync(entity, options) {
|
|
114
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
115
|
+
base.WebApiBase.SetPending(options);
|
|
116
|
+
return new Promise(async (resolve, reject) => {
|
|
117
|
+
try {
|
|
118
|
+
const response = await this._axios.post("SaveDiaryViewEntity", entity, config);
|
|
119
|
+
base.WebApiBase.SetCompleted(options);
|
|
120
|
+
const res = converters.Create_DiaryViewEntity_From(response.data);
|
|
121
|
+
resolve(res);
|
|
122
|
+
}
|
|
123
|
+
catch (err) {
|
|
124
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
125
|
+
reject(err);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/*
|
|
130
|
+
* Deletes the DiaryViewEntity
|
|
131
|
+
* @param DiaryViewEntityId - The id of the DiaryViewEntity to be deleted.
|
|
132
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
133
|
+
*/
|
|
134
|
+
async deleteDiaryViewEntityAsync(DiaryViewEntityId, options) {
|
|
135
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
136
|
+
base.WebApiBase.SetPending(options);
|
|
137
|
+
return new Promise(async (resolve, reject) => {
|
|
138
|
+
try {
|
|
139
|
+
const response = await this._axios.post("DeleteDiaryViewEntity?DiaryViewEntityId=" + DiaryViewEntityId, null, config);
|
|
140
|
+
base.WebApiBase.SetCompleted(options);
|
|
141
|
+
const res = response.data;
|
|
142
|
+
resolve(res);
|
|
143
|
+
}
|
|
144
|
+
catch (err) {
|
|
145
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
146
|
+
reject(err);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Set default values into a new SystemEventEntity.
|
|
152
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
153
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
154
|
+
* @returns A blank entity.
|
|
155
|
+
*/
|
|
156
|
+
async createDefaultSystemEventEntityAsync(options) {
|
|
157
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
158
|
+
base.WebApiBase.SetPending(options);
|
|
159
|
+
return new Promise(async (resolve, reject) => {
|
|
160
|
+
try {
|
|
161
|
+
const response = await this._axios.post("CreateDefaultSystemEventEntity", null, config);
|
|
162
|
+
base.WebApiBase.SetCompleted(options);
|
|
163
|
+
const res = converters.Create_SystemEventEntity_From(response.data);
|
|
164
|
+
resolve(res);
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
168
|
+
reject(err);
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/*
|
|
173
|
+
* Replace the existing SystemEventEntity or creates a new SystemEventEntity if the id parameter is empty
|
|
174
|
+
* @param entity - The SystemEventEntity to be saved.
|
|
175
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
176
|
+
* @returns New or updated SystemEventEntity
|
|
177
|
+
*/
|
|
178
|
+
async saveSystemEventEntityAsync(entity, options) {
|
|
179
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
180
|
+
base.WebApiBase.SetPending(options);
|
|
181
|
+
return new Promise(async (resolve, reject) => {
|
|
182
|
+
try {
|
|
183
|
+
const response = await this._axios.post("SaveSystemEventEntity", entity, config);
|
|
184
|
+
base.WebApiBase.SetCompleted(options);
|
|
185
|
+
const res = converters.Create_SystemEventEntity_From(response.data);
|
|
186
|
+
resolve(res);
|
|
187
|
+
}
|
|
188
|
+
catch (err) {
|
|
189
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
190
|
+
reject(err);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/*
|
|
195
|
+
* Deletes the SystemEventEntity
|
|
196
|
+
* @param SystemEventEntityId - The id of the SystemEventEntity to be deleted.
|
|
197
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
198
|
+
*/
|
|
199
|
+
async deleteSystemEventEntityAsync(SystemEventEntityId, options) {
|
|
200
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
201
|
+
base.WebApiBase.SetPending(options);
|
|
202
|
+
return new Promise(async (resolve, reject) => {
|
|
203
|
+
try {
|
|
204
|
+
const response = await this._axios.post("DeleteSystemEventEntity?SystemEventEntityId=" + SystemEventEntityId, null, config);
|
|
205
|
+
base.WebApiBase.SetCompleted(options);
|
|
206
|
+
const res = response.data;
|
|
207
|
+
resolve(res);
|
|
208
|
+
}
|
|
209
|
+
catch (err) {
|
|
210
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
211
|
+
reject(err);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/*
|
|
216
|
+
* Gets a ConfigurableScreenDelta object.
|
|
217
|
+
* @param configurableScreenDeltaId - The primary key.
|
|
218
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
219
|
+
* @returns A single ConfigurableScreenDelta
|
|
220
|
+
*/
|
|
221
|
+
async getConfigurableScreenDeltaAsync(configurableScreenDeltaId, options) {
|
|
222
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
223
|
+
base.WebApiBase.SetPending(options);
|
|
224
|
+
return new Promise(async (resolve, reject) => {
|
|
225
|
+
try {
|
|
226
|
+
const response = await this._axios.post("GetConfigurableScreenDelta?configurableScreenDeltaId=" + configurableScreenDeltaId, null, config);
|
|
227
|
+
base.WebApiBase.SetCompleted(options);
|
|
228
|
+
const res = converters.Create_ConfigurableScreenDelta_From(response.data);
|
|
229
|
+
resolve(res);
|
|
230
|
+
}
|
|
231
|
+
catch (err) {
|
|
232
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
233
|
+
reject(err);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
async _getScreenConfigurationDeltasAsync(options) {
|
|
238
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
239
|
+
base.WebApiBase.SetPending(options);
|
|
240
|
+
return new Promise(async (resolve, reject) => {
|
|
241
|
+
try {
|
|
242
|
+
config.baseURL = this._options.baseUrl;
|
|
243
|
+
const response = await this._axios.post("GetScreenConfigurationDeltas", undefined, config);
|
|
244
|
+
base.WebApiBase.SetCompleted(options);
|
|
245
|
+
const res = response.data;
|
|
246
|
+
resolve(res);
|
|
247
|
+
}
|
|
248
|
+
catch (err) {
|
|
249
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
250
|
+
reject(err);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* This method will return a json with all deltas for screen
|
|
256
|
+
* @returns A string with all recipe deltas in json for logged in associate
|
|
257
|
+
*/
|
|
258
|
+
async getScreenConfigurationDeltasAsync(webapi_options) {
|
|
259
|
+
return this._getScreenConfigurationDeltasAsync(webapi_options);
|
|
260
|
+
}
|
|
261
|
+
async _getScreenConfigurationDeltaAsync(request, options) {
|
|
262
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
263
|
+
base.WebApiBase.SetPending(options);
|
|
264
|
+
return new Promise(async (resolve, reject) => {
|
|
265
|
+
try {
|
|
266
|
+
config.baseURL = this._options.baseUrl;
|
|
267
|
+
const response = await this._axios.post("GetScreenConfigurationDelta", request, config);
|
|
268
|
+
base.WebApiBase.SetCompleted(options);
|
|
269
|
+
const res = response.data;
|
|
270
|
+
resolve(res);
|
|
271
|
+
}
|
|
272
|
+
catch (err) {
|
|
273
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
274
|
+
reject(err);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
async getScreenConfigurationDeltaAsync(deltaType, deltaState, webapi_options) {
|
|
279
|
+
let _request = null;
|
|
280
|
+
let _options = null;
|
|
281
|
+
const first = deltaType;
|
|
282
|
+
if (typeof (first) === "object" && first && (typeof (first.deltaType) != 'undefined' || typeof (first.deltaState) != 'undefined')) {
|
|
283
|
+
_request = deltaType;
|
|
284
|
+
_options = deltaState;
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
_request = {
|
|
288
|
+
deltaType: deltaType,
|
|
289
|
+
deltaState: deltaState,
|
|
290
|
+
};
|
|
291
|
+
_options = webapi_options;
|
|
292
|
+
}
|
|
293
|
+
return this._getScreenConfigurationDeltaAsync(_request, _options);
|
|
294
|
+
}
|
|
295
|
+
async _getConfigurableScreenDeltasByDeltaAsync(request, options) {
|
|
296
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
297
|
+
base.WebApiBase.SetPending(options);
|
|
298
|
+
return new Promise(async (resolve, reject) => {
|
|
299
|
+
try {
|
|
300
|
+
config.baseURL = this._options.baseUrl;
|
|
301
|
+
const response = await this._axios.post("GetConfigurableScreenDeltasByDelta", request, config);
|
|
302
|
+
base.WebApiBase.SetCompleted(options);
|
|
303
|
+
const res = converters.Create_ConfigurableScreenDeltaArray_From(response.data);
|
|
304
|
+
resolve(res);
|
|
305
|
+
}
|
|
306
|
+
catch (err) {
|
|
307
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
308
|
+
reject(err);
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta, webapi_options) {
|
|
313
|
+
let _request = null;
|
|
314
|
+
let _options = null;
|
|
315
|
+
const first = configurableScreenDelta;
|
|
316
|
+
if (typeof (first) === "object" && first && (typeof (first.configurableScreenDelta) != 'undefined')) {
|
|
317
|
+
_request = configurableScreenDelta;
|
|
318
|
+
_options = webapi_options;
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
_request = {
|
|
322
|
+
configurableScreenDelta: configurableScreenDelta,
|
|
323
|
+
};
|
|
324
|
+
_options = webapi_options;
|
|
325
|
+
}
|
|
326
|
+
return this._getConfigurableScreenDeltasByDeltaAsync(_request, _options);
|
|
327
|
+
}
|
|
328
|
+
async _getConfigurableScreenDeltasByQueryAsync(request, options) {
|
|
329
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
330
|
+
base.WebApiBase.SetPending(options);
|
|
331
|
+
return new Promise(async (resolve, reject) => {
|
|
332
|
+
try {
|
|
333
|
+
config.baseURL = this._options.baseUrl;
|
|
334
|
+
const response = await this._axios.post("GetConfigurableScreenDeltasByQuery", request, config);
|
|
335
|
+
base.WebApiBase.SetCompleted(options);
|
|
336
|
+
const res = converters.Create_ConfigurableScreenDeltaArray_From(response.data);
|
|
337
|
+
resolve(res);
|
|
338
|
+
}
|
|
339
|
+
catch (err) {
|
|
340
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
341
|
+
reject(err);
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
async getConfigurableScreenDeltasByQueryAsync(deltaQuery, webapi_options) {
|
|
346
|
+
let _request = null;
|
|
347
|
+
let _options = null;
|
|
348
|
+
const first = deltaQuery;
|
|
349
|
+
if (typeof (first) === "object" && first && (typeof (first.deltaQuery) != 'undefined')) {
|
|
350
|
+
_request = deltaQuery;
|
|
351
|
+
_options = webapi_options;
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
_request = {
|
|
355
|
+
deltaQuery: deltaQuery,
|
|
356
|
+
};
|
|
357
|
+
_options = webapi_options;
|
|
358
|
+
}
|
|
359
|
+
return this._getConfigurableScreenDeltasByQueryAsync(_request, _options);
|
|
360
|
+
}
|
|
361
|
+
async _rebuildUdefDeltasAsync(options) {
|
|
362
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
363
|
+
base.WebApiBase.SetPending(options);
|
|
364
|
+
return new Promise(async (resolve, reject) => {
|
|
365
|
+
try {
|
|
366
|
+
config.baseURL = this._options.baseUrl;
|
|
367
|
+
const response = await this._axios.post("RebuildUdefDeltas", undefined, config);
|
|
368
|
+
base.WebApiBase.SetCompleted(options);
|
|
369
|
+
const res = response.data;
|
|
370
|
+
resolve(res);
|
|
371
|
+
}
|
|
372
|
+
catch (err) {
|
|
373
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
374
|
+
reject(err);
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Flush and rebuild userdefined field deltas. Mostly used after publishing udefs or adding/editing Customer Service extrafields
|
|
380
|
+
* @returns No return value
|
|
381
|
+
*/
|
|
382
|
+
async rebuildUdefDeltasAsync(webapi_options) {
|
|
383
|
+
return this._rebuildUdefDeltasAsync(webapi_options);
|
|
384
|
+
}
|
|
385
|
+
async _rebuildWebpanelDeltasAsync(options) {
|
|
386
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
387
|
+
base.WebApiBase.SetPending(options);
|
|
388
|
+
return new Promise(async (resolve, reject) => {
|
|
389
|
+
try {
|
|
390
|
+
config.baseURL = this._options.baseUrl;
|
|
391
|
+
const response = await this._axios.post("RebuildWebpanelDeltas", undefined, config);
|
|
392
|
+
base.WebApiBase.SetCompleted(options);
|
|
393
|
+
const res = response.data;
|
|
394
|
+
resolve(res);
|
|
395
|
+
}
|
|
396
|
+
catch (err) {
|
|
397
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
398
|
+
reject(err);
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Flush and rebuild webpanel deltas. Mostly used after adding/editing webpanels or change group visibility of them
|
|
404
|
+
* @returns No return value
|
|
405
|
+
*/
|
|
406
|
+
async rebuildWebpanelDeltasAsync(webapi_options) {
|
|
407
|
+
return this._rebuildWebpanelDeltasAsync(webapi_options);
|
|
408
|
+
}
|
|
409
|
+
async _saveAndPublishAsync(request, options) {
|
|
410
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
411
|
+
base.WebApiBase.SetPending(options);
|
|
412
|
+
return new Promise(async (resolve, reject) => {
|
|
413
|
+
try {
|
|
414
|
+
config.baseURL = this._options.baseUrl;
|
|
415
|
+
const response = await this._axios.post("SaveAndPublish", request, config);
|
|
416
|
+
base.WebApiBase.SetCompleted(options);
|
|
417
|
+
const res = converters.Create_ConfigurableScreenDelta_From(response.data);
|
|
418
|
+
resolve(res);
|
|
419
|
+
}
|
|
420
|
+
catch (err) {
|
|
421
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
422
|
+
reject(err);
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
async saveAndPublishAsync(configurableScreenDelta, webapi_options) {
|
|
427
|
+
let _request = null;
|
|
428
|
+
let _options = null;
|
|
429
|
+
const first = configurableScreenDelta;
|
|
430
|
+
if (typeof (first) === "object" && first && (typeof (first.configurableScreenDelta) != 'undefined')) {
|
|
431
|
+
_request = configurableScreenDelta;
|
|
432
|
+
_options = webapi_options;
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
_request = {
|
|
436
|
+
configurableScreenDelta: configurableScreenDelta,
|
|
437
|
+
};
|
|
438
|
+
_options = webapi_options;
|
|
439
|
+
}
|
|
440
|
+
return this._saveAndPublishAsync(_request, _options);
|
|
441
|
+
}
|
|
442
|
+
async _setAppliesToKeyAsync(request, options) {
|
|
443
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
444
|
+
base.WebApiBase.SetPending(options);
|
|
445
|
+
return new Promise(async (resolve, reject) => {
|
|
446
|
+
try {
|
|
447
|
+
config.baseURL = this._options.baseUrl;
|
|
448
|
+
const response = await this._axios.post("SetAppliesToKey", request, config);
|
|
449
|
+
base.WebApiBase.SetCompleted(options);
|
|
450
|
+
const res = response.data;
|
|
451
|
+
resolve(res);
|
|
452
|
+
}
|
|
453
|
+
catch (err) {
|
|
454
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
455
|
+
reject(err);
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
async setAppliesToKeyAsync(recipeId, appliesToKey, webapi_options) {
|
|
460
|
+
let _request = null;
|
|
461
|
+
let _options = null;
|
|
462
|
+
const first = recipeId;
|
|
463
|
+
if (typeof (first) === "object" && first && (typeof (first.recipeId) != 'undefined' || typeof (first.appliesToKey) != 'undefined')) {
|
|
464
|
+
_request = recipeId;
|
|
465
|
+
_options = appliesToKey;
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
_request = {
|
|
469
|
+
recipeId: recipeId,
|
|
470
|
+
appliesToKey: appliesToKey,
|
|
471
|
+
};
|
|
472
|
+
_options = webapi_options;
|
|
473
|
+
}
|
|
474
|
+
return this._setAppliesToKeyAsync(_request, _options);
|
|
475
|
+
}
|
|
476
|
+
async _getRecipeAppliesToMappingsAsync(options) {
|
|
477
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
478
|
+
base.WebApiBase.SetPending(options);
|
|
479
|
+
return new Promise(async (resolve, reject) => {
|
|
480
|
+
try {
|
|
481
|
+
config.baseURL = this._options.baseUrl;
|
|
482
|
+
const response = await this._axios.post("GetRecipeAppliesToMappings", undefined, config);
|
|
483
|
+
base.WebApiBase.SetCompleted(options);
|
|
484
|
+
const res = converters.Create_StringDictionary_From(response.data);
|
|
485
|
+
resolve(res);
|
|
486
|
+
}
|
|
487
|
+
catch (err) {
|
|
488
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
489
|
+
reject(err);
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Return the a dictionary with recipeId as key, and chosen appliesTo for that recipe, Like projecttype for projectcardrecipe
|
|
495
|
+
* @returns Mapping of recipeId and selected appliesToKey
|
|
496
|
+
*/
|
|
497
|
+
async getRecipeAppliesToMappingsAsync(webapi_options) {
|
|
498
|
+
return this._getRecipeAppliesToMappingsAsync(webapi_options);
|
|
499
|
+
}
|
|
500
|
+
async _getApplicationConfigurationAsync(request, options) {
|
|
501
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
502
|
+
base.WebApiBase.SetPending(options);
|
|
503
|
+
return new Promise(async (resolve, reject) => {
|
|
504
|
+
try {
|
|
505
|
+
config.baseURL = this._options.baseUrl;
|
|
506
|
+
const response = await this._axios.post("GetApplicationConfiguration", request, config);
|
|
507
|
+
base.WebApiBase.SetCompleted(options);
|
|
508
|
+
const res = response.data;
|
|
509
|
+
resolve(res);
|
|
510
|
+
}
|
|
511
|
+
catch (err) {
|
|
512
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
513
|
+
reject(err);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
async getApplicationConfigurationAsync(application, instance, webapi_options) {
|
|
518
|
+
let _request = null;
|
|
519
|
+
let _options = null;
|
|
520
|
+
const first = application;
|
|
521
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
|
|
522
|
+
_request = application;
|
|
523
|
+
_options = instance;
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
_request = {
|
|
527
|
+
application: application,
|
|
528
|
+
instance: instance,
|
|
529
|
+
};
|
|
530
|
+
_options = webapi_options;
|
|
531
|
+
}
|
|
532
|
+
return this._getApplicationConfigurationAsync(_request, _options);
|
|
533
|
+
}
|
|
534
|
+
async _getPageConfigurationAsync(request, options) {
|
|
535
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
536
|
+
base.WebApiBase.SetPending(options);
|
|
537
|
+
return new Promise(async (resolve, reject) => {
|
|
538
|
+
try {
|
|
539
|
+
config.baseURL = this._options.baseUrl;
|
|
540
|
+
const response = await this._axios.post("GetPageConfiguration", request, config);
|
|
541
|
+
base.WebApiBase.SetCompleted(options);
|
|
542
|
+
const res = response.data;
|
|
543
|
+
resolve(res);
|
|
544
|
+
}
|
|
545
|
+
catch (err) {
|
|
546
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
547
|
+
reject(err);
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
async getPageConfigurationAsync(application, instance, page, webapi_options) {
|
|
552
|
+
let _request = null;
|
|
553
|
+
let _options = null;
|
|
554
|
+
const first = application;
|
|
555
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.page) != 'undefined')) {
|
|
556
|
+
_request = application;
|
|
557
|
+
_options = instance;
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
_request = {
|
|
561
|
+
application: application,
|
|
562
|
+
instance: instance,
|
|
563
|
+
page: page,
|
|
564
|
+
};
|
|
565
|
+
_options = webapi_options;
|
|
566
|
+
}
|
|
567
|
+
return this._getPageConfigurationAsync(_request, _options);
|
|
568
|
+
}
|
|
569
|
+
async _getObjectMappingAsync(request, options) {
|
|
570
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
571
|
+
base.WebApiBase.SetPending(options);
|
|
572
|
+
return new Promise(async (resolve, reject) => {
|
|
573
|
+
try {
|
|
574
|
+
config.baseURL = this._options.baseUrl;
|
|
575
|
+
const response = await this._axios.post("GetObjectMapping", request, config);
|
|
576
|
+
base.WebApiBase.SetCompleted(options);
|
|
577
|
+
const res = response.data;
|
|
578
|
+
resolve(res);
|
|
579
|
+
}
|
|
580
|
+
catch (err) {
|
|
581
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
582
|
+
reject(err);
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
async getObjectMappingAsync(application, instance, webapi_options) {
|
|
587
|
+
let _request = null;
|
|
588
|
+
let _options = null;
|
|
589
|
+
const first = application;
|
|
590
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
|
|
591
|
+
_request = application;
|
|
592
|
+
_options = instance;
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
_request = {
|
|
596
|
+
application: application,
|
|
597
|
+
instance: instance,
|
|
598
|
+
};
|
|
599
|
+
_options = webapi_options;
|
|
600
|
+
}
|
|
601
|
+
return this._getObjectMappingAsync(_request, _options);
|
|
602
|
+
}
|
|
603
|
+
async _getFilterListAsync(request, options) {
|
|
604
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
605
|
+
base.WebApiBase.SetPending(options);
|
|
606
|
+
return new Promise(async (resolve, reject) => {
|
|
607
|
+
try {
|
|
608
|
+
config.baseURL = this._options.baseUrl;
|
|
609
|
+
const response = await this._axios.post("GetFilterList", request, config);
|
|
610
|
+
base.WebApiBase.SetCompleted(options);
|
|
611
|
+
const res = response.data;
|
|
612
|
+
resolve(res);
|
|
613
|
+
}
|
|
614
|
+
catch (err) {
|
|
615
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
616
|
+
reject(err);
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
async getFilterListAsync(application, instance, webapi_options) {
|
|
621
|
+
let _request = null;
|
|
622
|
+
let _options = null;
|
|
623
|
+
const first = application;
|
|
624
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined')) {
|
|
625
|
+
_request = application;
|
|
626
|
+
_options = instance;
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
_request = {
|
|
630
|
+
application: application,
|
|
631
|
+
instance: instance,
|
|
632
|
+
};
|
|
633
|
+
_options = webapi_options;
|
|
634
|
+
}
|
|
635
|
+
return this._getFilterListAsync(_request, _options);
|
|
636
|
+
}
|
|
637
|
+
async _clearConfigurationCacheAsync(request, options) {
|
|
638
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
639
|
+
base.WebApiBase.SetPending(options);
|
|
640
|
+
return new Promise(async (resolve, reject) => {
|
|
641
|
+
try {
|
|
642
|
+
config.baseURL = this._options.baseUrl;
|
|
643
|
+
const response = await this._axios.post("ClearConfigurationCache", request, config);
|
|
644
|
+
base.WebApiBase.SetCompleted(options);
|
|
645
|
+
const res = response.data;
|
|
646
|
+
resolve(res);
|
|
647
|
+
}
|
|
648
|
+
catch (err) {
|
|
649
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
650
|
+
reject(err);
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
async clearConfigurationCacheAsync(application, instance, forAllAssociates, webapi_options) {
|
|
655
|
+
let _request = null;
|
|
656
|
+
let _options = null;
|
|
657
|
+
const first = application;
|
|
658
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.forAllAssociates) != 'undefined')) {
|
|
659
|
+
_request = application;
|
|
660
|
+
_options = instance;
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
_request = {
|
|
664
|
+
application: application,
|
|
665
|
+
instance: instance,
|
|
666
|
+
forAllAssociates: forAllAssociates,
|
|
667
|
+
};
|
|
668
|
+
_options = webapi_options;
|
|
669
|
+
}
|
|
670
|
+
return this._clearConfigurationCacheAsync(_request, _options);
|
|
671
|
+
}
|
|
672
|
+
async _getAnyConfigurationAsync(request, options) {
|
|
673
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
674
|
+
base.WebApiBase.SetPending(options);
|
|
675
|
+
return new Promise(async (resolve, reject) => {
|
|
676
|
+
try {
|
|
677
|
+
config.baseURL = this._options.baseUrl;
|
|
678
|
+
const response = await this._axios.post("GetAnyConfiguration", request, config);
|
|
679
|
+
base.WebApiBase.SetCompleted(options);
|
|
680
|
+
const res = response.data;
|
|
681
|
+
resolve(res);
|
|
682
|
+
}
|
|
683
|
+
catch (err) {
|
|
684
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
685
|
+
reject(err);
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
async getAnyConfigurationAsync(application, instance, item, type, webapi_options) {
|
|
690
|
+
let _request = null;
|
|
691
|
+
let _options = null;
|
|
692
|
+
const first = application;
|
|
693
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.item) != 'undefined' || typeof (first.type) != 'undefined')) {
|
|
694
|
+
_request = application;
|
|
695
|
+
_options = instance;
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
_request = {
|
|
699
|
+
application: application,
|
|
700
|
+
instance: instance,
|
|
701
|
+
item: item,
|
|
702
|
+
type: type,
|
|
703
|
+
};
|
|
704
|
+
_options = webapi_options;
|
|
705
|
+
}
|
|
706
|
+
return this._getAnyConfigurationAsync(_request, _options);
|
|
707
|
+
}
|
|
708
|
+
async _getEMarketingUrlAsync(request, options) {
|
|
709
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
710
|
+
base.WebApiBase.SetPending(options);
|
|
711
|
+
return new Promise(async (resolve, reject) => {
|
|
712
|
+
try {
|
|
713
|
+
config.baseURL = this._options.baseUrl;
|
|
714
|
+
const response = await this._axios.post("GetEMarketingUrl", request, config);
|
|
715
|
+
base.WebApiBase.SetCompleted(options);
|
|
716
|
+
const res = response.data;
|
|
717
|
+
resolve(res);
|
|
718
|
+
}
|
|
719
|
+
catch (err) {
|
|
720
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
721
|
+
reject(err);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
async getEMarketingUrlAsync(language, webapi_options) {
|
|
726
|
+
let _request = null;
|
|
727
|
+
let _options = null;
|
|
728
|
+
const first = language;
|
|
729
|
+
if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined')) {
|
|
730
|
+
_request = language;
|
|
731
|
+
_options = webapi_options;
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
_request = {
|
|
735
|
+
language: language,
|
|
736
|
+
};
|
|
737
|
+
_options = webapi_options;
|
|
738
|
+
}
|
|
739
|
+
return this._getEMarketingUrlAsync(_request, _options);
|
|
740
|
+
}
|
|
741
|
+
async _getCsProgramUrlAsync(request, options) {
|
|
742
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
743
|
+
base.WebApiBase.SetPending(options);
|
|
744
|
+
return new Promise(async (resolve, reject) => {
|
|
745
|
+
try {
|
|
746
|
+
config.baseURL = this._options.baseUrl;
|
|
747
|
+
const response = await this._axios.post("GetCsProgramUrl", request, config);
|
|
748
|
+
base.WebApiBase.SetCompleted(options);
|
|
749
|
+
const res = response.data;
|
|
750
|
+
resolve(res);
|
|
751
|
+
}
|
|
752
|
+
catch (err) {
|
|
753
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
754
|
+
reject(err);
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
async getCsProgramUrlAsync(language, programName, action, extraParameters, webapi_options) {
|
|
759
|
+
let _request = null;
|
|
760
|
+
let _options = null;
|
|
761
|
+
const first = language;
|
|
762
|
+
if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined' || typeof (first.programName) != 'undefined' || typeof (first.action) != 'undefined' || typeof (first.extraParameters) != 'undefined')) {
|
|
763
|
+
_request = language;
|
|
764
|
+
_options = programName;
|
|
765
|
+
}
|
|
766
|
+
else {
|
|
767
|
+
_request = {
|
|
768
|
+
language: language,
|
|
769
|
+
programName: programName,
|
|
770
|
+
action: action,
|
|
771
|
+
extraParameters: extraParameters,
|
|
772
|
+
};
|
|
773
|
+
_options = webapi_options;
|
|
774
|
+
}
|
|
775
|
+
return this._getCsProgramUrlAsync(_request, _options);
|
|
776
|
+
}
|
|
777
|
+
async _getCSAuthUrlAsync(request, options) {
|
|
778
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
779
|
+
base.WebApiBase.SetPending(options);
|
|
780
|
+
return new Promise(async (resolve, reject) => {
|
|
781
|
+
try {
|
|
782
|
+
config.baseURL = this._options.baseUrl;
|
|
783
|
+
const response = await this._axios.post("GetCSAuthUrl", request, config);
|
|
784
|
+
base.WebApiBase.SetCompleted(options);
|
|
785
|
+
const res = response.data;
|
|
786
|
+
resolve(res);
|
|
787
|
+
}
|
|
788
|
+
catch (err) {
|
|
789
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
790
|
+
reject(err);
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
async getCSAuthUrlAsync(language, programName, action, extraParameters, webapi_options) {
|
|
795
|
+
let _request = null;
|
|
796
|
+
let _options = null;
|
|
797
|
+
const first = language;
|
|
798
|
+
if (typeof (first) === "object" && first && (typeof (first.language) != 'undefined' || typeof (first.programName) != 'undefined' || typeof (first.action) != 'undefined' || typeof (first.extraParameters) != 'undefined')) {
|
|
799
|
+
_request = language;
|
|
800
|
+
_options = programName;
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
_request = {
|
|
804
|
+
language: language,
|
|
805
|
+
programName: programName,
|
|
806
|
+
action: action,
|
|
807
|
+
extraParameters: extraParameters,
|
|
808
|
+
};
|
|
809
|
+
_options = webapi_options;
|
|
810
|
+
}
|
|
811
|
+
return this._getCSAuthUrlAsync(_request, _options);
|
|
812
|
+
}
|
|
813
|
+
async _getCSRegistryValueAsync(request, options) {
|
|
814
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
815
|
+
base.WebApiBase.SetPending(options);
|
|
816
|
+
return new Promise(async (resolve, reject) => {
|
|
817
|
+
try {
|
|
818
|
+
config.baseURL = this._options.baseUrl;
|
|
819
|
+
const response = await this._axios.post("GetCSRegistryValue", request, config);
|
|
820
|
+
base.WebApiBase.SetCompleted(options);
|
|
821
|
+
const res = response.data;
|
|
822
|
+
resolve(res);
|
|
823
|
+
}
|
|
824
|
+
catch (err) {
|
|
825
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
826
|
+
reject(err);
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
async getCSRegistryValueAsync(entry, webapi_options) {
|
|
831
|
+
let _request = null;
|
|
832
|
+
let _options = null;
|
|
833
|
+
const first = entry;
|
|
834
|
+
if (typeof (first) === "object" && first && (typeof (first.entry) != 'undefined')) {
|
|
835
|
+
_request = entry;
|
|
836
|
+
_options = webapi_options;
|
|
837
|
+
}
|
|
838
|
+
else {
|
|
839
|
+
_request = {
|
|
840
|
+
entry: entry,
|
|
841
|
+
};
|
|
842
|
+
_options = webapi_options;
|
|
843
|
+
}
|
|
844
|
+
return this._getCSRegistryValueAsync(_request, _options);
|
|
845
|
+
}
|
|
846
|
+
async _getCSWwwFolderAsync(options) {
|
|
847
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
848
|
+
base.WebApiBase.SetPending(options);
|
|
849
|
+
return new Promise(async (resolve, reject) => {
|
|
850
|
+
try {
|
|
851
|
+
config.baseURL = this._options.baseUrl;
|
|
852
|
+
const response = await this._axios.post("GetCSWwwFolder", undefined, config);
|
|
853
|
+
base.WebApiBase.SetCompleted(options);
|
|
854
|
+
const res = response.data;
|
|
855
|
+
resolve(res);
|
|
856
|
+
}
|
|
857
|
+
catch (err) {
|
|
858
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
859
|
+
reject(err);
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* This method will get the www folder for CS
|
|
865
|
+
* @returns The www folder for CS
|
|
866
|
+
*/
|
|
867
|
+
async getCSWwwFolderAsync(webapi_options) {
|
|
868
|
+
return this._getCSWwwFolderAsync(webapi_options);
|
|
869
|
+
}
|
|
870
|
+
async _getRefreshedPageConfigurationAsync(request, options) {
|
|
871
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
872
|
+
base.WebApiBase.SetPending(options);
|
|
873
|
+
return new Promise(async (resolve, reject) => {
|
|
874
|
+
try {
|
|
875
|
+
config.baseURL = this._options.baseUrl;
|
|
876
|
+
const response = await this._axios.post("GetRefreshedPageConfiguration", request, config);
|
|
877
|
+
base.WebApiBase.SetCompleted(options);
|
|
878
|
+
const res = response.data;
|
|
879
|
+
resolve(res);
|
|
880
|
+
}
|
|
881
|
+
catch (err) {
|
|
882
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
883
|
+
reject(err);
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
async getRefreshedPageConfigurationAsync(application, instance, page, webapi_options) {
|
|
888
|
+
let _request = null;
|
|
889
|
+
let _options = null;
|
|
890
|
+
const first = application;
|
|
891
|
+
if (typeof (first) === "object" && first && (typeof (first.application) != 'undefined' || typeof (first.instance) != 'undefined' || typeof (first.page) != 'undefined')) {
|
|
892
|
+
_request = application;
|
|
893
|
+
_options = instance;
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
_request = {
|
|
897
|
+
application: application,
|
|
898
|
+
instance: instance,
|
|
899
|
+
page: page,
|
|
900
|
+
};
|
|
901
|
+
_options = webapi_options;
|
|
902
|
+
}
|
|
903
|
+
return this._getRefreshedPageConfigurationAsync(_request, _options);
|
|
904
|
+
}
|
|
905
|
+
async _getWwwUrlAsync(request, options) {
|
|
906
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
907
|
+
base.WebApiBase.SetPending(options);
|
|
908
|
+
return new Promise(async (resolve, reject) => {
|
|
909
|
+
try {
|
|
910
|
+
config.baseURL = this._options.baseUrl;
|
|
911
|
+
const response = await this._axios.post("GetWwwUrl", request, config);
|
|
912
|
+
base.WebApiBase.SetCompleted(options);
|
|
913
|
+
const res = response.data;
|
|
914
|
+
resolve(res);
|
|
915
|
+
}
|
|
916
|
+
catch (err) {
|
|
917
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
918
|
+
reject(err);
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
async getWwwUrlAsync(client, webapi_options) {
|
|
923
|
+
let _request = null;
|
|
924
|
+
let _options = null;
|
|
925
|
+
const first = client;
|
|
926
|
+
if (typeof (first) === "object" && first && (typeof (first.client) != 'undefined')) {
|
|
927
|
+
_request = client;
|
|
928
|
+
_options = webapi_options;
|
|
929
|
+
}
|
|
930
|
+
else {
|
|
931
|
+
_request = {
|
|
932
|
+
client: client,
|
|
933
|
+
};
|
|
934
|
+
_options = webapi_options;
|
|
935
|
+
}
|
|
936
|
+
return this._getWwwUrlAsync(_request, _options);
|
|
937
|
+
}
|
|
938
|
+
async _getHelpDispatcherUrlAsync(options) {
|
|
939
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
940
|
+
base.WebApiBase.SetPending(options);
|
|
941
|
+
return new Promise(async (resolve, reject) => {
|
|
942
|
+
try {
|
|
943
|
+
config.baseURL = this._options.baseUrl;
|
|
944
|
+
const response = await this._axios.post("GetHelpDispatcherUrl", undefined, config);
|
|
945
|
+
base.WebApiBase.SetCompleted(options);
|
|
946
|
+
const res = response.data;
|
|
947
|
+
resolve(res);
|
|
948
|
+
}
|
|
949
|
+
catch (err) {
|
|
950
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
951
|
+
reject(err);
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Will get the GetHelpDispatcherUrl used by the help system
|
|
957
|
+
* @returns URL to be used by the help system
|
|
958
|
+
*/
|
|
959
|
+
async getHelpDispatcherUrlAsync(webapi_options) {
|
|
960
|
+
return this._getHelpDispatcherUrlAsync(webapi_options);
|
|
961
|
+
}
|
|
962
|
+
async _getWwwUrlForSMWebAsync(options) {
|
|
963
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
964
|
+
base.WebApiBase.SetPending(options);
|
|
965
|
+
return new Promise(async (resolve, reject) => {
|
|
966
|
+
try {
|
|
967
|
+
config.baseURL = this._options.baseUrl;
|
|
968
|
+
const response = await this._axios.post("GetWwwUrlForSMWeb", undefined, config);
|
|
969
|
+
base.WebApiBase.SetCompleted(options);
|
|
970
|
+
const res = response.data;
|
|
971
|
+
resolve(res);
|
|
972
|
+
}
|
|
973
|
+
catch (err) {
|
|
974
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
975
|
+
reject(err);
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* Returns the URL used for the logo by the SM.web client. Uses urldispatch.aspx
|
|
981
|
+
* @returns Link to urldispatch.aspx tagged with [SOSITEURL]
|
|
982
|
+
*/
|
|
983
|
+
async getWwwUrlForSMWebAsync(webapi_options) {
|
|
984
|
+
return this._getWwwUrlForSMWebAsync(webapi_options);
|
|
985
|
+
}
|
|
986
|
+
async _getCsCgiUrlInternalAsync(options) {
|
|
987
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
988
|
+
base.WebApiBase.SetPending(options);
|
|
989
|
+
return new Promise(async (resolve, reject) => {
|
|
990
|
+
try {
|
|
991
|
+
config.baseURL = this._options.baseUrl;
|
|
992
|
+
const response = await this._axios.post("GetCsCgiUrlInternal", undefined, config);
|
|
993
|
+
base.WebApiBase.SetCompleted(options);
|
|
994
|
+
const res = response.data;
|
|
995
|
+
resolve(res);
|
|
996
|
+
}
|
|
997
|
+
catch (err) {
|
|
998
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
999
|
+
reject(err);
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* This method will get the host name for CS
|
|
1005
|
+
* @returns Will get the host name for where CS is installed
|
|
1006
|
+
*/
|
|
1007
|
+
async getCsCgiUrlInternalAsync(webapi_options) {
|
|
1008
|
+
return this._getCsCgiUrlInternalAsync(webapi_options);
|
|
1009
|
+
}
|
|
1010
|
+
async _getCRMUrlAsync(request, options) {
|
|
1011
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1012
|
+
base.WebApiBase.SetPending(options);
|
|
1013
|
+
return new Promise(async (resolve, reject) => {
|
|
1014
|
+
try {
|
|
1015
|
+
config.baseURL = this._options.baseUrl;
|
|
1016
|
+
const response = await this._axios.post("GetCRMUrl", request, config);
|
|
1017
|
+
base.WebApiBase.SetCompleted(options);
|
|
1018
|
+
const res = response.data;
|
|
1019
|
+
resolve(res);
|
|
1020
|
+
}
|
|
1021
|
+
catch (err) {
|
|
1022
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1023
|
+
reject(err);
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
async getCRMUrlAsync(soProtocol, currents, frameless, webapi_options) {
|
|
1028
|
+
let _request = null;
|
|
1029
|
+
let _options = null;
|
|
1030
|
+
const first = soProtocol;
|
|
1031
|
+
if (typeof (first) === "object" && first && (typeof (first.soProtocol) != 'undefined' || typeof (first.currents) != 'undefined' || typeof (first.frameless) != 'undefined')) {
|
|
1032
|
+
_request = soProtocol;
|
|
1033
|
+
_options = currents;
|
|
1034
|
+
}
|
|
1035
|
+
else {
|
|
1036
|
+
_request = {
|
|
1037
|
+
soProtocol: soProtocol,
|
|
1038
|
+
currents: currents,
|
|
1039
|
+
frameless: frameless,
|
|
1040
|
+
};
|
|
1041
|
+
_options = webapi_options;
|
|
1042
|
+
}
|
|
1043
|
+
return this._getCRMUrlAsync(_request, _options);
|
|
1044
|
+
}
|
|
1045
|
+
async _getEmailNumberOfDaysAsync(options) {
|
|
1046
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1047
|
+
base.WebApiBase.SetPending(options);
|
|
1048
|
+
return new Promise(async (resolve, reject) => {
|
|
1049
|
+
try {
|
|
1050
|
+
config.baseURL = this._options.baseUrl;
|
|
1051
|
+
const response = await this._axios.post("GetEmailNumberOfDays", undefined, config);
|
|
1052
|
+
base.WebApiBase.SetCompleted(options);
|
|
1053
|
+
const res = response.data;
|
|
1054
|
+
resolve(res);
|
|
1055
|
+
}
|
|
1056
|
+
catch (err) {
|
|
1057
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1058
|
+
reject(err);
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @returns Number of days in the past for which we are fetching email
|
|
1065
|
+
*/
|
|
1066
|
+
async getEmailNumberOfDaysAsync(webapi_options) {
|
|
1067
|
+
return this._getEmailNumberOfDaysAsync(webapi_options);
|
|
1068
|
+
}
|
|
1069
|
+
async _getCustomerUrlAsync(options) {
|
|
1070
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1071
|
+
base.WebApiBase.SetPending(options);
|
|
1072
|
+
return new Promise(async (resolve, reject) => {
|
|
1073
|
+
try {
|
|
1074
|
+
config.baseURL = this._options.baseUrl;
|
|
1075
|
+
const response = await this._axios.post("GetCustomerUrl", undefined, config);
|
|
1076
|
+
base.WebApiBase.SetCompleted(options);
|
|
1077
|
+
const res = response.data;
|
|
1078
|
+
resolve(res);
|
|
1079
|
+
}
|
|
1080
|
+
catch (err) {
|
|
1081
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1082
|
+
reject(err);
|
|
1083
|
+
}
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* This method will get the URL for the external access to the customer center
|
|
1088
|
+
* @returns The URL to the customer center, without any actions
|
|
1089
|
+
*/
|
|
1090
|
+
async getCustomerUrlAsync(webapi_options) {
|
|
1091
|
+
return this._getCustomerUrlAsync(webapi_options);
|
|
1092
|
+
}
|
|
1093
|
+
async _getSpfDomainAsync(options) {
|
|
1094
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1095
|
+
base.WebApiBase.SetPending(options);
|
|
1096
|
+
return new Promise(async (resolve, reject) => {
|
|
1097
|
+
try {
|
|
1098
|
+
config.baseURL = this._options.baseUrl;
|
|
1099
|
+
const response = await this._axios.post("GetSpfDomain", undefined, config);
|
|
1100
|
+
base.WebApiBase.SetCompleted(options);
|
|
1101
|
+
const res = response.data;
|
|
1102
|
+
resolve(res);
|
|
1103
|
+
}
|
|
1104
|
+
catch (err) {
|
|
1105
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1106
|
+
reject(err);
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Get the SPF domain defined for the mail cluster for this tenant (Online only)
|
|
1112
|
+
* @returns The configured SPF domain. Will return empty for Onsite installations or tenants in Online using custom SMTP
|
|
1113
|
+
*/
|
|
1114
|
+
async getSpfDomainAsync(webapi_options) {
|
|
1115
|
+
return this._getSpfDomainAsync(webapi_options);
|
|
1116
|
+
}
|
|
1117
|
+
/*
|
|
1118
|
+
* Gets a DiaryViewEntity object.
|
|
1119
|
+
* @param diaryViewEntityId - The primary key.
|
|
1120
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1121
|
+
* @returns A single DiaryViewEntity
|
|
1122
|
+
*/
|
|
1123
|
+
async getDiaryViewEntityAsync(diaryViewEntityId, options) {
|
|
1124
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1125
|
+
base.WebApiBase.SetPending(options);
|
|
1126
|
+
return new Promise(async (resolve, reject) => {
|
|
1127
|
+
try {
|
|
1128
|
+
const response = await this._axios.post("GetDiaryViewEntity?diaryViewEntityId=" + diaryViewEntityId, null, config);
|
|
1129
|
+
base.WebApiBase.SetCompleted(options);
|
|
1130
|
+
const res = converters.Create_DiaryViewEntity_From(response.data);
|
|
1131
|
+
resolve(res);
|
|
1132
|
+
}
|
|
1133
|
+
catch (err) {
|
|
1134
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1135
|
+
reject(err);
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
/*
|
|
1140
|
+
* Gets a SystemEventEntity object.
|
|
1141
|
+
* @param systemEventEntityId - The primary key.
|
|
1142
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1143
|
+
* @returns A single SystemEventEntity
|
|
1144
|
+
*/
|
|
1145
|
+
async getSystemEventEntityAsync(systemEventEntityId, options) {
|
|
1146
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1147
|
+
base.WebApiBase.SetPending(options);
|
|
1148
|
+
return new Promise(async (resolve, reject) => {
|
|
1149
|
+
try {
|
|
1150
|
+
const response = await this._axios.post("GetSystemEventEntity?systemEventEntityId=" + systemEventEntityId, null, config);
|
|
1151
|
+
base.WebApiBase.SetCompleted(options);
|
|
1152
|
+
const res = converters.Create_SystemEventEntity_From(response.data);
|
|
1153
|
+
resolve(res);
|
|
1154
|
+
}
|
|
1155
|
+
catch (err) {
|
|
1156
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1157
|
+
reject(err);
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
async _existsSystemEventAsync(request, options) {
|
|
1162
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1163
|
+
base.WebApiBase.SetPending(options);
|
|
1164
|
+
return new Promise(async (resolve, reject) => {
|
|
1165
|
+
try {
|
|
1166
|
+
config.baseURL = this._options.baseUrl;
|
|
1167
|
+
const response = await this._axios.post("ExistsSystemEvent", request, config);
|
|
1168
|
+
base.WebApiBase.SetCompleted(options);
|
|
1169
|
+
const res = response.data;
|
|
1170
|
+
resolve(res);
|
|
1171
|
+
}
|
|
1172
|
+
catch (err) {
|
|
1173
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1174
|
+
reject(err);
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
async existsSystemEventAsync(key, webapi_options) {
|
|
1179
|
+
let _request = null;
|
|
1180
|
+
let _options = null;
|
|
1181
|
+
const first = key;
|
|
1182
|
+
if (typeof (first) === "object" && first && (typeof (first.key) != 'undefined')) {
|
|
1183
|
+
_request = key;
|
|
1184
|
+
_options = webapi_options;
|
|
1185
|
+
}
|
|
1186
|
+
else {
|
|
1187
|
+
_request = {
|
|
1188
|
+
key: key,
|
|
1189
|
+
};
|
|
1190
|
+
_options = webapi_options;
|
|
1191
|
+
}
|
|
1192
|
+
return this._existsSystemEventAsync(_request, _options);
|
|
1193
|
+
}
|
|
1194
|
+
/*
|
|
1195
|
+
* Gets a WindowPosSize object.
|
|
1196
|
+
* @param windowPosSizeId - The primary key.
|
|
1197
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1198
|
+
* @returns A single WindowPosSize
|
|
1199
|
+
*/
|
|
1200
|
+
async getWindowPosSizeAsync(windowPosSizeId, options) {
|
|
1201
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1202
|
+
base.WebApiBase.SetPending(options);
|
|
1203
|
+
return new Promise(async (resolve, reject) => {
|
|
1204
|
+
try {
|
|
1205
|
+
const response = await this._axios.post("GetWindowPosSize?windowPosSizeId=" + windowPosSizeId, null, config);
|
|
1206
|
+
base.WebApiBase.SetCompleted(options);
|
|
1207
|
+
const res = converters.Create_WindowPosSize_From(response.data);
|
|
1208
|
+
resolve(res);
|
|
1209
|
+
}
|
|
1210
|
+
catch (err) {
|
|
1211
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1212
|
+
reject(err);
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
async _saveWindowPosSizeAsync(request, options) {
|
|
1217
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1218
|
+
base.WebApiBase.SetPending(options);
|
|
1219
|
+
return new Promise(async (resolve, reject) => {
|
|
1220
|
+
try {
|
|
1221
|
+
config.baseURL = this._options.baseUrl;
|
|
1222
|
+
const response = await this._axios.post("SaveWindowPosSize", request, config);
|
|
1223
|
+
base.WebApiBase.SetCompleted(options);
|
|
1224
|
+
const res = converters.Create_WindowPosSize_From(response.data);
|
|
1225
|
+
resolve(res);
|
|
1226
|
+
}
|
|
1227
|
+
catch (err) {
|
|
1228
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1229
|
+
reject(err);
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
async saveWindowPosSizeAsync(windowPosSize, webapi_options) {
|
|
1234
|
+
let _request = null;
|
|
1235
|
+
let _options = null;
|
|
1236
|
+
const first = windowPosSize;
|
|
1237
|
+
if (typeof (first) === "object" && first && (typeof (first.windowPosSize) != 'undefined')) {
|
|
1238
|
+
_request = windowPosSize;
|
|
1239
|
+
_options = webapi_options;
|
|
1240
|
+
}
|
|
1241
|
+
else {
|
|
1242
|
+
_request = {
|
|
1243
|
+
windowPosSize: windowPosSize,
|
|
1244
|
+
};
|
|
1245
|
+
_options = webapi_options;
|
|
1246
|
+
}
|
|
1247
|
+
return this._saveWindowPosSizeAsync(_request, _options);
|
|
1248
|
+
}
|
|
1249
|
+
async _deleteWindowPosSizeAsync(request, options) {
|
|
1250
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1251
|
+
base.WebApiBase.SetPending(options);
|
|
1252
|
+
return new Promise(async (resolve, reject) => {
|
|
1253
|
+
try {
|
|
1254
|
+
config.baseURL = this._options.baseUrl;
|
|
1255
|
+
const response = await this._axios.post("DeleteWindowPosSize", request, config);
|
|
1256
|
+
base.WebApiBase.SetCompleted(options);
|
|
1257
|
+
const res = response.data;
|
|
1258
|
+
resolve(res);
|
|
1259
|
+
}
|
|
1260
|
+
catch (err) {
|
|
1261
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1262
|
+
reject(err);
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
async deleteWindowPosSizeAsync(windowPosSizeId, webapi_options) {
|
|
1267
|
+
let _request = null;
|
|
1268
|
+
let _options = null;
|
|
1269
|
+
const first = windowPosSizeId;
|
|
1270
|
+
if (typeof (first) === "object" && first && (typeof (first.windowPosSizeId) != 'undefined')) {
|
|
1271
|
+
_request = windowPosSizeId;
|
|
1272
|
+
_options = webapi_options;
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
_request = {
|
|
1276
|
+
windowPosSizeId: windowPosSizeId,
|
|
1277
|
+
};
|
|
1278
|
+
_options = webapi_options;
|
|
1279
|
+
}
|
|
1280
|
+
return this._deleteWindowPosSizeAsync(_request, _options);
|
|
1281
|
+
}
|
|
1282
|
+
/*
|
|
1283
|
+
* Gets an array of WindowPosSize objects.
|
|
1284
|
+
* @param windowPosSizeIds - The primary keys.
|
|
1285
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1286
|
+
* @returns An array of WindowPosSize
|
|
1287
|
+
*/
|
|
1288
|
+
async getWindowPosSizeListAsync(windowPosSizeIds, options) {
|
|
1289
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1290
|
+
base.WebApiBase.SetPending(options);
|
|
1291
|
+
return new Promise(async (resolve, reject) => {
|
|
1292
|
+
try {
|
|
1293
|
+
const response = await this._axios.post("GetWindowPosSizeList", windowPosSizeIds, config);
|
|
1294
|
+
base.WebApiBase.SetCompleted(options);
|
|
1295
|
+
const res = converters.Create_WindowPosSizeArray_From(response.data);
|
|
1296
|
+
resolve(res);
|
|
1297
|
+
}
|
|
1298
|
+
catch (err) {
|
|
1299
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1300
|
+
reject(err);
|
|
1301
|
+
}
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
async _getMyWindowPosSizesAsync(options) {
|
|
1305
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1306
|
+
base.WebApiBase.SetPending(options);
|
|
1307
|
+
return new Promise(async (resolve, reject) => {
|
|
1308
|
+
try {
|
|
1309
|
+
config.baseURL = this._options.baseUrl;
|
|
1310
|
+
const response = await this._axios.post("GetMyWindowPosSizes", undefined, config);
|
|
1311
|
+
base.WebApiBase.SetCompleted(options);
|
|
1312
|
+
const res = converters.Create_WindowPosSizeArray_From(response.data);
|
|
1313
|
+
resolve(res);
|
|
1314
|
+
}
|
|
1315
|
+
catch (err) {
|
|
1316
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1317
|
+
reject(err);
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Gets the window and dialog position and size settings belonging to the currently logged on user
|
|
1323
|
+
* @returns Array of window and dialog position and size settings
|
|
1324
|
+
*/
|
|
1325
|
+
async getMyWindowPosSizesAsync(webapi_options) {
|
|
1326
|
+
return this._getMyWindowPosSizesAsync(webapi_options);
|
|
1327
|
+
}
|
|
1328
|
+
async _getWindowPosSizesOnPersonIdAsync(request, options) {
|
|
1329
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1330
|
+
base.WebApiBase.SetPending(options);
|
|
1331
|
+
return new Promise(async (resolve, reject) => {
|
|
1332
|
+
try {
|
|
1333
|
+
config.baseURL = this._options.baseUrl;
|
|
1334
|
+
const response = await this._axios.post("GetWindowPosSizesOnPersonId", request, config);
|
|
1335
|
+
base.WebApiBase.SetCompleted(options);
|
|
1336
|
+
const res = converters.Create_WindowPosSizeArray_From(response.data);
|
|
1337
|
+
resolve(res);
|
|
1338
|
+
}
|
|
1339
|
+
catch (err) {
|
|
1340
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1341
|
+
reject(err);
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
async getWindowPosSizesOnPersonIdAsync(personId, webapi_options) {
|
|
1346
|
+
let _request = null;
|
|
1347
|
+
let _options = null;
|
|
1348
|
+
const first = personId;
|
|
1349
|
+
if (typeof (first) === "object" && first && (typeof (first.personId) != 'undefined')) {
|
|
1350
|
+
_request = personId;
|
|
1351
|
+
_options = webapi_options;
|
|
1352
|
+
}
|
|
1353
|
+
else {
|
|
1354
|
+
_request = {
|
|
1355
|
+
personId: personId,
|
|
1356
|
+
};
|
|
1357
|
+
_options = webapi_options;
|
|
1358
|
+
}
|
|
1359
|
+
return this._getWindowPosSizesOnPersonIdAsync(_request, _options);
|
|
1360
|
+
}
|
|
1361
|
+
async _getWindowPosSizesOnAssociateIdAsync(request, options) {
|
|
1362
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1363
|
+
base.WebApiBase.SetPending(options);
|
|
1364
|
+
return new Promise(async (resolve, reject) => {
|
|
1365
|
+
try {
|
|
1366
|
+
config.baseURL = this._options.baseUrl;
|
|
1367
|
+
const response = await this._axios.post("GetWindowPosSizesOnAssociateId", request, config);
|
|
1368
|
+
base.WebApiBase.SetCompleted(options);
|
|
1369
|
+
const res = converters.Create_WindowPosSizeArray_From(response.data);
|
|
1370
|
+
resolve(res);
|
|
1371
|
+
}
|
|
1372
|
+
catch (err) {
|
|
1373
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1374
|
+
reject(err);
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
async getWindowPosSizesOnAssociateIdAsync(associateId, webapi_options) {
|
|
1379
|
+
let _request = null;
|
|
1380
|
+
let _options = null;
|
|
1381
|
+
const first = associateId;
|
|
1382
|
+
if (typeof (first) === "object" && first && (typeof (first.associateId) != 'undefined')) {
|
|
1383
|
+
_request = associateId;
|
|
1384
|
+
_options = webapi_options;
|
|
1385
|
+
}
|
|
1386
|
+
else {
|
|
1387
|
+
_request = {
|
|
1388
|
+
associateId: associateId,
|
|
1389
|
+
};
|
|
1390
|
+
_options = webapi_options;
|
|
1391
|
+
}
|
|
1392
|
+
return this._getWindowPosSizesOnAssociateIdAsync(_request, _options);
|
|
1393
|
+
}
|
|
1394
|
+
async _saveWindowPosSizesAsync(request, options) {
|
|
1395
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1396
|
+
base.WebApiBase.SetPending(options);
|
|
1397
|
+
return new Promise(async (resolve, reject) => {
|
|
1398
|
+
try {
|
|
1399
|
+
config.baseURL = this._options.baseUrl;
|
|
1400
|
+
const response = await this._axios.post("SaveWindowPosSizes", request, config);
|
|
1401
|
+
base.WebApiBase.SetCompleted(options);
|
|
1402
|
+
const res = converters.Create_WindowPosSizeArray_From(response.data);
|
|
1403
|
+
resolve(res);
|
|
1404
|
+
}
|
|
1405
|
+
catch (err) {
|
|
1406
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1407
|
+
reject(err);
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
async saveWindowPosSizesAsync(windowPosSizes, webapi_options) {
|
|
1412
|
+
let _request = null;
|
|
1413
|
+
let _options = null;
|
|
1414
|
+
const first = windowPosSizes;
|
|
1415
|
+
if (typeof (first) === "object" && first && (typeof (first.windowPosSizes) != 'undefined')) {
|
|
1416
|
+
_request = windowPosSizes;
|
|
1417
|
+
_options = webapi_options;
|
|
1418
|
+
}
|
|
1419
|
+
else {
|
|
1420
|
+
_request = {
|
|
1421
|
+
windowPosSizes: windowPosSizes,
|
|
1422
|
+
};
|
|
1423
|
+
_options = webapi_options;
|
|
1424
|
+
}
|
|
1425
|
+
return this._saveWindowPosSizesAsync(_request, _options);
|
|
1426
|
+
}
|
|
1427
|
+
} // class v1ConfigurationAgentController
|
|
1428
|
+
exports.ConfigurationAgent = ConfigurationAgent;
|
|
1429
|
+
//# sourceMappingURL=ConfigurationAgent.js.map
|