@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,758 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// SuperOffice Code Generator
|
|
3
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
import * as base from './WebApiBase.js';
|
|
6
|
+
import * as converters from './Converters.js';
|
|
7
|
+
/**
|
|
8
|
+
* Agent lets you configure workflow automation
|
|
9
|
+
*/
|
|
10
|
+
export class WorkflowAgent extends base.WebApiBase {
|
|
11
|
+
constructor(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode) {
|
|
12
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
13
|
+
options.basePath = "v1/Agents/Workflow/";
|
|
14
|
+
super(options);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Set default values into a new EmailFlow.
|
|
18
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
19
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
20
|
+
* @returns A blank entity.
|
|
21
|
+
*/
|
|
22
|
+
async createDefaultEmailFlowAsync(options) {
|
|
23
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
24
|
+
base.WebApiBase.SetPending(options);
|
|
25
|
+
return new Promise(async (resolve, reject) => {
|
|
26
|
+
try {
|
|
27
|
+
const response = await this._axios.post("CreateDefaultEmailFlow", null, config);
|
|
28
|
+
base.WebApiBase.SetCompleted(options);
|
|
29
|
+
const res = converters.Create_EmailFlow_From(response.data);
|
|
30
|
+
resolve(res);
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
34
|
+
reject(err);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/*
|
|
39
|
+
* Replace the existing EmailFlow or creates a new EmailFlow if the id parameter is empty
|
|
40
|
+
* @param entity - The EmailFlow to be saved.
|
|
41
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
42
|
+
* @returns New or updated EmailFlow
|
|
43
|
+
*/
|
|
44
|
+
async saveEmailFlowAsync(entity, options) {
|
|
45
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
46
|
+
base.WebApiBase.SetPending(options);
|
|
47
|
+
return new Promise(async (resolve, reject) => {
|
|
48
|
+
try {
|
|
49
|
+
const response = await this._axios.post("SaveEmailFlow", entity, config);
|
|
50
|
+
base.WebApiBase.SetCompleted(options);
|
|
51
|
+
const res = converters.Create_EmailFlow_From(response.data);
|
|
52
|
+
resolve(res);
|
|
53
|
+
}
|
|
54
|
+
catch (err) {
|
|
55
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
56
|
+
reject(err);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/*
|
|
61
|
+
* Deletes the EmailFlow
|
|
62
|
+
* @param EmailFlowId - The id of the EmailFlow to be deleted.
|
|
63
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
64
|
+
*/
|
|
65
|
+
async deleteEmailFlowAsync(EmailFlowId, options) {
|
|
66
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
67
|
+
base.WebApiBase.SetPending(options);
|
|
68
|
+
return new Promise(async (resolve, reject) => {
|
|
69
|
+
try {
|
|
70
|
+
const response = await this._axios.post("DeleteEmailFlow?EmailFlowId=" + EmailFlowId, null, config);
|
|
71
|
+
base.WebApiBase.SetCompleted(options);
|
|
72
|
+
const res = response.data;
|
|
73
|
+
resolve(res);
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
77
|
+
reject(err);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Set default values into a new WorkflowEvent.
|
|
83
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
84
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
85
|
+
* @returns A blank entity.
|
|
86
|
+
*/
|
|
87
|
+
async createDefaultWorkflowEventAsync(options) {
|
|
88
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
89
|
+
base.WebApiBase.SetPending(options);
|
|
90
|
+
return new Promise(async (resolve, reject) => {
|
|
91
|
+
try {
|
|
92
|
+
const response = await this._axios.post("CreateDefaultWorkflowEvent", null, config);
|
|
93
|
+
base.WebApiBase.SetCompleted(options);
|
|
94
|
+
const res = converters.Create_WorkflowEvent_From(response.data);
|
|
95
|
+
resolve(res);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
99
|
+
reject(err);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Set default values into a new WorkflowEventResult.
|
|
105
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
106
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
107
|
+
* @returns A blank entity.
|
|
108
|
+
*/
|
|
109
|
+
async createDefaultWorkflowEventResultAsync(options) {
|
|
110
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
111
|
+
base.WebApiBase.SetPending(options);
|
|
112
|
+
return new Promise(async (resolve, reject) => {
|
|
113
|
+
try {
|
|
114
|
+
const response = await this._axios.post("CreateDefaultWorkflowEventResult", null, config);
|
|
115
|
+
base.WebApiBase.SetCompleted(options);
|
|
116
|
+
const res = converters.Create_WorkflowEventResult_From(response.data);
|
|
117
|
+
resolve(res);
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
121
|
+
reject(err);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Set default values into a new WorkflowFilter.
|
|
127
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
128
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
129
|
+
* @returns A blank entity.
|
|
130
|
+
*/
|
|
131
|
+
async createDefaultWorkflowFilterAsync(options) {
|
|
132
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
133
|
+
base.WebApiBase.SetPending(options);
|
|
134
|
+
return new Promise(async (resolve, reject) => {
|
|
135
|
+
try {
|
|
136
|
+
const response = await this._axios.post("CreateDefaultWorkflowFilter", null, config);
|
|
137
|
+
base.WebApiBase.SetCompleted(options);
|
|
138
|
+
const res = converters.Create_WorkflowFilter_From(response.data);
|
|
139
|
+
resolve(res);
|
|
140
|
+
}
|
|
141
|
+
catch (err) {
|
|
142
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
143
|
+
reject(err);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Set default values into a new WorkflowGoal.
|
|
149
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
150
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
151
|
+
* @returns A blank entity.
|
|
152
|
+
*/
|
|
153
|
+
async createDefaultWorkflowGoalAsync(options) {
|
|
154
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
155
|
+
base.WebApiBase.SetPending(options);
|
|
156
|
+
return new Promise(async (resolve, reject) => {
|
|
157
|
+
try {
|
|
158
|
+
const response = await this._axios.post("CreateDefaultWorkflowGoal", null, config);
|
|
159
|
+
base.WebApiBase.SetCompleted(options);
|
|
160
|
+
const res = converters.Create_WorkflowGoal_From(response.data);
|
|
161
|
+
resolve(res);
|
|
162
|
+
}
|
|
163
|
+
catch (err) {
|
|
164
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
165
|
+
reject(err);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/*
|
|
170
|
+
* Replace the existing WorkflowGoal or creates a new WorkflowGoal if the id parameter is empty
|
|
171
|
+
* @param entity - The WorkflowGoal to be saved.
|
|
172
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
173
|
+
* @returns New or updated WorkflowGoal
|
|
174
|
+
*/
|
|
175
|
+
async saveWorkflowGoalAsync(entity, options) {
|
|
176
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
177
|
+
base.WebApiBase.SetPending(options);
|
|
178
|
+
return new Promise(async (resolve, reject) => {
|
|
179
|
+
try {
|
|
180
|
+
const response = await this._axios.post("SaveWorkflowGoal", entity, config);
|
|
181
|
+
base.WebApiBase.SetCompleted(options);
|
|
182
|
+
const res = converters.Create_WorkflowGoal_From(response.data);
|
|
183
|
+
resolve(res);
|
|
184
|
+
}
|
|
185
|
+
catch (err) {
|
|
186
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
187
|
+
reject(err);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/*
|
|
192
|
+
* Deletes the WorkflowGoal
|
|
193
|
+
* @param WorkflowGoalId - The id of the WorkflowGoal to be deleted.
|
|
194
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
195
|
+
*/
|
|
196
|
+
async deleteWorkflowGoalAsync(WorkflowGoalId, options) {
|
|
197
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
198
|
+
base.WebApiBase.SetPending(options);
|
|
199
|
+
return new Promise(async (resolve, reject) => {
|
|
200
|
+
try {
|
|
201
|
+
const response = await this._axios.post("DeleteWorkflowGoal?WorkflowGoalId=" + WorkflowGoalId, null, config);
|
|
202
|
+
base.WebApiBase.SetCompleted(options);
|
|
203
|
+
const res = response.data;
|
|
204
|
+
resolve(res);
|
|
205
|
+
}
|
|
206
|
+
catch (err) {
|
|
207
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
208
|
+
reject(err);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Set default values into a new WorkflowStepOption.
|
|
214
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
215
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
216
|
+
* @returns A blank entity.
|
|
217
|
+
*/
|
|
218
|
+
async createDefaultWorkflowStepOptionAsync(options) {
|
|
219
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
220
|
+
base.WebApiBase.SetPending(options);
|
|
221
|
+
return new Promise(async (resolve, reject) => {
|
|
222
|
+
try {
|
|
223
|
+
const response = await this._axios.post("CreateDefaultWorkflowStepOption", null, config);
|
|
224
|
+
base.WebApiBase.SetCompleted(options);
|
|
225
|
+
const res = converters.Create_WorkflowStepOption_From(response.data);
|
|
226
|
+
resolve(res);
|
|
227
|
+
}
|
|
228
|
+
catch (err) {
|
|
229
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
230
|
+
reject(err);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
/*
|
|
235
|
+
* Replace the existing WorkflowStepOption or creates a new WorkflowStepOption if the id parameter is empty
|
|
236
|
+
* @param entity - The WorkflowStepOption to be saved.
|
|
237
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
238
|
+
* @returns New or updated WorkflowStepOption
|
|
239
|
+
*/
|
|
240
|
+
async saveWorkflowStepOptionAsync(entity, options) {
|
|
241
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
242
|
+
base.WebApiBase.SetPending(options);
|
|
243
|
+
return new Promise(async (resolve, reject) => {
|
|
244
|
+
try {
|
|
245
|
+
const response = await this._axios.post("SaveWorkflowStepOption", entity, config);
|
|
246
|
+
base.WebApiBase.SetCompleted(options);
|
|
247
|
+
const res = converters.Create_WorkflowStepOption_From(response.data);
|
|
248
|
+
resolve(res);
|
|
249
|
+
}
|
|
250
|
+
catch (err) {
|
|
251
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
252
|
+
reject(err);
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/*
|
|
257
|
+
* Deletes the WorkflowStepOption
|
|
258
|
+
* @param WorkflowStepOptionId - The id of the WorkflowStepOption to be deleted.
|
|
259
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
260
|
+
*/
|
|
261
|
+
async deleteWorkflowStepOptionAsync(WorkflowStepOptionId, options) {
|
|
262
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
263
|
+
base.WebApiBase.SetPending(options);
|
|
264
|
+
return new Promise(async (resolve, reject) => {
|
|
265
|
+
try {
|
|
266
|
+
const response = await this._axios.post("DeleteWorkflowStepOption?WorkflowStepOptionId=" + WorkflowStepOptionId, null, config);
|
|
267
|
+
base.WebApiBase.SetCompleted(options);
|
|
268
|
+
const res = response.data;
|
|
269
|
+
resolve(res);
|
|
270
|
+
}
|
|
271
|
+
catch (err) {
|
|
272
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
273
|
+
reject(err);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Set default values into a new WorkflowTrigger.
|
|
279
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
280
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
281
|
+
* @returns A blank entity.
|
|
282
|
+
*/
|
|
283
|
+
async createDefaultWorkflowTriggerAsync(options) {
|
|
284
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
285
|
+
base.WebApiBase.SetPending(options);
|
|
286
|
+
return new Promise(async (resolve, reject) => {
|
|
287
|
+
try {
|
|
288
|
+
const response = await this._axios.post("CreateDefaultWorkflowTrigger", null, config);
|
|
289
|
+
base.WebApiBase.SetCompleted(options);
|
|
290
|
+
const res = converters.Create_WorkflowTrigger_From(response.data);
|
|
291
|
+
resolve(res);
|
|
292
|
+
}
|
|
293
|
+
catch (err) {
|
|
294
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
295
|
+
reject(err);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/*
|
|
300
|
+
* Replace the existing WorkflowTrigger or creates a new WorkflowTrigger if the id parameter is empty
|
|
301
|
+
* @param entity - The WorkflowTrigger to be saved.
|
|
302
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
303
|
+
* @returns New or updated WorkflowTrigger
|
|
304
|
+
*/
|
|
305
|
+
async saveWorkflowTriggerAsync(entity, options) {
|
|
306
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
307
|
+
base.WebApiBase.SetPending(options);
|
|
308
|
+
return new Promise(async (resolve, reject) => {
|
|
309
|
+
try {
|
|
310
|
+
const response = await this._axios.post("SaveWorkflowTrigger", entity, config);
|
|
311
|
+
base.WebApiBase.SetCompleted(options);
|
|
312
|
+
const res = converters.Create_WorkflowTrigger_From(response.data);
|
|
313
|
+
resolve(res);
|
|
314
|
+
}
|
|
315
|
+
catch (err) {
|
|
316
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
317
|
+
reject(err);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/*
|
|
322
|
+
* Deletes the WorkflowTrigger
|
|
323
|
+
* @param WorkflowTriggerId - The id of the WorkflowTrigger to be deleted.
|
|
324
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
325
|
+
*/
|
|
326
|
+
async deleteWorkflowTriggerAsync(WorkflowTriggerId, options) {
|
|
327
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
328
|
+
base.WebApiBase.SetPending(options);
|
|
329
|
+
return new Promise(async (resolve, reject) => {
|
|
330
|
+
try {
|
|
331
|
+
const response = await this._axios.post("DeleteWorkflowTrigger?WorkflowTriggerId=" + WorkflowTriggerId, null, config);
|
|
332
|
+
base.WebApiBase.SetCompleted(options);
|
|
333
|
+
const res = response.data;
|
|
334
|
+
resolve(res);
|
|
335
|
+
}
|
|
336
|
+
catch (err) {
|
|
337
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
338
|
+
reject(err);
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/*
|
|
343
|
+
* Gets a EmailFlow object.
|
|
344
|
+
* @param emailFlowId - The primary key.
|
|
345
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
346
|
+
* @returns A single EmailFlow
|
|
347
|
+
*/
|
|
348
|
+
async getEmailFlowAsync(emailFlowId, options) {
|
|
349
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
350
|
+
base.WebApiBase.SetPending(options);
|
|
351
|
+
return new Promise(async (resolve, reject) => {
|
|
352
|
+
try {
|
|
353
|
+
const response = await this._axios.post("GetEmailFlow?emailFlowId=" + emailFlowId, null, config);
|
|
354
|
+
base.WebApiBase.SetCompleted(options);
|
|
355
|
+
const res = converters.Create_EmailFlow_From(response.data);
|
|
356
|
+
resolve(res);
|
|
357
|
+
}
|
|
358
|
+
catch (err) {
|
|
359
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
360
|
+
reject(err);
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
async _tryAddPersonsToEmailFlowAsync(request, options) {
|
|
365
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
366
|
+
base.WebApiBase.SetPending(options);
|
|
367
|
+
return new Promise(async (resolve, reject) => {
|
|
368
|
+
try {
|
|
369
|
+
config.baseURL = this._options.baseUrl;
|
|
370
|
+
const response = await this._axios.post("TryAddPersonsToEmailFlow", request, config);
|
|
371
|
+
base.WebApiBase.SetCompleted(options);
|
|
372
|
+
const res = response.data;
|
|
373
|
+
resolve(res);
|
|
374
|
+
}
|
|
375
|
+
catch (err) {
|
|
376
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
377
|
+
reject(err);
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
async tryAddPersonsToEmailFlowAsync(emailFlowId, personIds, webapi_options) {
|
|
382
|
+
let _request = null;
|
|
383
|
+
let _options = null;
|
|
384
|
+
const first = emailFlowId;
|
|
385
|
+
if (typeof (first) === "object" && first && (typeof (first.emailFlowId) != 'undefined' || typeof (first.personIds) != 'undefined')) {
|
|
386
|
+
_request = emailFlowId;
|
|
387
|
+
_options = personIds;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
_request = {
|
|
391
|
+
emailFlowId: emailFlowId,
|
|
392
|
+
personIds: personIds,
|
|
393
|
+
};
|
|
394
|
+
_options = webapi_options;
|
|
395
|
+
}
|
|
396
|
+
return this._tryAddPersonsToEmailFlowAsync(_request, _options);
|
|
397
|
+
}
|
|
398
|
+
async _removeParticipantsFromEmailFlowAsync(request, options) {
|
|
399
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
400
|
+
base.WebApiBase.SetPending(options);
|
|
401
|
+
return new Promise(async (resolve, reject) => {
|
|
402
|
+
try {
|
|
403
|
+
config.baseURL = this._options.baseUrl;
|
|
404
|
+
const response = await this._axios.post("RemoveParticipantsFromEmailFlow", request, config);
|
|
405
|
+
base.WebApiBase.SetCompleted(options);
|
|
406
|
+
const res = response.data;
|
|
407
|
+
resolve(res);
|
|
408
|
+
}
|
|
409
|
+
catch (err) {
|
|
410
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
411
|
+
reject(err);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
async removeParticipantsFromEmailFlowAsync(emailFlowId, workflowInstanceIds, webapi_options) {
|
|
416
|
+
let _request = null;
|
|
417
|
+
let _options = null;
|
|
418
|
+
const first = emailFlowId;
|
|
419
|
+
if (typeof (first) === "object" && first && (typeof (first.emailFlowId) != 'undefined' || typeof (first.workflowInstanceIds) != 'undefined')) {
|
|
420
|
+
_request = emailFlowId;
|
|
421
|
+
_options = workflowInstanceIds;
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
_request = {
|
|
425
|
+
emailFlowId: emailFlowId,
|
|
426
|
+
workflowInstanceIds: workflowInstanceIds,
|
|
427
|
+
};
|
|
428
|
+
_options = webapi_options;
|
|
429
|
+
}
|
|
430
|
+
return this._removeParticipantsFromEmailFlowAsync(_request, _options);
|
|
431
|
+
}
|
|
432
|
+
async _createEmailFlowContentAsync(request, options) {
|
|
433
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
434
|
+
base.WebApiBase.SetPending(options);
|
|
435
|
+
return new Promise(async (resolve, reject) => {
|
|
436
|
+
try {
|
|
437
|
+
config.baseURL = this._options.baseUrl;
|
|
438
|
+
const response = await this._axios.post("CreateEmailFlowContent", request, config);
|
|
439
|
+
base.WebApiBase.SetCompleted(options);
|
|
440
|
+
const res = response.data;
|
|
441
|
+
resolve(res);
|
|
442
|
+
}
|
|
443
|
+
catch (err) {
|
|
444
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
445
|
+
reject(err);
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
async createEmailFlowContentAsync(emailFlowId, contentName, webapi_options) {
|
|
450
|
+
let _request = null;
|
|
451
|
+
let _options = null;
|
|
452
|
+
const first = emailFlowId;
|
|
453
|
+
if (typeof (first) === "object" && first && (typeof (first.emailFlowId) != 'undefined' || typeof (first.contentName) != 'undefined')) {
|
|
454
|
+
_request = emailFlowId;
|
|
455
|
+
_options = contentName;
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
_request = {
|
|
459
|
+
emailFlowId: emailFlowId,
|
|
460
|
+
contentName: contentName,
|
|
461
|
+
};
|
|
462
|
+
_options = webapi_options;
|
|
463
|
+
}
|
|
464
|
+
return this._createEmailFlowContentAsync(_request, _options);
|
|
465
|
+
}
|
|
466
|
+
async _connectEmailFlowContentAsync(request, options) {
|
|
467
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
468
|
+
base.WebApiBase.SetPending(options);
|
|
469
|
+
return new Promise(async (resolve, reject) => {
|
|
470
|
+
try {
|
|
471
|
+
config.baseURL = this._options.baseUrl;
|
|
472
|
+
const response = await this._axios.post("ConnectEmailFlowContent", request, config);
|
|
473
|
+
base.WebApiBase.SetCompleted(options);
|
|
474
|
+
const res = response.data;
|
|
475
|
+
resolve(res);
|
|
476
|
+
}
|
|
477
|
+
catch (err) {
|
|
478
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
479
|
+
reject(err);
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
async connectEmailFlowContentAsync(emailFlowId, messageId, webapi_options) {
|
|
484
|
+
let _request = null;
|
|
485
|
+
let _options = null;
|
|
486
|
+
const first = emailFlowId;
|
|
487
|
+
if (typeof (first) === "object" && first && (typeof (first.emailFlowId) != 'undefined' || typeof (first.messageId) != 'undefined')) {
|
|
488
|
+
_request = emailFlowId;
|
|
489
|
+
_options = messageId;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
_request = {
|
|
493
|
+
emailFlowId: emailFlowId,
|
|
494
|
+
messageId: messageId,
|
|
495
|
+
};
|
|
496
|
+
_options = webapi_options;
|
|
497
|
+
}
|
|
498
|
+
return this._connectEmailFlowContentAsync(_request, _options);
|
|
499
|
+
}
|
|
500
|
+
async _copyEmailFlowContentAsync(request, options) {
|
|
501
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
502
|
+
base.WebApiBase.SetPending(options);
|
|
503
|
+
return new Promise(async (resolve, reject) => {
|
|
504
|
+
try {
|
|
505
|
+
config.baseURL = this._options.baseUrl;
|
|
506
|
+
const response = await this._axios.post("CopyEmailFlowContent", request, config);
|
|
507
|
+
base.WebApiBase.SetCompleted(options);
|
|
508
|
+
const res = response.data;
|
|
509
|
+
resolve(res);
|
|
510
|
+
}
|
|
511
|
+
catch (err) {
|
|
512
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
513
|
+
reject(err);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
async copyEmailFlowContentAsync(emailFlowId, shipmentId, webapi_options) {
|
|
518
|
+
let _request = null;
|
|
519
|
+
let _options = null;
|
|
520
|
+
const first = emailFlowId;
|
|
521
|
+
if (typeof (first) === "object" && first && (typeof (first.emailFlowId) != 'undefined' || typeof (first.shipmentId) != 'undefined')) {
|
|
522
|
+
_request = emailFlowId;
|
|
523
|
+
_options = shipmentId;
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
_request = {
|
|
527
|
+
emailFlowId: emailFlowId,
|
|
528
|
+
shipmentId: shipmentId,
|
|
529
|
+
};
|
|
530
|
+
_options = webapi_options;
|
|
531
|
+
}
|
|
532
|
+
return this._copyEmailFlowContentAsync(_request, _options);
|
|
533
|
+
}
|
|
534
|
+
async _runAsync(options) {
|
|
535
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
536
|
+
base.WebApiBase.SetPending(options);
|
|
537
|
+
return new Promise(async (resolve, reject) => {
|
|
538
|
+
try {
|
|
539
|
+
config.baseURL = this._options.baseUrl;
|
|
540
|
+
const response = await this._axios.post("Run", undefined, config);
|
|
541
|
+
base.WebApiBase.SetCompleted(options);
|
|
542
|
+
const res = response.data;
|
|
543
|
+
resolve(res);
|
|
544
|
+
}
|
|
545
|
+
catch (err) {
|
|
546
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
547
|
+
reject(err);
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Run the workflow engine right now
|
|
553
|
+
* @returns Suggested time for next run
|
|
554
|
+
*/
|
|
555
|
+
async runAsync(webapi_options) {
|
|
556
|
+
return this._runAsync(webapi_options);
|
|
557
|
+
}
|
|
558
|
+
async _sendEventAsync(request, options) {
|
|
559
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
560
|
+
base.WebApiBase.SetPending(options);
|
|
561
|
+
return new Promise(async (resolve, reject) => {
|
|
562
|
+
try {
|
|
563
|
+
config.baseURL = this._options.baseUrl;
|
|
564
|
+
const response = await this._axios.post("SendEvent", request, config);
|
|
565
|
+
base.WebApiBase.SetCompleted(options);
|
|
566
|
+
const res = converters.Create_WorkflowEventResult_From(response.data);
|
|
567
|
+
resolve(res);
|
|
568
|
+
}
|
|
569
|
+
catch (err) {
|
|
570
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
571
|
+
reject(err);
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
async sendEventAsync(workflowEvent, webapi_options) {
|
|
576
|
+
let _request = null;
|
|
577
|
+
let _options = null;
|
|
578
|
+
const first = workflowEvent;
|
|
579
|
+
if (typeof (first) === "object" && first && (typeof (first.workflowEvent) != 'undefined')) {
|
|
580
|
+
_request = workflowEvent;
|
|
581
|
+
_options = webapi_options;
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
_request = {
|
|
585
|
+
workflowEvent: workflowEvent,
|
|
586
|
+
};
|
|
587
|
+
_options = webapi_options;
|
|
588
|
+
}
|
|
589
|
+
return this._sendEventAsync(_request, _options);
|
|
590
|
+
}
|
|
591
|
+
/*
|
|
592
|
+
* Gets a WorkflowGoal object.
|
|
593
|
+
* @param workflowGoalId - The primary key.
|
|
594
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
595
|
+
* @returns A single WorkflowGoal
|
|
596
|
+
*/
|
|
597
|
+
async getWorkflowGoalAsync(workflowGoalId, options) {
|
|
598
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
599
|
+
base.WebApiBase.SetPending(options);
|
|
600
|
+
return new Promise(async (resolve, reject) => {
|
|
601
|
+
try {
|
|
602
|
+
const response = await this._axios.post("GetWorkflowGoal?workflowGoalId=" + workflowGoalId, null, config);
|
|
603
|
+
base.WebApiBase.SetCompleted(options);
|
|
604
|
+
const res = converters.Create_WorkflowGoal_From(response.data);
|
|
605
|
+
resolve(res);
|
|
606
|
+
}
|
|
607
|
+
catch (err) {
|
|
608
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
609
|
+
reject(err);
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
async _getWorkflowStepAsync(request, options) {
|
|
614
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
615
|
+
base.WebApiBase.SetPending(options);
|
|
616
|
+
return new Promise(async (resolve, reject) => {
|
|
617
|
+
try {
|
|
618
|
+
config.baseURL = this._options.baseUrl;
|
|
619
|
+
const response = await this._axios.post("GetWorkflowStep", request, config);
|
|
620
|
+
base.WebApiBase.SetCompleted(options);
|
|
621
|
+
const res = converters.Create_WorkflowStepBase_From(response.data);
|
|
622
|
+
resolve(res);
|
|
623
|
+
}
|
|
624
|
+
catch (err) {
|
|
625
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
626
|
+
reject(err);
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
async getWorkflowStepAsync(workflowStepId, webapi_options) {
|
|
631
|
+
let _request = null;
|
|
632
|
+
let _options = null;
|
|
633
|
+
const first = workflowStepId;
|
|
634
|
+
if (typeof (first) === "object" && first && (typeof (first.workflowStepId) != 'undefined')) {
|
|
635
|
+
_request = workflowStepId;
|
|
636
|
+
_options = webapi_options;
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
_request = {
|
|
640
|
+
workflowStepId: workflowStepId,
|
|
641
|
+
};
|
|
642
|
+
_options = webapi_options;
|
|
643
|
+
}
|
|
644
|
+
return this._getWorkflowStepAsync(_request, _options);
|
|
645
|
+
}
|
|
646
|
+
async _addAfterWorkflowStepAsync(request, options) {
|
|
647
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
648
|
+
base.WebApiBase.SetPending(options);
|
|
649
|
+
return new Promise(async (resolve, reject) => {
|
|
650
|
+
try {
|
|
651
|
+
config.baseURL = this._options.baseUrl;
|
|
652
|
+
const response = await this._axios.post("AddAfterWorkflowStep", request, config);
|
|
653
|
+
base.WebApiBase.SetCompleted(options);
|
|
654
|
+
const res = converters.Create_WorkflowStepBase_From(response.data);
|
|
655
|
+
resolve(res);
|
|
656
|
+
}
|
|
657
|
+
catch (err) {
|
|
658
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
659
|
+
reject(err);
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
async addAfterWorkflowStepAsync(workflowStepId, subStep, webapi_options) {
|
|
664
|
+
let _request = null;
|
|
665
|
+
let _options = null;
|
|
666
|
+
const first = workflowStepId;
|
|
667
|
+
if (typeof (first) === "object" && first && (typeof (first.workflowStepId) != 'undefined' || typeof (first.subStep) != 'undefined')) {
|
|
668
|
+
_request = workflowStepId;
|
|
669
|
+
_options = subStep;
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
_request = {
|
|
673
|
+
workflowStepId: workflowStepId,
|
|
674
|
+
subStep: subStep,
|
|
675
|
+
};
|
|
676
|
+
_options = webapi_options;
|
|
677
|
+
}
|
|
678
|
+
return this._addAfterWorkflowStepAsync(_request, _options);
|
|
679
|
+
}
|
|
680
|
+
async _createDefaultWorkflowStepFromTypeAsync(request, options) {
|
|
681
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
682
|
+
base.WebApiBase.SetPending(options);
|
|
683
|
+
return new Promise(async (resolve, reject) => {
|
|
684
|
+
try {
|
|
685
|
+
config.baseURL = this._options.baseUrl;
|
|
686
|
+
const response = await this._axios.post("CreateDefaultWorkflowStepFromType", request, config);
|
|
687
|
+
base.WebApiBase.SetCompleted(options);
|
|
688
|
+
const res = converters.Create_WorkflowStepBase_From(response.data);
|
|
689
|
+
resolve(res);
|
|
690
|
+
}
|
|
691
|
+
catch (err) {
|
|
692
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
693
|
+
reject(err);
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
async createDefaultWorkflowStepFromTypeAsync(stepType, webapi_options) {
|
|
698
|
+
let _request = null;
|
|
699
|
+
let _options = null;
|
|
700
|
+
const first = stepType;
|
|
701
|
+
if (typeof (first) === "object" && first && (typeof (first.stepType) != 'undefined')) {
|
|
702
|
+
_request = stepType;
|
|
703
|
+
_options = webapi_options;
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
_request = {
|
|
707
|
+
stepType: stepType,
|
|
708
|
+
};
|
|
709
|
+
_options = webapi_options;
|
|
710
|
+
}
|
|
711
|
+
return this._createDefaultWorkflowStepFromTypeAsync(_request, _options);
|
|
712
|
+
}
|
|
713
|
+
/*
|
|
714
|
+
* Gets a WorkflowStepOption object.
|
|
715
|
+
* @param workflowStepOptionId - The primary key.
|
|
716
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
717
|
+
* @returns A single WorkflowStepOption
|
|
718
|
+
*/
|
|
719
|
+
async getWorkflowStepOptionAsync(workflowStepOptionId, options) {
|
|
720
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
721
|
+
base.WebApiBase.SetPending(options);
|
|
722
|
+
return new Promise(async (resolve, reject) => {
|
|
723
|
+
try {
|
|
724
|
+
const response = await this._axios.post("GetWorkflowStepOption?workflowStepOptionId=" + workflowStepOptionId, null, config);
|
|
725
|
+
base.WebApiBase.SetCompleted(options);
|
|
726
|
+
const res = converters.Create_WorkflowStepOption_From(response.data);
|
|
727
|
+
resolve(res);
|
|
728
|
+
}
|
|
729
|
+
catch (err) {
|
|
730
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
731
|
+
reject(err);
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
/*
|
|
736
|
+
* Gets a WorkflowTrigger object.
|
|
737
|
+
* @param workflowTriggerId - The primary key.
|
|
738
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
739
|
+
* @returns A single WorkflowTrigger
|
|
740
|
+
*/
|
|
741
|
+
async getWorkflowTriggerAsync(workflowTriggerId, options) {
|
|
742
|
+
const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
743
|
+
base.WebApiBase.SetPending(options);
|
|
744
|
+
return new Promise(async (resolve, reject) => {
|
|
745
|
+
try {
|
|
746
|
+
const response = await this._axios.post("GetWorkflowTrigger?workflowTriggerId=" + workflowTriggerId, null, config);
|
|
747
|
+
base.WebApiBase.SetCompleted(options);
|
|
748
|
+
const res = converters.Create_WorkflowTrigger_From(response.data);
|
|
749
|
+
resolve(res);
|
|
750
|
+
}
|
|
751
|
+
catch (err) {
|
|
752
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
753
|
+
reject(err);
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
} // class v1WorkflowAgentController
|
|
758
|
+
//# sourceMappingURL=WorkflowAgent.js.map
|