@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,774 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import * as enums from './Enums.js';
|
|
3
|
+
import * as base from './WebApiBase.js';
|
|
4
|
+
import * as carriers from './Carriers.js';
|
|
5
|
+
/**
|
|
6
|
+
* Person data services.
|
|
7
|
+
*/
|
|
8
|
+
export interface IPersonAgent {
|
|
9
|
+
createDefaultConsentPersonAsync(): Promise<carriers.ConsentPerson>;
|
|
10
|
+
saveConsentPersonAsync(entity: carriers.ConsentPerson): Promise<carriers.ConsentPerson>;
|
|
11
|
+
deleteConsentPersonAsync(ConsentPersonId: number): Promise<void>;
|
|
12
|
+
createDefaultPersonEntityAsync(): Promise<carriers.PersonEntity>;
|
|
13
|
+
savePersonEntityAsync(entity: carriers.PersonEntity): Promise<carriers.PersonEntity>;
|
|
14
|
+
deletePersonEntityAsync(PersonEntityId: number): Promise<void>;
|
|
15
|
+
createDefaultPersonImageAsync(): Promise<carriers.PersonImage>;
|
|
16
|
+
getConsentPersonAsync(consentPersonId: number): Promise<carriers.ConsentPerson>;
|
|
17
|
+
getPersonAsync(personId: number): Promise<carriers.Person>;
|
|
18
|
+
getPersonEntityAsync(personEntityId: number): Promise<carriers.PersonEntity>;
|
|
19
|
+
undeleteAsync(request: carriers.Person_UndeleteRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
20
|
+
undeleteAsync(id: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
21
|
+
getMyPersonAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
22
|
+
getSalesRepAsync(request: carriers.Person_GetSalesRepRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
23
|
+
getSalesRepAsync(contactName: string, personFirstname: string, personLastname: string, emailAddress: string, phoneNumber: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
24
|
+
getPhonesAsync(request: carriers.Person_GetPhonesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EntityElement[]>;
|
|
25
|
+
getPhonesAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EntityElement[]>;
|
|
26
|
+
changeCountryAsync(request: carriers.Person_ChangeCountryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
27
|
+
changeCountryAsync(personEntity: carriers.PersonEntity, toCountryId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
28
|
+
getAddressAsync(request: carriers.Person_GetAddressRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
29
|
+
getAddressAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
30
|
+
getAddressByCountryAsync(request: carriers.Person_GetAddressByCountryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
31
|
+
getAddressByCountryAsync(personId: number, countryId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
32
|
+
getPersonImageAsync(request: carriers.Person_GetPersonImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
33
|
+
getPersonImageAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
34
|
+
setPersonImageAsync(request: carriers.Person_SetPersonImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
35
|
+
setPersonImageAsync(personId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
36
|
+
createDefaultByContactIdAsync(request: carriers.Person_CreateDefaultByContactIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
37
|
+
createDefaultByContactIdAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
38
|
+
moveAsync(request: carriers.Person_MoveRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
39
|
+
moveAsync(personId: number, destinationContactId: number, moveAfterDate: Date, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
40
|
+
mergeAsync(request: carriers.Person_MergeRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
41
|
+
mergeAsync(sourcePersonId: number, destinationPersonId: number, moveAfterDate: Date, deleteSource: boolean, replaceEmptyFieldsOnDestination: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
42
|
+
createDefaultFromCredentialAsync(request: carriers.Person_CreateDefaultFromCredentialRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
43
|
+
createDefaultFromCredentialAsync(contactId: number, credentialType: string, credentialValue: string, credentialDisplayValue: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
44
|
+
isNumberValidAsync(request: carriers.Person_IsNumberValidRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
45
|
+
isNumberValidAsync(contactId: number, number: string, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
46
|
+
setConsentAsync(request: carriers.Person_SetConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
47
|
+
setConsentAsync(personId: number, purpose: string, source: string, legalBase: string, comment: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
48
|
+
removeConsentAsync(request: carriers.Person_RemoveConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
49
|
+
removeConsentAsync(personId: number, purpose: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
50
|
+
hasConsentAsync(request: carriers.Person_HasConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
51
|
+
hasConsentAsync(personId: number, purpose: string, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
52
|
+
getConsentInfosAsync(request: carriers.Person_GetConsentInfosRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ConsentInfo[]>;
|
|
53
|
+
getConsentInfosAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ConsentInfo[]>;
|
|
54
|
+
sendConsentConfirmationEmailAsync(request: carriers.Person_SendConsentConfirmationEmailRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
55
|
+
sendConsentConfirmationEmailAsync(personId: number, emailAddress: string, emailTemplateId: number, cultureLcidId: number, subject: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
56
|
+
resolvePersonFromInfoAsync(request: carriers.Person_ResolvePersonFromInfoRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ResolvedPerson>;
|
|
57
|
+
resolvePersonFromInfoAsync(contactId: number, personName: string, phoneNumbers: string[], emails: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ResolvedPerson>;
|
|
58
|
+
addEmailAddressToPersonAsync(request: carriers.Person_AddEmailAddressToPersonRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
59
|
+
addEmailAddressToPersonAsync(personId: number, emailAddress: string, setAsPrimaryEmail: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
60
|
+
createTemporaryKeyAsync(request: carriers.Person_CreateTemporaryKeyRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
61
|
+
createTemporaryKeyAsync(domain: enums.TemporaryKeyDomain, targetId: number, personId: number, expires: Date, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
62
|
+
checkTemporaryKeyAsync(request: carriers.Person_CheckTemporaryKeyRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemporaryKeyInfo>;
|
|
63
|
+
checkTemporaryKeyAsync(temporaryKey: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemporaryKeyInfo>;
|
|
64
|
+
deleteTemporaryKeysOfDomainAsync(request: carriers.Person_DeleteTemporaryKeysOfDomainRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
65
|
+
deleteTemporaryKeysOfDomainAsync(domain: enums.TemporaryKeyDomain, personId: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
66
|
+
deleteExpiredAsync(webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
67
|
+
getPersonSummaryAsync(request: carriers.Person_GetPersonSummaryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonSummary>;
|
|
68
|
+
getPersonSummaryAsync(personId: number, limit: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonSummary>;
|
|
69
|
+
addBounceAsync(request: carriers.Person_AddBounceRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
70
|
+
addBounceAsync(emailAddress: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
71
|
+
validatePersonEntityAsync(request: carriers.Person_ValidatePersonEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
|
|
72
|
+
validatePersonEntityAsync(personEntity: carriers.PersonEntity, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
|
|
73
|
+
addBounceWithCountAsync(request: carriers.Person_AddBounceWithCountRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
74
|
+
addBounceWithCountAsync(emailAddress: string, counts: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
75
|
+
getBestSoLanguageForTemplateAsync(request: carriers.Person_GetBestSoLanguageForTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
76
|
+
getBestSoLanguageForTemplateAsync(personId: number, templateId: number, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
77
|
+
addBounceWithDetailsAsync(request: carriers.Person_AddBounceWithDetailsRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
78
|
+
addBounceWithDetailsAsync(emailAddress: string, counts: number, code: number, reason: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
79
|
+
getPersonImagesAsync(request: carriers.Person_GetPersonImagesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonImage[]>;
|
|
80
|
+
getPersonImagesAsync(personIds: number[], scaledWidth: number, scaledHeight: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonImage[]>;
|
|
81
|
+
createOrUpdateUserCandidateAsync(request: carriers.Person_CreateOrUpdateUserCandidateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
82
|
+
createOrUpdateUserCandidateAsync(personId: number, username: string, accessAllRequests: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
83
|
+
getUserCandidateByPersonAsync(request: carriers.Person_GetUserCandidateByPersonRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
84
|
+
getUserCandidateByPersonAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
85
|
+
getCustomerCentrePasswordReplyTemplateAsync(request: carriers.Person_GetCustomerCentrePasswordReplyTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReplyTemplateParsed>;
|
|
86
|
+
getCustomerCentrePasswordReplyTemplateAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReplyTemplateParsed>;
|
|
87
|
+
sendEmailAsync(request: carriers.Person_SendEmailRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
88
|
+
sendEmailAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
89
|
+
getPersonListAsync(personIds: number[]): Promise<carriers.Person[]>;
|
|
90
|
+
getPersonsFromContactAsync(request: carriers.Person_GetPersonsFromContactRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
91
|
+
getPersonsFromContactAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
92
|
+
getPersonsFromProjectAsync(request: carriers.Person_GetPersonsFromProjectRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
93
|
+
getPersonsFromProjectAsync(projectId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
94
|
+
getColleaguesAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
95
|
+
getColleaguesByDepartmentAsync(request: carriers.Person_GetColleaguesByDepartmentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
96
|
+
getColleaguesByDepartmentAsync(departmentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
97
|
+
getColleaguesBySourceAsync(request: carriers.Person_GetColleaguesBySourceRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
98
|
+
getColleaguesBySourceAsync(sourceType: enums.AssociateSourceType, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
99
|
+
getMyOwnerAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
100
|
+
getOwnerOnPersonIdAsync(request: carriers.Person_GetOwnerOnPersonIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
101
|
+
getOwnerOnPersonIdAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
102
|
+
changePersonRankAsync(request: carriers.Person_ChangePersonRankRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
103
|
+
changePersonRankAsync(personId: number, moveUp: boolean, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
104
|
+
setPersonRankAsync(request: carriers.Person_SetPersonRankRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
105
|
+
setPersonRankAsync(personId: number, desiredRank: number, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
106
|
+
normalizeRanksAsync(request: carriers.Person_NormalizeRanksRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
107
|
+
normalizeRanksAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Person data services.
|
|
111
|
+
*/
|
|
112
|
+
export declare class PersonAgent extends base.WebApiBase implements IPersonAgent {
|
|
113
|
+
constructor(baseUrl?: string, languageCode?: string, cultureCode?: string);
|
|
114
|
+
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
115
|
+
constructor(baseUrl: string, resourceManager: any);
|
|
116
|
+
constructor(baseUrl: string, config: AxiosRequestConfig, resourceManager: any);
|
|
117
|
+
constructor(baseUrl: string, config: AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
118
|
+
constructor(baseUrl: string, config: AxiosRequestConfig, languageCode?: string, cultureCode?: string);
|
|
119
|
+
constructor(options: base.WebApiOptions);
|
|
120
|
+
/**
|
|
121
|
+
* Set default values into a new ConsentPerson.
|
|
122
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
123
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
124
|
+
* @returns A blank entity.
|
|
125
|
+
*/
|
|
126
|
+
createDefaultConsentPersonAsync(options?: base.WebApiRequestOptions): Promise<carriers.ConsentPerson>;
|
|
127
|
+
saveConsentPersonAsync(entity: carriers.ConsentPerson, options?: base.WebApiRequestOptions): Promise<carriers.ConsentPerson>;
|
|
128
|
+
deleteConsentPersonAsync(ConsentPersonId: number, options?: base.WebApiRequestOptions): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Set default values into a new PersonEntity.
|
|
131
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
132
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
133
|
+
* @returns A blank entity.
|
|
134
|
+
*/
|
|
135
|
+
createDefaultPersonEntityAsync(options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
136
|
+
savePersonEntityAsync(entity: carriers.PersonEntity, options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
137
|
+
deletePersonEntityAsync(PersonEntityId: number, options?: base.WebApiRequestOptions): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Set default values into a new PersonImage.
|
|
140
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
141
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
142
|
+
* @returns A blank entity.
|
|
143
|
+
*/
|
|
144
|
+
createDefaultPersonImageAsync(options?: base.WebApiRequestOptions): Promise<carriers.PersonImage>;
|
|
145
|
+
getConsentPersonAsync(consentPersonId: number, options?: base.WebApiRequestOptions): Promise<carriers.ConsentPerson>;
|
|
146
|
+
getPersonAsync(personId: number, options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
147
|
+
getPersonEntityAsync(personEntityId: number, options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
148
|
+
private _undeleteAsync;
|
|
149
|
+
/**
|
|
150
|
+
* This entity supports Soft Delete. Call this method to Undelete a previously soft-deleted record
|
|
151
|
+
* @param request - Id
|
|
152
|
+
* @returns This method has no return value
|
|
153
|
+
*/
|
|
154
|
+
undeleteAsync(request: carriers.Person_UndeleteRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* This entity supports Soft Delete. Call this method to Undelete a previously soft-deleted record
|
|
157
|
+
* @param id - The primary key of the entity to undelete
|
|
158
|
+
* @returns This method has no return value
|
|
159
|
+
*/
|
|
160
|
+
undeleteAsync(id: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
161
|
+
private _getMyPersonAsync;
|
|
162
|
+
/**
|
|
163
|
+
* Gets the person info belonging to the currently logged on user.
|
|
164
|
+
* @returns The PersonEntity
|
|
165
|
+
*/
|
|
166
|
+
getMyPersonAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
167
|
+
private _getSalesRepAsync;
|
|
168
|
+
/**
|
|
169
|
+
* Returns the sales representative for an external user. If this method is accessed with anonymous authentication the external user is recognized by contact and name, or by email, or phone number. If the external user is recognized as an CRM5 user (internal or external) the input fields can be left blank.
|
|
170
|
+
* @param request - ContactName, PersonFirstname, PersonLastname, EmailAddress, PhoneNumber
|
|
171
|
+
* @returns The PersonEntity of the sales rep.
|
|
172
|
+
*/
|
|
173
|
+
getSalesRepAsync(request: carriers.Person_GetSalesRepRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the sales representative for an external user. If this method is accessed with anonymous authentication the external user is recognized by contact and name, or by email, or phone number. If the external user is recognized as an CRM5 user (internal or external) the input fields can be left blank.
|
|
176
|
+
* @param contactName - The company name of the person requesting his sales representative. May be empty if email or phone is provided.
|
|
177
|
+
* @param personFirstname - The firstname of the person requesting his sales representative. May be empty if email or phone is provided.
|
|
178
|
+
* @param personLastname - The lastname of the person requesting his sales representative. May be empty if email or phone is provided.
|
|
179
|
+
* @param emailAddress - The email address of the person requesting his sales representative. May be empty if phone, or contact and person name is provided.
|
|
180
|
+
* @param phoneNumber - The phone number of the person requesting his sales representative. May be empty if email, or contact and person name is provided.
|
|
181
|
+
* @returns The PersonEntity of the sales rep.
|
|
182
|
+
*/
|
|
183
|
+
getSalesRepAsync(contactName: string, personFirstname: string, personLastname: string, emailAddress: string, phoneNumber: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
184
|
+
private _getPhonesAsync;
|
|
185
|
+
/**
|
|
186
|
+
* Returning all phones that belong to a person, ordered by the phone type.
|
|
187
|
+
* @param request - PersonId
|
|
188
|
+
* @returns An array of Phones
|
|
189
|
+
*/
|
|
190
|
+
getPhonesAsync(request: carriers.Person_GetPhonesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EntityElement[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Returning all phones that belong to a person, ordered by the phone type.
|
|
193
|
+
* @param personId - The person id
|
|
194
|
+
* @returns An array of Phones
|
|
195
|
+
*/
|
|
196
|
+
getPhonesAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.EntityElement[]>;
|
|
197
|
+
private _changeCountryAsync;
|
|
198
|
+
/**
|
|
199
|
+
* Change country regenerates the default values and localized information such as phone number and address format for this entity.
|
|
200
|
+
* @param request - PersonEntity, ToCountryId
|
|
201
|
+
* @returns The PersonEntity
|
|
202
|
+
*/
|
|
203
|
+
changeCountryAsync(request: carriers.Person_ChangeCountryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
204
|
+
/**
|
|
205
|
+
* Change country regenerates the default values and localized information such as phone number and address format for this entity.
|
|
206
|
+
* @param personEntity - The PersonEntity to change country on
|
|
207
|
+
* @param toCountryId - The country to switch to
|
|
208
|
+
* @returns The PersonEntity
|
|
209
|
+
*/
|
|
210
|
+
changeCountryAsync(personEntity: carriers.PersonEntity, toCountryId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
211
|
+
private _getAddressAsync;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the person's localized address.
|
|
214
|
+
* @param request - PersonId
|
|
215
|
+
* @returns The address as LocalizedField[][].
|
|
216
|
+
*/
|
|
217
|
+
getAddressAsync(request: carriers.Person_GetAddressRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
218
|
+
/**
|
|
219
|
+
* Gets the person's localized address.
|
|
220
|
+
* @param personId - The person id
|
|
221
|
+
* @returns The address as LocalizedField[][].
|
|
222
|
+
*/
|
|
223
|
+
getAddressAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
224
|
+
private _getAddressByCountryAsync;
|
|
225
|
+
/**
|
|
226
|
+
* Gets the person's localized address.
|
|
227
|
+
* @param request - PersonId, CountryId
|
|
228
|
+
* @returns The address as LocalizedField[][].
|
|
229
|
+
*/
|
|
230
|
+
getAddressByCountryAsync(request: carriers.Person_GetAddressByCountryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
231
|
+
/**
|
|
232
|
+
* Gets the person's localized address.
|
|
233
|
+
* @param personId - The person id
|
|
234
|
+
* @param countryId -
|
|
235
|
+
* @returns The address as LocalizedField[][].
|
|
236
|
+
*/
|
|
237
|
+
getAddressByCountryAsync(personId: number, countryId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Address>;
|
|
238
|
+
private _getPersonImageAsync;
|
|
239
|
+
/**
|
|
240
|
+
* Returns the person image that is displayed in the CRM application.
|
|
241
|
+
* @param request - PersonId
|
|
242
|
+
* @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
|
|
243
|
+
*/
|
|
244
|
+
getPersonImageAsync(request: carriers.Person_GetPersonImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
245
|
+
/**
|
|
246
|
+
* Returns the person image that is displayed in the CRM application.
|
|
247
|
+
* @param personId - The person id of the person the image belongs to.
|
|
248
|
+
* @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
|
|
249
|
+
*/
|
|
250
|
+
getPersonImageAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
|
|
251
|
+
private _setPersonImageAsync;
|
|
252
|
+
/**
|
|
253
|
+
* Stores the person image that is displayed in the CRM application.
|
|
254
|
+
* @param request - PersonId, Image
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
setPersonImageAsync(request: carriers.Person_SetPersonImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
258
|
+
/**
|
|
259
|
+
* Stores the person image that is displayed in the CRM application.
|
|
260
|
+
* @param personId - The person id of the person the image belongs to.
|
|
261
|
+
* @param image - The image that is stored on the person (System.Drawing.Image)
|
|
262
|
+
* @returns
|
|
263
|
+
*/
|
|
264
|
+
setPersonImageAsync(personId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
265
|
+
private _createDefaultByContactIdAsync;
|
|
266
|
+
/**
|
|
267
|
+
* Creates a PersonEntity with default values based on the contactId.
|
|
268
|
+
* @param request - ContactId
|
|
269
|
+
* @returns
|
|
270
|
+
*/
|
|
271
|
+
createDefaultByContactIdAsync(request: carriers.Person_CreateDefaultByContactIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
272
|
+
/**
|
|
273
|
+
* Creates a PersonEntity with default values based on the contactId.
|
|
274
|
+
* @param contactId - Contact id of the person
|
|
275
|
+
* @returns
|
|
276
|
+
*/
|
|
277
|
+
createDefaultByContactIdAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
278
|
+
private _moveAsync;
|
|
279
|
+
/**
|
|
280
|
+
* Move a person to a specified contact. You must specify the date after which activities will be moved along with the person.
|
|
281
|
+
* @param request - PersonId, DestinationContactId, MoveAfterDate
|
|
282
|
+
* @returns
|
|
283
|
+
*/
|
|
284
|
+
moveAsync(request: carriers.Person_MoveRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* Move a person to a specified contact. You must specify the date after which activities will be moved along with the person.
|
|
287
|
+
* @param personId - The identifier for the person
|
|
288
|
+
* @param destinationContactId - The identifier for the contact which the person will be moved to
|
|
289
|
+
* @param moveAfterDate - Move activites after this date. Activities before this date are left alone.
|
|
290
|
+
* @returns
|
|
291
|
+
*/
|
|
292
|
+
moveAsync(personId: number, destinationContactId: number, moveAfterDate: Date, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
293
|
+
private _mergeAsync;
|
|
294
|
+
/**
|
|
295
|
+
* Merge two persons. The destination person will remain. You must specify the date after which activities will be moved along with the person.
|
|
296
|
+
* @param request - SourcePersonId, DestinationPersonId, MoveAfterDate, DeleteSource, ReplaceEmptyFieldsOnDestination
|
|
297
|
+
* @returns
|
|
298
|
+
*/
|
|
299
|
+
mergeAsync(request: carriers.Person_MergeRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
300
|
+
/**
|
|
301
|
+
* Merge two persons. The destination person will remain. You must specify the date after which activities will be moved along with the person.
|
|
302
|
+
* @param sourcePersonId - The identifier for the person which will be merged into the destination person. The source person is deleted/marked retired after the merge.
|
|
303
|
+
* @param destinationPersonId - The identifier for the person which will remain after the merge. The target person is updated.
|
|
304
|
+
* @param moveAfterDate - Merge activites after this date. Activities before this date are left alone.
|
|
305
|
+
* @param deleteSource - If true, the source person will be deleted after the merge. If false, it will have its retired flag set
|
|
306
|
+
* @param replaceEmptyFieldsOnDestination - If true, empty fields on destination will be replaced by values from source.
|
|
307
|
+
* @returns
|
|
308
|
+
*/
|
|
309
|
+
mergeAsync(sourcePersonId: number, destinationPersonId: number, moveAfterDate: Date, deleteSource: boolean, replaceEmptyFieldsOnDestination: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
310
|
+
private _createDefaultFromCredentialAsync;
|
|
311
|
+
/**
|
|
312
|
+
* Creates a PersonEntity with default values based on the contactId and credentials.
|
|
313
|
+
* @param request - ContactId, CredentialType, CredentialValue, CredentialDisplayValue
|
|
314
|
+
* @returns
|
|
315
|
+
*/
|
|
316
|
+
createDefaultFromCredentialAsync(request: carriers.Person_CreateDefaultFromCredentialRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a PersonEntity with default values based on the contactId and credentials.
|
|
319
|
+
* @param contactId - Contact id of the person
|
|
320
|
+
* @param credentialType - Type of credentials, corresponding to name of plugin and type in the credentials table.
|
|
321
|
+
* @param credentialValue - This is the actuall value of the credentials. This will typically be the password or teh users SID in active directory
|
|
322
|
+
* @param credentialDisplayValue - The value displayed to the user. this will typically be the users login name in active directory.
|
|
323
|
+
* @returns
|
|
324
|
+
*/
|
|
325
|
+
createDefaultFromCredentialAsync(contactId: number, credentialType: string, credentialValue: string, credentialDisplayValue: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonEntity>;
|
|
326
|
+
private _isNumberValidAsync;
|
|
327
|
+
/**
|
|
328
|
+
* Checks if the number is unique or required. The setting is configured from admin under system options.
|
|
329
|
+
* @param request - ContactId, Number
|
|
330
|
+
* @returns True if number is ok (passes uniqueness/required checks)
|
|
331
|
+
*/
|
|
332
|
+
isNumberValidAsync(request: carriers.Person_IsNumberValidRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
333
|
+
/**
|
|
334
|
+
* Checks if the number is unique or required. The setting is configured from admin under system options.
|
|
335
|
+
* @param contactId -
|
|
336
|
+
* @param number - Number to check.
|
|
337
|
+
* @returns True if number is ok (passes uniqueness/required checks)
|
|
338
|
+
*/
|
|
339
|
+
isNumberValidAsync(contactId: number, number: string, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
340
|
+
private _setConsentAsync;
|
|
341
|
+
/**
|
|
342
|
+
* Set a specified type of consent on the person.
|
|
343
|
+
* @param request - PersonId, Purpose, Source, LegalBase, Comment
|
|
344
|
+
* @returns
|
|
345
|
+
*/
|
|
346
|
+
setConsentAsync(request: carriers.Person_SetConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
347
|
+
/**
|
|
348
|
+
* Set a specified type of consent on the person.
|
|
349
|
+
* @param personId - The person id
|
|
350
|
+
* @param purpose - The Key of the purpose this affects. e.g. 'STORE' or 'EMARKETING'.
|
|
351
|
+
* @param source - The Key of the source of this consent. e.g. 'USER', 'WEBFORM' or 'API'.
|
|
352
|
+
* @param legalBase - The Key of the legal base for this consent. e.g. '61A', '61B', '61F'
|
|
353
|
+
* @param comment - A comment regarding this consent. May be null or empty.
|
|
354
|
+
* @returns
|
|
355
|
+
*/
|
|
356
|
+
setConsentAsync(personId: number, purpose: string, source: string, legalBase: string, comment: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
357
|
+
private _removeConsentAsync;
|
|
358
|
+
/**
|
|
359
|
+
* Turn off consent for a specified person and purpose.
|
|
360
|
+
* @param request - PersonId, Purpose
|
|
361
|
+
* @returns
|
|
362
|
+
*/
|
|
363
|
+
removeConsentAsync(request: carriers.Person_RemoveConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
364
|
+
/**
|
|
365
|
+
* Turn off consent for a specified person and purpose.
|
|
366
|
+
* @param personId - The person id
|
|
367
|
+
* @param purpose - The key of the purpose to remove. (e.g. 'STORE' or 'EMARKETING')
|
|
368
|
+
* @returns
|
|
369
|
+
*/
|
|
370
|
+
removeConsentAsync(personId: number, purpose: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
371
|
+
private _hasConsentAsync;
|
|
372
|
+
/**
|
|
373
|
+
* Check if consent has been given by a specified person, for a specific purpose. Withdraw consents return FALSE.
|
|
374
|
+
* @param request - PersonId, Purpose
|
|
375
|
+
* @returns True if the person has consented to the given purpose.
|
|
376
|
+
*/
|
|
377
|
+
hasConsentAsync(request: carriers.Person_HasConsentRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
378
|
+
/**
|
|
379
|
+
* Check if consent has been given by a specified person, for a specific purpose. Withdraw consents return FALSE.
|
|
380
|
+
* @param personId - The person id
|
|
381
|
+
* @param purpose - The key of the purpose to check. (e.g. 'STORE' or 'EMARKETING')
|
|
382
|
+
* @returns True if the person has consented to the given purpose.
|
|
383
|
+
*/
|
|
384
|
+
hasConsentAsync(personId: number, purpose: string, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
385
|
+
private _getConsentInfosAsync;
|
|
386
|
+
/**
|
|
387
|
+
* Get all consent information for a given person. May include withdrawn consents (check
|
|
388
|
+
* @param request - PersonId
|
|
389
|
+
* @returns List of consents recorded on this person
|
|
390
|
+
*/
|
|
391
|
+
getConsentInfosAsync(request: carriers.Person_GetConsentInfosRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ConsentInfo[]>;
|
|
392
|
+
/**
|
|
393
|
+
* Get all consent information for a given person. May include withdrawn consents (check
|
|
394
|
+
* @param personId - The person id to get consents for
|
|
395
|
+
* @returns List of consents recorded on this person
|
|
396
|
+
*/
|
|
397
|
+
getConsentInfosAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ConsentInfo[]>;
|
|
398
|
+
private _sendConsentConfirmationEmailAsync;
|
|
399
|
+
/**
|
|
400
|
+
* Send confirmation email to the provided person, email address (id), using the document template
|
|
401
|
+
* @param request - PersonId, EmailAddress, EmailTemplateId, CultureLcidId, Subject
|
|
402
|
+
* @returns
|
|
403
|
+
*/
|
|
404
|
+
sendConsentConfirmationEmailAsync(request: carriers.Person_SendConsentConfirmationEmailRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
405
|
+
/**
|
|
406
|
+
* Send confirmation email to the provided person, email address (id), using the document template
|
|
407
|
+
* @param personId - The person id
|
|
408
|
+
* @param emailAddress - The email address to send to.
|
|
409
|
+
* @param emailTemplateId - The id of the email template (doctmpl_id)
|
|
410
|
+
* @param cultureLcidId - The id of the culture (LCID)
|
|
411
|
+
* @param subject - Optional email subject
|
|
412
|
+
* @returns
|
|
413
|
+
*/
|
|
414
|
+
sendConsentConfirmationEmailAsync(personId: number, emailAddress: string, emailTemplateId: number, cultureLcidId: number, subject: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
415
|
+
private _resolvePersonFromInfoAsync;
|
|
416
|
+
/**
|
|
417
|
+
* Get a person from the provided information. If the person does not exist, it will be created on demand.
|
|
418
|
+
* @param request - ContactId, PersonName, PhoneNumbers, Emails
|
|
419
|
+
* @returns The results of the resolve-operation.
|
|
420
|
+
*/
|
|
421
|
+
resolvePersonFromInfoAsync(request: carriers.Person_ResolvePersonFromInfoRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ResolvedPerson>;
|
|
422
|
+
/**
|
|
423
|
+
* Get a person from the provided information. If the person does not exist, it will be created on demand.
|
|
424
|
+
* @param contactId - The contact Id of the contact which the person belongs to. Cannot be 0.
|
|
425
|
+
* @param personName - The full name of the person to be resolved. Optional.
|
|
426
|
+
* @param phoneNumbers - Phone numbers registered on the person. Optional.
|
|
427
|
+
* @param emails - Email-addresses registered on the person. Optional.
|
|
428
|
+
* @returns The results of the resolve-operation.
|
|
429
|
+
*/
|
|
430
|
+
resolvePersonFromInfoAsync(contactId: number, personName: string, phoneNumbers: string[], emails: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ResolvedPerson>;
|
|
431
|
+
private _addEmailAddressToPersonAsync;
|
|
432
|
+
/**
|
|
433
|
+
* Sets the primary email address on person, possibly re-ranking email addresses accordingly.
|
|
434
|
+
* @param request - PersonId, EmailAddress, SetAsPrimaryEmail
|
|
435
|
+
* @returns
|
|
436
|
+
*/
|
|
437
|
+
addEmailAddressToPersonAsync(request: carriers.Person_AddEmailAddressToPersonRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
438
|
+
/**
|
|
439
|
+
* Sets the primary email address on person, possibly re-ranking email addresses accordingly.
|
|
440
|
+
* @param personId - Person id of the person
|
|
441
|
+
* @param emailAddress - The email address to set as primary email address
|
|
442
|
+
* @param setAsPrimaryEmail - True if the address shall be primary email address (have rank == 1)
|
|
443
|
+
* @returns
|
|
444
|
+
*/
|
|
445
|
+
addEmailAddressToPersonAsync(personId: number, emailAddress: string, setAsPrimaryEmail: boolean, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
446
|
+
private _createTemporaryKeyAsync;
|
|
447
|
+
/**
|
|
448
|
+
* Create a temporary key in the database from the given parameters and return the key string. Used for temporary keys for accessing customer centric functionality, such as UpdateSubscriptions.
|
|
449
|
+
* @param request - Domain, TargetId, PersonId, Expires
|
|
450
|
+
* @returns The key as base64, ready to be used e.g. in a URL
|
|
451
|
+
*/
|
|
452
|
+
createTemporaryKeyAsync(request: carriers.Person_CreateTemporaryKeyRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
453
|
+
/**
|
|
454
|
+
* Create a temporary key in the database from the given parameters and return the key string. Used for temporary keys for accessing customer centric functionality, such as UpdateSubscriptions.
|
|
455
|
+
* @param domain - The domain this key is for
|
|
456
|
+
* @param targetId - The primary key of the entity this is for. Depends on domain.
|
|
457
|
+
* @param personId - The person this key is for. May be null.
|
|
458
|
+
* @param expires - When the key will expire (servers local time)
|
|
459
|
+
* @returns The key as base64, ready to be used e.g. in a URL
|
|
460
|
+
*/
|
|
461
|
+
createTemporaryKeyAsync(domain: enums.TemporaryKeyDomain, targetId: number, personId: number, expires: Date, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
462
|
+
private _checkTemporaryKeyAsync;
|
|
463
|
+
/**
|
|
464
|
+
* Check a temporary key for validity, and in case it is valid, return its domain, targetId and personId
|
|
465
|
+
* @param request - TemporaryKey
|
|
466
|
+
* @returns The info about the temporary key. Domain will be Unknown if key is not valid.
|
|
467
|
+
*/
|
|
468
|
+
checkTemporaryKeyAsync(request: carriers.Person_CheckTemporaryKeyRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemporaryKeyInfo>;
|
|
469
|
+
/**
|
|
470
|
+
* Check a temporary key for validity, and in case it is valid, return its domain, targetId and personId
|
|
471
|
+
* @param temporaryKey - The base64 encoded key value, as returned by CreateTemporaryKey
|
|
472
|
+
* @returns The info about the temporary key. Domain will be Unknown if key is not valid.
|
|
473
|
+
*/
|
|
474
|
+
checkTemporaryKeyAsync(temporaryKey: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemporaryKeyInfo>;
|
|
475
|
+
private _deleteTemporaryKeysOfDomainAsync;
|
|
476
|
+
/**
|
|
477
|
+
* Delete all temporary keys for a given domain and person
|
|
478
|
+
* @param request - Domain, PersonId
|
|
479
|
+
* @returns
|
|
480
|
+
*/
|
|
481
|
+
deleteTemporaryKeysOfDomainAsync(request: carriers.Person_DeleteTemporaryKeysOfDomainRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
482
|
+
/**
|
|
483
|
+
* Delete all temporary keys for a given domain and person
|
|
484
|
+
* @param domain - The domain type to delete
|
|
485
|
+
* @param personId - The person for which to delete the keys
|
|
486
|
+
* @returns
|
|
487
|
+
*/
|
|
488
|
+
deleteTemporaryKeysOfDomainAsync(domain: enums.TemporaryKeyDomain, personId: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
489
|
+
private _deleteExpiredAsync;
|
|
490
|
+
/**
|
|
491
|
+
* Trigger deletion of persons that has been (soft) deleted and have timed out the expiry period (the SoftDeleteRetention preference).
|
|
492
|
+
* @returns
|
|
493
|
+
*/
|
|
494
|
+
deleteExpiredAsync(webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
495
|
+
private _getPersonSummaryAsync;
|
|
496
|
+
/**
|
|
497
|
+
* Get summary of person and recent activity.
|
|
498
|
+
* @param request - PersonId, Limit
|
|
499
|
+
* @returns Summary of person, with recent requests, sales, follow-ups, chats.
|
|
500
|
+
*/
|
|
501
|
+
getPersonSummaryAsync(request: carriers.Person_GetPersonSummaryRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonSummary>;
|
|
502
|
+
/**
|
|
503
|
+
* Get summary of person and recent activity.
|
|
504
|
+
* @param personId - The person id to summarize.
|
|
505
|
+
* @param limit - Max number of items to include in summary lists.
|
|
506
|
+
* @returns Summary of person, with recent requests, sales, follow-ups, chats.
|
|
507
|
+
*/
|
|
508
|
+
getPersonSummaryAsync(personId: number, limit: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonSummary>;
|
|
509
|
+
private _addBounceAsync;
|
|
510
|
+
/**
|
|
511
|
+
* Add a bounce count on the email address if it exists
|
|
512
|
+
* @param request - EmailAddress
|
|
513
|
+
* @returns
|
|
514
|
+
*/
|
|
515
|
+
addBounceAsync(request: carriers.Person_AddBounceRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
516
|
+
/**
|
|
517
|
+
* Add a bounce count on the email address if it exists
|
|
518
|
+
* @param emailAddress - The email address which we want to add a bounce count to
|
|
519
|
+
* @returns
|
|
520
|
+
*/
|
|
521
|
+
addBounceAsync(emailAddress: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
522
|
+
private _validatePersonEntityAsync;
|
|
523
|
+
/**
|
|
524
|
+
* Check that entity is ready for saving, return error messages by field.
|
|
525
|
+
* @param request - PersonEntity
|
|
526
|
+
* @returns Error messages tagged by field.
|
|
527
|
+
*/
|
|
528
|
+
validatePersonEntityAsync(request: carriers.Person_ValidatePersonEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
|
|
529
|
+
/**
|
|
530
|
+
* Check that entity is ready for saving, return error messages by field.
|
|
531
|
+
* @param personEntity - Entity to be checked for errors.
|
|
532
|
+
* @returns Error messages tagged by field.
|
|
533
|
+
*/
|
|
534
|
+
validatePersonEntityAsync(personEntity: carriers.PersonEntity, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
|
|
535
|
+
private _addBounceWithCountAsync;
|
|
536
|
+
/**
|
|
537
|
+
* Add a number of bounce counts on the email address if it exists
|
|
538
|
+
* @param request - EmailAddress, Counts
|
|
539
|
+
* @returns
|
|
540
|
+
*/
|
|
541
|
+
addBounceWithCountAsync(request: carriers.Person_AddBounceWithCountRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
542
|
+
/**
|
|
543
|
+
* Add a number of bounce counts on the email address if it exists
|
|
544
|
+
* @param emailAddress - The email address which we want to add bounce counts to
|
|
545
|
+
* @param counts - The number of bounce counts to add
|
|
546
|
+
* @returns
|
|
547
|
+
*/
|
|
548
|
+
addBounceWithCountAsync(emailAddress: string, counts: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
549
|
+
private _getBestSoLanguageForTemplateAsync;
|
|
550
|
+
/**
|
|
551
|
+
* Get the best language for this person on this template
|
|
552
|
+
* @param request - PersonId, TemplateId
|
|
553
|
+
* @returns The solang code for best language, empty string if no best language found
|
|
554
|
+
*/
|
|
555
|
+
getBestSoLanguageForTemplateAsync(request: carriers.Person_GetBestSoLanguageForTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
556
|
+
/**
|
|
557
|
+
* Get the best language for this person on this template
|
|
558
|
+
* @param personId - The id of the person
|
|
559
|
+
* @param templateId - The id of the template to find languages on
|
|
560
|
+
* @returns The solang code for best language, empty string if no best language found
|
|
561
|
+
*/
|
|
562
|
+
getBestSoLanguageForTemplateAsync(personId: number, templateId: number, webapi_options?: base.WebApiRequestOptions): Promise<string>;
|
|
563
|
+
private _addBounceWithDetailsAsync;
|
|
564
|
+
/**
|
|
565
|
+
* Add a number of bounce counts on the email address if it exists, and with possible bounce code and reason
|
|
566
|
+
* @param request - EmailAddress, Counts, Code, Reason
|
|
567
|
+
* @returns
|
|
568
|
+
*/
|
|
569
|
+
addBounceWithDetailsAsync(request: carriers.Person_AddBounceWithDetailsRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
570
|
+
/**
|
|
571
|
+
* Add a number of bounce counts on the email address if it exists, and with possible bounce code and reason
|
|
572
|
+
* @param emailAddress - The email address which we want to add bounce counts to
|
|
573
|
+
* @param counts - The number of bounce counts to add
|
|
574
|
+
* @param code - A numeric code representing the bounce reason
|
|
575
|
+
* @param reason - A textual tag representing the bounce reason
|
|
576
|
+
* @returns
|
|
577
|
+
*/
|
|
578
|
+
addBounceWithDetailsAsync(emailAddress: string, counts: number, code: number, reason: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
579
|
+
private _getPersonImagesAsync;
|
|
580
|
+
/**
|
|
581
|
+
* Get the image for a set of persons scaled to a specific size. Returned images are in PNG format.
|
|
582
|
+
* @param request - PersonIds, ScaledWidth, ScaledHeight
|
|
583
|
+
* @returns List of person images. Persons without an image are not present in this list.
|
|
584
|
+
*/
|
|
585
|
+
getPersonImagesAsync(request: carriers.Person_GetPersonImagesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonImage[]>;
|
|
586
|
+
/**
|
|
587
|
+
* Get the image for a set of persons scaled to a specific size. Returned images are in PNG format.
|
|
588
|
+
* @param personIds - List of persons to get images for.
|
|
589
|
+
* @param scaledWidth - Returned images are scaled to this width
|
|
590
|
+
* @param scaledHeight - Returned images are scaled to this height
|
|
591
|
+
* @returns List of person images. Persons without an image are not present in this list.
|
|
592
|
+
*/
|
|
593
|
+
getPersonImagesAsync(personIds: number[], scaledWidth: number, scaledHeight: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.PersonImage[]>;
|
|
594
|
+
private _createOrUpdateUserCandidateAsync;
|
|
595
|
+
/**
|
|
596
|
+
* Creates a Customer Centre User (UserCandidate) for a given Contact (personId) with the supplied parameters. If the Customer Centre User already exists for a given Contact, the user is updated with the supplied parameters.
|
|
597
|
+
* @param request - PersonId, Username, AccessAllRequests
|
|
598
|
+
* @returns UserCandidate created or updated.
|
|
599
|
+
*/
|
|
600
|
+
createOrUpdateUserCandidateAsync(request: carriers.Person_CreateOrUpdateUserCandidateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
601
|
+
/**
|
|
602
|
+
* Creates a Customer Centre User (UserCandidate) for a given Contact (personId) with the supplied parameters. If the Customer Centre User already exists for a given Contact, the user is updated with the supplied parameters.
|
|
603
|
+
* @param personId - Person to create UserCandidate for.
|
|
604
|
+
* @param username - Desired username. Username must be unique. If the username is not unique, method will throw an error.
|
|
605
|
+
* @param accessAllRequests - Determines if Custom Center User has access to all requests created for all Contacts in the company.
|
|
606
|
+
* @returns UserCandidate created or updated.
|
|
607
|
+
*/
|
|
608
|
+
createOrUpdateUserCandidateAsync(personId: number, username: string, accessAllRequests: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
609
|
+
private _getUserCandidateByPersonAsync;
|
|
610
|
+
/**
|
|
611
|
+
* Gets user candidate linked to a person.
|
|
612
|
+
* @param request - PersonId
|
|
613
|
+
* @returns UserCandidate linked to a person.
|
|
614
|
+
*/
|
|
615
|
+
getUserCandidateByPersonAsync(request: carriers.Person_GetUserCandidateByPersonRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
616
|
+
/**
|
|
617
|
+
* Gets user candidate linked to a person.
|
|
618
|
+
* @param personId - Person related to requested UserCandidate.
|
|
619
|
+
* @returns UserCandidate linked to a person.
|
|
620
|
+
*/
|
|
621
|
+
getUserCandidateByPersonAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.UserCandidate>;
|
|
622
|
+
private _getCustomerCentrePasswordReplyTemplateAsync;
|
|
623
|
+
/**
|
|
624
|
+
* Gets a parsed Customer Centre password reply template for a particular customer
|
|
625
|
+
* @param request - PersonId
|
|
626
|
+
* @returns A parsed Customer Centre password reply template.
|
|
627
|
+
*/
|
|
628
|
+
getCustomerCentrePasswordReplyTemplateAsync(request: carriers.Person_GetCustomerCentrePasswordReplyTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReplyTemplateParsed>;
|
|
629
|
+
/**
|
|
630
|
+
* Gets a parsed Customer Centre password reply template for a particular customer
|
|
631
|
+
* @param personId - Person/customer id to get the template for.
|
|
632
|
+
* @returns A parsed Customer Centre password reply template.
|
|
633
|
+
*/
|
|
634
|
+
getCustomerCentrePasswordReplyTemplateAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReplyTemplateParsed>;
|
|
635
|
+
private _sendEmailAsync;
|
|
636
|
+
/**
|
|
637
|
+
* Inserts into outbox an email with specified details.
|
|
638
|
+
* @param request - From, To, Subject, PlainBody, HtmlBody, AttachmentIds
|
|
639
|
+
* @returns This method has no return value
|
|
640
|
+
*/
|
|
641
|
+
sendEmailAsync(request: carriers.Person_SendEmailRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
642
|
+
/**
|
|
643
|
+
* Inserts into outbox an email with specified details.
|
|
644
|
+
* @param from - Sender's email address.
|
|
645
|
+
* @param to - Recipient's email address.
|
|
646
|
+
* @param subject - Email's subject.
|
|
647
|
+
* @param plainBody - Email's plain body.
|
|
648
|
+
* @param htmlBody - Email's html body.
|
|
649
|
+
* @param attachmentIds - Ids of email's attachments.
|
|
650
|
+
* @returns This method has no return value
|
|
651
|
+
*/
|
|
652
|
+
sendEmailAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<void>;
|
|
653
|
+
getPersonListAsync(personIds: number[], options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
654
|
+
private _getPersonsFromContactAsync;
|
|
655
|
+
/**
|
|
656
|
+
* Returns all the persons belonging to a contact.
|
|
657
|
+
* @param request - ContactId
|
|
658
|
+
* @returns The persons belonging to a contact.
|
|
659
|
+
*/
|
|
660
|
+
getPersonsFromContactAsync(request: carriers.Person_GetPersonsFromContactRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
661
|
+
/**
|
|
662
|
+
* Returns all the persons belonging to a contact.
|
|
663
|
+
* @param contactId - The project id
|
|
664
|
+
* @returns The persons belonging to a contact.
|
|
665
|
+
*/
|
|
666
|
+
getPersonsFromContactAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
667
|
+
private _getPersonsFromProjectAsync;
|
|
668
|
+
/**
|
|
669
|
+
* Returns all the persons belonging to a project.
|
|
670
|
+
* @param request - ProjectId
|
|
671
|
+
* @returns The persons belonging to a project.
|
|
672
|
+
*/
|
|
673
|
+
getPersonsFromProjectAsync(request: carriers.Person_GetPersonsFromProjectRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
674
|
+
/**
|
|
675
|
+
* Returns all the persons belonging to a project.
|
|
676
|
+
* @param projectId - The project id
|
|
677
|
+
* @returns The persons belonging to a project.
|
|
678
|
+
*/
|
|
679
|
+
getPersonsFromProjectAsync(projectId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
680
|
+
private _getColleaguesAsync;
|
|
681
|
+
/**
|
|
682
|
+
* Gets the persons working in the same company as the logged on user.
|
|
683
|
+
* @returns Colleagues.
|
|
684
|
+
*/
|
|
685
|
+
getColleaguesAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
686
|
+
private _getColleaguesByDepartmentAsync;
|
|
687
|
+
/**
|
|
688
|
+
* Gets the persons working in a specific department in the same company as the logged on user. Departments can be retrieved with the PhoneList.DepartmentList service.
|
|
689
|
+
* @param request - DepartmentId
|
|
690
|
+
* @returns PersonList with colleagues.
|
|
691
|
+
*/
|
|
692
|
+
getColleaguesByDepartmentAsync(request: carriers.Person_GetColleaguesByDepartmentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
693
|
+
/**
|
|
694
|
+
* Gets the persons working in a specific department in the same company as the logged on user. Departments can be retrieved with the PhoneList.DepartmentList service.
|
|
695
|
+
* @param departmentId - The department id.
|
|
696
|
+
* @returns PersonList with colleagues.
|
|
697
|
+
*/
|
|
698
|
+
getColleaguesByDepartmentAsync(departmentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
699
|
+
private _getColleaguesBySourceAsync;
|
|
700
|
+
/**
|
|
701
|
+
* Gets the persons working in the same company as the logged on user. The list of person could be retrieved from the history list, the diary view list, or from all sources.
|
|
702
|
+
* @param request - SourceType, Count
|
|
703
|
+
* @returns Colleagues.
|
|
704
|
+
*/
|
|
705
|
+
getColleaguesBySourceAsync(request: carriers.Person_GetColleaguesBySourceRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
706
|
+
/**
|
|
707
|
+
* Gets the persons working in the same company as the logged on user. The list of person could be retrieved from the history list, the diary view list, or from all sources.
|
|
708
|
+
* @param sourceType - The “source” the colleagues should be retrieved from. <see cref="AssociateSourceType"/> for more information.
|
|
709
|
+
* @param count -
|
|
710
|
+
* @returns Colleagues.
|
|
711
|
+
*/
|
|
712
|
+
getColleaguesBySourceAsync(sourceType: enums.AssociateSourceType, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person[]>;
|
|
713
|
+
private _getMyOwnerAsync;
|
|
714
|
+
/**
|
|
715
|
+
* Get the owner of the logged in person.
|
|
716
|
+
* @returns Person
|
|
717
|
+
*/
|
|
718
|
+
getMyOwnerAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
719
|
+
private _getOwnerOnPersonIdAsync;
|
|
720
|
+
/**
|
|
721
|
+
* Get the owner of the person by id.
|
|
722
|
+
* @param request - PersonId
|
|
723
|
+
* @returns Person
|
|
724
|
+
*/
|
|
725
|
+
getOwnerOnPersonIdAsync(request: carriers.Person_GetOwnerOnPersonIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
726
|
+
/**
|
|
727
|
+
* Get the owner of the person by id.
|
|
728
|
+
* @param personId -
|
|
729
|
+
* @returns Person
|
|
730
|
+
*/
|
|
731
|
+
getOwnerOnPersonIdAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Person>;
|
|
732
|
+
private _changePersonRankAsync;
|
|
733
|
+
/**
|
|
734
|
+
* Move one person up or down in the ranking in the Person Archive, if possible.<para/>The person record that has rank = 1 is the primary contact for a company, and is the one used in situations where no person has been explicitly chosen (such as in selections).<para/>This method corresponds to the move up/move down functions in the person archive in the contact panel.<para/>This method always affects two records.
|
|
735
|
+
* @param request - PersonId, MoveUp
|
|
736
|
+
* @returns If movement occurred, the return value will be the ID of the OTHER person that got moved. A GUI should switch the positions of the original person ID and this return value.<para/>If no movement occurred, for any reason, 0 is returned.
|
|
737
|
+
*/
|
|
738
|
+
changePersonRankAsync(request: carriers.Person_ChangePersonRankRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
739
|
+
/**
|
|
740
|
+
* Move one person up or down in the ranking in the Person Archive, if possible.<para/>The person record that has rank = 1 is the primary contact for a company, and is the one used in situations where no person has been explicitly chosen (such as in selections).<para/>This method corresponds to the move up/move down functions in the person archive in the contact panel.<para/>This method always affects two records.
|
|
741
|
+
* @param personId - Primary key of person record to move up or down. You must have write access both to this record AND to whatever record is adjacent in the direction you want to move.
|
|
742
|
+
* @param moveUp - If true, the given person is moved to an earlier rank (lower numeric rank value, down to a limit of 1; up in the GUI if sorted by ascending rank). If false, movement is to later priority (higher numeric rank value).
|
|
743
|
+
* @returns If movement occurred, the return value will be the ID of the OTHER person that got moved. A GUI should switch the positions of the original person ID and this return value.<para/>If no movement occurred, for any reason, 0 is returned.
|
|
744
|
+
*/
|
|
745
|
+
changePersonRankAsync(personId: number, moveUp: boolean, webapi_options?: base.WebApiRequestOptions): Promise<number>;
|
|
746
|
+
private _setPersonRankAsync;
|
|
747
|
+
/**
|
|
748
|
+
* Directly set the rank field of a person record, adjusting all other person records under the same contact as needed.<para/>This call may affect multiple records, potentially all person records belonging to one contact.<para/>You must have write access for to affected records for this method to succeed.
|
|
749
|
+
* @param request - PersonId, DesiredRank
|
|
750
|
+
* @returns If movement occurred, or the person already had exactly the desired rank value, then the return value will be true. If movement did not occur, for any other reason, the return value is false.
|
|
751
|
+
*/
|
|
752
|
+
setPersonRankAsync(request: carriers.Person_SetPersonRankRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
753
|
+
/**
|
|
754
|
+
* Directly set the rank field of a person record, adjusting all other person records under the same contact as needed.<para/>This call may affect multiple records, potentially all person records belonging to one contact.<para/>You must have write access for to affected records for this method to succeed.
|
|
755
|
+
* @param personId - Id of person to change
|
|
756
|
+
* @param desiredRank - Desired rank to set, legal values are from 1 to the number of person records on this contact. Out of range values will be moved to the closest valid value and processed.
|
|
757
|
+
* @returns If movement occurred, or the person already had exactly the desired rank value, then the return value will be true. If movement did not occur, for any other reason, the return value is false.
|
|
758
|
+
*/
|
|
759
|
+
setPersonRankAsync(personId: number, desiredRank: number, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
760
|
+
private _normalizeRanksAsync;
|
|
761
|
+
/**
|
|
762
|
+
* Nomralize the ranks for all persons that belong to a contact. This means that the persons will be sorted according to their current rank values, and the ranks will be made monotonically increasing from 1.
|
|
763
|
+
* @param request - ContactId
|
|
764
|
+
* @returns The reutrn value is true if the operation suceeded, either because all persons were already normalized, or because normalization was done. It is false if Sentry blocks any required changes.
|
|
765
|
+
*/
|
|
766
|
+
normalizeRanksAsync(request: carriers.Person_NormalizeRanksRequest, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
767
|
+
/**
|
|
768
|
+
* Nomralize the ranks for all persons that belong to a contact. This means that the persons will be sorted according to their current rank values, and the ranks will be made monotonically increasing from 1.
|
|
769
|
+
* @param contactId - Id of contact whose persons are to be rank normalized
|
|
770
|
+
* @returns The reutrn value is true if the operation suceeded, either because all persons were already normalized, or because normalization was done. It is false if Sentry blocks any required changes.
|
|
771
|
+
*/
|
|
772
|
+
normalizeRanksAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<boolean>;
|
|
773
|
+
}
|
|
774
|
+
//# sourceMappingURL=PersonAgent.d.ts.map
|