@superoffice/webapi 11.5.755 → 11.7.727
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/__tests__/AppointmentTzTest.ts +7 -6
- package/__tests__/AxiosNockTest.ts +1 -1
- package/__tests__/ContactRestTest.ts +1 -1
- package/__tests__/ContactTest.ts +1 -1
- package/__tests__/DocumentTest.ts +1 -1
- package/__tests__/PersonTest.ts +1 -1
- package/__tests__/PersonTzTest.ts +1 -1
- package/__tests__/ResponseCallbackTest.ts +23 -0
- package/__tests__/WebapiTest.ts +1 -1
- package/__tests__/WebhookTest.ts +1 -1
- package/dist/cjs/AIAgent.d.ts +95 -3
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +274 -33
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/AppointmentAgent.d.ts +3 -3
- package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
- package/dist/cjs/AppointmentAgent.js +118 -118
- package/dist/cjs/AppointmentAgent.js.map +1 -1
- package/dist/cjs/AppointmentRestApi.d.ts +2 -2
- package/dist/cjs/AppointmentRestApi.d.ts.map +1 -1
- package/dist/cjs/AppointmentRestApi.js +9 -9
- package/dist/cjs/AppointmentRestApi.js.map +1 -1
- package/dist/cjs/ArchiveAgent.d.ts +2 -2
- package/dist/cjs/ArchiveAgent.d.ts.map +1 -1
- package/dist/cjs/ArchiveAgent.js +34 -34
- package/dist/cjs/ArchiveAgent.js.map +1 -1
- package/dist/cjs/AssociateAgent.d.ts +2 -2
- package/dist/cjs/AssociateAgent.d.ts.map +1 -1
- package/dist/cjs/AssociateAgent.js +11 -11
- package/dist/cjs/AssociateAgent.js.map +1 -1
- package/dist/cjs/BLOBAgent.d.ts +3 -3
- package/dist/cjs/BLOBAgent.d.ts.map +1 -1
- package/dist/cjs/BLOBAgent.js +58 -58
- package/dist/cjs/BLOBAgent.js.map +1 -1
- package/dist/cjs/BatchAgent.d.ts +3 -3
- package/dist/cjs/BatchAgent.d.ts.map +1 -1
- package/dist/cjs/BatchAgent.js +18 -18
- package/dist/cjs/BatchAgent.js.map +1 -1
- package/dist/cjs/BulkUpdateAgent.d.ts +2 -2
- package/dist/cjs/BulkUpdateAgent.d.ts.map +1 -1
- package/dist/cjs/BulkUpdateAgent.js +11 -11
- package/dist/cjs/BulkUpdateAgent.js.map +1 -1
- package/dist/cjs/CRMScriptAgent.d.ts +2 -2
- package/dist/cjs/CRMScriptAgent.d.ts.map +1 -1
- package/dist/cjs/CRMScriptAgent.js +31 -31
- package/dist/cjs/CRMScriptAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +188 -2
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Carriers.js +1 -1
- package/dist/cjs/Carriers.js.map +1 -1
- package/dist/cjs/ChatAgent.d.ts +2 -2
- package/dist/cjs/ChatAgent.d.ts.map +1 -1
- package/dist/cjs/ChatAgent.js +34 -34
- package/dist/cjs/ChatAgent.js.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +3 -3
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +56 -56
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/ContactAgent.d.ts +3 -3
- package/dist/cjs/ContactAgent.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.js +39 -39
- package/dist/cjs/ContactAgent.js.map +1 -1
- package/dist/cjs/ContactRestApi.d.ts +2 -2
- package/dist/cjs/ContactRestApi.d.ts.map +1 -1
- package/dist/cjs/ContactRestApi.js +9 -9
- package/dist/cjs/ContactRestApi.js.map +1 -1
- package/dist/cjs/Converters.d.ts +20 -2
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +257 -26
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomerServiceAgent.d.ts +3 -3
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +41 -41
- package/dist/cjs/CustomerServiceAgent.js.map +1 -1
- package/dist/cjs/DashAgent.d.ts +2 -2
- package/dist/cjs/DashAgent.d.ts.map +1 -1
- package/dist/cjs/DashAgent.js +43 -43
- package/dist/cjs/DashAgent.js.map +1 -1
- package/dist/cjs/DatabaseAgent.d.ts +2 -2
- package/dist/cjs/DatabaseAgent.d.ts.map +1 -1
- package/dist/cjs/DatabaseAgent.js +5 -5
- package/dist/cjs/DatabaseAgent.js.map +1 -1
- package/dist/cjs/DatabaseTableAgent.d.ts +3 -3
- package/dist/cjs/DatabaseTableAgent.d.ts.map +1 -1
- package/dist/cjs/DatabaseTableAgent.js +11 -11
- package/dist/cjs/DatabaseTableAgent.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +3 -3
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +29 -29
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/DocumentAgent.d.ts +3 -3
- package/dist/cjs/DocumentAgent.d.ts.map +1 -1
- package/dist/cjs/DocumentAgent.js +109 -109
- package/dist/cjs/DocumentAgent.js.map +1 -1
- package/dist/cjs/DocumentMigrationAgent.d.ts +2 -2
- package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -1
- package/dist/cjs/DocumentMigrationAgent.js +13 -13
- package/dist/cjs/DocumentMigrationAgent.js.map +1 -1
- package/dist/cjs/DocumentRestApi.d.ts +2 -2
- package/dist/cjs/DocumentRestApi.d.ts.map +1 -1
- package/dist/cjs/DocumentRestApi.js +9 -9
- package/dist/cjs/DocumentRestApi.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +3 -3
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +108 -108
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +80 -3
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +84 -4
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ErpSyncAgent.d.ts +3 -3
- package/dist/cjs/ErpSyncAgent.d.ts.map +1 -1
- package/dist/cjs/ErpSyncAgent.js +52 -52
- package/dist/cjs/ErpSyncAgent.js.map +1 -1
- package/dist/cjs/FavouriteAgent.d.ts +2 -2
- package/dist/cjs/FavouriteAgent.d.ts.map +1 -1
- package/dist/cjs/FavouriteAgent.js +14 -14
- package/dist/cjs/FavouriteAgent.js.map +1 -1
- package/dist/cjs/FindAgent.d.ts +2 -2
- package/dist/cjs/FindAgent.d.ts.map +1 -1
- package/dist/cjs/FindAgent.js +39 -39
- package/dist/cjs/FindAgent.js.map +1 -1
- package/dist/cjs/ForeignSystemAgent.d.ts +2 -2
- package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -1
- package/dist/cjs/ForeignSystemAgent.js +33 -33
- package/dist/cjs/ForeignSystemAgent.js.map +1 -1
- package/dist/cjs/FreeTextAgent.d.ts +3 -3
- package/dist/cjs/FreeTextAgent.d.ts.map +1 -1
- package/dist/cjs/FreeTextAgent.js +9 -9
- package/dist/cjs/FreeTextAgent.js.map +1 -1
- package/dist/cjs/ImportAgent.d.ts +3 -3
- package/dist/cjs/ImportAgent.d.ts.map +1 -1
- package/dist/cjs/ImportAgent.js +7 -7
- package/dist/cjs/ImportAgent.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +2 -2
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +25 -25
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +61 -3
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +432 -303
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MDOAgent.d.ts +2 -2
- package/dist/cjs/MDOAgent.d.ts.map +1 -1
- package/dist/cjs/MDOAgent.js +15 -15
- package/dist/cjs/MDOAgent.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +3 -3
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +27 -27
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/MessagingAgent.d.ts +2 -2
- package/dist/cjs/MessagingAgent.d.ts.map +1 -1
- package/dist/cjs/MessagingAgent.js +9 -9
- package/dist/cjs/MessagingAgent.js.map +1 -1
- package/dist/cjs/NavigatorAgent.d.ts +2 -2
- package/dist/cjs/NavigatorAgent.d.ts.map +1 -1
- package/dist/cjs/NavigatorAgent.js +5 -5
- package/dist/cjs/NavigatorAgent.js.map +1 -1
- package/dist/cjs/NumberAllocationAgent.d.ts +2 -2
- package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -1
- package/dist/cjs/NumberAllocationAgent.js +10 -10
- package/dist/cjs/NumberAllocationAgent.js.map +1 -1
- package/dist/cjs/PersonAgent.d.ts +3 -3
- package/dist/cjs/PersonAgent.d.ts.map +1 -1
- package/dist/cjs/PersonAgent.js +69 -69
- package/dist/cjs/PersonAgent.js.map +1 -1
- package/dist/cjs/PersonRestApi.d.ts +2 -2
- package/dist/cjs/PersonRestApi.d.ts.map +1 -1
- package/dist/cjs/PersonRestApi.js +9 -9
- package/dist/cjs/PersonRestApi.js.map +1 -1
- package/dist/cjs/PhoneListAgent.d.ts +2 -2
- package/dist/cjs/PhoneListAgent.d.ts.map +1 -1
- package/dist/cjs/PhoneListAgent.js +11 -11
- package/dist/cjs/PhoneListAgent.js.map +1 -1
- package/dist/cjs/PocketAgent.d.ts +3 -3
- package/dist/cjs/PocketAgent.d.ts.map +1 -1
- package/dist/cjs/PocketAgent.js +16 -16
- package/dist/cjs/PocketAgent.js.map +1 -1
- package/dist/cjs/PreferenceAgent.d.ts +3 -3
- package/dist/cjs/PreferenceAgent.d.ts.map +1 -1
- package/dist/cjs/PreferenceAgent.js +42 -42
- package/dist/cjs/PreferenceAgent.js.map +1 -1
- package/dist/cjs/PreviewsAgent.d.ts +2 -2
- package/dist/cjs/PreviewsAgent.d.ts.map +1 -1
- package/dist/cjs/PreviewsAgent.js +3 -3
- package/dist/cjs/PreviewsAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +2 -2
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +58 -58
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/ProjectRestApi.d.ts +2 -2
- package/dist/cjs/ProjectRestApi.d.ts.map +1 -1
- package/dist/cjs/ProjectRestApi.js +9 -9
- package/dist/cjs/ProjectRestApi.js.map +1 -1
- package/dist/cjs/QuoteAgent.d.ts +3 -3
- package/dist/cjs/QuoteAgent.d.ts.map +1 -1
- package/dist/cjs/QuoteAgent.js +101 -101
- package/dist/cjs/QuoteAgent.js.map +1 -1
- package/dist/cjs/RelationAgent.d.ts +2 -2
- package/dist/cjs/RelationAgent.d.ts.map +1 -1
- package/dist/cjs/RelationAgent.js +7 -7
- package/dist/cjs/RelationAgent.js.map +1 -1
- package/dist/cjs/ReportAgent.d.ts +2 -2
- package/dist/cjs/ReportAgent.d.ts.map +1 -1
- package/dist/cjs/ReportAgent.js +7 -7
- package/dist/cjs/ReportAgent.js.map +1 -1
- package/dist/cjs/ResourceAgent.d.ts +2 -2
- package/dist/cjs/ResourceAgent.d.ts.map +1 -1
- package/dist/cjs/ResourceAgent.js +8 -8
- package/dist/cjs/ResourceAgent.js.map +1 -1
- package/dist/cjs/SaintAgent.d.ts +2 -2
- package/dist/cjs/SaintAgent.d.ts.map +1 -1
- package/dist/cjs/SaintAgent.js +17 -17
- package/dist/cjs/SaintAgent.js.map +1 -1
- package/dist/cjs/SaleAgent.d.ts +3 -3
- package/dist/cjs/SaleAgent.d.ts.map +1 -1
- package/dist/cjs/SaleAgent.js +45 -45
- package/dist/cjs/SaleAgent.js.map +1 -1
- package/dist/cjs/SaleRestApi.d.ts +2 -2
- package/dist/cjs/SaleRestApi.d.ts.map +1 -1
- package/dist/cjs/SaleRestApi.js +9 -9
- package/dist/cjs/SaleRestApi.js.map +1 -1
- package/dist/cjs/SelectionAgent.d.ts +3 -3
- package/dist/cjs/SelectionAgent.d.ts.map +1 -1
- package/dist/cjs/SelectionAgent.js +60 -60
- package/dist/cjs/SelectionAgent.js.map +1 -1
- package/dist/cjs/SentryAgent.d.ts +2 -2
- package/dist/cjs/SentryAgent.d.ts.map +1 -1
- package/dist/cjs/SentryAgent.js +11 -11
- package/dist/cjs/SentryAgent.js.map +1 -1
- package/dist/cjs/TargetsAgent.d.ts +3 -3
- package/dist/cjs/TargetsAgent.d.ts.map +1 -1
- package/dist/cjs/TargetsAgent.js +28 -28
- package/dist/cjs/TargetsAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +3 -3
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +75 -75
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/TimeZoneAgent.d.ts +2 -2
- package/dist/cjs/TimeZoneAgent.d.ts.map +1 -1
- package/dist/cjs/TimeZoneAgent.js +15 -15
- package/dist/cjs/TimeZoneAgent.js.map +1 -1
- package/dist/cjs/TooltipsAgent.d.ts +2 -2
- package/dist/cjs/TooltipsAgent.d.ts.map +1 -1
- package/dist/cjs/TooltipsAgent.js +3 -3
- package/dist/cjs/TooltipsAgent.js.map +1 -1
- package/dist/cjs/UserAgent.d.ts +3 -3
- package/dist/cjs/UserAgent.d.ts.map +1 -1
- package/dist/cjs/UserAgent.js +99 -99
- package/dist/cjs/UserAgent.js.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +3 -3
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.js +36 -36
- package/dist/cjs/UserDefinedFieldInfoAgent.js.map +1 -1
- package/dist/cjs/ViewStateAgent.d.ts +2 -2
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +19 -19
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +67 -67
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +192 -192
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/cjs/WebApiBase.d.ts +6 -3
- package/dist/cjs/WebApiBase.d.ts.map +1 -1
- package/dist/cjs/WebApiBase.js +32 -31
- package/dist/cjs/WebApiBase.js.map +1 -1
- package/dist/cjs/WebhookAgent.d.ts +3 -3
- package/dist/cjs/WebhookAgent.d.ts.map +1 -1
- package/dist/cjs/WebhookAgent.js +11 -11
- package/dist/cjs/WebhookAgent.js.map +1 -1
- package/dist/cjs/WorkflowAgent.d.ts +3 -3
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
- package/dist/cjs/WorkflowAgent.js +37 -37
- package/dist/cjs/WorkflowAgent.js.map +1 -1
- package/dist/cjs/package.json +3 -1
- package/dist/esm/AIAgent.d.ts +95 -3
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +273 -32
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/AppointmentAgent.d.ts +3 -3
- package/dist/esm/AppointmentAgent.d.ts.map +1 -1
- package/dist/esm/AppointmentAgent.js +117 -117
- package/dist/esm/AppointmentAgent.js.map +1 -1
- package/dist/esm/AppointmentRestApi.d.ts +2 -2
- package/dist/esm/AppointmentRestApi.d.ts.map +1 -1
- package/dist/esm/AppointmentRestApi.js +9 -9
- package/dist/esm/AppointmentRestApi.js.map +1 -1
- package/dist/esm/ArchiveAgent.d.ts +2 -2
- package/dist/esm/ArchiveAgent.d.ts.map +1 -1
- package/dist/esm/ArchiveAgent.js +34 -34
- package/dist/esm/ArchiveAgent.js.map +1 -1
- package/dist/esm/AssociateAgent.d.ts +2 -2
- package/dist/esm/AssociateAgent.d.ts.map +1 -1
- package/dist/esm/AssociateAgent.js +11 -11
- package/dist/esm/AssociateAgent.js.map +1 -1
- package/dist/esm/BLOBAgent.d.ts +3 -3
- package/dist/esm/BLOBAgent.d.ts.map +1 -1
- package/dist/esm/BLOBAgent.js +38 -38
- package/dist/esm/BLOBAgent.js.map +1 -1
- package/dist/esm/BatchAgent.d.ts +3 -3
- package/dist/esm/BatchAgent.d.ts.map +1 -1
- package/dist/esm/BatchAgent.js +18 -18
- package/dist/esm/BatchAgent.js.map +1 -1
- package/dist/esm/BulkUpdateAgent.d.ts +2 -2
- package/dist/esm/BulkUpdateAgent.d.ts.map +1 -1
- package/dist/esm/BulkUpdateAgent.js +11 -11
- package/dist/esm/BulkUpdateAgent.js.map +1 -1
- package/dist/esm/CRMScriptAgent.d.ts +2 -2
- package/dist/esm/CRMScriptAgent.d.ts.map +1 -1
- package/dist/esm/CRMScriptAgent.js +31 -31
- package/dist/esm/CRMScriptAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +188 -2
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Carriers.js +1 -1
- package/dist/esm/Carriers.js.map +1 -1
- package/dist/esm/ChatAgent.d.ts +2 -2
- package/dist/esm/ChatAgent.d.ts.map +1 -1
- package/dist/esm/ChatAgent.js +34 -34
- package/dist/esm/ChatAgent.js.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +3 -3
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +56 -56
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/ContactAgent.d.ts +3 -3
- package/dist/esm/ContactAgent.d.ts.map +1 -1
- package/dist/esm/ContactAgent.js +39 -39
- package/dist/esm/ContactAgent.js.map +1 -1
- package/dist/esm/ContactRestApi.d.ts +2 -2
- package/dist/esm/ContactRestApi.d.ts.map +1 -1
- package/dist/esm/ContactRestApi.js +9 -9
- package/dist/esm/ContactRestApi.js.map +1 -1
- package/dist/esm/Converters.d.ts +20 -2
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +217 -4
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomerServiceAgent.d.ts +3 -3
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +41 -41
- package/dist/esm/CustomerServiceAgent.js.map +1 -1
- package/dist/esm/DashAgent.d.ts +2 -2
- package/dist/esm/DashAgent.d.ts.map +1 -1
- package/dist/esm/DashAgent.js +43 -43
- package/dist/esm/DashAgent.js.map +1 -1
- package/dist/esm/DatabaseAgent.d.ts +2 -2
- package/dist/esm/DatabaseAgent.d.ts.map +1 -1
- package/dist/esm/DatabaseAgent.js +5 -5
- package/dist/esm/DatabaseAgent.js.map +1 -1
- package/dist/esm/DatabaseTableAgent.d.ts +3 -3
- package/dist/esm/DatabaseTableAgent.d.ts.map +1 -1
- package/dist/esm/DatabaseTableAgent.js +11 -11
- package/dist/esm/DatabaseTableAgent.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +3 -3
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +29 -29
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/DocumentAgent.d.ts +3 -3
- package/dist/esm/DocumentAgent.d.ts.map +1 -1
- package/dist/esm/DocumentAgent.js +90 -90
- package/dist/esm/DocumentAgent.js.map +1 -1
- package/dist/esm/DocumentMigrationAgent.d.ts +2 -2
- package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -1
- package/dist/esm/DocumentMigrationAgent.js +13 -13
- package/dist/esm/DocumentMigrationAgent.js.map +1 -1
- package/dist/esm/DocumentRestApi.d.ts +2 -2
- package/dist/esm/DocumentRestApi.d.ts.map +1 -1
- package/dist/esm/DocumentRestApi.js +9 -9
- package/dist/esm/DocumentRestApi.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +3 -3
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +106 -106
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +80 -3
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +81 -1
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ErpSyncAgent.d.ts +3 -3
- package/dist/esm/ErpSyncAgent.d.ts.map +1 -1
- package/dist/esm/ErpSyncAgent.js +52 -52
- package/dist/esm/ErpSyncAgent.js.map +1 -1
- package/dist/esm/FavouriteAgent.d.ts +2 -2
- package/dist/esm/FavouriteAgent.d.ts.map +1 -1
- package/dist/esm/FavouriteAgent.js +14 -14
- package/dist/esm/FavouriteAgent.js.map +1 -1
- package/dist/esm/FindAgent.d.ts +2 -2
- package/dist/esm/FindAgent.d.ts.map +1 -1
- package/dist/esm/FindAgent.js +39 -39
- package/dist/esm/FindAgent.js.map +1 -1
- package/dist/esm/ForeignSystemAgent.d.ts +2 -2
- package/dist/esm/ForeignSystemAgent.d.ts.map +1 -1
- package/dist/esm/ForeignSystemAgent.js +33 -33
- package/dist/esm/ForeignSystemAgent.js.map +1 -1
- package/dist/esm/FreeTextAgent.d.ts +3 -3
- package/dist/esm/FreeTextAgent.d.ts.map +1 -1
- package/dist/esm/FreeTextAgent.js +9 -9
- package/dist/esm/FreeTextAgent.js.map +1 -1
- package/dist/esm/ImportAgent.d.ts +3 -3
- package/dist/esm/ImportAgent.d.ts.map +1 -1
- package/dist/esm/ImportAgent.js +7 -7
- package/dist/esm/ImportAgent.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +2 -2
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +25 -25
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +61 -3
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +429 -300
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MDOAgent.d.ts +2 -2
- package/dist/esm/MDOAgent.d.ts.map +1 -1
- package/dist/esm/MDOAgent.js +15 -15
- package/dist/esm/MDOAgent.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +3 -3
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +27 -27
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/MessagingAgent.d.ts +2 -2
- package/dist/esm/MessagingAgent.d.ts.map +1 -1
- package/dist/esm/MessagingAgent.js +9 -9
- package/dist/esm/MessagingAgent.js.map +1 -1
- package/dist/esm/NavigatorAgent.d.ts +2 -2
- package/dist/esm/NavigatorAgent.d.ts.map +1 -1
- package/dist/esm/NavigatorAgent.js +5 -5
- package/dist/esm/NavigatorAgent.js.map +1 -1
- package/dist/esm/NumberAllocationAgent.d.ts +2 -2
- package/dist/esm/NumberAllocationAgent.d.ts.map +1 -1
- package/dist/esm/NumberAllocationAgent.js +10 -10
- package/dist/esm/NumberAllocationAgent.js.map +1 -1
- package/dist/esm/PersonAgent.d.ts +3 -3
- package/dist/esm/PersonAgent.d.ts.map +1 -1
- package/dist/esm/PersonAgent.js +67 -67
- package/dist/esm/PersonAgent.js.map +1 -1
- package/dist/esm/PersonRestApi.d.ts +2 -2
- package/dist/esm/PersonRestApi.d.ts.map +1 -1
- package/dist/esm/PersonRestApi.js +9 -9
- package/dist/esm/PersonRestApi.js.map +1 -1
- package/dist/esm/PhoneListAgent.d.ts +2 -2
- package/dist/esm/PhoneListAgent.d.ts.map +1 -1
- package/dist/esm/PhoneListAgent.js +11 -11
- package/dist/esm/PhoneListAgent.js.map +1 -1
- package/dist/esm/PocketAgent.d.ts +3 -3
- package/dist/esm/PocketAgent.d.ts.map +1 -1
- package/dist/esm/PocketAgent.js +16 -16
- package/dist/esm/PocketAgent.js.map +1 -1
- package/dist/esm/PreferenceAgent.d.ts +3 -3
- package/dist/esm/PreferenceAgent.d.ts.map +1 -1
- package/dist/esm/PreferenceAgent.js +42 -42
- package/dist/esm/PreferenceAgent.js.map +1 -1
- package/dist/esm/PreviewsAgent.d.ts +2 -2
- package/dist/esm/PreviewsAgent.d.ts.map +1 -1
- package/dist/esm/PreviewsAgent.js +3 -3
- package/dist/esm/PreviewsAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +2 -2
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +56 -56
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/ProjectRestApi.d.ts +2 -2
- package/dist/esm/ProjectRestApi.d.ts.map +1 -1
- package/dist/esm/ProjectRestApi.js +9 -9
- package/dist/esm/ProjectRestApi.js.map +1 -1
- package/dist/esm/QuoteAgent.d.ts +3 -3
- package/dist/esm/QuoteAgent.d.ts.map +1 -1
- package/dist/esm/QuoteAgent.js +101 -101
- package/dist/esm/QuoteAgent.js.map +1 -1
- package/dist/esm/RelationAgent.d.ts +2 -2
- package/dist/esm/RelationAgent.d.ts.map +1 -1
- package/dist/esm/RelationAgent.js +7 -7
- package/dist/esm/RelationAgent.js.map +1 -1
- package/dist/esm/ReportAgent.d.ts +2 -2
- package/dist/esm/ReportAgent.d.ts.map +1 -1
- package/dist/esm/ReportAgent.js +7 -7
- package/dist/esm/ReportAgent.js.map +1 -1
- package/dist/esm/ResourceAgent.d.ts +2 -2
- package/dist/esm/ResourceAgent.d.ts.map +1 -1
- package/dist/esm/ResourceAgent.js +8 -8
- package/dist/esm/ResourceAgent.js.map +1 -1
- package/dist/esm/SaintAgent.d.ts +2 -2
- package/dist/esm/SaintAgent.d.ts.map +1 -1
- package/dist/esm/SaintAgent.js +17 -17
- package/dist/esm/SaintAgent.js.map +1 -1
- package/dist/esm/SaleAgent.d.ts +3 -3
- package/dist/esm/SaleAgent.d.ts.map +1 -1
- package/dist/esm/SaleAgent.js +45 -45
- package/dist/esm/SaleAgent.js.map +1 -1
- package/dist/esm/SaleRestApi.d.ts +2 -2
- package/dist/esm/SaleRestApi.d.ts.map +1 -1
- package/dist/esm/SaleRestApi.js +9 -9
- package/dist/esm/SaleRestApi.js.map +1 -1
- package/dist/esm/SelectionAgent.d.ts +3 -3
- package/dist/esm/SelectionAgent.d.ts.map +1 -1
- package/dist/esm/SelectionAgent.js +60 -60
- package/dist/esm/SelectionAgent.js.map +1 -1
- package/dist/esm/SentryAgent.d.ts +2 -2
- package/dist/esm/SentryAgent.d.ts.map +1 -1
- package/dist/esm/SentryAgent.js +11 -11
- package/dist/esm/SentryAgent.js.map +1 -1
- package/dist/esm/TargetsAgent.d.ts +3 -3
- package/dist/esm/TargetsAgent.d.ts.map +1 -1
- package/dist/esm/TargetsAgent.js +28 -28
- package/dist/esm/TargetsAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +3 -3
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +72 -72
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/TimeZoneAgent.d.ts +2 -2
- package/dist/esm/TimeZoneAgent.d.ts.map +1 -1
- package/dist/esm/TimeZoneAgent.js +15 -15
- package/dist/esm/TimeZoneAgent.js.map +1 -1
- package/dist/esm/TooltipsAgent.d.ts +2 -2
- package/dist/esm/TooltipsAgent.d.ts.map +1 -1
- package/dist/esm/TooltipsAgent.js +3 -3
- package/dist/esm/TooltipsAgent.js.map +1 -1
- package/dist/esm/UserAgent.d.ts +3 -3
- package/dist/esm/UserAgent.d.ts.map +1 -1
- package/dist/esm/UserAgent.js +99 -99
- package/dist/esm/UserAgent.js.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts +3 -3
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.js +36 -36
- package/dist/esm/UserDefinedFieldInfoAgent.js.map +1 -1
- package/dist/esm/ViewStateAgent.d.ts +2 -2
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +19 -19
- package/dist/esm/ViewStateAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +67 -67
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +68 -68
- package/dist/esm/WebApi.js.map +1 -1
- package/dist/esm/WebApiBase.d.ts +6 -3
- package/dist/esm/WebApiBase.d.ts.map +1 -1
- package/dist/esm/WebApiBase.js +7 -6
- package/dist/esm/WebApiBase.js.map +1 -1
- package/dist/esm/WebhookAgent.d.ts +3 -3
- package/dist/esm/WebhookAgent.d.ts.map +1 -1
- package/dist/esm/WebhookAgent.js +11 -11
- package/dist/esm/WebhookAgent.js.map +1 -1
- package/dist/esm/WorkflowAgent.d.ts +3 -3
- package/dist/esm/WorkflowAgent.d.ts.map +1 -1
- package/dist/esm/WorkflowAgent.js +37 -37
- package/dist/esm/WorkflowAgent.js.map +1 -1
- package/dist/esm/package.json +3 -1
- package/package.json +9 -7
- package/scripts/postbuild.js +22 -0
- package/scripts/setVersion.js +2 -4
- package/src/AIAgent.ts +392 -91
- package/src/AppointmentAgent.ts +318 -318
- package/src/AppointmentRestApi.ts +17 -17
- package/src/ArchiveAgent.ts +96 -96
- package/src/AssociateAgent.ts +29 -29
- package/src/BLOBAgent.ts +128 -128
- package/src/BatchAgent.ts +54 -54
- package/src/BulkUpdateAgent.ts +31 -31
- package/src/CRMScriptAgent.ts +80 -80
- package/src/Carriers.ts +285 -3
- package/src/ChatAgent.ts +78 -78
- package/src/ConfigurationAgent.ts +115 -115
- package/src/ContactAgent.ts +96 -96
- package/src/ContactRestApi.ts +23 -23
- package/src/Converters.ts +269 -5
- package/src/CustomerServiceAgent.ts +97 -97
- package/src/DashAgent.ts +93 -93
- package/src/DatabaseAgent.ts +11 -11
- package/src/DatabaseTableAgent.ts +33 -33
- package/src/DiagnosticsAgent.ts +63 -63
- package/src/DocumentAgent.ts +271 -271
- package/src/DocumentMigrationAgent.ts +32 -32
- package/src/DocumentRestApi.ts +34 -34
- package/src/EMailAgent.ts +282 -282
- package/src/Enums.ts +84 -1
- package/src/ErpSyncAgent.ts +142 -142
- package/src/FavouriteAgent.ts +42 -42
- package/src/FindAgent.ts +117 -117
- package/src/ForeignSystemAgent.ts +91 -91
- package/src/FreeTextAgent.ts +25 -25
- package/src/ImportAgent.ts +21 -21
- package/src/LicenseAgent.ts +69 -69
- package/src/ListAgent.ts +819 -609
- package/src/MDOAgent.ts +43 -43
- package/src/MarketingAgent.ts +53 -53
- package/src/MessagingAgent.ts +26 -26
- package/src/NavigatorAgent.ts +14 -14
- package/src/NumberAllocationAgent.ts +21 -21
- package/src/PersonAgent.ts +174 -174
- package/src/PersonRestApi.ts +25 -25
- package/src/PhoneListAgent.ts +29 -29
- package/src/PocketAgent.ts +46 -46
- package/src/PreferenceAgent.ts +104 -104
- package/src/PreviewsAgent.ts +12 -12
- package/src/ProjectAgent.ts +134 -134
- package/src/ProjectRestApi.ts +24 -24
- package/src/QuoteAgent.ts +271 -271
- package/src/RelationAgent.ts +18 -18
- package/src/ReportAgent.ts +14 -14
- package/src/ResourceAgent.ts +24 -24
- package/src/SaintAgent.ts +35 -35
- package/src/SaleAgent.ts +114 -114
- package/src/SaleRestApi.ts +21 -21
- package/src/SelectionAgent.ts +171 -171
- package/src/SentryAgent.ts +29 -29
- package/src/TargetsAgent.ts +62 -62
- package/src/TicketAgent.ts +198 -198
- package/src/TimeZoneAgent.ts +29 -29
- package/src/TooltipsAgent.ts +12 -12
- package/src/UserAgent.ts +261 -261
- package/src/UserDefinedFieldInfoAgent.ts +97 -97
- package/src/ViewStateAgent.ts +50 -50
- package/src/WebApi.ts +74 -74
- package/src/WebApiBase.ts +9 -6
- package/src/WebhookAgent.ts +27 -27
- package/src/WorkflowAgent.ts +75 -75
- package/tsconfig.jest.json +2 -6
- package/tsconfig.json +0 -1
package/src/AIAgent.ts
CHANGED
|
@@ -17,16 +17,22 @@
|
|
|
17
17
|
|
|
18
18
|
import { AxiosRequestConfig } from 'axios';
|
|
19
19
|
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
-
import * as enums from './Enums
|
|
21
|
-
import * as base from './WebApiBase
|
|
22
|
-
import * as carriers from './Carriers
|
|
23
|
-
import * as converters from './Converters
|
|
24
|
-
import { FromBase64ToString, ToBase64 } from './Base64
|
|
20
|
+
import * as enums from './Enums';
|
|
21
|
+
import * as base from './WebApiBase';
|
|
22
|
+
import * as carriers from './Carriers';
|
|
23
|
+
import * as converters from './Converters';
|
|
24
|
+
import { FromBase64ToString, ToBase64 } from './Base64';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* AI services, such as Translation, Statistics, Sentiment analysis, backed by calls to Public Cloud providers
|
|
28
28
|
*/
|
|
29
29
|
export interface IAIAgent {
|
|
30
|
+
createDefaultCopilotDataSourceEntityAsync(): Promise< carriers.CopilotDataSourceEntity >;
|
|
31
|
+
saveCopilotDataSourceEntityAsync(entity: carriers.CopilotDataSourceEntity) : Promise< carriers.CopilotDataSourceEntity >;
|
|
32
|
+
deleteCopilotDataSourceEntityAsync(CopilotDataSourceEntityId: number) : Promise<void>;
|
|
33
|
+
createDefaultCopilotEntityAsync(): Promise< carriers.CopilotEntity >;
|
|
34
|
+
saveCopilotEntityAsync(entity: carriers.CopilotEntity) : Promise< carriers.CopilotEntity >;
|
|
35
|
+
deleteCopilotEntityAsync(CopilotEntityId: number) : Promise<void>;
|
|
30
36
|
summarizeTextAsync(request: carriers.AI_SummarizeTextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
31
37
|
summarizeTextAsync(text: string, percentSmaller: number, isoLangCode: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
32
38
|
expandTextAsync(request: carriers.AI_ExpandTextRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
@@ -52,6 +58,12 @@ export interface IAIAgent {
|
|
|
52
58
|
getChatbotTurnsAsync(chatId: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ChatbotTurn[] >;
|
|
53
59
|
clearChatbotTurnsAsync(request: carriers.AI_ClearChatbotTurnsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
54
60
|
clearChatbotTurnsAsync(chatId: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
61
|
+
getCopilotDataSourceEntityAsync(copilotDataSourceEntityId: number) : Promise< carriers.CopilotDataSourceEntity >;
|
|
62
|
+
getCopilotEntityAsync(copilotEntityId: number) : Promise< carriers.CopilotEntity >;
|
|
63
|
+
getFormDesignFromImageAsync(request: carriers.AI_GetFormDesignFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
64
|
+
getFormDesignFromImageAsync(image: ArrayBuffer|string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
65
|
+
getFormDesignFromUrlAsync(request: carriers.AI_GetFormDesignFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
66
|
+
getFormDesignFromUrlAsync(url: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
55
67
|
detectLanguageAsync(request: carriers.AI_DetectLanguageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
56
68
|
detectLanguageAsync(text: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
57
69
|
detectSentimentAsync(request: carriers.AI_DetectSentimentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Sentiment >;
|
|
@@ -100,9 +112,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
100
112
|
constructor(options: base.WebApiOptions);
|
|
101
113
|
|
|
102
114
|
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
103
|
-
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
104
|
-
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
105
|
-
cultureCode?: string,
|
|
115
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
116
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
117
|
+
cultureCode?: string,
|
|
106
118
|
) {
|
|
107
119
|
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
108
120
|
options.basePath = "v1/Agents/AI/";
|
|
@@ -111,6 +123,140 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
111
123
|
|
|
112
124
|
|
|
113
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Set default values into a new CopilotDataSourceEntity.
|
|
128
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
129
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
130
|
+
* @returns A blank entity.
|
|
131
|
+
*/
|
|
132
|
+
public async createDefaultCopilotDataSourceEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.CopilotDataSourceEntity > {
|
|
133
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
134
|
+
base.WebApiBase.SetPending(options);
|
|
135
|
+
return new Promise< carriers.CopilotDataSourceEntity >(async (resolve, reject) => {
|
|
136
|
+
try {
|
|
137
|
+
const response = await this._axios.post("CreateDefaultCopilotDataSourceEntity", null, config);
|
|
138
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
139
|
+
const res : carriers.CopilotDataSourceEntity = converters.Create_CopilotDataSourceEntity_From( response.data );
|
|
140
|
+
resolve(res);
|
|
141
|
+
}
|
|
142
|
+
catch( err ) {
|
|
143
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
144
|
+
reject(err);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Replace the existing CopilotDataSourceEntity or creates a new CopilotDataSourceEntity if the id parameter is empty
|
|
150
|
+
* @param entity - The CopilotDataSourceEntity to be saved.
|
|
151
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
152
|
+
* @returns New or updated CopilotDataSourceEntity
|
|
153
|
+
*/
|
|
154
|
+
public async saveCopilotDataSourceEntityAsync(entity: carriers.CopilotDataSourceEntity, options?:base.WebApiRequestOptions) : Promise< carriers.CopilotDataSourceEntity > {
|
|
155
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
156
|
+
base.WebApiBase.SetPending(options);
|
|
157
|
+
return new Promise< carriers.CopilotDataSourceEntity >(async (resolve, reject) => {
|
|
158
|
+
try {
|
|
159
|
+
const response = await this._axios.post("SaveCopilotDataSourceEntity", entity, config);
|
|
160
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
161
|
+
const res : carriers.CopilotDataSourceEntity = converters.Create_CopilotDataSourceEntity_From( response.data );
|
|
162
|
+
resolve(res);
|
|
163
|
+
}
|
|
164
|
+
catch( err ) {
|
|
165
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
166
|
+
reject(err);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Deletes the CopilotDataSourceEntity
|
|
173
|
+
* @param CopilotDataSourceEntityId - The id of the CopilotDataSourceEntity to be deleted.
|
|
174
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
175
|
+
*/
|
|
176
|
+
public async deleteCopilotDataSourceEntityAsync(CopilotDataSourceEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
177
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
178
|
+
base.WebApiBase.SetPending(options);
|
|
179
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
180
|
+
try {
|
|
181
|
+
const response = await this._axios.post("DeleteCopilotDataSourceEntity?CopilotDataSourceEntityId=" + CopilotDataSourceEntityId, null, config );
|
|
182
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
183
|
+
const res = response.data;
|
|
184
|
+
resolve(res);
|
|
185
|
+
}
|
|
186
|
+
catch( err ) {
|
|
187
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
188
|
+
reject(err);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Set default values into a new CopilotEntity.
|
|
195
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
196
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
197
|
+
* @returns A blank entity.
|
|
198
|
+
*/
|
|
199
|
+
public async createDefaultCopilotEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.CopilotEntity > {
|
|
200
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
201
|
+
base.WebApiBase.SetPending(options);
|
|
202
|
+
return new Promise< carriers.CopilotEntity >(async (resolve, reject) => {
|
|
203
|
+
try {
|
|
204
|
+
const response = await this._axios.post("CreateDefaultCopilotEntity", null, config);
|
|
205
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
206
|
+
const res : carriers.CopilotEntity = converters.Create_CopilotEntity_From( response.data );
|
|
207
|
+
resolve(res);
|
|
208
|
+
}
|
|
209
|
+
catch( err ) {
|
|
210
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
211
|
+
reject(err);
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Replace the existing CopilotEntity or creates a new CopilotEntity if the id parameter is empty
|
|
217
|
+
* @param entity - The CopilotEntity to be saved.
|
|
218
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
219
|
+
* @returns New or updated CopilotEntity
|
|
220
|
+
*/
|
|
221
|
+
public async saveCopilotEntityAsync(entity: carriers.CopilotEntity, options?:base.WebApiRequestOptions) : Promise< carriers.CopilotEntity > {
|
|
222
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
223
|
+
base.WebApiBase.SetPending(options);
|
|
224
|
+
return new Promise< carriers.CopilotEntity >(async (resolve, reject) => {
|
|
225
|
+
try {
|
|
226
|
+
const response = await this._axios.post("SaveCopilotEntity", entity, config);
|
|
227
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
228
|
+
const res : carriers.CopilotEntity = converters.Create_CopilotEntity_From( response.data );
|
|
229
|
+
resolve(res);
|
|
230
|
+
}
|
|
231
|
+
catch( err ) {
|
|
232
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
233
|
+
reject(err);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Deletes the CopilotEntity
|
|
240
|
+
* @param CopilotEntityId - The id of the CopilotEntity to be deleted.
|
|
241
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
242
|
+
*/
|
|
243
|
+
public async deleteCopilotEntityAsync(CopilotEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
244
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
245
|
+
base.WebApiBase.SetPending(options);
|
|
246
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
247
|
+
try {
|
|
248
|
+
const response = await this._axios.post("DeleteCopilotEntity?CopilotEntityId=" + CopilotEntityId, null, config );
|
|
249
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
250
|
+
const res = response.data;
|
|
251
|
+
resolve(res);
|
|
252
|
+
}
|
|
253
|
+
catch( err ) {
|
|
254
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
255
|
+
reject(err);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
114
260
|
private async _summarizeTextAsync(request: carriers.AI_SummarizeTextRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
115
261
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
116
262
|
base.WebApiBase.SetPending(options);
|
|
@@ -118,7 +264,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
118
264
|
try {
|
|
119
265
|
config.baseURL = this._options.baseUrl;
|
|
120
266
|
const response = await this._axios.post("SummarizeText", request , config);
|
|
121
|
-
base.WebApiBase.SetCompleted(options);
|
|
267
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
122
268
|
const res : string = response.data as string;
|
|
123
269
|
resolve(res);
|
|
124
270
|
}
|
|
@@ -158,11 +304,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
158
304
|
}
|
|
159
305
|
else
|
|
160
306
|
{
|
|
161
|
-
_request = {
|
|
307
|
+
_request = {
|
|
162
308
|
text: text as string,
|
|
163
309
|
percentSmaller: percentSmaller as number,
|
|
164
310
|
isoLangCode: isoLangCode as string,
|
|
165
|
-
};
|
|
311
|
+
};
|
|
166
312
|
_options = webapi_options;
|
|
167
313
|
}
|
|
168
314
|
return this._summarizeTextAsync( _request, _options );
|
|
@@ -176,7 +322,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
176
322
|
try {
|
|
177
323
|
config.baseURL = this._options.baseUrl;
|
|
178
324
|
const response = await this._axios.post("ExpandText", request , config);
|
|
179
|
-
base.WebApiBase.SetCompleted(options);
|
|
325
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
180
326
|
const res : string = response.data as string;
|
|
181
327
|
resolve(res);
|
|
182
328
|
}
|
|
@@ -216,11 +362,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
216
362
|
}
|
|
217
363
|
else
|
|
218
364
|
{
|
|
219
|
-
_request = {
|
|
365
|
+
_request = {
|
|
220
366
|
text: text as string,
|
|
221
367
|
percentBigger: percentBigger as number,
|
|
222
368
|
isoLangCode: isoLangCode as string,
|
|
223
|
-
};
|
|
369
|
+
};
|
|
224
370
|
_options = webapi_options;
|
|
225
371
|
}
|
|
226
372
|
return this._expandTextAsync( _request, _options );
|
|
@@ -234,7 +380,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
234
380
|
try {
|
|
235
381
|
config.baseURL = this._options.baseUrl;
|
|
236
382
|
const response = await this._axios.post("RephraseText", request , config);
|
|
237
|
-
base.WebApiBase.SetCompleted(options);
|
|
383
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
238
384
|
const res : string = response.data as string;
|
|
239
385
|
resolve(res);
|
|
240
386
|
}
|
|
@@ -274,11 +420,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
274
420
|
}
|
|
275
421
|
else
|
|
276
422
|
{
|
|
277
|
-
_request = {
|
|
423
|
+
_request = {
|
|
278
424
|
text: text as string,
|
|
279
425
|
style: style as enums.AiTextStyle,
|
|
280
426
|
isoLangCode: isoLangCode as string,
|
|
281
|
-
};
|
|
427
|
+
};
|
|
282
428
|
_options = webapi_options;
|
|
283
429
|
}
|
|
284
430
|
return this._rephraseTextAsync( _request, _options );
|
|
@@ -292,7 +438,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
292
438
|
try {
|
|
293
439
|
config.baseURL = this._options.baseUrl;
|
|
294
440
|
const response = await this._axios.post("CreateTextForAppointment", request , config);
|
|
295
|
-
base.WebApiBase.SetCompleted(options);
|
|
441
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
296
442
|
const res : string = response.data as string;
|
|
297
443
|
resolve(res);
|
|
298
444
|
}
|
|
@@ -331,10 +477,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
331
477
|
}
|
|
332
478
|
else
|
|
333
479
|
{
|
|
334
|
-
_request = {
|
|
480
|
+
_request = {
|
|
335
481
|
appointment: appointment as carriers.AppointmentEntity,
|
|
336
482
|
isoLangCode: isoLangCode as string,
|
|
337
|
-
};
|
|
483
|
+
};
|
|
338
484
|
_options = webapi_options;
|
|
339
485
|
}
|
|
340
486
|
return this._createTextForAppointmentAsync( _request, _options );
|
|
@@ -348,7 +494,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
348
494
|
try {
|
|
349
495
|
config.baseURL = this._options.baseUrl;
|
|
350
496
|
const response = await this._axios.post("AnalyzeBizCardImage", request , config);
|
|
351
|
-
base.WebApiBase.SetCompleted(options);
|
|
497
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
352
498
|
const res : carriers.BizCard = converters.Create_BizCard_From( response.data );
|
|
353
499
|
resolve(res);
|
|
354
500
|
}
|
|
@@ -387,10 +533,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
387
533
|
}
|
|
388
534
|
else
|
|
389
535
|
{
|
|
390
|
-
_request = {
|
|
536
|
+
_request = {
|
|
391
537
|
image: image as ArrayBuffer|string,
|
|
392
538
|
mergeWithDatabase: mergeWithDatabase as boolean,
|
|
393
|
-
};
|
|
539
|
+
};
|
|
394
540
|
_options = webapi_options;
|
|
395
541
|
}
|
|
396
542
|
_request.image = ToBase64(_request.image);
|
|
@@ -405,7 +551,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
405
551
|
try {
|
|
406
552
|
config.baseURL = this._options.baseUrl;
|
|
407
553
|
const response = await this._axios.post("AnalyzeBizCardText", request , config);
|
|
408
|
-
base.WebApiBase.SetCompleted(options);
|
|
554
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
409
555
|
const res : carriers.BizCard = converters.Create_BizCard_From( response.data );
|
|
410
556
|
resolve(res);
|
|
411
557
|
}
|
|
@@ -444,10 +590,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
444
590
|
}
|
|
445
591
|
else
|
|
446
592
|
{
|
|
447
|
-
_request = {
|
|
593
|
+
_request = {
|
|
448
594
|
text: text as string,
|
|
449
595
|
mergeWithDatabase: mergeWithDatabase as boolean,
|
|
450
|
-
};
|
|
596
|
+
};
|
|
451
597
|
_options = webapi_options;
|
|
452
598
|
}
|
|
453
599
|
return this._analyzeBizCardTextAsync( _request, _options );
|
|
@@ -461,7 +607,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
461
607
|
try {
|
|
462
608
|
config.baseURL = this._options.baseUrl;
|
|
463
609
|
const response = await this._axios.post("GetTrainingStatus", undefined , config);
|
|
464
|
-
base.WebApiBase.SetCompleted(options);
|
|
610
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
465
611
|
const res : carriers.CategorizationStatusResponse = converters.Create_CategorizationStatusResponse_From( response.data );
|
|
466
612
|
resolve(res);
|
|
467
613
|
}
|
|
@@ -490,7 +636,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
490
636
|
try {
|
|
491
637
|
config.baseURL = this._options.baseUrl;
|
|
492
638
|
const response = await this._axios.post("GuessCategory", request , config);
|
|
493
|
-
base.WebApiBase.SetCompleted(options);
|
|
639
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
494
640
|
const res : number = response.data as number;
|
|
495
641
|
resolve(res);
|
|
496
642
|
}
|
|
@@ -528,9 +674,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
528
674
|
}
|
|
529
675
|
else
|
|
530
676
|
{
|
|
531
|
-
_request = {
|
|
677
|
+
_request = {
|
|
532
678
|
ticketId: ticketId as number,
|
|
533
|
-
};
|
|
679
|
+
};
|
|
534
680
|
_options = webapi_options;
|
|
535
681
|
}
|
|
536
682
|
return this._guessCategoryAsync( _request, _options );
|
|
@@ -544,7 +690,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
544
690
|
try {
|
|
545
691
|
config.baseURL = this._options.baseUrl;
|
|
546
692
|
const response = await this._axios.post("TrainCategoryGuesser", request , config);
|
|
547
|
-
base.WebApiBase.SetCompleted(options);
|
|
693
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
548
694
|
const res : string = response.data as string;
|
|
549
695
|
resolve(res);
|
|
550
696
|
}
|
|
@@ -584,11 +730,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
584
730
|
}
|
|
585
731
|
else
|
|
586
732
|
{
|
|
587
|
-
_request = {
|
|
733
|
+
_request = {
|
|
588
734
|
selectionId: selectionId as number,
|
|
589
735
|
maxItems: maxItems as number,
|
|
590
736
|
maxTextLength: maxTextLength as number,
|
|
591
|
-
};
|
|
737
|
+
};
|
|
592
738
|
_options = webapi_options;
|
|
593
739
|
}
|
|
594
740
|
return this._trainCategoryGuesserAsync( _request, _options );
|
|
@@ -602,7 +748,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
602
748
|
try {
|
|
603
749
|
config.baseURL = this._options.baseUrl;
|
|
604
750
|
const response = await this._axios.post("GetChatbotResponse", request , config);
|
|
605
|
-
base.WebApiBase.SetCompleted(options);
|
|
751
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
606
752
|
const res : carriers.ChatbotTurn = converters.Create_ChatbotTurn_From( response.data );
|
|
607
753
|
resolve(res);
|
|
608
754
|
}
|
|
@@ -645,14 +791,14 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
645
791
|
}
|
|
646
792
|
else
|
|
647
793
|
{
|
|
648
|
-
_request = {
|
|
794
|
+
_request = {
|
|
649
795
|
chatId: chatId as string,
|
|
650
796
|
isoLangCode: isoLangCode as string,
|
|
651
797
|
userPrompt: userPrompt as string,
|
|
652
798
|
displayValue: displayValue as string,
|
|
653
799
|
previousTurns: previousTurns as carriers.ChatbotTurn[],
|
|
654
800
|
apiUrl: apiUrl as string,
|
|
655
|
-
};
|
|
801
|
+
};
|
|
656
802
|
_options = webapi_options;
|
|
657
803
|
}
|
|
658
804
|
return this._getChatbotResponseAsync( _request, _options );
|
|
@@ -666,7 +812,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
666
812
|
try {
|
|
667
813
|
config.baseURL = this._options.baseUrl;
|
|
668
814
|
const response = await this._axios.post("GetChatbotPromptSuggestions", request , config);
|
|
669
|
-
base.WebApiBase.SetCompleted(options);
|
|
815
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
670
816
|
const res : carriers.ChatbotTurn = converters.Create_ChatbotTurn_From( response.data );
|
|
671
817
|
resolve(res);
|
|
672
818
|
}
|
|
@@ -706,11 +852,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
706
852
|
}
|
|
707
853
|
else
|
|
708
854
|
{
|
|
709
|
-
_request = {
|
|
855
|
+
_request = {
|
|
710
856
|
isoLangCode: isoLangCode as string,
|
|
711
857
|
soProtocol: soProtocol as string,
|
|
712
858
|
currentId: currentId as number,
|
|
713
|
-
};
|
|
859
|
+
};
|
|
714
860
|
_options = webapi_options;
|
|
715
861
|
}
|
|
716
862
|
return this._getChatbotPromptSuggestionsAsync( _request, _options );
|
|
@@ -724,7 +870,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
724
870
|
try {
|
|
725
871
|
config.baseURL = this._options.baseUrl;
|
|
726
872
|
const response = await this._axios.post("GetChatbotTurns", request , config);
|
|
727
|
-
base.WebApiBase.SetCompleted(options);
|
|
873
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
728
874
|
const res : carriers.ChatbotTurn[] = converters.Create_ChatbotTurnArray_From( response.data );
|
|
729
875
|
resolve(res);
|
|
730
876
|
}
|
|
@@ -762,9 +908,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
762
908
|
}
|
|
763
909
|
else
|
|
764
910
|
{
|
|
765
|
-
_request = {
|
|
911
|
+
_request = {
|
|
766
912
|
chatId: chatId as string,
|
|
767
|
-
};
|
|
913
|
+
};
|
|
768
914
|
_options = webapi_options;
|
|
769
915
|
}
|
|
770
916
|
return this._getChatbotTurnsAsync( _request, _options );
|
|
@@ -778,7 +924,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
778
924
|
try {
|
|
779
925
|
config.baseURL = this._options.baseUrl;
|
|
780
926
|
const response = await this._axios.post("ClearChatbotTurns", request , config);
|
|
781
|
-
base.WebApiBase.SetCompleted(options);
|
|
927
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
782
928
|
const res = response.data;
|
|
783
929
|
resolve(res);
|
|
784
930
|
}
|
|
@@ -816,14 +962,169 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
816
962
|
}
|
|
817
963
|
else
|
|
818
964
|
{
|
|
819
|
-
_request = {
|
|
965
|
+
_request = {
|
|
820
966
|
chatId: chatId as string,
|
|
821
|
-
};
|
|
967
|
+
};
|
|
822
968
|
_options = webapi_options;
|
|
823
969
|
}
|
|
824
970
|
return this._clearChatbotTurnsAsync( _request, _options );
|
|
825
971
|
}
|
|
826
972
|
|
|
973
|
+
/**
|
|
974
|
+
* Gets a CopilotDataSourceEntity object.
|
|
975
|
+
* @param copilotDataSourceEntityId - The primary key.
|
|
976
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
977
|
+
* @returns A single CopilotDataSourceEntity
|
|
978
|
+
*/
|
|
979
|
+
public async getCopilotDataSourceEntityAsync(copilotDataSourceEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.CopilotDataSourceEntity > {
|
|
980
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
981
|
+
base.WebApiBase.SetPending(options);
|
|
982
|
+
return new Promise< carriers.CopilotDataSourceEntity >(async (resolve, reject) => {
|
|
983
|
+
try {
|
|
984
|
+
const response = await this._axios.post("GetCopilotDataSourceEntity?copilotDataSourceEntityId=" + copilotDataSourceEntityId, null, config);
|
|
985
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
986
|
+
const res = converters.Create_CopilotDataSourceEntity_From( response.data );
|
|
987
|
+
resolve(res);
|
|
988
|
+
}
|
|
989
|
+
catch( err ) {
|
|
990
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
991
|
+
reject(err);
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Gets a CopilotEntity object.
|
|
998
|
+
* @param copilotEntityId - The primary key.
|
|
999
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1000
|
+
* @returns A single CopilotEntity
|
|
1001
|
+
*/
|
|
1002
|
+
public async getCopilotEntityAsync(copilotEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.CopilotEntity > {
|
|
1003
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1004
|
+
base.WebApiBase.SetPending(options);
|
|
1005
|
+
return new Promise< carriers.CopilotEntity >(async (resolve, reject) => {
|
|
1006
|
+
try {
|
|
1007
|
+
const response = await this._axios.post("GetCopilotEntity?copilotEntityId=" + copilotEntityId, null, config);
|
|
1008
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1009
|
+
const res = converters.Create_CopilotEntity_From( response.data );
|
|
1010
|
+
resolve(res);
|
|
1011
|
+
}
|
|
1012
|
+
catch( err ) {
|
|
1013
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1014
|
+
reject(err);
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
private async _getFormDesignFromImageAsync(request: carriers.AI_GetFormDesignFromImageRequest, options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
1021
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1022
|
+
base.WebApiBase.SetPending(options);
|
|
1023
|
+
return new Promise< carriers.StringDictionary >(async (resolve, reject) => {
|
|
1024
|
+
try {
|
|
1025
|
+
config.baseURL = this._options.baseUrl;
|
|
1026
|
+
const response = await this._axios.post("GetFormDesignFromImage", request , config);
|
|
1027
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1028
|
+
const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
|
|
1029
|
+
resolve(res);
|
|
1030
|
+
}
|
|
1031
|
+
catch( err ) {
|
|
1032
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1033
|
+
reject(err);
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Returns Form Designer properties based on the look of a picture
|
|
1042
|
+
* @param request - Image
|
|
1043
|
+
* @returns Returns a Form Designer properties.
|
|
1044
|
+
*/
|
|
1045
|
+
public async getFormDesignFromImageAsync(request: carriers.AI_GetFormDesignFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Returns Form Designer properties based on the look of a picture
|
|
1049
|
+
* @param image - Image data to analyze for design
|
|
1050
|
+
* @returns Returns a Form Designer properties.
|
|
1051
|
+
*/
|
|
1052
|
+
public async getFormDesignFromImageAsync(image: ArrayBuffer|string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
1053
|
+
|
|
1054
|
+
public async getFormDesignFromImageAsync(image:ArrayBuffer|string|carriers.AI_GetFormDesignFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
1055
|
+
let _request : carriers.AI_GetFormDesignFromImageRequest = null;
|
|
1056
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1057
|
+
const first : any = image;
|
|
1058
|
+
if( typeof( first ) === "object" && first && ( typeof(first.image)!='undefined' ) )
|
|
1059
|
+
{
|
|
1060
|
+
_request = image as carriers.AI_GetFormDesignFromImageRequest;
|
|
1061
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1062
|
+
}
|
|
1063
|
+
else
|
|
1064
|
+
{
|
|
1065
|
+
_request = {
|
|
1066
|
+
image: image as ArrayBuffer|string,
|
|
1067
|
+
};
|
|
1068
|
+
_options = webapi_options;
|
|
1069
|
+
}
|
|
1070
|
+
_request.image = ToBase64(_request.image);
|
|
1071
|
+
return this._getFormDesignFromImageAsync( _request, _options );
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
private async _getFormDesignFromUrlAsync(request: carriers.AI_GetFormDesignFromUrlRequest, options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
1076
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1077
|
+
base.WebApiBase.SetPending(options);
|
|
1078
|
+
return new Promise< carriers.StringDictionary >(async (resolve, reject) => {
|
|
1079
|
+
try {
|
|
1080
|
+
config.baseURL = this._options.baseUrl;
|
|
1081
|
+
const response = await this._axios.post("GetFormDesignFromUrl", request , config);
|
|
1082
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1083
|
+
const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
|
|
1084
|
+
resolve(res);
|
|
1085
|
+
}
|
|
1086
|
+
catch( err ) {
|
|
1087
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1088
|
+
reject(err);
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Returns Form Designer properties based on the look of a web page
|
|
1097
|
+
* @param request - Url
|
|
1098
|
+
* @returns Returns a Form Designer properties.
|
|
1099
|
+
*/
|
|
1100
|
+
public async getFormDesignFromUrlAsync(request: carriers.AI_GetFormDesignFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Returns Form Designer properties based on the look of a web page
|
|
1104
|
+
* @param url - Url of the web page to extract style from.
|
|
1105
|
+
* @returns Returns a Form Designer properties.
|
|
1106
|
+
*/
|
|
1107
|
+
public async getFormDesignFromUrlAsync(url: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
1108
|
+
|
|
1109
|
+
public async getFormDesignFromUrlAsync(url:string|carriers.AI_GetFormDesignFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
1110
|
+
let _request : carriers.AI_GetFormDesignFromUrlRequest = null;
|
|
1111
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1112
|
+
const first : any = url;
|
|
1113
|
+
if( typeof( first ) === "object" && first && ( typeof(first.url)!='undefined' ) )
|
|
1114
|
+
{
|
|
1115
|
+
_request = url as carriers.AI_GetFormDesignFromUrlRequest;
|
|
1116
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1117
|
+
}
|
|
1118
|
+
else
|
|
1119
|
+
{
|
|
1120
|
+
_request = {
|
|
1121
|
+
url: url as string,
|
|
1122
|
+
};
|
|
1123
|
+
_options = webapi_options;
|
|
1124
|
+
}
|
|
1125
|
+
return this._getFormDesignFromUrlAsync( _request, _options );
|
|
1126
|
+
}
|
|
1127
|
+
|
|
827
1128
|
|
|
828
1129
|
private async _detectLanguageAsync(request: carriers.AI_DetectLanguageRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
829
1130
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
@@ -832,7 +1133,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
832
1133
|
try {
|
|
833
1134
|
config.baseURL = this._options.baseUrl;
|
|
834
1135
|
const response = await this._axios.post("DetectLanguage", request , config);
|
|
835
|
-
base.WebApiBase.SetCompleted(options);
|
|
1136
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
836
1137
|
const res : string = response.data as string;
|
|
837
1138
|
resolve(res);
|
|
838
1139
|
}
|
|
@@ -870,9 +1171,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
870
1171
|
}
|
|
871
1172
|
else
|
|
872
1173
|
{
|
|
873
|
-
_request = {
|
|
1174
|
+
_request = {
|
|
874
1175
|
text: text as string,
|
|
875
|
-
};
|
|
1176
|
+
};
|
|
876
1177
|
_options = webapi_options;
|
|
877
1178
|
}
|
|
878
1179
|
return this._detectLanguageAsync( _request, _options );
|
|
@@ -886,7 +1187,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
886
1187
|
try {
|
|
887
1188
|
config.baseURL = this._options.baseUrl;
|
|
888
1189
|
const response = await this._axios.post("DetectSentiment", request , config);
|
|
889
|
-
base.WebApiBase.SetCompleted(options);
|
|
1190
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
890
1191
|
const res : carriers.Sentiment = converters.Create_Sentiment_From( response.data );
|
|
891
1192
|
resolve(res);
|
|
892
1193
|
}
|
|
@@ -924,9 +1225,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
924
1225
|
}
|
|
925
1226
|
else
|
|
926
1227
|
{
|
|
927
|
-
_request = {
|
|
1228
|
+
_request = {
|
|
928
1229
|
text: text as string,
|
|
929
|
-
};
|
|
1230
|
+
};
|
|
930
1231
|
_options = webapi_options;
|
|
931
1232
|
}
|
|
932
1233
|
return this._detectSentimentAsync( _request, _options );
|
|
@@ -940,7 +1241,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
940
1241
|
try {
|
|
941
1242
|
config.baseURL = this._options.baseUrl;
|
|
942
1243
|
const response = await this._axios.post("Translate", request , config);
|
|
943
|
-
base.WebApiBase.SetCompleted(options);
|
|
1244
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
944
1245
|
const res : string = response.data as string;
|
|
945
1246
|
resolve(res);
|
|
946
1247
|
}
|
|
@@ -979,10 +1280,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
979
1280
|
}
|
|
980
1281
|
else
|
|
981
1282
|
{
|
|
982
|
-
_request = {
|
|
1283
|
+
_request = {
|
|
983
1284
|
text: text as string,
|
|
984
1285
|
targetLanguage: targetLanguage as string,
|
|
985
|
-
};
|
|
1286
|
+
};
|
|
986
1287
|
_options = webapi_options;
|
|
987
1288
|
}
|
|
988
1289
|
return this._translateAsync( _request, _options );
|
|
@@ -996,7 +1297,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
996
1297
|
try {
|
|
997
1298
|
config.baseURL = this._options.baseUrl;
|
|
998
1299
|
const response = await this._axios.post("TranslateEntity", request , config);
|
|
999
|
-
base.WebApiBase.SetCompleted(options);
|
|
1300
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1000
1301
|
const res : string = response.data as string;
|
|
1001
1302
|
resolve(res);
|
|
1002
1303
|
}
|
|
@@ -1036,11 +1337,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1036
1337
|
}
|
|
1037
1338
|
else
|
|
1038
1339
|
{
|
|
1039
|
-
_request = {
|
|
1340
|
+
_request = {
|
|
1040
1341
|
entityName: entityName as string,
|
|
1041
1342
|
entityId: entityId as number,
|
|
1042
1343
|
targetLanguage: targetLanguage as string,
|
|
1043
|
-
};
|
|
1344
|
+
};
|
|
1044
1345
|
_options = webapi_options;
|
|
1045
1346
|
}
|
|
1046
1347
|
return this._translateEntityAsync( _request, _options );
|
|
@@ -1054,7 +1355,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1054
1355
|
try {
|
|
1055
1356
|
config.baseURL = this._options.baseUrl;
|
|
1056
1357
|
const response = await this._axios.post("Answer", request , config);
|
|
1057
|
-
base.WebApiBase.SetCompleted(options);
|
|
1358
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1058
1359
|
const res : carriers.RagAnswer = converters.Create_RagAnswer_From( response.data );
|
|
1059
1360
|
resolve(res);
|
|
1060
1361
|
}
|
|
@@ -1095,12 +1396,12 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1095
1396
|
}
|
|
1096
1397
|
else
|
|
1097
1398
|
{
|
|
1098
|
-
_request = {
|
|
1399
|
+
_request = {
|
|
1099
1400
|
namespaceName: namespaceName as string,
|
|
1100
1401
|
query: query as string,
|
|
1101
1402
|
type: type as enums.RagType,
|
|
1102
1403
|
top: top as number,
|
|
1103
|
-
};
|
|
1404
|
+
};
|
|
1104
1405
|
_options = webapi_options;
|
|
1105
1406
|
}
|
|
1106
1407
|
return this._answerAsync( _request, _options );
|
|
@@ -1114,7 +1415,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1114
1415
|
try {
|
|
1115
1416
|
config.baseURL = this._options.baseUrl;
|
|
1116
1417
|
const response = await this._axios.post("AnswerFeedback", request , config);
|
|
1117
|
-
base.WebApiBase.SetCompleted(options);
|
|
1418
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1118
1419
|
const res = response.data;
|
|
1119
1420
|
resolve(res);
|
|
1120
1421
|
}
|
|
@@ -1153,10 +1454,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1153
1454
|
}
|
|
1154
1455
|
else
|
|
1155
1456
|
{
|
|
1156
|
-
_request = {
|
|
1457
|
+
_request = {
|
|
1157
1458
|
trackingId: trackingId as string,
|
|
1158
1459
|
isThumbsUp: isThumbsUp as boolean,
|
|
1159
|
-
};
|
|
1460
|
+
};
|
|
1160
1461
|
_options = webapi_options;
|
|
1161
1462
|
}
|
|
1162
1463
|
return this._answerFeedbackAsync( _request, _options );
|
|
@@ -1170,7 +1471,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1170
1471
|
try {
|
|
1171
1472
|
config.baseURL = this._options.baseUrl;
|
|
1172
1473
|
const response = await this._axios.post("AnswerAccepted", request , config);
|
|
1173
|
-
base.WebApiBase.SetCompleted(options);
|
|
1474
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1174
1475
|
const res = response.data;
|
|
1175
1476
|
resolve(res);
|
|
1176
1477
|
}
|
|
@@ -1208,9 +1509,9 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1208
1509
|
}
|
|
1209
1510
|
else
|
|
1210
1511
|
{
|
|
1211
|
-
_request = {
|
|
1512
|
+
_request = {
|
|
1212
1513
|
trackingId: trackingId as string,
|
|
1213
|
-
};
|
|
1514
|
+
};
|
|
1214
1515
|
_options = webapi_options;
|
|
1215
1516
|
}
|
|
1216
1517
|
return this._answerAcceptedAsync( _request, _options );
|
|
@@ -1224,7 +1525,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1224
1525
|
try {
|
|
1225
1526
|
config.baseURL = this._options.baseUrl;
|
|
1226
1527
|
const response = await this._axios.post("Search", request , config);
|
|
1227
|
-
base.WebApiBase.SetCompleted(options);
|
|
1528
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1228
1529
|
const res : carriers.RagResult[] = converters.Create_RagResultArray_From( response.data );
|
|
1229
1530
|
resolve(res);
|
|
1230
1531
|
}
|
|
@@ -1265,12 +1566,12 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1265
1566
|
}
|
|
1266
1567
|
else
|
|
1267
1568
|
{
|
|
1268
|
-
_request = {
|
|
1569
|
+
_request = {
|
|
1269
1570
|
namespaceName: namespaceName as string,
|
|
1270
1571
|
query: query as string,
|
|
1271
1572
|
type: type as enums.RagType,
|
|
1272
1573
|
top: top as number,
|
|
1273
|
-
};
|
|
1574
|
+
};
|
|
1274
1575
|
_options = webapi_options;
|
|
1275
1576
|
}
|
|
1276
1577
|
return this._searchAsync( _request, _options );
|
|
@@ -1284,7 +1585,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1284
1585
|
try {
|
|
1285
1586
|
config.baseURL = this._options.baseUrl;
|
|
1286
1587
|
const response = await this._axios.post("StartRagIndexing", request , config);
|
|
1287
|
-
base.WebApiBase.SetCompleted(options);
|
|
1588
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1288
1589
|
const res : number = response.data as number;
|
|
1289
1590
|
resolve(res);
|
|
1290
1591
|
}
|
|
@@ -1323,10 +1624,10 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1323
1624
|
}
|
|
1324
1625
|
else
|
|
1325
1626
|
{
|
|
1326
|
-
_request = {
|
|
1627
|
+
_request = {
|
|
1327
1628
|
namespaceName: namespaceName as string,
|
|
1328
1629
|
sourceId: sourceId as string,
|
|
1329
|
-
};
|
|
1630
|
+
};
|
|
1330
1631
|
_options = webapi_options;
|
|
1331
1632
|
}
|
|
1332
1633
|
return this._startRagIndexingAsync( _request, _options );
|
|
@@ -1340,7 +1641,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1340
1641
|
try {
|
|
1341
1642
|
config.baseURL = this._options.baseUrl;
|
|
1342
1643
|
const response = await this._axios.post("SummarizeTicket", request , config);
|
|
1343
|
-
base.WebApiBase.SetCompleted(options);
|
|
1644
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1344
1645
|
const res : string = response.data as string;
|
|
1345
1646
|
resolve(res);
|
|
1346
1647
|
}
|
|
@@ -1380,11 +1681,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1380
1681
|
}
|
|
1381
1682
|
else
|
|
1382
1683
|
{
|
|
1383
|
-
_request = {
|
|
1684
|
+
_request = {
|
|
1384
1685
|
ticketId: ticketId as number,
|
|
1385
1686
|
numSentences: numSentences as number,
|
|
1386
1687
|
isoLangCode: isoLangCode as string,
|
|
1387
|
-
};
|
|
1688
|
+
};
|
|
1388
1689
|
_options = webapi_options;
|
|
1389
1690
|
}
|
|
1390
1691
|
return this._summarizeTicketAsync( _request, _options );
|
|
@@ -1398,7 +1699,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1398
1699
|
try {
|
|
1399
1700
|
config.baseURL = this._options.baseUrl;
|
|
1400
1701
|
const response = await this._axios.post("GetSummarizeTicketPrompt", request , config);
|
|
1401
|
-
base.WebApiBase.SetCompleted(options);
|
|
1702
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1402
1703
|
const res : carriers.ChatbotTurn = converters.Create_ChatbotTurn_From( response.data );
|
|
1403
1704
|
resolve(res);
|
|
1404
1705
|
}
|
|
@@ -1439,12 +1740,12 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1439
1740
|
}
|
|
1440
1741
|
else
|
|
1441
1742
|
{
|
|
1442
|
-
_request = {
|
|
1743
|
+
_request = {
|
|
1443
1744
|
ticketId: ticketId as number,
|
|
1444
1745
|
numSentences: numSentences as number,
|
|
1445
1746
|
summary: summary as string,
|
|
1446
1747
|
isoLangCode: isoLangCode as string,
|
|
1447
|
-
};
|
|
1748
|
+
};
|
|
1448
1749
|
_options = webapi_options;
|
|
1449
1750
|
}
|
|
1450
1751
|
return this._getSummarizeTicketPromptAsync( _request, _options );
|
|
@@ -1458,7 +1759,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1458
1759
|
try {
|
|
1459
1760
|
config.baseURL = this._options.baseUrl;
|
|
1460
1761
|
const response = await this._axios.post("SummarizeContact", request , config);
|
|
1461
|
-
base.WebApiBase.SetCompleted(options);
|
|
1762
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1462
1763
|
const res : string = response.data as string;
|
|
1463
1764
|
resolve(res);
|
|
1464
1765
|
}
|
|
@@ -1498,11 +1799,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1498
1799
|
}
|
|
1499
1800
|
else
|
|
1500
1801
|
{
|
|
1501
|
-
_request = {
|
|
1802
|
+
_request = {
|
|
1502
1803
|
contactId: contactId as number,
|
|
1503
1804
|
numSentences: numSentences as number,
|
|
1504
1805
|
isoLangCode: isoLangCode as string,
|
|
1505
|
-
};
|
|
1806
|
+
};
|
|
1506
1807
|
_options = webapi_options;
|
|
1507
1808
|
}
|
|
1508
1809
|
return this._summarizeContactAsync( _request, _options );
|
|
@@ -1516,7 +1817,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1516
1817
|
try {
|
|
1517
1818
|
config.baseURL = this._options.baseUrl;
|
|
1518
1819
|
const response = await this._axios.post("GetSummarizeContactPrompt", request , config);
|
|
1519
|
-
base.WebApiBase.SetCompleted(options);
|
|
1820
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1520
1821
|
const res : carriers.ChatbotTurn = converters.Create_ChatbotTurn_From( response.data );
|
|
1521
1822
|
resolve(res);
|
|
1522
1823
|
}
|
|
@@ -1557,12 +1858,12 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1557
1858
|
}
|
|
1558
1859
|
else
|
|
1559
1860
|
{
|
|
1560
|
-
_request = {
|
|
1861
|
+
_request = {
|
|
1561
1862
|
contactId: contactId as number,
|
|
1562
1863
|
numSentences: numSentences as number,
|
|
1563
1864
|
summary: summary as string,
|
|
1564
1865
|
isoLangCode: isoLangCode as string,
|
|
1565
|
-
};
|
|
1866
|
+
};
|
|
1566
1867
|
_options = webapi_options;
|
|
1567
1868
|
}
|
|
1568
1869
|
return this._getSummarizeContactPromptAsync( _request, _options );
|
|
@@ -1576,7 +1877,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1576
1877
|
try {
|
|
1577
1878
|
config.baseURL = this._options.baseUrl;
|
|
1578
1879
|
const response = await this._axios.post("SummarizeSale", request , config);
|
|
1579
|
-
base.WebApiBase.SetCompleted(options);
|
|
1880
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1580
1881
|
const res : string = response.data as string;
|
|
1581
1882
|
resolve(res);
|
|
1582
1883
|
}
|
|
@@ -1616,11 +1917,11 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1616
1917
|
}
|
|
1617
1918
|
else
|
|
1618
1919
|
{
|
|
1619
|
-
_request = {
|
|
1920
|
+
_request = {
|
|
1620
1921
|
saleId: saleId as number,
|
|
1621
1922
|
numSentences: numSentences as number,
|
|
1622
1923
|
isoLangCode: isoLangCode as string,
|
|
1623
|
-
};
|
|
1924
|
+
};
|
|
1624
1925
|
_options = webapi_options;
|
|
1625
1926
|
}
|
|
1626
1927
|
return this._summarizeSaleAsync( _request, _options );
|
|
@@ -1634,7 +1935,7 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1634
1935
|
try {
|
|
1635
1936
|
config.baseURL = this._options.baseUrl;
|
|
1636
1937
|
const response = await this._axios.post("GetSummarizeSalePrompt", request , config);
|
|
1637
|
-
base.WebApiBase.SetCompleted(options);
|
|
1938
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1638
1939
|
const res : carriers.ChatbotTurn = converters.Create_ChatbotTurn_From( response.data );
|
|
1639
1940
|
resolve(res);
|
|
1640
1941
|
}
|
|
@@ -1675,17 +1976,17 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
|
|
|
1675
1976
|
}
|
|
1676
1977
|
else
|
|
1677
1978
|
{
|
|
1678
|
-
_request = {
|
|
1979
|
+
_request = {
|
|
1679
1980
|
saleId: saleId as number,
|
|
1680
1981
|
numSentences: numSentences as number,
|
|
1681
1982
|
summary: summary as string,
|
|
1682
1983
|
isoLangCode: isoLangCode as string,
|
|
1683
|
-
};
|
|
1984
|
+
};
|
|
1684
1985
|
_options = webapi_options;
|
|
1685
1986
|
}
|
|
1686
1987
|
return this._getSummarizeSalePromptAsync( _request, _options );
|
|
1687
1988
|
}
|
|
1688
1989
|
|
|
1689
|
-
} // class v1AIAgentController
|
|
1990
|
+
} // class v1AIAgentController
|
|
1690
1991
|
|
|
1691
1992
|
|