@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,1054 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// SuperOffice Code Generator
|
|
3
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
//----------------------------------------------------------------------------
|
|
9
|
+
// G E N E R A T E D F I L E ! D O N O T E D I T !
|
|
10
|
+
//----------------------------------------------------------------------------
|
|
11
|
+
//
|
|
12
|
+
// File: WebApi/WorkflowAgent.ts
|
|
13
|
+
//
|
|
14
|
+
//----------------------------------------------------------------------------
|
|
15
|
+
// Copyright (C) SuperOffice AS
|
|
16
|
+
//----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
import { AxiosRequestConfig } from 'axios';
|
|
19
|
+
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
+
import * as enums from './Enums.js';
|
|
21
|
+
import * as base from './WebApiBase.js';
|
|
22
|
+
import * as carriers from './Carriers.js';
|
|
23
|
+
import * as converters from './Converters.js';
|
|
24
|
+
import { FromBase64ToString, ToBase64 } from './Base64.js';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Agent lets you configure workflow automation
|
|
28
|
+
*/
|
|
29
|
+
export interface IWorkflowAgent {
|
|
30
|
+
createDefaultEmailFlowAsync(): Promise< carriers.EmailFlow >;
|
|
31
|
+
saveEmailFlowAsync(entity: carriers.EmailFlow) : Promise< carriers.EmailFlow >;
|
|
32
|
+
deleteEmailFlowAsync(EmailFlowId: number) : Promise<void>;
|
|
33
|
+
createDefaultWorkflowEventAsync(): Promise< carriers.WorkflowEvent >;
|
|
34
|
+
createDefaultWorkflowEventResultAsync(): Promise< carriers.WorkflowEventResult >;
|
|
35
|
+
createDefaultWorkflowFilterAsync(): Promise< carriers.WorkflowFilter >;
|
|
36
|
+
createDefaultWorkflowGoalAsync(): Promise< carriers.WorkflowGoal >;
|
|
37
|
+
saveWorkflowGoalAsync(entity: carriers.WorkflowGoal) : Promise< carriers.WorkflowGoal >;
|
|
38
|
+
deleteWorkflowGoalAsync(WorkflowGoalId: number) : Promise<void>;
|
|
39
|
+
createDefaultWorkflowStepOptionAsync(): Promise< carriers.WorkflowStepOption >;
|
|
40
|
+
saveWorkflowStepOptionAsync(entity: carriers.WorkflowStepOption) : Promise< carriers.WorkflowStepOption >;
|
|
41
|
+
deleteWorkflowStepOptionAsync(WorkflowStepOptionId: number) : Promise<void>;
|
|
42
|
+
createDefaultWorkflowTriggerAsync(): Promise< carriers.WorkflowTrigger >;
|
|
43
|
+
saveWorkflowTriggerAsync(entity: carriers.WorkflowTrigger) : Promise< carriers.WorkflowTrigger >;
|
|
44
|
+
deleteWorkflowTriggerAsync(WorkflowTriggerId: number) : Promise<void>;
|
|
45
|
+
getEmailFlowAsync(emailFlowId: number) : Promise< carriers.EmailFlow >;
|
|
46
|
+
tryAddPersonsToEmailFlowAsync(request: carriers.Workflow_TryAddPersonsToEmailFlowRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean[] >;
|
|
47
|
+
tryAddPersonsToEmailFlowAsync(emailFlowId: number, personIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< boolean[] >;
|
|
48
|
+
removeParticipantsFromEmailFlowAsync(request: carriers.Workflow_RemoveParticipantsFromEmailFlowRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
49
|
+
removeParticipantsFromEmailFlowAsync(emailFlowId: number, workflowInstanceIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
50
|
+
createEmailFlowContentAsync(request: carriers.Workflow_CreateEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
51
|
+
createEmailFlowContentAsync(emailFlowId: number, contentName: string, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
52
|
+
connectEmailFlowContentAsync(request: carriers.Workflow_ConnectEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
53
|
+
connectEmailFlowContentAsync(emailFlowId: number, messageId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
54
|
+
copyEmailFlowContentAsync(request: carriers.Workflow_CopyEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
55
|
+
copyEmailFlowContentAsync(emailFlowId: number, shipmentId: number, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
56
|
+
runAsync(webapi_options?:base.WebApiRequestOptions) : Promise< Date >;
|
|
57
|
+
sendEventAsync(request: carriers.Workflow_SendEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult >;
|
|
58
|
+
sendEventAsync(workflowEvent: carriers.WorkflowEvent, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult >;
|
|
59
|
+
getWorkflowGoalAsync(workflowGoalId: number) : Promise< carriers.WorkflowGoal >;
|
|
60
|
+
getWorkflowStepAsync(request: carriers.Workflow_GetWorkflowStepRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
61
|
+
getWorkflowStepAsync(workflowStepId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
62
|
+
addAfterWorkflowStepAsync(request: carriers.Workflow_AddAfterWorkflowStepRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
63
|
+
addAfterWorkflowStepAsync(workflowStepId: number, subStep: carriers.WorkflowStepBase, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
64
|
+
createDefaultWorkflowStepFromTypeAsync(request: carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
65
|
+
createDefaultWorkflowStepFromTypeAsync(stepType: enums.WorkflowStepType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
66
|
+
getWorkflowStepOptionAsync(workflowStepOptionId: number) : Promise< carriers.WorkflowStepOption >;
|
|
67
|
+
getWorkflowTriggerAsync(workflowTriggerId: number) : Promise< carriers.WorkflowTrigger >;
|
|
68
|
+
} // interface IWorkflowAgent
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Agent lets you configure workflow automation
|
|
75
|
+
*/
|
|
76
|
+
export class WorkflowAgent extends base.WebApiBase implements IWorkflowAgent {
|
|
77
|
+
constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
|
|
78
|
+
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
79
|
+
constructor(baseUrl: string, resourceManager:any);
|
|
80
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
|
|
81
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
82
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
|
|
83
|
+
constructor(options: base.WebApiOptions);
|
|
84
|
+
|
|
85
|
+
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
86
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
87
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
88
|
+
cultureCode?: string,
|
|
89
|
+
) {
|
|
90
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
91
|
+
options.basePath = "v1/Agents/Workflow/";
|
|
92
|
+
super(options);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Set default values into a new EmailFlow.
|
|
99
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
100
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
101
|
+
* @returns A blank entity.
|
|
102
|
+
*/
|
|
103
|
+
public async createDefaultEmailFlowAsync(options?:base.WebApiRequestOptions) : Promise< carriers.EmailFlow > {
|
|
104
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
105
|
+
base.WebApiBase.SetPending(options);
|
|
106
|
+
return new Promise< carriers.EmailFlow >(async (resolve, reject) => {
|
|
107
|
+
try {
|
|
108
|
+
const response = await this._axios.post("CreateDefaultEmailFlow", null, config);
|
|
109
|
+
base.WebApiBase.SetCompleted(options);
|
|
110
|
+
const res : carriers.EmailFlow = converters.Create_EmailFlow_From( response.data );
|
|
111
|
+
resolve(res);
|
|
112
|
+
}
|
|
113
|
+
catch( err ) {
|
|
114
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
115
|
+
reject(err);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/*
|
|
120
|
+
* Replace the existing EmailFlow or creates a new EmailFlow if the id parameter is empty
|
|
121
|
+
* @param entity - The EmailFlow to be saved.
|
|
122
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
123
|
+
* @returns New or updated EmailFlow
|
|
124
|
+
*/
|
|
125
|
+
public async saveEmailFlowAsync(entity: carriers.EmailFlow, options?:base.WebApiRequestOptions) : Promise< carriers.EmailFlow > {
|
|
126
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
127
|
+
base.WebApiBase.SetPending(options);
|
|
128
|
+
return new Promise< carriers.EmailFlow >(async (resolve, reject) => {
|
|
129
|
+
try {
|
|
130
|
+
const response = await this._axios.post("SaveEmailFlow", entity, config);
|
|
131
|
+
base.WebApiBase.SetCompleted(options);
|
|
132
|
+
const res : carriers.EmailFlow = converters.Create_EmailFlow_From( response.data );
|
|
133
|
+
resolve(res);
|
|
134
|
+
}
|
|
135
|
+
catch( err ) {
|
|
136
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
137
|
+
reject(err);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/*
|
|
143
|
+
* Deletes the EmailFlow
|
|
144
|
+
* @param EmailFlowId - The id of the EmailFlow to be deleted.
|
|
145
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
146
|
+
*/
|
|
147
|
+
public async deleteEmailFlowAsync(EmailFlowId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
148
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
149
|
+
base.WebApiBase.SetPending(options);
|
|
150
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
151
|
+
try {
|
|
152
|
+
const response = await this._axios.post("DeleteEmailFlow?EmailFlowId=" + EmailFlowId, null, config );
|
|
153
|
+
base.WebApiBase.SetCompleted(options);
|
|
154
|
+
const res = response.data;
|
|
155
|
+
resolve(res);
|
|
156
|
+
}
|
|
157
|
+
catch( err ) {
|
|
158
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
159
|
+
reject(err);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Set default values into a new WorkflowEvent.
|
|
166
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
167
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
168
|
+
* @returns A blank entity.
|
|
169
|
+
*/
|
|
170
|
+
public async createDefaultWorkflowEventAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEvent > {
|
|
171
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
172
|
+
base.WebApiBase.SetPending(options);
|
|
173
|
+
return new Promise< carriers.WorkflowEvent >(async (resolve, reject) => {
|
|
174
|
+
try {
|
|
175
|
+
const response = await this._axios.post("CreateDefaultWorkflowEvent", null, config);
|
|
176
|
+
base.WebApiBase.SetCompleted(options);
|
|
177
|
+
const res : carriers.WorkflowEvent = converters.Create_WorkflowEvent_From( response.data );
|
|
178
|
+
resolve(res);
|
|
179
|
+
}
|
|
180
|
+
catch( err ) {
|
|
181
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
182
|
+
reject(err);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Set default values into a new WorkflowEventResult.
|
|
189
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
190
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
191
|
+
* @returns A blank entity.
|
|
192
|
+
*/
|
|
193
|
+
public async createDefaultWorkflowEventResultAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult > {
|
|
194
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
195
|
+
base.WebApiBase.SetPending(options);
|
|
196
|
+
return new Promise< carriers.WorkflowEventResult >(async (resolve, reject) => {
|
|
197
|
+
try {
|
|
198
|
+
const response = await this._axios.post("CreateDefaultWorkflowEventResult", null, config);
|
|
199
|
+
base.WebApiBase.SetCompleted(options);
|
|
200
|
+
const res : carriers.WorkflowEventResult = converters.Create_WorkflowEventResult_From( response.data );
|
|
201
|
+
resolve(res);
|
|
202
|
+
}
|
|
203
|
+
catch( err ) {
|
|
204
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
205
|
+
reject(err);
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Set default values into a new WorkflowFilter.
|
|
212
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
213
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
214
|
+
* @returns A blank entity.
|
|
215
|
+
*/
|
|
216
|
+
public async createDefaultWorkflowFilterAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowFilter > {
|
|
217
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
218
|
+
base.WebApiBase.SetPending(options);
|
|
219
|
+
return new Promise< carriers.WorkflowFilter >(async (resolve, reject) => {
|
|
220
|
+
try {
|
|
221
|
+
const response = await this._axios.post("CreateDefaultWorkflowFilter", null, config);
|
|
222
|
+
base.WebApiBase.SetCompleted(options);
|
|
223
|
+
const res : carriers.WorkflowFilter = converters.Create_WorkflowFilter_From( response.data );
|
|
224
|
+
resolve(res);
|
|
225
|
+
}
|
|
226
|
+
catch( err ) {
|
|
227
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
228
|
+
reject(err);
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Set default values into a new WorkflowGoal.
|
|
235
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
236
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
237
|
+
* @returns A blank entity.
|
|
238
|
+
*/
|
|
239
|
+
public async createDefaultWorkflowGoalAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowGoal > {
|
|
240
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
241
|
+
base.WebApiBase.SetPending(options);
|
|
242
|
+
return new Promise< carriers.WorkflowGoal >(async (resolve, reject) => {
|
|
243
|
+
try {
|
|
244
|
+
const response = await this._axios.post("CreateDefaultWorkflowGoal", null, config);
|
|
245
|
+
base.WebApiBase.SetCompleted(options);
|
|
246
|
+
const res : carriers.WorkflowGoal = converters.Create_WorkflowGoal_From( response.data );
|
|
247
|
+
resolve(res);
|
|
248
|
+
}
|
|
249
|
+
catch( err ) {
|
|
250
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
251
|
+
reject(err);
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/*
|
|
256
|
+
* Replace the existing WorkflowGoal or creates a new WorkflowGoal if the id parameter is empty
|
|
257
|
+
* @param entity - The WorkflowGoal to be saved.
|
|
258
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
259
|
+
* @returns New or updated WorkflowGoal
|
|
260
|
+
*/
|
|
261
|
+
public async saveWorkflowGoalAsync(entity: carriers.WorkflowGoal, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowGoal > {
|
|
262
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
263
|
+
base.WebApiBase.SetPending(options);
|
|
264
|
+
return new Promise< carriers.WorkflowGoal >(async (resolve, reject) => {
|
|
265
|
+
try {
|
|
266
|
+
const response = await this._axios.post("SaveWorkflowGoal", entity, config);
|
|
267
|
+
base.WebApiBase.SetCompleted(options);
|
|
268
|
+
const res : carriers.WorkflowGoal = converters.Create_WorkflowGoal_From( response.data );
|
|
269
|
+
resolve(res);
|
|
270
|
+
}
|
|
271
|
+
catch( err ) {
|
|
272
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
273
|
+
reject(err);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/*
|
|
279
|
+
* Deletes the WorkflowGoal
|
|
280
|
+
* @param WorkflowGoalId - The id of the WorkflowGoal to be deleted.
|
|
281
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
282
|
+
*/
|
|
283
|
+
public async deleteWorkflowGoalAsync(WorkflowGoalId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
284
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
285
|
+
base.WebApiBase.SetPending(options);
|
|
286
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
287
|
+
try {
|
|
288
|
+
const response = await this._axios.post("DeleteWorkflowGoal?WorkflowGoalId=" + WorkflowGoalId, null, config );
|
|
289
|
+
base.WebApiBase.SetCompleted(options);
|
|
290
|
+
const res = response.data;
|
|
291
|
+
resolve(res);
|
|
292
|
+
}
|
|
293
|
+
catch( err ) {
|
|
294
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
295
|
+
reject(err);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Set default values into a new WorkflowStepOption.
|
|
302
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
303
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
304
|
+
* @returns A blank entity.
|
|
305
|
+
*/
|
|
306
|
+
public async createDefaultWorkflowStepOptionAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepOption > {
|
|
307
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
308
|
+
base.WebApiBase.SetPending(options);
|
|
309
|
+
return new Promise< carriers.WorkflowStepOption >(async (resolve, reject) => {
|
|
310
|
+
try {
|
|
311
|
+
const response = await this._axios.post("CreateDefaultWorkflowStepOption", null, config);
|
|
312
|
+
base.WebApiBase.SetCompleted(options);
|
|
313
|
+
const res : carriers.WorkflowStepOption = converters.Create_WorkflowStepOption_From( response.data );
|
|
314
|
+
resolve(res);
|
|
315
|
+
}
|
|
316
|
+
catch( err ) {
|
|
317
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
318
|
+
reject(err);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/*
|
|
323
|
+
* Replace the existing WorkflowStepOption or creates a new WorkflowStepOption if the id parameter is empty
|
|
324
|
+
* @param entity - The WorkflowStepOption to be saved.
|
|
325
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
326
|
+
* @returns New or updated WorkflowStepOption
|
|
327
|
+
*/
|
|
328
|
+
public async saveWorkflowStepOptionAsync(entity: carriers.WorkflowStepOption, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepOption > {
|
|
329
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
330
|
+
base.WebApiBase.SetPending(options);
|
|
331
|
+
return new Promise< carriers.WorkflowStepOption >(async (resolve, reject) => {
|
|
332
|
+
try {
|
|
333
|
+
const response = await this._axios.post("SaveWorkflowStepOption", entity, config);
|
|
334
|
+
base.WebApiBase.SetCompleted(options);
|
|
335
|
+
const res : carriers.WorkflowStepOption = converters.Create_WorkflowStepOption_From( response.data );
|
|
336
|
+
resolve(res);
|
|
337
|
+
}
|
|
338
|
+
catch( err ) {
|
|
339
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
340
|
+
reject(err);
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/*
|
|
346
|
+
* Deletes the WorkflowStepOption
|
|
347
|
+
* @param WorkflowStepOptionId - The id of the WorkflowStepOption to be deleted.
|
|
348
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
349
|
+
*/
|
|
350
|
+
public async deleteWorkflowStepOptionAsync(WorkflowStepOptionId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
351
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
352
|
+
base.WebApiBase.SetPending(options);
|
|
353
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
354
|
+
try {
|
|
355
|
+
const response = await this._axios.post("DeleteWorkflowStepOption?WorkflowStepOptionId=" + WorkflowStepOptionId, null, config );
|
|
356
|
+
base.WebApiBase.SetCompleted(options);
|
|
357
|
+
const res = response.data;
|
|
358
|
+
resolve(res);
|
|
359
|
+
}
|
|
360
|
+
catch( err ) {
|
|
361
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
362
|
+
reject(err);
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Set default values into a new WorkflowTrigger.
|
|
369
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
370
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
371
|
+
* @returns A blank entity.
|
|
372
|
+
*/
|
|
373
|
+
public async createDefaultWorkflowTriggerAsync(options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowTrigger > {
|
|
374
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
375
|
+
base.WebApiBase.SetPending(options);
|
|
376
|
+
return new Promise< carriers.WorkflowTrigger >(async (resolve, reject) => {
|
|
377
|
+
try {
|
|
378
|
+
const response = await this._axios.post("CreateDefaultWorkflowTrigger", null, config);
|
|
379
|
+
base.WebApiBase.SetCompleted(options);
|
|
380
|
+
const res : carriers.WorkflowTrigger = converters.Create_WorkflowTrigger_From( response.data );
|
|
381
|
+
resolve(res);
|
|
382
|
+
}
|
|
383
|
+
catch( err ) {
|
|
384
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
385
|
+
reject(err);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/*
|
|
390
|
+
* Replace the existing WorkflowTrigger or creates a new WorkflowTrigger if the id parameter is empty
|
|
391
|
+
* @param entity - The WorkflowTrigger to be saved.
|
|
392
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
393
|
+
* @returns New or updated WorkflowTrigger
|
|
394
|
+
*/
|
|
395
|
+
public async saveWorkflowTriggerAsync(entity: carriers.WorkflowTrigger, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowTrigger > {
|
|
396
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
397
|
+
base.WebApiBase.SetPending(options);
|
|
398
|
+
return new Promise< carriers.WorkflowTrigger >(async (resolve, reject) => {
|
|
399
|
+
try {
|
|
400
|
+
const response = await this._axios.post("SaveWorkflowTrigger", entity, config);
|
|
401
|
+
base.WebApiBase.SetCompleted(options);
|
|
402
|
+
const res : carriers.WorkflowTrigger = converters.Create_WorkflowTrigger_From( response.data );
|
|
403
|
+
resolve(res);
|
|
404
|
+
}
|
|
405
|
+
catch( err ) {
|
|
406
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
407
|
+
reject(err);
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/*
|
|
413
|
+
* Deletes the WorkflowTrigger
|
|
414
|
+
* @param WorkflowTriggerId - The id of the WorkflowTrigger to be deleted.
|
|
415
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
416
|
+
*/
|
|
417
|
+
public async deleteWorkflowTriggerAsync(WorkflowTriggerId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
418
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
419
|
+
base.WebApiBase.SetPending(options);
|
|
420
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
421
|
+
try {
|
|
422
|
+
const response = await this._axios.post("DeleteWorkflowTrigger?WorkflowTriggerId=" + WorkflowTriggerId, null, config );
|
|
423
|
+
base.WebApiBase.SetCompleted(options);
|
|
424
|
+
const res = response.data;
|
|
425
|
+
resolve(res);
|
|
426
|
+
}
|
|
427
|
+
catch( err ) {
|
|
428
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
429
|
+
reject(err);
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
/*
|
|
434
|
+
* Gets a EmailFlow object.
|
|
435
|
+
* @param emailFlowId - The primary key.
|
|
436
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
437
|
+
* @returns A single EmailFlow
|
|
438
|
+
*/
|
|
439
|
+
public async getEmailFlowAsync(emailFlowId: number, options?:base.WebApiRequestOptions) : Promise< carriers.EmailFlow > {
|
|
440
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
441
|
+
base.WebApiBase.SetPending(options);
|
|
442
|
+
return new Promise< carriers.EmailFlow >(async (resolve, reject) => {
|
|
443
|
+
try {
|
|
444
|
+
const response = await this._axios.post("GetEmailFlow?emailFlowId=" + emailFlowId, null, config);
|
|
445
|
+
base.WebApiBase.SetCompleted(options);
|
|
446
|
+
const res = converters.Create_EmailFlow_From( response.data );
|
|
447
|
+
resolve(res);
|
|
448
|
+
}
|
|
449
|
+
catch( err ) {
|
|
450
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
451
|
+
reject(err);
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
private async _tryAddPersonsToEmailFlowAsync(request: carriers.Workflow_TryAddPersonsToEmailFlowRequest, options?:base.WebApiRequestOptions) : Promise< boolean[] > {
|
|
458
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
459
|
+
base.WebApiBase.SetPending(options);
|
|
460
|
+
return new Promise< boolean[] >(async (resolve, reject) => {
|
|
461
|
+
try {
|
|
462
|
+
config.baseURL = this._options.baseUrl;
|
|
463
|
+
const response = await this._axios.post("TryAddPersonsToEmailFlow", request , config);
|
|
464
|
+
base.WebApiBase.SetCompleted(options);
|
|
465
|
+
const res : boolean[] = response.data as boolean[];
|
|
466
|
+
resolve(res);
|
|
467
|
+
}
|
|
468
|
+
catch( err ) {
|
|
469
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
470
|
+
reject(err);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Try to add a participant to the EmailFlow
|
|
479
|
+
* @param request - EmailFlowId, PersonIds
|
|
480
|
+
* @returns True if the corresponding participant was successfully added, false if it could not be added because of filter criteria or other reason
|
|
481
|
+
*/
|
|
482
|
+
public async tryAddPersonsToEmailFlowAsync(request: carriers.Workflow_TryAddPersonsToEmailFlowRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean[] >;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Try to add a participant to the EmailFlow
|
|
486
|
+
* @param emailFlowId - Primary key of EmailFlow
|
|
487
|
+
* @param personIds - Array of Person Ids
|
|
488
|
+
* @returns True if the corresponding participant was successfully added, false if it could not be added because of filter criteria or other reason
|
|
489
|
+
*/
|
|
490
|
+
public async tryAddPersonsToEmailFlowAsync(emailFlowId: number, personIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< boolean[] >;
|
|
491
|
+
|
|
492
|
+
public async tryAddPersonsToEmailFlowAsync(emailFlowId:number|carriers.Workflow_TryAddPersonsToEmailFlowRequest, personIds?:number[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< boolean[] > {
|
|
493
|
+
let _request : carriers.Workflow_TryAddPersonsToEmailFlowRequest = null;
|
|
494
|
+
let _options : base.WebApiRequestOptions = null;
|
|
495
|
+
const first : any = emailFlowId;
|
|
496
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailFlowId)!='undefined' || typeof(first.personIds)!='undefined' ) )
|
|
497
|
+
{
|
|
498
|
+
_request = emailFlowId as carriers.Workflow_TryAddPersonsToEmailFlowRequest;
|
|
499
|
+
_options = personIds as base.WebApiRequestOptions;
|
|
500
|
+
}
|
|
501
|
+
else
|
|
502
|
+
{
|
|
503
|
+
_request = {
|
|
504
|
+
emailFlowId: emailFlowId as number,
|
|
505
|
+
personIds: personIds as number[],
|
|
506
|
+
};
|
|
507
|
+
_options = webapi_options;
|
|
508
|
+
}
|
|
509
|
+
return this._tryAddPersonsToEmailFlowAsync( _request, _options );
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
private async _removeParticipantsFromEmailFlowAsync(request: carriers.Workflow_RemoveParticipantsFromEmailFlowRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
514
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
515
|
+
base.WebApiBase.SetPending(options);
|
|
516
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
517
|
+
try {
|
|
518
|
+
config.baseURL = this._options.baseUrl;
|
|
519
|
+
const response = await this._axios.post("RemoveParticipantsFromEmailFlow", request , config);
|
|
520
|
+
base.WebApiBase.SetCompleted(options);
|
|
521
|
+
const res = response.data;
|
|
522
|
+
resolve(res);
|
|
523
|
+
}
|
|
524
|
+
catch( err ) {
|
|
525
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
526
|
+
reject(err);
|
|
527
|
+
}
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Remove participants (actually workflow instances) from the workflow
|
|
535
|
+
* @param request - EmailFlowId, WorkflowInstanceIds
|
|
536
|
+
* @returns
|
|
537
|
+
*/
|
|
538
|
+
public async removeParticipantsFromEmailFlowAsync(request: carriers.Workflow_RemoveParticipantsFromEmailFlowRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Remove participants (actually workflow instances) from the workflow
|
|
542
|
+
* @param emailFlowId - Primary key of EmailFlow
|
|
543
|
+
* @param workflowInstanceIds - Array of Workflow instances (representing participants) to be completely removed from the workflow
|
|
544
|
+
* @returns
|
|
545
|
+
*/
|
|
546
|
+
public async removeParticipantsFromEmailFlowAsync(emailFlowId: number, workflowInstanceIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
547
|
+
|
|
548
|
+
public async removeParticipantsFromEmailFlowAsync(emailFlowId:number|carriers.Workflow_RemoveParticipantsFromEmailFlowRequest, workflowInstanceIds?:number[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
549
|
+
let _request : carriers.Workflow_RemoveParticipantsFromEmailFlowRequest = null;
|
|
550
|
+
let _options : base.WebApiRequestOptions = null;
|
|
551
|
+
const first : any = emailFlowId;
|
|
552
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailFlowId)!='undefined' || typeof(first.workflowInstanceIds)!='undefined' ) )
|
|
553
|
+
{
|
|
554
|
+
_request = emailFlowId as carriers.Workflow_RemoveParticipantsFromEmailFlowRequest;
|
|
555
|
+
_options = workflowInstanceIds as base.WebApiRequestOptions;
|
|
556
|
+
}
|
|
557
|
+
else
|
|
558
|
+
{
|
|
559
|
+
_request = {
|
|
560
|
+
emailFlowId: emailFlowId as number,
|
|
561
|
+
workflowInstanceIds: workflowInstanceIds as number[],
|
|
562
|
+
};
|
|
563
|
+
_options = webapi_options;
|
|
564
|
+
}
|
|
565
|
+
return this._removeParticipantsFromEmailFlowAsync( _request, _options );
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
private async _createEmailFlowContentAsync(request: carriers.Workflow_CreateEmailFlowContentRequest, options?:base.WebApiRequestOptions) : Promise< number > {
|
|
570
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
571
|
+
base.WebApiBase.SetPending(options);
|
|
572
|
+
return new Promise< number >(async (resolve, reject) => {
|
|
573
|
+
try {
|
|
574
|
+
config.baseURL = this._options.baseUrl;
|
|
575
|
+
const response = await this._axios.post("CreateEmailFlowContent", request , config);
|
|
576
|
+
base.WebApiBase.SetCompleted(options);
|
|
577
|
+
const res : number = response.data as number;
|
|
578
|
+
resolve(res);
|
|
579
|
+
}
|
|
580
|
+
catch( err ) {
|
|
581
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
582
|
+
reject(err);
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Create content to an email flow
|
|
591
|
+
* @param request - EmailFlowId, ContentName
|
|
592
|
+
* @returns Id of shipment created
|
|
593
|
+
*/
|
|
594
|
+
public async createEmailFlowContentAsync(request: carriers.Workflow_CreateEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Create content to an email flow
|
|
598
|
+
* @param emailFlowId - The EmailFlow to connect the created message to.
|
|
599
|
+
* @param contentName - The name of the content created
|
|
600
|
+
* @returns Id of shipment created
|
|
601
|
+
*/
|
|
602
|
+
public async createEmailFlowContentAsync(emailFlowId: number, contentName: string, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
603
|
+
|
|
604
|
+
public async createEmailFlowContentAsync(emailFlowId:number|carriers.Workflow_CreateEmailFlowContentRequest, contentName?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< number > {
|
|
605
|
+
let _request : carriers.Workflow_CreateEmailFlowContentRequest = null;
|
|
606
|
+
let _options : base.WebApiRequestOptions = null;
|
|
607
|
+
const first : any = emailFlowId;
|
|
608
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailFlowId)!='undefined' || typeof(first.contentName)!='undefined' ) )
|
|
609
|
+
{
|
|
610
|
+
_request = emailFlowId as carriers.Workflow_CreateEmailFlowContentRequest;
|
|
611
|
+
_options = contentName as base.WebApiRequestOptions;
|
|
612
|
+
}
|
|
613
|
+
else
|
|
614
|
+
{
|
|
615
|
+
_request = {
|
|
616
|
+
emailFlowId: emailFlowId as number,
|
|
617
|
+
contentName: contentName as string,
|
|
618
|
+
};
|
|
619
|
+
_options = webapi_options;
|
|
620
|
+
}
|
|
621
|
+
return this._createEmailFlowContentAsync( _request, _options );
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
private async _connectEmailFlowContentAsync(request: carriers.Workflow_ConnectEmailFlowContentRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
626
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
627
|
+
base.WebApiBase.SetPending(options);
|
|
628
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
629
|
+
try {
|
|
630
|
+
config.baseURL = this._options.baseUrl;
|
|
631
|
+
const response = await this._axios.post("ConnectEmailFlowContent", request , config);
|
|
632
|
+
base.WebApiBase.SetCompleted(options);
|
|
633
|
+
const res = response.data;
|
|
634
|
+
resolve(res);
|
|
635
|
+
}
|
|
636
|
+
catch( err ) {
|
|
637
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
638
|
+
reject(err);
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Link any SMessage to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
|
|
647
|
+
* @param request - EmailFlowId, MessageId
|
|
648
|
+
* @returns
|
|
649
|
+
*/
|
|
650
|
+
public async connectEmailFlowContentAsync(request: carriers.Workflow_ConnectEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Link any SMessage to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
|
|
654
|
+
* @param emailFlowId - The EmailFlow to connect the message to.
|
|
655
|
+
* @param messageId - The s_message to connect to the flow. A shipment, form or flow may be connected to that s_message.
|
|
656
|
+
* @returns
|
|
657
|
+
*/
|
|
658
|
+
public async connectEmailFlowContentAsync(emailFlowId: number, messageId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
659
|
+
|
|
660
|
+
public async connectEmailFlowContentAsync(emailFlowId:number|carriers.Workflow_ConnectEmailFlowContentRequest, messageId?:number|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
661
|
+
let _request : carriers.Workflow_ConnectEmailFlowContentRequest = null;
|
|
662
|
+
let _options : base.WebApiRequestOptions = null;
|
|
663
|
+
const first : any = emailFlowId;
|
|
664
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailFlowId)!='undefined' || typeof(first.messageId)!='undefined' ) )
|
|
665
|
+
{
|
|
666
|
+
_request = emailFlowId as carriers.Workflow_ConnectEmailFlowContentRequest;
|
|
667
|
+
_options = messageId as base.WebApiRequestOptions;
|
|
668
|
+
}
|
|
669
|
+
else
|
|
670
|
+
{
|
|
671
|
+
_request = {
|
|
672
|
+
emailFlowId: emailFlowId as number,
|
|
673
|
+
messageId: messageId as number,
|
|
674
|
+
};
|
|
675
|
+
_options = webapi_options;
|
|
676
|
+
}
|
|
677
|
+
return this._connectEmailFlowContentAsync( _request, _options );
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
private async _copyEmailFlowContentAsync(request: carriers.Workflow_CopyEmailFlowContentRequest, options?:base.WebApiRequestOptions) : Promise< number > {
|
|
682
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
683
|
+
base.WebApiBase.SetPending(options);
|
|
684
|
+
return new Promise< number >(async (resolve, reject) => {
|
|
685
|
+
try {
|
|
686
|
+
config.baseURL = this._options.baseUrl;
|
|
687
|
+
const response = await this._axios.post("CopyEmailFlowContent", request , config);
|
|
688
|
+
base.WebApiBase.SetCompleted(options);
|
|
689
|
+
const res : number = response.data as number;
|
|
690
|
+
resolve(res);
|
|
691
|
+
}
|
|
692
|
+
catch( err ) {
|
|
693
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
694
|
+
reject(err);
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Copy smessage and connected shipment to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
|
|
703
|
+
* @param request - EmailFlowId, ShipmentId
|
|
704
|
+
* @returns Newly created shipment id for this content
|
|
705
|
+
*/
|
|
706
|
+
public async copyEmailFlowContentAsync(request: carriers.Workflow_CopyEmailFlowContentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Copy smessage and connected shipment to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
|
|
710
|
+
* @param emailFlowId - The EmailFlow to connect the copied content to.
|
|
711
|
+
* @param shipmentId - The id of the shipment to copy to the flow. The message of this shipment will also be connected
|
|
712
|
+
* @returns Newly created shipment id for this content
|
|
713
|
+
*/
|
|
714
|
+
public async copyEmailFlowContentAsync(emailFlowId: number, shipmentId: number, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
715
|
+
|
|
716
|
+
public async copyEmailFlowContentAsync(emailFlowId:number|carriers.Workflow_CopyEmailFlowContentRequest, shipmentId?:number|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< number > {
|
|
717
|
+
let _request : carriers.Workflow_CopyEmailFlowContentRequest = null;
|
|
718
|
+
let _options : base.WebApiRequestOptions = null;
|
|
719
|
+
const first : any = emailFlowId;
|
|
720
|
+
if( typeof( first ) === "object" && first && ( typeof(first.emailFlowId)!='undefined' || typeof(first.shipmentId)!='undefined' ) )
|
|
721
|
+
{
|
|
722
|
+
_request = emailFlowId as carriers.Workflow_CopyEmailFlowContentRequest;
|
|
723
|
+
_options = shipmentId as base.WebApiRequestOptions;
|
|
724
|
+
}
|
|
725
|
+
else
|
|
726
|
+
{
|
|
727
|
+
_request = {
|
|
728
|
+
emailFlowId: emailFlowId as number,
|
|
729
|
+
shipmentId: shipmentId as number,
|
|
730
|
+
};
|
|
731
|
+
_options = webapi_options;
|
|
732
|
+
}
|
|
733
|
+
return this._copyEmailFlowContentAsync( _request, _options );
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
private async _runAsync( options?:base.WebApiRequestOptions) : Promise< Date > {
|
|
738
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
739
|
+
base.WebApiBase.SetPending(options);
|
|
740
|
+
return new Promise< Date >(async (resolve, reject) => {
|
|
741
|
+
try {
|
|
742
|
+
config.baseURL = this._options.baseUrl;
|
|
743
|
+
const response = await this._axios.post("Run", undefined , config);
|
|
744
|
+
base.WebApiBase.SetCompleted(options);
|
|
745
|
+
const res : Date = response.data as Date;
|
|
746
|
+
resolve(res);
|
|
747
|
+
}
|
|
748
|
+
catch( err ) {
|
|
749
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
750
|
+
reject(err);
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Run the workflow engine right now
|
|
758
|
+
* @returns Suggested time for next run
|
|
759
|
+
*/
|
|
760
|
+
public async runAsync(webapi_options?:base.WebApiRequestOptions) : Promise< Date >
|
|
761
|
+
{
|
|
762
|
+
return this._runAsync(webapi_options);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
private async _sendEventAsync(request: carriers.Workflow_SendEventRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult > {
|
|
767
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
768
|
+
base.WebApiBase.SetPending(options);
|
|
769
|
+
return new Promise< carriers.WorkflowEventResult >(async (resolve, reject) => {
|
|
770
|
+
try {
|
|
771
|
+
config.baseURL = this._options.baseUrl;
|
|
772
|
+
const response = await this._axios.post("SendEvent", request , config);
|
|
773
|
+
base.WebApiBase.SetCompleted(options);
|
|
774
|
+
const res : carriers.WorkflowEventResult = converters.Create_WorkflowEventResult_From( response.data );
|
|
775
|
+
resolve(res);
|
|
776
|
+
}
|
|
777
|
+
catch( err ) {
|
|
778
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
779
|
+
reject(err);
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Send a workflow event. Most event signaling will finish very quickly as they normally just change the state of a workflow instance
|
|
788
|
+
* @param request - WorkflowEvent
|
|
789
|
+
* @returns Any relevant info about the event
|
|
790
|
+
*/
|
|
791
|
+
public async sendEventAsync(request: carriers.Workflow_SendEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult >;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Send a workflow event. Most event signaling will finish very quickly as they normally just change the state of a workflow instance
|
|
795
|
+
* @param workflowEvent - Information about the signaled event
|
|
796
|
+
* @returns Any relevant info about the event
|
|
797
|
+
*/
|
|
798
|
+
public async sendEventAsync(workflowEvent: carriers.WorkflowEvent, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult >;
|
|
799
|
+
|
|
800
|
+
public async sendEventAsync(workflowEvent:carriers.WorkflowEvent|carriers.Workflow_SendEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowEventResult > {
|
|
801
|
+
let _request : carriers.Workflow_SendEventRequest = null;
|
|
802
|
+
let _options : base.WebApiRequestOptions = null;
|
|
803
|
+
const first : any = workflowEvent;
|
|
804
|
+
if( typeof( first ) === "object" && first && ( typeof(first.workflowEvent)!='undefined' ) )
|
|
805
|
+
{
|
|
806
|
+
_request = workflowEvent as carriers.Workflow_SendEventRequest;
|
|
807
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
808
|
+
}
|
|
809
|
+
else
|
|
810
|
+
{
|
|
811
|
+
_request = {
|
|
812
|
+
workflowEvent: workflowEvent as carriers.WorkflowEvent,
|
|
813
|
+
};
|
|
814
|
+
_options = webapi_options;
|
|
815
|
+
}
|
|
816
|
+
return this._sendEventAsync( _request, _options );
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/*
|
|
820
|
+
* Gets a WorkflowGoal object.
|
|
821
|
+
* @param workflowGoalId - The primary key.
|
|
822
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
823
|
+
* @returns A single WorkflowGoal
|
|
824
|
+
*/
|
|
825
|
+
public async getWorkflowGoalAsync(workflowGoalId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowGoal > {
|
|
826
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
827
|
+
base.WebApiBase.SetPending(options);
|
|
828
|
+
return new Promise< carriers.WorkflowGoal >(async (resolve, reject) => {
|
|
829
|
+
try {
|
|
830
|
+
const response = await this._axios.post("GetWorkflowGoal?workflowGoalId=" + workflowGoalId, null, config);
|
|
831
|
+
base.WebApiBase.SetCompleted(options);
|
|
832
|
+
const res = converters.Create_WorkflowGoal_From( response.data );
|
|
833
|
+
resolve(res);
|
|
834
|
+
}
|
|
835
|
+
catch( err ) {
|
|
836
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
837
|
+
reject(err);
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
private async _getWorkflowStepAsync(request: carriers.Workflow_GetWorkflowStepRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
844
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
845
|
+
base.WebApiBase.SetPending(options);
|
|
846
|
+
return new Promise< carriers.WorkflowStepBase >(async (resolve, reject) => {
|
|
847
|
+
try {
|
|
848
|
+
config.baseURL = this._options.baseUrl;
|
|
849
|
+
const response = await this._axios.post("GetWorkflowStep", request , config);
|
|
850
|
+
base.WebApiBase.SetCompleted(options);
|
|
851
|
+
const res : carriers.WorkflowStepBase = converters.Create_WorkflowStepBase_From( response.data );
|
|
852
|
+
resolve(res);
|
|
853
|
+
}
|
|
854
|
+
catch( err ) {
|
|
855
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
856
|
+
reject(err);
|
|
857
|
+
}
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Get Workflowstep by ID
|
|
865
|
+
* @param request - WorkflowStepId
|
|
866
|
+
* @returns The Workflow step
|
|
867
|
+
*/
|
|
868
|
+
public async getWorkflowStepAsync(request: carriers.Workflow_GetWorkflowStepRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Get Workflowstep by ID
|
|
872
|
+
* @param workflowStepId - Primary key of WorkflowStep
|
|
873
|
+
* @returns The Workflow step
|
|
874
|
+
*/
|
|
875
|
+
public async getWorkflowStepAsync(workflowStepId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
876
|
+
|
|
877
|
+
public async getWorkflowStepAsync(workflowStepId:number|carriers.Workflow_GetWorkflowStepRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
878
|
+
let _request : carriers.Workflow_GetWorkflowStepRequest = null;
|
|
879
|
+
let _options : base.WebApiRequestOptions = null;
|
|
880
|
+
const first : any = workflowStepId;
|
|
881
|
+
if( typeof( first ) === "object" && first && ( typeof(first.workflowStepId)!='undefined' ) )
|
|
882
|
+
{
|
|
883
|
+
_request = workflowStepId as carriers.Workflow_GetWorkflowStepRequest;
|
|
884
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
885
|
+
}
|
|
886
|
+
else
|
|
887
|
+
{
|
|
888
|
+
_request = {
|
|
889
|
+
workflowStepId: workflowStepId as number,
|
|
890
|
+
};
|
|
891
|
+
_options = webapi_options;
|
|
892
|
+
}
|
|
893
|
+
return this._getWorkflowStepAsync( _request, _options );
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
private async _addAfterWorkflowStepAsync(request: carriers.Workflow_AddAfterWorkflowStepRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
898
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
899
|
+
base.WebApiBase.SetPending(options);
|
|
900
|
+
return new Promise< carriers.WorkflowStepBase >(async (resolve, reject) => {
|
|
901
|
+
try {
|
|
902
|
+
config.baseURL = this._options.baseUrl;
|
|
903
|
+
const response = await this._axios.post("AddAfterWorkflowStep", request , config);
|
|
904
|
+
base.WebApiBase.SetCompleted(options);
|
|
905
|
+
const res : carriers.WorkflowStepBase = converters.Create_WorkflowStepBase_From( response.data );
|
|
906
|
+
resolve(res);
|
|
907
|
+
}
|
|
908
|
+
catch( err ) {
|
|
909
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
910
|
+
reject(err);
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Add another step (and any of its substeps) after the given step id (which must exist), and move any following steps in the workflow further down the line.
|
|
919
|
+
* @param request - WorkflowStepId, SubStep
|
|
920
|
+
* @returns The added step
|
|
921
|
+
*/
|
|
922
|
+
public async addAfterWorkflowStepAsync(request: carriers.Workflow_AddAfterWorkflowStepRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Add another step (and any of its substeps) after the given step id (which must exist), and move any following steps in the workflow further down the line.
|
|
926
|
+
* @param workflowStepId - Primary key of WorkflowStep
|
|
927
|
+
* @param subStep - The step to be inserted after given step id.
|
|
928
|
+
* @returns The added step
|
|
929
|
+
*/
|
|
930
|
+
public async addAfterWorkflowStepAsync(workflowStepId: number, subStep: carriers.WorkflowStepBase, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
931
|
+
|
|
932
|
+
public async addAfterWorkflowStepAsync(workflowStepId:number|carriers.Workflow_AddAfterWorkflowStepRequest, subStep?:carriers.WorkflowStepBase|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
933
|
+
let _request : carriers.Workflow_AddAfterWorkflowStepRequest = null;
|
|
934
|
+
let _options : base.WebApiRequestOptions = null;
|
|
935
|
+
const first : any = workflowStepId;
|
|
936
|
+
if( typeof( first ) === "object" && first && ( typeof(first.workflowStepId)!='undefined' || typeof(first.subStep)!='undefined' ) )
|
|
937
|
+
{
|
|
938
|
+
_request = workflowStepId as carriers.Workflow_AddAfterWorkflowStepRequest;
|
|
939
|
+
_options = subStep as base.WebApiRequestOptions;
|
|
940
|
+
}
|
|
941
|
+
else
|
|
942
|
+
{
|
|
943
|
+
_request = {
|
|
944
|
+
workflowStepId: workflowStepId as number,
|
|
945
|
+
subStep: subStep as carriers.WorkflowStepBase,
|
|
946
|
+
};
|
|
947
|
+
_options = webapi_options;
|
|
948
|
+
}
|
|
949
|
+
return this._addAfterWorkflowStepAsync( _request, _options );
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
private async _createDefaultWorkflowStepFromTypeAsync(request: carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
954
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
955
|
+
base.WebApiBase.SetPending(options);
|
|
956
|
+
return new Promise< carriers.WorkflowStepBase >(async (resolve, reject) => {
|
|
957
|
+
try {
|
|
958
|
+
config.baseURL = this._options.baseUrl;
|
|
959
|
+
const response = await this._axios.post("CreateDefaultWorkflowStepFromType", request , config);
|
|
960
|
+
base.WebApiBase.SetCompleted(options);
|
|
961
|
+
const res : carriers.WorkflowStepBase = converters.Create_WorkflowStepBase_From( response.data );
|
|
962
|
+
resolve(res);
|
|
963
|
+
}
|
|
964
|
+
catch( err ) {
|
|
965
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
966
|
+
reject(err);
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Creates a new carrier from the step type given, with the right kind of properties, defaults set.
|
|
975
|
+
* @param request - StepType
|
|
976
|
+
* @returns
|
|
977
|
+
*/
|
|
978
|
+
public async createDefaultWorkflowStepFromTypeAsync(request: carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Creates a new carrier from the step type given, with the right kind of properties, defaults set.
|
|
982
|
+
* @param stepType - Step type to create
|
|
983
|
+
* @returns
|
|
984
|
+
*/
|
|
985
|
+
public async createDefaultWorkflowStepFromTypeAsync(stepType: enums.WorkflowStepType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase >;
|
|
986
|
+
|
|
987
|
+
public async createDefaultWorkflowStepFromTypeAsync(stepType:enums.WorkflowStepType|carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepBase > {
|
|
988
|
+
let _request : carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest = null;
|
|
989
|
+
let _options : base.WebApiRequestOptions = null;
|
|
990
|
+
const first : any = stepType;
|
|
991
|
+
if( typeof( first ) === "object" && first && ( typeof(first.stepType)!='undefined' ) )
|
|
992
|
+
{
|
|
993
|
+
_request = stepType as carriers.Workflow_CreateDefaultWorkflowStepFromTypeRequest;
|
|
994
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
995
|
+
}
|
|
996
|
+
else
|
|
997
|
+
{
|
|
998
|
+
_request = {
|
|
999
|
+
stepType: stepType as enums.WorkflowStepType,
|
|
1000
|
+
};
|
|
1001
|
+
_options = webapi_options;
|
|
1002
|
+
}
|
|
1003
|
+
return this._createDefaultWorkflowStepFromTypeAsync( _request, _options );
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/*
|
|
1007
|
+
* Gets a WorkflowStepOption object.
|
|
1008
|
+
* @param workflowStepOptionId - The primary key.
|
|
1009
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1010
|
+
* @returns A single WorkflowStepOption
|
|
1011
|
+
*/
|
|
1012
|
+
public async getWorkflowStepOptionAsync(workflowStepOptionId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowStepOption > {
|
|
1013
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1014
|
+
base.WebApiBase.SetPending(options);
|
|
1015
|
+
return new Promise< carriers.WorkflowStepOption >(async (resolve, reject) => {
|
|
1016
|
+
try {
|
|
1017
|
+
const response = await this._axios.post("GetWorkflowStepOption?workflowStepOptionId=" + workflowStepOptionId, null, config);
|
|
1018
|
+
base.WebApiBase.SetCompleted(options);
|
|
1019
|
+
const res = converters.Create_WorkflowStepOption_From( response.data );
|
|
1020
|
+
resolve(res);
|
|
1021
|
+
}
|
|
1022
|
+
catch( err ) {
|
|
1023
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1024
|
+
reject(err);
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/*
|
|
1030
|
+
* Gets a WorkflowTrigger object.
|
|
1031
|
+
* @param workflowTriggerId - The primary key.
|
|
1032
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1033
|
+
* @returns A single WorkflowTrigger
|
|
1034
|
+
*/
|
|
1035
|
+
public async getWorkflowTriggerAsync(workflowTriggerId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WorkflowTrigger > {
|
|
1036
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1037
|
+
base.WebApiBase.SetPending(options);
|
|
1038
|
+
return new Promise< carriers.WorkflowTrigger >(async (resolve, reject) => {
|
|
1039
|
+
try {
|
|
1040
|
+
const response = await this._axios.post("GetWorkflowTrigger?workflowTriggerId=" + workflowTriggerId, null, config);
|
|
1041
|
+
base.WebApiBase.SetCompleted(options);
|
|
1042
|
+
const res = converters.Create_WorkflowTrigger_From( response.data );
|
|
1043
|
+
resolve(res);
|
|
1044
|
+
}
|
|
1045
|
+
catch( err ) {
|
|
1046
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1047
|
+
reject(err);
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
} // class v1WorkflowAgentController
|
|
1053
|
+
|
|
1054
|
+
|